CN113472928A - Electronic apparatus, control method, and readable storage medium - Google Patents

Electronic apparatus, control method, and readable storage medium Download PDF

Info

Publication number
CN113472928A
CN113472928A CN202110767883.9A CN202110767883A CN113472928A CN 113472928 A CN113472928 A CN 113472928A CN 202110767883 A CN202110767883 A CN 202110767883A CN 113472928 A CN113472928 A CN 113472928A
Authority
CN
China
Prior art keywords
shell
motor
housing
rotating
position information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110767883.9A
Other languages
Chinese (zh)
Other versions
CN113472928B (en
Inventor
韩忠凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110767883.9A priority Critical patent/CN113472928B/en
Publication of CN113472928A publication Critical patent/CN113472928A/en
Application granted granted Critical
Publication of CN113472928B publication Critical patent/CN113472928B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0206Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
    • H04M1/0208Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings characterized by the relative motions of the body parts
    • H04M1/0235Slidable or telescopic telephones, i.e. with a relative translation movement of the body parts; Telephones using a combination of translation and other relative motions of the body parts
    • H04M1/0237Sliding mechanism with one degree of freedom
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02KDYNAMO-ELECTRIC MACHINES
    • H02K11/00Structural association of dynamo-electric machines with electric components or with devices for shielding, monitoring or protection
    • H02K11/20Structural association of dynamo-electric machines with electric components or with devices for shielding, monitoring or protection for measuring, monitoring, testing, protecting or switching
    • H02K11/21Devices for sensing speed or position, or actuated thereby
    • H02K11/215Magnetic effect devices, e.g. Hall-effect or magneto-resistive elements
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02KDYNAMO-ELECTRIC MACHINES
    • H02K7/00Arrangements for handling mechanical energy structurally associated with dynamo-electric machines, e.g. structural association with mechanical driving motors or auxiliary dynamo-electric machines
    • H02K7/06Means for converting reciprocating motion into rotary motion or vice versa
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02KDYNAMO-ELECTRIC MACHINES
    • H02K7/00Arrangements for handling mechanical energy structurally associated with dynamo-electric machines, e.g. structural association with mechanical driving motors or auxiliary dynamo-electric machines
    • H02K7/10Structural association with clutches, brakes, gears, pulleys or mechanical starters
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P5/00Arrangements specially adapted for regulating or controlling the speed or torque of two or more electric motors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0249Details of the mechanical connection between the housing parts or relating to the method of assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • H04M1/0268Details of the structure or mounting of specific components for a display module assembly including a flexible display panel

Abstract

An electronic apparatus, a control method, and a readable storage medium are disclosed. The electronic device comprises a first shell and a second shell which are connected in a sliding mode, and the first motor and the second motor are symmetrically arranged in the sliding direction perpendicular to the second shell. The first position detection assembly and the second position detection assembly are symmetrically arranged at two ends of the shell along the sliding direction perpendicular to the second shell, and are used for acquiring first position information and second position information of the first shell and the second shell. The processor is used for adjusting the rotating speed of the first motor and/or the second motor according to the first position information and the second position information. So, first position detection subassembly and second position detection subassembly detect real-time position and obtain two positional information, and the treater can compare two positional information and then adjust the rotational speed of first motor and/or second motor for the both ends of second shell can synchronous motion appear blocking the shell even dead trouble of card between second shell and the first shell.

Description

Electronic apparatus, control method, and readable storage medium
Technical Field
The present application relates to the field of electronic technology, and more particularly, to an electronic apparatus, a control method, and a readable storage medium.
Background
In the related art, in an electronic device such as a mobile phone, two housings can be driven to fold and approach each other by a driving part such as a motor to realize the expansion and recovery of a flexible screen, so that the display area of the electronic device such as the mobile phone is changed. In such a technical solution, two symmetrical driving components are usually disposed on the housing to synchronously drive the housing, however, due to uneven assembly tolerance of the driving components and distribution of resistance of the housing, the two driving components are likely to be incompletely synchronized, and a case or even a dead case is likely to occur between the housings.
Disclosure of Invention
The embodiment of the application provides an electronic device, a control method and a readable storage medium.
The electronic device of the embodiment of the application comprises:
a housing comprising a first shell and a second shell slidably connected;
the first motor and the second motor are arranged on the first shell, are symmetrically arranged in the first shell along a sliding direction vertical to the second shell, and are connected with the second shell and used for driving the second shell to slide relative to the first shell;
the first position detection assembly and the second position detection assembly are arranged in the shell and symmetrically arranged at two ends of the shell along a sliding direction vertical to the second shell, the first position detection assembly is used for acquiring first position information of the first shell and the second shell, and the second position detection assembly is used for acquiring second position information of the first shell and the second shell; and
the processor is connected with the first position detection assembly, the second position detection assembly, the first motor and the second motor, and is used for adjusting the rotating speed of the first motor and/or the second motor according to the first position information and the second position information.
The control method of the embodiment of the application is used for an electronic device, and the electronic device comprises the following components:
a housing comprising a first shell and a second shell slidably connected;
the first motor and the second motor are arranged on the first shell, are symmetrically arranged in the first shell along a sliding direction vertical to the second shell, and are connected with the second shell and used for driving the second shell to slide relative to the first shell;
the first position detection assembly and the second position detection assembly are arranged in the shell, are symmetrically arranged at two ends of the shell along a sliding direction vertical to the second shell, and are used for detecting the relative position of the second shell and the first shell; and
the control method comprises the following steps:
in the process that the first motor and the second motor drive the second shell to slide relative to the first shell, acquiring first position information output by the first position detection assembly and second position information output by the second position detection assembly;
and adjusting the rotating speed of the first motor and/or the second motor according to the first position information and the second position information.
The electronic device of the embodiment of the present application includes a processor and a memory, wherein the processor is configured to execute a computer program stored in the memory to execute the control method of the above embodiment.
The present embodiment provides a readable storage medium storing a computer program, which when executed by one or more processors implements the control method described in the above embodiment.
In the electronic apparatus, the control method, and the readable storage medium of the embodiments of the present application, the first case and the second case are slidably connected. The first motor and the second motor are arranged on the first shell and are symmetrically arranged in the shell along the sliding direction vertical to the second shell. The first position detection assembly and the second position detection assembly are symmetrically arranged at two ends of the shell along the sliding direction perpendicular to the second shell, the first position detection assembly is used for acquiring first position information of the first shell and the second shell, and the second position detection assembly is used for acquiring second position information of the first shell and the second shell. The processor is used for adjusting the rotating speed of the first motor and/or the second motor according to the first position information and the second position information. So, at the in-process of second shell relative to first shell motion, first position detection subassembly and second position detection subassembly detect the real-time position of second shell relative to first shell and obtain two positional information, and the treater can carry out the comparison to two positional information and then adjust the rotational speed of first motor and/or second motor in real time for the both ends of second shell can synchronous motion in order to avoid appearing the card shell even dead trouble of card between second shell and the first shell, guarantee that electron device moves smoothly.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The above and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic perspective view of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic perspective view of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic perspective view of an electronic device according to an embodiment of the present application;
FIG. 4 is a schematic cross-sectional view of an electronic device according to an embodiment of the present application;
FIG. 5 is a block diagram of an electronic device according to an embodiment of the present application;
FIG. 6 is an enlarged schematic view of portion A of FIG. 3;
FIG. 7 is a schematic structural view of a first position sensing assembly and a second position sensing assembly according to embodiments of the present application;
FIG. 8 is a perspective view of a first rotating member and a second rotating member in accordance with an embodiment of the present application;
FIG. 9 is another perspective view of the first and second rotating members of an embodiment of the present application;
FIG. 10 is a schematic perspective view of a code wheel and an optical-electrical counter according to an embodiment of the present application;
fig. 11 is a flowchart illustrating a control method according to an embodiment of the present application;
fig. 12 is another flowchart illustrating a control method according to an embodiment of the present application;
fig. 13 is still another flowchart illustrating a control method according to the embodiment of the present application;
fig. 14 is a further flowchart of the control method according to the embodiment of the present application.
Description of the main element symbols:
an electronic device 100;
the display device includes a processor 101, a memory 102, a main board 103, a housing 10, a first case 11, a second case 12, a flexible display 20, a flat portion 21, an extension portion 22, a first motor 30, a second motor 40, a first position detecting assembly 50, a first moving member 51, a first rack portion 511, a first rotating member 52, a first rotating portion 521, a first gear 5211, a first magnetic portion 522, a first magnetic pole 5221, a second magnetic pole 5222, a first detecting member 53, a code wheel 54, a photoelectric counter 55, a second position detecting assembly 60, a second moving member 61, a second rack portion 611, a second rotating member 62, a second rotating portion 621, a second gear 6211, a second magnetic portion 622, a third magnetic pole 6221, a fourth magnetic pole 6222, and a second detecting member 63.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative and are only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In this application, unless expressly stated or limited otherwise, the first feature "on" or "under" the second feature may comprise direct contact of the first and second features, or may comprise contact of the first and second features not directly but through another feature in between. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
The following disclosure provides many different embodiments or examples for implementing different features of the application. To simplify the disclosure of the present application, the components and settings of a specific example are described below. Of course, they are merely examples and are not intended to limit the present application. Moreover, the present application may repeat reference numerals and/or reference letters in the various examples, which have been repeated for purposes of brevity and clarity and do not in themselves dictate a relationship between the various embodiments and/or configurations discussed. In addition, examples of various specific processes and materials are provided herein, but one of ordinary skill in the art may recognize applications of other processes and/or use of other materials.
Referring to fig. 1 to 5, an electronic device 100 according to an embodiment of the present disclosure includes a housing 10, a first motor 30, a second motor 40, a first position detecting element 50, a second position detecting element 60, and a processor 101.
The housing 10 includes a first case 11 and a second case 12 slidably coupled. The first motor 30 and the second motor 40 are disposed on the first housing 11, the first motor 30 and the second motor 40 are symmetrically disposed in the first housing 11 along a sliding direction perpendicular to the second housing 12, and both the first motor 30 and the second motor 40 are connected to the second housing 12 and are used for driving the second housing 12 to slide relative to the first housing 11.
The first position detecting element 50 and the second position detecting element 60 are disposed in the housing 10, the first position detecting element 50 and the second position detecting element 60 are symmetrically disposed at two ends of the housing 10 along a sliding direction perpendicular to the second housing 12, the first position detecting element 50 is used for acquiring first position information of the first housing 11 and the second housing 12, and the second position detecting element 60 is used for acquiring second position information of the first housing 11 and the second housing 12.
The processor 101 is connected to the first position detecting assembly 50, the second position detecting assembly 60, the first motor 30 and the second motor 40, and the processor 101 is configured to adjust the rotation speed of the first motor 30 and/or the second motor 40 according to the first position information and the second position information.
In the electronic device 100 of the embodiment of the present application, the first case 11 and the second case 12 are slidably connected. The first motor 30 and the second motor 40 are disposed on the first housing 11, and the first motor 30 and the second motor 40 are symmetrically disposed in the housing 10 in a sliding direction perpendicular to the second housing 12. The first position detecting element 50 and the second position detecting element 60 are symmetrically disposed at two ends of the housing 10 along a sliding direction perpendicular to the second housing 12, the first position detecting element 50 is used for acquiring first position information of the first housing 11 and the second housing 12, and the second position detecting element 60 is used for acquiring second position information of the first housing 11 and the second housing 12. The processor 101 is configured to adjust a rotational speed of the first motor 30 and/or the second motor 40 according to the first position information and the second position information. Thus, in the process that the second shell 12 moves relative to the first shell 11, the first position detecting element 50 and the second position detecting element 60 detect a real-time position of the second shell 12 relative to the first shell 11 to obtain two pieces of position information, and the processor 101 may compare the two pieces of position information to further adjust the rotation speed of the first motor 30 and/or the second motor 40 in real time, so that the two ends of the second shell 12 may move synchronously to avoid a fault that the second shell 12 and the first shell 11 are jammed, and to ensure that the electronic device 100 moves smoothly.
It is to be understood that, in the embodiment of the present application, the specific forms of the first shell 11 and the second shell 12 are not limited, and the volume of the first shell 11 may be larger than the volume of the second shell 12, and the volume of the first shell 11 may also be smaller than the volume of the second shell 12. In some embodiments, the first and second shells 11 and 12 may be interchanged in position or in part of the elements.
The electronic device 100 according to the embodiment of the present application may have two modes. The first form is a form in which the first case 11 and the second case 12 are folded and fitted together, that is, a form in which the electronic device 100 is located when the first case 11 and the second case 12 are close to each other and moved to the extreme positions, in which the housing 10 is more compact and portable (see fig. 1). The second configuration is a configuration in which the electronic device is located when the first housing 11 and the second housing 12 are far away from each other and move to the extreme position, and in the second configuration, the second housing 12 is far away from the first housing 11 to realize different functions of the electronic apparatus 100, so as to provide a better experience for the user (see fig. 2).
In order to ensure that the second housing 12 moves away from or approaches the first housing 11 smoothly during the switching of the configuration of the electronic device 100, the first motor 30 and the second motor 40 need to provide driving force at the same time. Therefore, the first position detecting element 50 and the second position detecting element 60 are required to be disposed at both ends of the housing 10, and the first position detecting element 50 and the second position detecting element 60 respectively acquire the first position information and the second position information to determine whether the moving distances of both ends of the second housing 12 are the same. The first position detecting member 50 is disposed near the first motor 30, the first position information is a position where one end of the second housing 12 near the first motor 30 is located with respect to the first housing 11, the second position detecting member 60 is disposed near the second motor 40, and the second position information is a position where one end of the second housing 12 near the second motor 40 is located with respect to the first housing 11.
The processor 101 may obtain the two position information, and the processor 101 compares the positions of the two ends of the second shell 12 relative to the first shell 11 in real time to determine whether the moving distances of the two ends of the second shell 12 are the same, and then adjusts the rotation speeds of the two motors in real time according to the determination result to make the relative positions of the two ends of the second shell 12 and the first shell 11 substantially the same, so as to avoid the occurrence of a fault that the two ends of the second shell 12 are moved by different distances due to the fact that the first motor 30 and the second motor 40 are not completely synchronous when being driven, thereby causing the occurrence of a shell clamping or even a dead clamping between the second shell 12 and the first shell 11.
In other embodiments, the first position detecting assembly 50 may be disposed at an end of the housing 10 close to the second motor 40, and the second position detecting assembly 60 may be disposed at an end of the housing 10 close to the first motor 30, which is not limited herein. Herein, the first position detecting assembly 50 is disposed near the first motor 30 to detect the first position information, and the second position detecting assembly 60 is disposed near the second motor 40 to detect the second position information.
It will be appreciated that when the second housing 12 is driven relative to the first housing 11, the first motor 30 and the second motor 40 are usually driven at the same speed, however, the actual strokes driven by the two motors will often be different due to the assembly tolerance of the two motors and the uneven distribution of the resistance of the second housing 12. In the present embodiment, the processor 101 can adjust the rotation speeds of the first motor 30 and the second motor 40 according to the first position information and the second position information, so as to ensure that the two ends of the second shell 12 can slide synchronously relative to the first shell 11 to avoid being locked. For example, when the sliding distance of the end of the second housing 12 where the first motor 30 is located is greater than the sliding distance of the end of the second motor 40, the processor 101 may decrease the rotation speed of the first motor 30, increase the rotation speed of the second motor 40, or decrease the rotation speed of the first motor 30 and increase the rotation speed of the second motor 40, so that the speeds of the moving distances of the two ends of the second housing 12 are substantially consistent to avoid the housing jamming. For another example, when the sliding distance of the end of the second shell 12 where the second motor 40 is located is greater than the sliding distance of the end of the first shell 30, the processor 101 may increase the rotation speed of the first motor 30, or decrease the rotation speed of the second motor 40 while increasing the rotation speed of the first motor 30, so that the speeds of the moving distances of the two ends of the second shell 12 are substantially consistent to avoid shell jamming. The first motor 30 and the second motor 40 of the embodiment of the present application may use the same type of motor.
In the embodiment of the present application, the electronic device 100 further includes a first transmission assembly and a second transmission assembly disposed on the first housing 11, the first transmission assembly is connected to the first motor 30, and the second transmission assembly is connected to the second motor 40. The first and second motors 30 and 40 provide a driving force, and the first and second transmission assemblies may transmit the driving force to the housing 10 so that the second housing 12 slides at a suitable speed with respect to the first housing 11.
Further, the transmission assembly may be a screw nut structure, and the first and second motors 30 and 40 and the screw nut transmission structure, respectively, may be disposed in the first housing 11, and a screw of the screw nut transmission structure may be rotatably disposed in the first housing 11 and parallel to the sliding direction of the second housing 12. The nut arranged on the screw rod is fixedly connected with the second shell 12. The first motor 30 and the second motor 40 provide driving force and transmit the driving force to the screw nut transmission structure connected with the first motor, and the screw rotates to enable the nut to move along the direction of the screw, so that the second shell 12 is driven to slide relative to the first shell 11. Of course, in other embodiments, the transmission assembly may also drive the second housing 12 in other manners, such as a rack and pinion transmission structure, and the second housing 12 is driven to slide relative to the first housing 11 by a motor and a rack and pinion transmission. In the embodiment of the application, the specific form of the transmission assembly is not limited, and the requirement can be met.
In addition, it is understood that the processor 101 may be disposed on the main board 103, and the first and second motors 30 and 40 and the first and second position detecting assemblies 50 and 60 may be connected to the main board 103 through a flexible circuit board, so that the processor 101 may be electrically connected to the first and second position detecting assemblies 50 and 60 and the first and second motors 30 and 40.
The electronic device 100 in the embodiment of the present application may be an electronic device such as a smartphone or a tablet computer, or may be a device that can be equipped with a display device such as a game device, an in-vehicle computer, a notebook computer, or a video player, and is not specifically shown here.
It is to be noted that in the description of the present application, for example in the above description of the "first shell 11" and the "second shell 12", the terms "first" and "second" are used for descriptive purposes only and do not indicate that the casing 10 has only two shells, nor does it imply that the first shell 11 is more important than the second shell 12, or that the terms "first" and "second" are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In addition, in the description of the present application, it should be noted that unless otherwise explicitly stated or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be a mechanical connection; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
Referring to fig. 6 and 7, in some embodiments, the first position detecting assembly 50 includes a first moving member 51, a first rotating member 52 and a first detecting member 53, the first moving member 51 is fixedly connected to the second housing 12, the first rotating member 52 is rotatably disposed on the first housing 11 and connected to the first moving member 51, the first detecting member 53 is disposed on the first housing 11 and spaced apart from and opposite to the first rotating member 52, the first moving member 51 can move to drive the first rotating member 52 to rotate when the second housing 12 moves relative to the first housing 11, the first detecting member 53 is used for detecting a rotation angle of the first rotating member 52, and the first position information includes a rotation angle of the first rotating member 52.
The second position detecting assembly 60 includes a second moving member 61, a second rotating member 62 and a second detecting member 63, the second moving member 61 is fixedly connected to the second housing 12, the second rotating member 62 is rotatably disposed on the first housing 11 and connected to the second moving member 61, the second detecting member 63 is disposed on the first housing 11 and spaced from the second rotating member 62, the second housing 12 can move relative to the first housing 11 through the second moving member 61 to drive the second rotating member 62 to rotate, the second detecting member 63 is used for detecting a rotation angle of the second rotating member 62, and the second position information includes a rotation angle of the second rotating member 62.
Thus, when the second shell 12 slides relative to the first shell 11, the first moving part 51 and the second moving part 61 on the second shell 12 slide relative to the first shell 11 to drive the first rotating part 52 and the second rotating part 62 to rotate, and the first detecting part 53 and the second detecting part 63 respectively detect the rotating angles of the first rotating part 52 and the second rotating part 62, so that the moving distance of the two ends of the second shell 12 relative to the first shell 11, that is, the first position information and the second position information can be calculated.
Specifically, in the present embodiment, the structures and components of the first position detecting assembly 50 and the second position detecting assembly 60 are substantially identical, that is, the first moving member 51 and the second moving member 61 are identical and symmetrically disposed, the first rotating member 52 and the second rotating member 62 are identical and symmetrically disposed, and the first detecting member 53 and the second detecting member 63 are identical and symmetrically disposed. The first motor 30 and the second motor 40 are symmetrically disposed at the first housing 11 in a sliding direction perpendicular to the second housing 12. And the first position detecting element 50 and the second position detecting element 60 are symmetrically disposed at two ends of the housing 10 along a sliding direction perpendicular to the second housing 12, such that the first position detecting element 50 can detect a sliding distance of one end of the second housing 12 close to the first motor 30, and the second position detecting element 60 can detect a sliding distance of one end of the second housing 12 close to the second motor 40, so as to know whether two ends of the second housing 12 synchronously move with respect to the first housing 11.
Further, the first moving member 51 and the second moving member 61 are disposed at positions as close to the end portions as possible, and when a displacement error occurs at both ends of the second housing 12 with respect to the first housing 11 due to an assembly tolerance of the motor and a resistance distribution unevenness of the second housing 12, a displacement difference at both ends of the second housing 12 is the largest, and an angle difference of rotation of the moving member driving the rotating member to rotate is also larger. Therefore, when the second housing 12 slides relative to the first housing 11, the processor 101 only needs to collect the rotation angles of the first rotating member 52 and the second rotating member 62, and then compare the two rotation angles, so as to calculate whether the positions of the two ends of the second housing 12 relative to the first housing 11 are synchronous. When a displacement difference occurs between both ends of the second housing 12 with respect to the first housing 11, the processor 101 may adjust the rotation speed of the first motor 30 and/or the second motor 40 so that both ends of the second housing 12 may keep moving synchronously.
Referring to fig. 7 and 8, in some embodiments, the first rotating element 52 includes a first rotating part 521 and a first magnetic part 522, the first rotating part 521 is rotatably disposed on the first shell 11 and connected to the first moving element 51, the first magnetic part 522 is fixedly connected to the first rotating part 521, the first magnetic part 522 includes a plurality of first magnetic poles 5221 and a plurality of second magnetic poles 5222, the first magnetic poles 5221 and the second magnetic poles 5222 have opposite polarities, the plurality of first magnetic poles 5221 and the plurality of second magnetic poles 5222 are uniformly distributed at intervals in a circumferential direction, and the first detecting element 53 is configured to detect a polarity change of the first magnetic part 522 during a rotation process to generate first position information.
Thus, when the first moving part 51 slides relative to the first shell 11 along with the second shell 12, the first moving part 51 displaces relative to the first rotating part 52 to drive the first rotating part 52 to rotate, and the plurality of first magnetic poles 5221 and the plurality of second magnetic poles 5222 are uniformly spaced along the circumferential direction, so that the first detecting part 53 can detect the alternate polarity change in the rotating process of the first magnetic part 522 along with the first rotating part 52, so as to generate the first position information.
Further, referring to fig. 7 and 8, in some embodiments, the second rotating member 62 may include a second rotating portion 621 and a second magnetic portion 622, the second rotating portion 621 is rotatably disposed on the first housing 11 and connected to the second moving member 61, the second magnetic portion 622 is fixedly connected to the second rotating portion 621, the second magnetic portion 622 includes a plurality of third magnetic poles 6221 and a plurality of fourth magnetic poles 6222, the third magnetic poles 6221 and the fourth magnetic poles 6222 have opposite polarities, the plurality of third magnetic poles 6221 and the plurality of fourth magnetic poles 6222 are uniformly distributed at intervals in the circumferential direction, and the second detecting member 63 is configured to detect a polarity change of the second magnetic portion 622 during the rotation process to generate second position information.
Thus, when the second moving part 61 slides relative to the first shell 11 following the second shell 12, the second moving part 61 displaces relative to the second rotating part 62 to drive the second rotating part 62 to rotate, and the plurality of third magnetic poles 6221 and the plurality of fourth magnetic poles 6222 are uniformly spaced along the circumferential direction, so that the second detecting part 63 can detect the alternate polarity change in the rotating process of the second magnetic part 622 along with the second rotating part 62, so as to generate the second position information.
Specifically, the first rotating member 52 and the second rotating member 62 may have a cylindrical shape, and the first rotating part 521 and the first magnetic part 522 and the second rotating part 621 and the second magnetic part 622 may keep rotating coaxially. In this way, the first moving member 51 is connected to the first rotating portion 521, and the second moving member 61 is connected to the second rotating portion 621, so that when the first moving member 51 and the second moving member 61 move relative to the first case 11 along with the second case 12, the first rotating portion 521 and the second rotating portion 621 can be driven to rotate, and further the first magnetic portion 522 and the second magnetic portion 622 are driven to rotate, the first detecting member 53 detects the magnetic change of the first magnetic portion 522, and the second detecting member 63 detects the magnetic change of the second magnetic portion 622, so as to obtain the first position information and the second position information.
It is to be understood that the first and second magnetic poles 5221 and 5222 of the first magnetic part 522 can be S and N poles, or N and S poles, respectively, and the third and fourth magnetic poles 6221 and 6222 of the second magnetic part 622 can be S and N poles, or N and S poles, respectively. The S-poles and the N-poles are uniformly spaced along the circumferential direction of the magnetic portion, so that the S-poles and the N-poles alternately approach the first detecting member 53 and the second detecting member 63 during the rotation of the magnetic portion following the rotating portion, so that the first detecting member 53 and the second detecting member 63 can generate corresponding pulse signals and transmit the pulse signals back to the processor 101 to detect the rotation angles of the first rotating member 52 and the second rotating member 62. The first and second sensing members 53, 63 may be hall sensors that detect changes in magnetism to generate corresponding signals for transmission back to the processor 101.
Illustratively, the first magnetic part 522 and the second magnetic part 622 may be equally divided into eight parts, the S-pole and the N-pole each occupy four parts, each occupying 45 °, so that the magnetic part sensitivity is high. In this case, the first magnetic part 522 includes four first magnetic poles 5221 and four second magnetic poles 5222, and the first magnetic poles 5221 and the second magnetic poles 5222 are sequentially arranged in the circumferential direction. The second magnetic part 622 includes four third magnetic poles 6221 and four fourth magnetic poles 6222, and the third magnetic poles 6221 and the fourth magnetic poles 6222 are sequentially arranged in the circumferential direction.
For example, in one example, the second shell 12 drives the first moving part 51 and the second moving part 61 to move relative to the first shell 11 in a direction away from the first shell 11, and the first moving part 51 and the second moving part 61 drive the first rotating part 52 and the second rotating part 62 to rotate. At this time, if the end close to the first motor 30 moves farther than the end close to the second motor 40 due to assembly error and uneven pressure, the first moving member 51 moves farther than the second moving member 61, so that the first rotating member 52 rotates more than the second rotating member 62 by 45 °, the first detecting member 53 detects that the magnetic pulse signal of the first magnetic part 522 is one unit signal more than the magnetic pulse signal of the second magnetic part 622 detected by the second detecting member 63, and at this time, the processor 101 may adjust the rotation speed of the first motor 30 and/or the second motor 40, so that the two ends of the second housing 12 may move synchronously with respect to the first housing 11.
In some embodiments, the first magnetic part 522 and the second magnetic part 622 may be equally divided into two parts, four parts, six parts, and so on, which are not limited in the embodiments of the present application and are sufficient.
Referring to fig. 9, in other embodiments, the first magnetic part 522 and the second magnetic part 622 may not be equally divided, for example, the first magnetic part 522 and the second magnetic part 622 may be divided into two parts, the first magnetic pole 5221 is larger than the second magnetic pole 5222, and the third magnetic pole 6221 is larger than the fourth magnetic pole 6222. In such an embodiment, the first and second detectors 53 and 63 may detect only the second and fourth magnetic poles 5222 and 6222, so that the data that the processor 101 needs to process is less simplified. In the embodiments of the present application, this is not limited to the above, and the requirements may be satisfied.
The magnetic poles of the first magnetic part 522 and the second magnetic part 622 may be distributed differently, for example, the first magnetic part 522 is divided into eight parts and the second magnetic part 622 is divided into four parts. Then, the processor 101 only needs to set a corresponding transformation equation to perform corresponding calculation, and the rotation angles of the two can be compared. For example, when the first magnetic part 522 is divided into eight parts and the second magnetic part 622 is divided into four parts, the first magnetic part 522 rotates one turn to generate eight unit signals, the second magnetic part 622 rotates one turn to generate four unit signals, and then the processor 101 equates the two unit signals of the first detecting member 53 with one unit signal of the second detecting member 63.
In the embodiment of the present application, the form of the first rotating member 52 and the second rotating member 62 is not limited, and the first rotating member 52 and the second rotating member 62 may be circular, square, or other patterns as long as necessary.
Referring to fig. 10, in some embodiments, the first rotating member 52 may also include a first rotating portion 521 and a code wheel 54, the first rotating portion 521 is rotatably disposed on the first shell 11 and connected to the first moving member 51, and the code wheel 54 is fixedly connected to the first rotating portion 521; the first detecting member 53 includes a photoelectric counter 55, the photoelectric counter 55 is fixedly connected with the first housing 11 and connected to the processor 101, and the photoelectric counter 55 is used for cooperating with the code wheel 54 to detect the rotation angle of the first rotating part 521 to generate the first position information.
In this manner, the photoelectric counter 55 cooperates with the code wheel 54 to detect the rotation angle of the first rotating part 521, thereby detecting the moving distance of the first moving member 51 to obtain the relative position of one end of the second housing 12 with respect to the first housing 11, i.e., the first position information.
Specifically, the photoelectric counter 55 and the code wheel 54 can be used to detect the rotation angle of the first rotating member 52, and thus the sliding distance of the second housing 12 relative to the first housing 11, so as to achieve accurate detection and adjustment of the sliding of the second housing 12 relative to the first housing 11 of the electronic device 100. The photoelectric counter 55 is an automatic counting device made of photoelectric elements, the photoelectric counter 55 is fixedly connected with the first shell 11 and connected with the processor 101, and the first moving member 51 drives the code disc 54 to rotate so as to change the times of the collected optical signals of the photoelectric counter 55, so that the processor 101 on the main board 103 of the electronic device 100 can calculate the rotation angle of the first rotating member 52 according to the times of the optical signals collected by the photoelectric counter 55, and further obtain the movement stroke between the first shell 11 and the second shell 12.
It is understood that, in some embodiments, the second rotating member 62 may further include a second rotating portion 621 and a code wheel 54, the second rotating portion 621 is rotatably disposed on the first shell 11 and connected with the second moving member 61, and the code wheel 54 is fixedly connected with the second rotating portion 621; the second detecting member 63 also includes a photoelectric counter 55, the photoelectric counter 55 is fixedly connected to the first housing 11 and connected to the processor 101, and the photoelectric counter 55 is configured to cooperate with the code wheel 54 to detect a rotation angle of the second rotating portion 621 to generate second position information. Thus, the first position detecting unit 50 and the second position detecting unit 60 both use the photoelectric counter 55 and the code wheel 54, and two sets of the photoelectric counter 55 and the code wheel 54 are symmetrically disposed in the housing 10 in the direction perpendicular to the sliding direction of the second housing 12, and two sets of position information, i.e., the first position information and the second position information, can be generated. The processor 101 compares the first position information with the second position information to adjust and control the rotation speed of the first motor 30 and/or the second motor 40 so that the two ends of the second housing 12 can move synchronously to avoid a jamming or even dead jamming failure between the second housing 12 and the first housing 11.
In other embodiments, the photoelectric counter 55 and the code wheel 54 as well as the first magnetic part 522 and the hall sensor may be used together. For example, the first position detecting assembly 50 uses the photoelectric counter 55 and the code wheel 54, and the second position detecting assembly 60 uses the first magnetic portion 522 and the hall sensor; alternatively, the first position detecting assembly 50 uses the first magnetic part 522 and the hall sensor, and the second position detecting assembly 60 uses the photoelectric counter 55 and the code wheel 54. Of course, the first position detecting assembly 50 and the second position detecting assembly 60 may use both the photoelectric counter 55 and the code wheel 54; or the first position detecting assembly 50 and the second position detecting assembly 60 may use both the first magnetic part 522 and the hall sensor. In the embodiment of the present application, the detection modes of the first position detecting element 50 and the second position detecting element 60 are not limited, and it is only necessary to ensure that the processor 101 can collect the position information and compare the position information with each other.
Referring to fig. 7 and 8, in some embodiments, the first rotating portion 521 includes a first gear 5211, the first moving member 51 includes a first rack portion 511, the first rack portion 511 is engaged with the first gear 5211, and the second housing 12 drives the first gear 5211 to rotate through the first rack portion 511, so as to drive the first magnetic portion 522 to rotate.
In this way, the first rack portion 511 is engaged with the first gear 5211, so that the first moving member 51 can drive the first rotating member 52 to rotate, and the moving strokes of the first moving member and the first rotating member correspond to each other.
Further, referring to fig. 7 and 8, in some embodiments, the second rotating portion 621 includes a second gear 6211, the second moving member 61 includes a second rack portion 611, the second rack portion 611 is engaged with the second gear 6211, and the second shell 12 drives the second gear 6211 to rotate through the second rack portion 611, so as to drive the second magnetic portion 622 to rotate.
In this way, the second rack portion 611 is engaged with the second gear 6211, so that the second moving member 61 can drive the second rotating member 62 to rotate, and the movement strokes of the two members are ensured to correspond.
Specifically, the first rack portion 511 and the second rack portion 611 may be bonded to the second housing 12 using a rack, and the first rack portion 511 and the second rack portion 611 may be integrally formed with the second housing 12. The first rack portion 511 and the first gear 5211, and the second rack portion 611 and the second gear 6211 may use the same type or the same size, so that the technical indexes of the rack portion and the gear, such as module, pressure angle, etc., are the same, and when the first moving member 51 and the second moving member 61 move for the same distance, the number of teeth rotated by the gear driven by the rack portion is the same, that is, the angles rotated by the first rotating portion 521 and the second rotating portion 621 are the same. Thus, when the second shell 12 drives the first moving part 51 and the second moving part 61 to move by the same distance, the first gear 5211 and the second gear 6211 can rotate by the same angle; when the assembly error or the pressure causes an error in the movement of the two ends of the second housing 12, the second housing 12 drives the first moving part 51 and the second moving part 61 to move by different distances, and the first gear 5211 and the second gear 6211 rotate by different angles. The first gear 5211 and the second gear 6211 can drive the first magnetic part 522 and the second magnetic part 622 to rotate, so that the first detecting member 53 and the second detecting member 63 can detect the same type.
In the embodiment of the present application, the first rotating portion 521 and the first magnetic portion 522, and the second rotating portion 621 and the second magnetic portion 622 may be integrated, or may be bonded or welded together by glue, for example, the gear and the ring magnet may be fixed together by glue, and then may be rotatably fixed to the first housing 11 by a screw. The screw may be a set screw, the screw head of which may be threaded to the first housing 11, while the middle of the screw is not threaded, avoiding the threads from interfering with the first rotating member 52 and the second rotating member 62. In the embodiment of the present application, the specific connection manner of the first rotating part 521 and the first magnetic part 522, and the second rotating part 621 and the second magnetic part 622 is not limited herein, and it is only required to ensure that the first rotating part 521 and the first magnetic part 522, and the second rotating part 621 and the second magnetic part 622 can synchronously and coaxially rotate.
Specifically, in one embodiment, when the end of the second housing 12 close to the first motor 30 moves faster than the end close to the second motor 40, or the end of the second housing 12 close to the first motor 30 moves a longer distance than the end close to the second motor 40, the first moving member 51 moves a longer distance than the second moving member 61. Thus, the first rack portion 511 moves longer than the second rack portion 611, the first gear 5211 is driven to rotate by a larger angle than the second gear 6211, the first magnetic portion 522 rotates by a larger angle than the second magnetic portion 622, and the unit signal detected by the first detecting element 53 is greater than that detected by the second detecting element 63. The processor 101 receives and compares the two sets of signals to conclude that the end of the second housing 12 proximate the first motor 30 has moved a longer distance than the end proximate the second motor 40. The processor 101 adjusts to maintain the speed of the first motor 30 constant and increase the speed of the second motor 40, or maintain the speed of the second motor 40 constant and decrease the speed of the first motor 30, or decrease the speed of the first motor 30 and increase the speed of the second motor 40. Eventually, the both ends of the second housing 12 are synchronously moved with respect to the first housing 11.
In another embodiment, when the end of the second housing 12 close to the first motor 30 moves slower than the end close to the second motor 40, or the end of the second housing 12 close to the first motor 30 moves a shorter distance than the end close to the second motor 40, the first moving member 51 moves a shorter distance than the second moving member 61. Thus, the first rack portion 511 moves a distance shorter than the second rack portion 611, the first gear 5211 is rotated by an angle smaller than the second gear 6211, the first magnetic portion 522 is rotated by an angle smaller than the second magnetic portion 622, and the unit signal detected by the first detecting member 53 is smaller than that of the second detecting member 63. The processor 101 receives and compares the two sets of signals to conclude that the end of the second housing 12 proximate the first motor 30 has moved a shorter distance than the end proximate the second motor 40. The processor 101 adjusts to maintain the rotational speed of the second motor 40 constant and increase the rotational speed of the first motor 30, or maintain the rotational speed of the first motor 30 constant and decrease the rotational speed of the second motor 40, or decrease the rotational speed of the second motor 40 and increase the rotational speed of the first motor 30. Eventually, the both ends of the second housing 12 are synchronously moved with respect to the first housing 11.
It can be understood that in other embodiments, other cooperation modes can also be used for moving member and rotating member, for example, the moving member can directly drive the rotating member to rotate through frictional force, and is not specifically limited herein, and it can to satisfy the demand.
Referring to fig. 1 and 2, in some embodiments, the electronic device 100 further includes a flexible display 20, one end of the flexible display 20 is connected to the first housing 11, and the other end is disposed in the housing 10, and the second housing 12 can slide relative to the first housing 11 to at least partially unfold the portion of the flexible display 20 located in the housing 10 out of the housing 10; the processor 101 is further configured to adjust the display content of the flexible display 20 according to the first position information and/or the second position information.
In this way, the electronic device 100 changes the area of the flexible display 20 by sliding the second shell 12 relative to the first shell 11, and the processor 101 may also change the area of the flexible display 20
In the embodiment of the present application, the flexible display 20 may include a flat portion 21 and an expansion portion 22 connected to the flat portion 21, and in particular, in the illustrated embodiment, the expansion portion 22 of the flexible display 20 may be disposed inside the housing 10, belonging to a hidden structure. In the first configuration, the extended portion 22 of the flexible display 20 is not used for display and only the flat portion 21 is used for display. When the second housing 12 moves away from the first housing 11, the flexible display 20 can be moved, so that the extension portion 22 of the flexible display 20 is at least partially pulled out of the housing 10 to switch to the second configuration. In the second configuration, the extension portion 22 is at least partially pulled out of the housing 10, and the flat portion 21 and the extension portion 22 are simultaneously used for displaying, thereby changing the display area of the electronic device 100. During the switching of the two configurations, the first motor 30 and the second motor 40 drive the second housing 12 to move relative to the first housing 11, so that the expansion portion 22 is at least partially expanded out of the housing 10 or retracted into the housing 10.
Herein, the "display area" refers to an area of a portion of the flexible display 20 exposed outside the housing 10 for displaying, and thus, the display area changes during the change of the form of the electronic device 100.
Further, referring to fig. 1 and 2, in some embodiments, the flexible display 20 can display application icons, and the processor 101 is configured to adjust the arrangement of the application icons according to the first position information and/or the second position information to adapt the display area of the flexible display 20.
Thus, in the process of changing the form of the electronic device 100, the display area of the flexible display screen 20 changes along with the form change, and the arrangement mode of the application icons and the distance between the application icons also change along with the change, so as to ensure the display effect of the electronic device 100 and improve the user experience.
Illustratively, the processor 101 may take the first position information as the actual position of the second housing 12 relative to the first housing 11, or the second position information as the actual position of the second housing 12 relative to the first housing 11, or an average distance of the first position information and the second position information as the actual position of the second housing 12 relative to the first housing 11. The processor 101 is connected to the flexible display 20, and the processor 101 adjusts the arrangement of the application icons according to the position information, for example, the distance between the application icons gradually increases during the process of converting the first form to the second form, and when the distance between the application icons exceeds a predetermined distance, the distribution of the application icons is changed, for example, two rows of application icons are reduced to one row, and the like. In the process of converting the second form to the first form, the distance of the application icons is gradually reduced, or one row of icons is divided into two rows.
Referring to fig. 11, a control method according to an embodiment of the present application is applied to an electronic device 100, and the control method includes:
01, acquiring first position information output by the first position detecting component 50 and outputting second position information by the second position detecting component 60 in the process that the first motor 30 and the second motor 40 drive the second shell 12 to slide relative to the first shell 11;
02, adjusting the rotational speed of the first motor 30 and/or the second motor 40 based on the first position information and the second position information.
In this way, the first motor 30 and the second motor 40 simultaneously drive the second shell 12 to slide relative to the first shell 11, so as to ensure sufficient sliding driving force, and the first position detecting assembly 50 and the second position detecting assembly 60 can detect the positions of the two ends of the second shell 12 relative to the first shell 11, and further adjust the motor rotation speed according to the two position information, so as to avoid the occurrence of the shell-locking or even dead-locking fault between the second shell 12 and the first shell 11.
Specifically, in step 01 and step 02, the processor 101 may obtain the first position information and the second position information in real time, and further implement the control of the rotation speed of the first motor 30 and/or the second motor 40. In this way, the processor 101 can avoid the malfunction of the second casing 12 and the first casing 11, such as jamming or even jamming. The processor 101 may also cause the electronic device 100 to stop at any position between the first configuration and the second configuration, for example, the second housing 12 slides to a half-fully-deployed position relative to the first housing 11. In this way, the display area of the flexible display screen 20 can be changed between the two extreme positions at will, which improves the user experience.
Referring to fig. 12, in some embodiments, step 02 includes the steps of:
021, when the rotation angle of the first rotating member 52 is greater than the rotation angle of the second rotating member 62, keeping the rotation speed of the first motor 30 unchanged and increasing the rotation speed of the second motor 40, or keeping the rotation speed of the second motor 40 unchanged and decreasing the rotation speed of the first motor 30, or decreasing the rotation speed of the first motor 30 and increasing the rotation speed of the second motor 40;
022, keeping the rotation speeds of the first and second motors 30 and 40 constant when the rotation angle of the first rotating member 52 is equal to the rotation angle of the second rotating member 62;
023, when the rotation angle of the first rotating member 52 is smaller than the rotation angle of the second rotating member 62, the rotation speed of the second motor 40 is kept unchanged and the rotation speed of the first motor 30 is increased, or the rotation speed of the first motor 30 is kept unchanged and the rotation speed of the second motor 40 is decreased, or the rotation speed of the second motor 40 is decreased and the rotation speed of the first motor 30 is increased.
In this way, the rotation speed of the first motor 30 and/or the second motor 40 is adjusted according to the first position information and the second position information, so that the two ends of the second shell 12 can move synchronously relative to the first shell 11, and the shell clamping and even dead clamping faults are avoided.
Specifically, it is understood that, in one example, when the processor 101 detects that the rotation angle of the first rotating member 52 is greater than the rotation angle of the second rotating member 62, it is determined that the speed of the end of the second housing 12 close to the first motor 30 is faster than that of the end of the second housing 12 close to the second motor 40, or the end of the second housing 12 close to the first motor 30 moves farther than that of the other end. The processor 101 executes step 021 and can use three methods to adjust the motor speed to ensure synchronous movement of the two ends of the second shell 12.
In another example, when the processor 101 detects that the rotation angle of the first rotating member 52 is smaller than the rotation angle of the second rotating member 62, it is determined that the speed of the end of the second housing 12 close to the first motor 30 is slower than that of the end of the second housing 12 close to the second motor 40, or the end of the second housing 12 close to the first motor 30 moves closer than the other end. The processor 101 performs step 023 and may adjust the motor speed using three methods to ensure synchronous movement across the second housing 12.
In another example, when the processor 101 detects that the rotation angle of the first rotating member 52 is equal to the rotation angle of the second rotating member 62, it determines that the speed of the end of the second housing 12 close to the first motor 30 is the same as the speed of the end of the second housing 12 close to the second motor 40, and the processor 101 executes step 022 to ensure that the rotation speeds of the first motor 30 and the second motor 40 are not changed.
Referring to fig. 13, in some embodiments, the control method further includes the steps of:
03, adjusting the display content of the flexible display screen 20 according to the first position information and/or the second position information.
Therefore, in the process of the form change of the electronic device 100, the flexible display screen 20 changes, and the display content is also adjusted in real time along with the first position information and/or the second position information, so that a better display effect is achieved, and the use experience of a user is improved.
Specifically, in step 03, the processor 101 may take the first position information as the actual position of the second shell 12 relative to the first shell 11, or the second position information as the actual position of the second shell 12 relative to the first shell 11, or an average distance of the first position information and the second position information as the actual position of the second shell 12 relative to the first shell 11. The processor 101 is connected to the flexible display 20 to adjust the display content of the flexible display 20, for example, during the gradual transition of the electronic device 100 from the first configuration to the second configuration, the extension portion 22 is gradually used for displaying, the display area is gradually increased, and the processor 101 adds a small utility tool such as time display, temperature display, weather display, and the like to the extension portion.
Referring to fig. 14, in some embodiments, the flexible display 20 is capable of displaying application icons, and step 03 includes the steps of:
031, adjust the arrangement of the application icons to fit the display area of the flexible display 20 according to the first position information and/or the second position information.
Therefore, in the process of changing the flexible display screen 20, the arrangement mode of the application icons is changed and adjusted in real time, the application icons can be uniformly distributed on the whole display area, a better display effect is achieved, and the use experience of a user is improved.
Specifically, the processor 101 is connected to the flexible display 20, and the processor 101 adjusts the arrangement of the application icons according to the position information, for example, when the electronic device 100 is converted from the first form to the second form, the distance between the application icons gradually increases, and when the distance between the application icons exceeds a predetermined distance, the distribution of the application icons is changed, such as grouping two rows of application icons into one row, and the like. In the process of converting the electronic device 100 from the second form to the first form, the distance between the application icons is gradually reduced, or one row of icons is divided into two rows.
Referring to fig. 5, an electronic device 100 according to an embodiment of the present disclosure includes a processor 101 and a memory 102, where the processor 101 is configured to execute a computer program stored in the memory 102 to execute the control method according to any of the embodiments.
Specifically, the processor 101 may be configured to process the control method according to the embodiment of the present application, and the processor 101 is further connected to various sensors to detect various signals. The memory 102 stores various command instructions and programs required by the electronic device 100, and the processor 101 and the memory 102 implement various functional methods of the electronic device 100.
Furthermore, the present embodiment provides a readable storage medium storing a computer program, which when executed by one or more processors 101, implements the control method of any one of the above embodiments.
For example, the computer program may be executed by the processor 101 to perform the control method of the following steps:
01, acquiring first position information output by the first position detecting component 50 and outputting second position information by the second position detecting component 60 in the process that the first motor 30 and the second motor 40 drive the second shell 12 to slide relative to the first shell 11;
02 adjusts the rotational speed of the first motor 30 and/or the second motor 40 based on the first position information and the second position information.
In the description herein, references to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processing module-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of embodiments of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
Although embodiments of the present application have been shown and described above, it is to be understood that the above embodiments are exemplary and not to be construed as limiting the present application, and that changes, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (15)

1. An electronic device, comprising:
a housing comprising a first shell and a second shell slidably connected;
the first motor and the second motor are arranged on the first shell, are symmetrically arranged in the first shell along a sliding direction vertical to the second shell, and are connected with the second shell and used for driving the second shell to slide relative to the first shell;
the first position detection assembly and the second position detection assembly are arranged in the shell and symmetrically arranged at two ends of the shell along a sliding direction vertical to the second shell, the first position detection assembly is used for acquiring first position information of the first shell and the second shell, and the second position detection assembly is used for acquiring second position information of the first shell and the second shell; and
the processor is connected with the first position detection assembly, the second position detection assembly, the first motor and the second motor, and is used for adjusting the rotating speed of the first motor and/or the second motor according to the first position information and the second position information.
2. The electronic device according to claim 1, wherein the first position detecting assembly includes a first moving member, a first rotating member, and a first detecting member, the first moving member is fixedly connected to the second housing, the first rotating member is rotatably disposed on the first housing and connected to the first moving member, the first detecting member is disposed on the first housing and spaced from and opposite to the first rotating member, the second housing can be moved by the first moving member to rotate the first rotating member when moving relative to the first housing, the first detecting member is configured to detect a rotation angle of the first rotating member, and the first position information includes a rotation angle of the first rotating member;
the second position detection assembly comprises a second moving piece, a second rotating piece and a second detection piece, the second moving piece is fixedly connected with the second shell, the second rotating piece is rotatably arranged on the first shell and connected with the second moving piece, the second detection piece is arranged on the first shell and is arranged opposite to the second rotating piece at intervals, the second shell is opposite to the first shell, the first shell moves to drive the second rotating piece to rotate through the second moving piece, the second detection piece is used for detecting the rotation angle of the second rotating piece, and the second position information comprises the rotation angle of the second rotating piece.
3. The electronic device according to claim 2, wherein the first rotating member includes a first rotating portion and a first magnetic portion, the first rotating portion is rotatably disposed on the first housing and connected to the first moving member, the first magnetic portion is fixedly connected to the first rotating portion, the first magnetic portion includes a plurality of first magnetic poles and a plurality of second magnetic poles, the first magnetic poles and the second magnetic poles have opposite polarities, the plurality of first magnetic poles and the second magnetic poles are uniformly spaced along a circumferential direction, and the first detecting member is configured to detect a change in polarity of the first magnetic portion during rotation to generate the first position information.
4. The electronic device according to claim 3, wherein the first rotating portion includes a first gear, the first moving member includes a first rack portion, the first rack portion is engaged with the first gear, and the second housing rotates the first gear through the first rack portion to rotate the first magnetic portion.
5. The electronic device according to claim 2, wherein the second rotating member includes a second rotating portion and a second magnetic portion, the second rotating portion is rotatably disposed on the first housing and connected to the second moving member, the second magnetic portion is fixedly connected to the second rotating portion, the second magnetic portion includes a plurality of third magnetic poles and a plurality of fourth magnetic poles, the third magnetic poles and the fourth magnetic poles have opposite polarities, the plurality of third magnetic poles and the plurality of fourth magnetic poles are uniformly spaced along a circumferential direction, and the second detecting member is configured to detect a change in polarity of the second magnetic portion during rotation to generate the second position information.
6. The electronic device according to claim 5, wherein the second rotating portion includes a second gear, and the second moving member includes a second rack portion, the second rack portion is engaged with the second gear, and the second shell rotates the second gear with the second rack portion, so as to rotate the second magnetic portion.
7. The electronic device according to claim 2, wherein the first rotating member includes a first rotating portion rotatably provided on the first housing and connected with the first moving member, and a code wheel fixedly connected with the first rotating portion;
the first detection piece comprises a photoelectric counter which is fixedly connected with the first shell and connected with the processor, and the photoelectric counter is used for being matched with the code disc to detect the rotating angle of the first rotating part so as to generate the first position information.
8. The electronic device of claim 1, further comprising a flexible display screen, one end of the flexible display screen being connected to the first housing and the other end of the flexible display screen being disposed within the housing, the second housing being slidable relative to the first housing to cause a portion of the flexible display screen within the housing to at least partially unfold out of the housing;
the processor is further used for adjusting the display content of the flexible display screen according to the first position information and/or the second position information.
9. The electronic device according to claim 8, wherein the flexible display screen is capable of displaying application icons, and the processor is configured to adjust the arrangement of the application icons according to the first position information and/or the second position information to adapt to the display area of the flexible display screen.
10. A control method for an electronic apparatus, the electronic apparatus comprising:
a housing comprising a first shell and a second shell slidably connected;
the first motor and the second motor are arranged on the first shell, are symmetrically arranged in the first shell along a sliding direction vertical to the second shell, and are connected with the second shell and used for driving the second shell to slide relative to the first shell;
the first position detection assembly and the second position detection assembly are arranged in the shell, are symmetrically arranged at two ends of the shell along a sliding direction vertical to the second shell, and are used for detecting the relative position of the second shell and the first shell; and
the control method comprises the following steps:
in the process that the first motor and the second motor drive the second shell to slide relative to the first shell, acquiring first position information output by the first position detection assembly and second position information output by the second position detection assembly;
and adjusting the rotating speed of the first motor and/or the second motor according to the first position information and the second position information.
11. The control method according to claim 10, wherein the first position detecting assembly includes a first moving member, a first rotating member, and a first detecting member, the first moving member is fixedly connected to the second housing, the first rotating member is rotatably disposed on the first housing and connected to the first moving member, the first detecting member is disposed on the first housing and spaced apart from and opposite to the first rotating member, the second housing can be moved by the first moving member to rotate the first rotating member when moving relative to the first housing, the first detecting member is configured to detect a rotation angle of the first rotating member, and the first position information includes a rotation angle of the first rotating member;
the second position detection assembly comprises a second moving part, a second rotating part and a second detection part, the second moving part is fixedly connected with the second shell, the second rotating part is rotatably arranged on the first shell and is connected with the second moving part, the second detection part is arranged on the first shell and is arranged opposite to the second rotating part at intervals, the second shell can drive the second rotating part to rotate through the movement of the second moving part when moving relative to the first shell, the second detection part is used for detecting the rotation angle of the second rotating part, and the second position information comprises the rotation angle of the second rotating part;
the adjusting the rotation speed of the first motor and/or the second motor according to the first position information and the second position information includes:
when the rotation angle of the first rotating member is larger than that of the second rotating member, keeping the rotation speed of the first motor unchanged and increasing the rotation speed of the second motor, or keeping the rotation speed of the second motor unchanged and reducing the rotation speed of the first motor, or reducing the rotation speed of the first motor and increasing the rotation speed of the second motor;
when the rotation angle of the first rotating member is equal to the rotation angle of the second rotating member, keeping the rotation speeds of the first motor and the second motor unchanged;
when the rotation angle of the first rotating member is smaller than that of the second rotating member, the rotation speed of the second motor is kept unchanged and the rotation speed of the first motor is increased, or the rotation speed of the first motor is kept unchanged and the rotation speed of the second motor is reduced, or the rotation speed of the second motor is reduced and the rotation speed of the first motor is increased.
12. The control method according to claim 10, wherein the electronic device further comprises a flexible display screen, one end of the flexible display screen is connected with the first shell, the other end of the flexible display screen is arranged in the shell, and the second shell can slide relative to the first shell so that the part of the flexible display screen in the shell is at least partially unfolded out of the shell;
the control method further comprises the following steps:
and adjusting the display content of the flexible display screen according to the first position information and/or the second position information.
13. The control method according to claim 12, wherein the flexible display screen is capable of displaying application icons, and the adjusting the display content of the flexible display screen according to the first position information and/or the second position information comprises:
and adjusting the arrangement mode of the application icons according to the first position information and/or the second position information so as to adapt to the display area of the flexible display screen.
14. An electronic device, comprising a processor and a memory, wherein the processor is configured to execute a computer program stored in the memory to perform the control method of any one of claims 10-13.
15. A readable storage medium storing a computer program, characterized in that the computer program, when executed by one or more processors, implements the control method of any one of claims 10-13.
CN202110767883.9A 2021-07-07 2021-07-07 Electronic device, control method, and readable storage medium Active CN113472928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110767883.9A CN113472928B (en) 2021-07-07 2021-07-07 Electronic device, control method, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110767883.9A CN113472928B (en) 2021-07-07 2021-07-07 Electronic device, control method, and readable storage medium

Publications (2)

Publication Number Publication Date
CN113472928A true CN113472928A (en) 2021-10-01
CN113472928B CN113472928B (en) 2023-09-08

Family

ID=77878876

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110767883.9A Active CN113472928B (en) 2021-07-07 2021-07-07 Electronic device, control method, and readable storage medium

Country Status (1)

Country Link
CN (1) CN113472928B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040082486A (en) * 2003-03-19 2004-09-30 삼성전기주식회사 automatic driving type slide phone, automatic driving method for a slide phone, and detecting method for incoming call for mobile phone
JP2004287497A (en) * 2003-03-19 2004-10-14 Kyocera Corp Portable terminal
JP2005130219A (en) * 2003-10-23 2005-05-19 Sony Ericsson Mobilecommunications Japan Inc Mobile terminal
JP2009260515A (en) * 2008-04-15 2009-11-05 Fujitsu Ltd Information terminal
CN109638451A (en) * 2018-12-12 2019-04-16 维沃移动通信有限公司 A kind of mobile terminal and method of controlling antenna
TWI674830B (en) * 2018-12-13 2019-10-11 英業達股份有限公司 Chassis device
EP3594778A1 (en) * 2018-07-13 2020-01-15 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Electronic apparatus and method for controlling electronic apparatus
US20200326754A1 (en) * 2019-04-15 2020-10-15 Samsung Electronics Co., Ltd. Foldable electronic device including sliding structure and method for controlling the same
CN112583968A (en) * 2020-12-08 2021-03-30 Oppo广东移动通信有限公司 Electronic device
CN112652246A (en) * 2020-12-31 2021-04-13 Oppo广东移动通信有限公司 Electronic apparatus, control method, and storage medium
CN212992368U (en) * 2020-06-19 2021-04-16 Oppo广东移动通信有限公司 Electronic device
CN112951085A (en) * 2021-01-29 2021-06-11 Oppo广东移动通信有限公司 Electronic device
CN113037900A (en) * 2021-02-24 2021-06-25 Oppo广东移动通信有限公司 Control method, electronic device, and readable storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040082486A (en) * 2003-03-19 2004-09-30 삼성전기주식회사 automatic driving type slide phone, automatic driving method for a slide phone, and detecting method for incoming call for mobile phone
JP2004287497A (en) * 2003-03-19 2004-10-14 Kyocera Corp Portable terminal
JP2005130219A (en) * 2003-10-23 2005-05-19 Sony Ericsson Mobilecommunications Japan Inc Mobile terminal
JP2009260515A (en) * 2008-04-15 2009-11-05 Fujitsu Ltd Information terminal
EP3594778A1 (en) * 2018-07-13 2020-01-15 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Electronic apparatus and method for controlling electronic apparatus
CN109638451A (en) * 2018-12-12 2019-04-16 维沃移动通信有限公司 A kind of mobile terminal and method of controlling antenna
TWI674830B (en) * 2018-12-13 2019-10-11 英業達股份有限公司 Chassis device
US20200326754A1 (en) * 2019-04-15 2020-10-15 Samsung Electronics Co., Ltd. Foldable electronic device including sliding structure and method for controlling the same
CN212992368U (en) * 2020-06-19 2021-04-16 Oppo广东移动通信有限公司 Electronic device
CN112583968A (en) * 2020-12-08 2021-03-30 Oppo广东移动通信有限公司 Electronic device
CN112652246A (en) * 2020-12-31 2021-04-13 Oppo广东移动通信有限公司 Electronic apparatus, control method, and storage medium
CN112951085A (en) * 2021-01-29 2021-06-11 Oppo广东移动通信有限公司 Electronic device
CN113037900A (en) * 2021-02-24 2021-06-25 Oppo广东移动通信有限公司 Control method, electronic device, and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李添幸;马瑞卿;杨伟舟;薛耀庭;: "无刷直流电机霍尔位置传感器容错控制", no. 04 *

Also Published As

Publication number Publication date
CN113472928B (en) 2023-09-08

Similar Documents

Publication Publication Date Title
US20170146889A1 (en) Actuator driving apparatus and camera module including the same
CN102885611B (en) Control appliance, control method and comprise the Ophthalmologic apparatus of this control appliance
CN107797488B (en) A kind of displacement control system and its control method, mobile terminal
WO2018076937A1 (en) Voice coil electric motor control method and system, and controller
CN204366969U (en) A kind of book seam device for searching with intelligence control system
US8823862B2 (en) Position detection device, position detection method, and imaging apparatus
CN108989660A (en) Control method, control assembly, electronic equipment and the storage medium of slide assemblies
CN205427107U (en) X -ray cable fault detection system
CN113472928A (en) Electronic apparatus, control method, and readable storage medium
JP2006258586A5 (en)
JP6459397B2 (en) Rotor position detection device and rotary valve
JP5384320B2 (en) Lens device position detection device
JP2015179051A5 (en)
JP6053985B2 (en) Lens device, imaging device, and movable lens position detection method
CN111147715B (en) Image pickup device, method for controlling movement of image pickup device, and electronic apparatus
US9122001B2 (en) Driving apparatus, and lens apparatus and image pickup apparatus including the same
US7667420B2 (en) Position sensor system
CN213814099U (en) Zoom driving device of intelligent glasses and intelligent glasses
CN108139230B (en) Position detection device and method for movable lens, lens device, and imaging device
JP5366670B2 (en) Image capturing apparatus and image capturing apparatus control method
US11205981B2 (en) Motor control device and motor control method, and optical device
US9575396B2 (en) Electronic device and control method thereof
US10454400B2 (en) Electromechanical device provided with controlled motor and rotation control method
CN112217991B (en) Image acquisition device, focus adjusting device and focus adjusting method
CN110601605A (en) Method, device and system for controlling motor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant