CN209659486U - Position detecting mechanism and mobile terminal - Google Patents
Position detecting mechanism and mobile terminal Download PDFInfo
- Publication number
- CN209659486U CN209659486U CN201920426552.7U CN201920426552U CN209659486U CN 209659486 U CN209659486 U CN 209659486U CN 201920426552 U CN201920426552 U CN 201920426552U CN 209659486 U CN209659486 U CN 209659486U
- Authority
- CN
- China
- Prior art keywords
- working face
- magnet
- camera
- hall sensor
- inductive signal
- 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.)
- Active
Links
Abstract
The embodiment of the present application provides a kind of position detecting mechanism and mobile terminal, mobile terminal includes camera and the position detecting mechanism that is set in accommodating chamber, position detecting mechanism includes circuit board, bracket, the first magnet and Hall sensor, the camera of mobile terminal is set on bracket, and camera is extended or retracts the accommodating chamber that shell is constituted.Hall sensor includes the first working face and the second working face extended in different directions respectively, Hall sensor senses the magnetic field of the first magnet by the first working face and the second working face and generates inductive signal, which is used to determine extended position and the retracted position of camera.The application generates two inductive signals since Hall sensor senses the magnetic field of the first magnet, can be improved the detection accuracy to the location status of camera.
Description
Technical field
This application involves the position detecting mechanisms and mobile terminal in field of communication technology more particularly to communication products.
Background technique
It improves with the development of science and technology, and position detecting mechanism (such as: the position detection component of Telescopic pick-up head can be stretched
The position detection component of contracting gastroscope probe) it is widely used.For example, occupying viewing area to solve preposition photographic device
Scalable camera assembly can be arranged for mobile terminal, wherein scalable camera assembly may include photographic device in the problem of domain
With the motor for driving photographic device mobile, the photographic device of scalable camera assembly can stretch out movement when needing to shoot
Terminal retracts the accommodating space in mobile terminal when not needing shooting.
However, the position (i.e. the telescopic location and retracted position of camera) of photographic device how is accurately detected, with
Guarantee better photographic effect and photographic device is protected, is the target that industry is pursued always.
Utility model content
The embodiment of the present application discloses a kind of position detecting mechanism and mobile terminal that can be improved detection accuracy.
In a first aspect, the embodiment of the present application discloses a kind of position detecting mechanism, comprising: the first noumenon;Second ontology, with institute
It states the setting of the first noumenon interval and can be moved relative to the first noumenon;First magnet is set on second ontology;With
And Hall sensor, it is set on the first noumenon comprising the first working face extended in different directions respectively and second
Working face;Wherein, the Hall sensor senses the magnetic field of first magnet by first working face and generates first
Inductive signal, and the Hall sensor also passes through second working face and senses the magnetic field of first magnet and generate second
Inductive signal;First inductive signal and second inductive signal are used to determine the location status of second ontology.Its
In, the location status of second ontology includes first that second ontology is moved to the first predeterminated position along first direction
It sets state and second ontology is moved to the second position state of the second predeterminated position in a second direction;The second direction and
The first direction is opposite.
Wherein, the working face refers to the magnetic induction face of the Hall sensor, position disclosed in the embodiment of the present application
Testing agency, since the Hall sensor includes the first working face and the second working face, the Hall sensor can pass through
First working face senses the magnetic field of first magnet and generates the first inductive signal, and the Hall sensor also passes through
Second working face sense the magnetic field of first magnet and generate the second inductive signal so that second ontology relative to
When the first noumenon is mobile, two inductive signals (the first inductive signal and second can be exported according to the Hall sensor
Inductive signal) determine the location status of the second ontology, i.e. just the second ontology of determination when two signals meet condition simultaneously
Location status, and then improve detection accuracy.
In order to sensing to magnetic field caused by first magnet compared with limits, to further increase detection
The moving direction of precision, first working face and second ontology is substantially vertical;Second working face and described first
Working face is substantially vertical, and first working face and second working face are both substantially perpendicular to the first noumenon and are provided with
The surface of the Hall sensor.Wherein, " substantially vertical " can be construed to vertical, close vertical or have certain predetermined
Angle.
In some embodiments, in order to detect the interference of external magnetic field, the Hall sensor further includes and institute
The third working face that the extending direction of the first working face and second working face is all different is stated, the Hall sensor passes through
The third working face sense first magnet magnetic field and/or external magnetic field and generate third inductive signal;The third
Inductive signal is for determining that the position detecting mechanism is interfered with the presence or absence of external magnetic field.Wherein, external magnetic field refer to by addition to
Object except first magnet and the second magnet described below and the magnetic field generated.
Wherein, when not having external magnetic field, the third inductive signal that the Hall sensor generates does not change;And work as
There are when external magnetic field, the third inductive signal that the Hall sensor generates can change;Alternatively, working as no external magnetic field
When, the third inductive signal that the Hall sensor generates is 0;And when there are external magnetic field, the Hall sensor generates
It is not 0 third inductive signal.
In a kind of embodiment, in order to reduce the interference in existing magnetic field, and the sensing precision to external magnetic field is improved, it is described
Third working face is substantially vertical with first working face and second working face respectively.
In order to improve the detection accuracy of the location status to the second ontology, the position detecting mechanism further includes the second magnetic
Body;Second magnet and first magnet are arranged at intervals on second ontology;The Hall sensor passes through described
First working face senses the magnetic field of first magnet and/or second magnetic and generates first inductive signal, and described
Hall sensor also passes through second working face and senses the magnetic field of first magnet and/or second magnet and generate institute
State the second inductive signal.In present embodiment, since first inductive signal and second inductive signal are to pass through sensing
At least one of two magnets and generate so that when the second ontology the first inductive signal and the second inductive signal when moving
Change rate it is larger, and then the mobile position of the second ontology can be determined according to different the first inductive signal and the second inductive signal
It sets, improves the detection accuracy to the position state of the second ontology.
When second ontology is mobile relative to the first noumenon, first magnet and second magnet are opposite
It is mobile in the Hall sensor, however, second ontology relative to the first noumenon be moved to where, it is described
Hall sensor is always positioned in the magnetic field range that first magnet and second magnet generate, thus ensure that it is described suddenly
Your sensor generates the stability of the first inductive signal and second inductive signal.
In a kind of embodiment, magnetic field caused by magnetic field caused by first magnet and second magnet is at least
Partly overlap, in this way, can make when second ontology is mobile relative to the first noumenon, first working face and
The magnetic flux that second working face is sensed changes greatly, and then can be improved Hall sensor sensing magnetic field
Sensitivity, to improve the detection accuracy to the first noumenon state.
In the present embodiment, first magnet and second magnet are bar magnet, are being produced with facilitating
It is managed in journey and fool proof when producing line processing.In other embodiments, first magnet and second magnet can be with
For the columnar magnet of section semicircular in shape.
In a kind of embodiment, in order to guarantee the Hall sensor and first magnetic when second ontology is mobile
The positional relationship of body and second magnet, and then guarantee that the Hall sensor can sense when first magnet and described
The line of the central point of magnetic field caused by second magnet, the central point of first magnet and second magnet and described
Two ontologies are lain substantially parallel to the direction of movement.Wherein, central point is the center of gravity of finger element, when a certain element is regular object, then
The central point of the element is then the geometric center of the regular object.It is described " substantially parallel ", it can be construed to parallel, close flat
Row or there is a certain predetermined angle.
In a kind of embodiment, the north-south axis of the north-south axis of first magnet and second magnet is distinguished
With lying substantially parallel to the direction of movement for second ontology, and then the Hall sensor can be made mobile in second ontology
During, it can sense when to be superimposed magnetic field caused by first magnet and second magnet.
In addition, the detection sensitivity in order to guarantee the Hall sensor, it is ensured that pass through first working face and second
The change rate of the magnetic flux of working face meets certain requirements, one end close to each other of first magnet and second magnet
Polarity it is identical.In one embodiment, the homonymous magnetic pole is the pole N.Wherein, south poles be axially magnet from the pole N to the pole S
Vector, that is, the direction of magnetic pole.Magnetic pole is strongest part magnetic on magnet magnetic pole, the magnetic being freely rotated in the horizontal plane
Body, always a magnetic pole is directed toward south when static, another magnetic pole is directed toward the north, and energized south is called the South Pole (pole S), is directed toward north
Be called the arctic (pole N).
Second aspect, the embodiment of the present application disclose a kind of mobile terminal, including display screen, shell and photographic device;It is described
Display screen is installed on the shell;The shell is equipped with opening, and is formed with the accommodating chamber of the open communication to accommodate
The photographic device;The mobile terminal further includes the position detecting mechanism being set in the accommodating chamber;The position detection
Mechanism includes circuit board, bracket, the first magnet and Hall sensor;The photographic device includes camera and driving assembly,
The camera is arranged on the bracket, and the driving component is connected with the bracket, for driving the bracket mobile
To drive the camera to stretch out or retract the shell;Wherein, the Hall sensor includes prolonging respectively along different directions
The first working face and the second working face stretched;The Hall sensor senses first magnet by first working face
Magnetic field simultaneously generates the first inductive signal, and the Hall sensor also passes through second working face and senses first magnet
Magnetic field simultaneously generates the second inductive signal;First inductive signal and second inductive signal are for determining the camera
Location status;The location status of the camera includes retracted position and extended position.
Mobile terminal disclosed in the embodiment of the present application, due to the position detecting mechanism including above-described embodiment, and
The camera is arranged on the bracket, and then can pass through the first inductive signal caused by the Hall sensor and
Two inductive signals determine the location status of camera, to improve the detection accuracy to the location status of camera.
In a kind of embodiment, the driving component includes actuator, adapter and screw rod;One end of adapter with it is described
Bracket is fixedly connected, and the other end and the screw rod are rotatablely connected;The screw rod is also rotatablely connected with the actuator;The drive
Moving part can drive the screw rod to rotate so that the adapter drives the even support motion, thus make the camera from
The shell is stretched out or retracted to the opening.In present embodiment, the support motion is driven by screw rod, can be effectively improved
The kinematic accuracy of the bracket and the reliability for improving running of mobile terminal.
In a kind of embodiment, the Hall sensor is set to side of the circuit board towards the display screen, and
The camera is set to side of the bracket towards the display screen;The mobile side of first working face and the bracket
To substantially vertical;Second working face and first working face are substantially vertical, and first working face and described second
Working face is both substantially perpendicular to surface of the circuit board towards the display screen.
In a kind of embodiment, the Hall sensor further includes and first working face and second working face
Extending direction is all different third working face;The Hall sensor senses first magnet by the third working face
Magnetic field and/or external magnetic field and generate third inductive signal;Whether the third inductive signal is for determining the mobile terminal
There are external magnetic field interference.
In a kind of embodiment, the third working face is roughly parallel to table of the circuit board towards the display screen
Face.
In addition, the position detecting mechanism in the mobile terminal can also be in aforementioned first aspect in any one embodiment
Position detecting mechanism.
In order to realize the first inductive signal and the second inductive signal according to caused by the Hall sensor to the drive
Dynamic component is controlled, and in some embodiments, the mobile terminal further includes processor;The processor and the driving
Component and Hall sensor electrical connection;When receiving the trigger action of user's input, the processor controls the drive
It moves component operation and drives the bracket mobile, and then drive the camera that the shell is stretched out or retracted from the opening
Body;The processor also obtains the first inductive signal and the second inductive signal that the Hall sensor is issued, and according to institute
The first inductive signal and the second inductive signal obtained determines the location status of the camera.
Wherein, the state of the camera includes: retracted position, extended position, retraction process or stretches out process.Here
" retracted position " refers to that camera is located in the accommodating chamber of mobile terminal;Here " extended position " refers to that camera stretches out movement
The accommodating chamber of terminal, positioned at the outside of accommodating chamber;Here " retracting process " refers to that camera is returned from the Outer shrink of accommodating chamber
Process in accommodating chamber;Here " stretching out process " refers to the process of that camera is extend out to outside accommodating chamber out of accommodating chamber.
In order to improve the detection accuracy to camera state, the mobile terminal is preset with reference signal, in this way, pass through by
The comparison of first inductive signal and the second inductive signal and preset reference signal can accurately judge the state of camera.Therefore,
In some embodiments, the processor obtains the first inductive signal and the second induction letter that the Hall sensor is issued
Number, and determine according to acquired the first inductive signal and the second inductive signal the state of the camera, comprising: the processing
Device obtains the first inductive signal and the second inductive signal that the Hall sensor is issued, and judges first inductive signal
Whether persistently change with second inductive signal;When first inductive signal and the second inductive signal no longer change
When, the processor calculate separately first inductive signal and the first reference signal difference and second inductive signal and
The difference of second reference signal;Wherein, first reference signal and second reference signal are respectively at the camera
When the extended position, inductive signal caused by the first working face and the second working face of the Hall sensor;Alternatively,
When first reference signal and second reference signal are respectively that the camera is in the retracted position, the Hall
Inductive signal caused by the first working face and the second working face of sensor;The processor also judges the absolute of the difference
Whether value is less than preset threshold, when the absolute value of the difference is less than preset threshold, determines that the camera is in described and stretches
Out position or the retracted position.When first inductive signal and second inductive signal persistently change, the place
Reason device determines that the camera is in the stretching process or retracts process.
In order to avoid there are magnetic fields in camera position detection process, and detection accuracy is influenced, in some embodiment party
In formula, when first inductive signal and second inductive signal be not in variation, the processor also obtains the Hall
Third inductive signal caused by the third working face of sensor, and calculate the acquired third inductive signal and stable state letter
Difference between number;The processor also judges whether the absolute value of the difference is greater than baseline threshold;It is exhausted when the difference
When to value no more than baseline threshold, the difference and described second of first inductive signal and the first reference signal is just calculated separately
The difference of inductive signal and the second reference signal.The precision of calculating is had an impact in this way, external magnetic field can be discharged.
Wherein, the steady-state signal is the mobile terminal in the environment of external magnetic field is not present, the hall sensing
Inductive signal caused by the third working face of device.
When there are external magnetic field interference, to the position detection of camera, there are errors, nonsensical.Therefore, Yi Zhongshi
It applies in mode, when the third inductive signal is greater than baseline threshold relative to the variable quantity between steady-state signal, control movement
Terminal issues prompt information to remind user far from magnetic field.
In a kind of embodiment, in order to be accurate judgement, the user to whether the camera is in extended position
The trigger action of input includes the trigger action for starting the camera;First reference signal includes the first stretching base
Calibration signal, and second reference signal includes the second stretching reference signal;The preset threshold includes the first preset threshold;Its
In, the first stretching reference signal and the second stretching reference signal are respectively that the camera is in the extended position
When, the first working face of the Hall sensor and the second working face distinguish generated inductive signal;It is defeated when receiving user
Enter for starting the trigger action of the camera when, the processor controls the driving component work and drives described the
Two ontologies are moved along first direction, so that the camera is in the stretching process;The processor also obtain it is described suddenly
That sensor is in the first inductive signal and the second inductive signal issued during the stretching in the camera, and sentences
First inductive signal and described second that breaks incudes whether letter persistently changes;When first inductive signal and described
When two inductive signals no longer change, calculates separately the first inductive signal and first and stretch out the difference and second sense of reference signal
The difference of induction signal and the second stretching reference signal;The processor also judges whether the absolute value of the difference is less than described
One preset threshold, and when the absolute value of the difference is less than first preset threshold, determine that the camera is in described
Extended position.
In addition, in order to do accurate judgement, the triggering of user's input to whether the camera is in retracted position
Operation further includes the trigger action for closing the camera;First reference signal includes the first retraction reference signal,
And second reference signal includes the second retraction reference signal;The preset threshold includes the second preset threshold;Wherein, described
It is described when first retraction reference signal and the second retraction reference signal are respectively that the camera is in the retracted position
Inductive signal caused by first working face of Hall sensor and the second working face difference;When receive user input be used for
When closing the trigger action of the camera, the processor controls the driving component work and drives second ontology edge
Second direction is mobile, so that the camera is in the retraction process;The processor also obtains the Hall sensor
The first inductive signal and the second inductive signal issued during the camera is in and retracts, and judge first sense
Whether induction signal and the second induction letter persistently change;When first inductive signal and the second inductive signal no longer become
When change, the difference and the second inductive signal and second for calculating separately the first inductive signal and the first retraction reference signal retract benchmark
The difference of signal;The processor also judges whether the absolute value of the difference is less than second preset threshold, and when described
When the absolute value of difference is less than second preset threshold, determine that the camera is in the retracted position.
When the absolute value of the difference is not less than the first preset threshold, it is fully extended described to illustrate that the camera does not have
Shell, at this time, it may be possible to which bracket is hindered in moving process, for example, the resistance for hindering bracket mobile is greater than actuator
Driving force, and bracket is made to stop movement on the way on the move.It is also possible that a certain structure failure of mobile terminal, at this point, if
Actuator continues working, and will damage to actuator component and bracket.Therefore, in order to avoid this occurrence of, some
In embodiment, the processor controls the driving component and continues working, to drive the bracket to continue along the first party
To movement, and judge whether the camera is in the extended position;When the camera is still not in the extended position
When, control the driving component drives the bracket to move in a second direction, to drive the camera to retract the shell, from
And it can play a protective role to bracket and the driving component.
Similarly, when the absolute value of the difference is not less than second preset threshold, the processor controls the drive
Dynamic component continues working, and to drive the bracket to continue to move along the second direction, and judges whether the camera is in
The retracted position;When the camera is still not in the retracted position, control the driving component stops working.
When determining that the camera is in the extended position, if processor does not receive the touching that user closes camera
Hair operation, then camera should be in extended position always, i.e. bracket is in first predeterminated position and will not move.However, working as
When camera receives the pressing of external force, for example, when user is intended to Manual press camera and it is made to retract shell, if driving at this time
Part is still not in the state of work, it will influences the service life of actuator, or even causes to damage to actuator.Therefore, in order to
Avoid the occurrence of this, in some embodiments, when determining that the camera is in the extended position, the processor
Also obtain the first inductive signal and the second induction that the Hall sensor is issued when the camera is in extended position
Signal, and judge whether first inductive signal and the second inductive signal change;When first inductive signal and
When two inductive signals change, judge whether the variable quantity of first inductive signal and second inductive signal is greater than
Three preset thresholds;When the variable quantity of first inductive signal and second inductive signal is greater than the third predetermined threshold value
When, the processor controls the driving component and the bracket is driven to move in a second direction, and the camera is retracted
The shell.
However, the first inductive signal and the second inductive signal change, it is not necessarily that camera receives pressed by external force and leads
Caused by the movement for causing bracket, it is also possible to which there are the interference of external magnetic field, therefore, when camera is in extended position and suddenly
When the first inductive signal and the second inductive signal of your sensor output change, external magnetic field is also judged whether there is
Interference judges by accident in order to avoid bringing and then influences user experience.For example, when user is used camera and takes pictures, at this point, if detection
The first inductive signal and the second inductive signal exported to Hall sensor changes, and controls camera retraction, it will in
Disconnected user's takes pictures, and makes user experience poor.
Therefore, in some embodiments, the driving component work is controlled to drive the bracket in the processor
It moves in a second direction, and before making the camera retract the shell, the processor also obtains the hall sensing
The third inductive signal that device is issued when the camera is in extended position, and calculate the acquired third induction letter
Difference number between steady-state signal;Wherein, the steady-state signal is the mobile terminal in the environment that external magnetic field is not present
Under, inductive signal caused by the third working face of the Hall sensor;The processor also judges the absolute of the difference
Whether value is greater than baseline threshold;When the absolute value of the difference is not more than the baseline threshold, described in the processor control
Driving assembly drives the bracket to move in a second direction, and the camera is made to retract the shell.
In a kind of embodiment, when the absolute value of the difference is greater than the baseline threshold, the processor is also controlled
The mobile terminal issues prompt information, to remind user far from external magnets.
In addition, when determining that the camera successfully stretches out and is in the extended position, or, the camera successfully contracts
When returning and being in the retracted position, the processor is also successfully stretched out to the camera respectively or the number of success retraction
It is recorded, to indicate the current state of the camera.
Detailed description of the invention
It, below will be to the embodiment of the present application or background in order to illustrate the technical solution in the embodiment of the present application or background technique
Attached drawing needed in technology is illustrated.
Front schematic view when Fig. 1 is the photographic device stretching shell for the mobile terminal that one embodiment of the application provides.
Fig. 2 is another visual angle schematic diagram of mobile terminal shown in FIG. 1.
Fig. 3 is the schematic rear view of the part-structure of the mobile terminal removal rear shell in another embodiment of the application.
Fig. 4 is the schematic diagram of the position detecting mechanism in one embodiment of the application.
Fig. 5 is the schematic diagram of the position detecting mechanism in another embodiment of the application.
Fig. 6 is the schematic diagram of the position detecting mechanism in the application another embodiment.
Fig. 7 is the operation principle schematic diagram of Hall sensor shown in Fig. 5.
Fig. 8 is in the schematic diagram when state of the second position for the second ontology in Fig. 5.
Fig. 9 is in the schematic diagram when state of first position for the second ontology in Fig. 5.
Figure 10 is in the schematic diagram when state of the second position for the second ontology in Fig. 6.
Figure 11 is in the schematic diagram when state of first position for the second ontology in Fig. 6.
Figure 12 is the structural block diagram of the mobile terminal provided in one embodiment of the application.
Figure 13 is an application scenarios schematic diagram of mobile terminal.
Figure 14 is the schematic rear view for the mobile terminal that another embodiment of the application provides.
Figure 15 is an application scenarios schematic diagram of mobile terminal shown in Figure 14.
Figure 16 is the flow chart of the method for detecting position provided in one embodiment of the application.
Figure 17 is the sub-process figure of step S1603 in Figure 16.
Figure 18 is the flow chart of the method for detecting position provided in another embodiment of the application.
Figure 19 is the flow chart of the method for detecting position provided in the application another embodiment.
Figure 20 is the flow chart of the method for detecting position provided in the another embodiment of the application.
Specific embodiment
The application provides a kind of mobile terminal and applied to the position detecting mechanism in mobile terminal, the position detection
Mechanism is used to detect the position of mobile terminal photographic device inside, so that it is guaranteed that the location status of the camera, to guarantee to take pictures
Effect simultaneously protects photographic device.With reference to the accompanying drawing, embodiments herein is described.
Referring to Fig. 1, when the photographic device 23 that it is the mobile terminal 200 that one embodiment of the application provides stretches out shell 22
Front schematic view.Wherein, mobile terminal 200 can be smart phone, smartwatch, tablet computer, personal digital assistant
(personal digital assistant, PDA), point-of-sale terminal (point of sales, POS), vehicle-mounted computer, desktop
Any mobile terminal such as brain, laptop, smart television, the embodiment of the present application do not limit this.
As shown in Figure 1, the mobile terminal 200 includes display screen 21, shell 22 and photographic device 23.The display screen 21
It is installed on shell 22, the display surface of the display screen 21 is the front surface region of the mobile terminal 200.Referring to Fig. 2, Fig. 2
For another visual angle schematic diagram of mobile terminal 200 shown in FIG. 1, the shell 22 is equipped with opening 221, in present embodiment, institute
The top that opening 221 is located at mobile terminal 200 is stated, photographic device 23 can stretch out 22 outside of shell or be retracted from opening 221
To shell 22.It is appreciated that not limiting installation site of the photographic device 23 in the mobile terminal 200.
Referring to Fig. 3, Fig. 3 is the schematic rear view for the part-structure that mobile terminal 200 removes after rear shell.As shown in figure 3,
Accommodating chamber 201 is set in the shell 22.The accommodating chamber 223 is connected to the opening 221.The photographic device 23 being capable of activity
Ground is contained in accommodating chamber 201, and shell 22 can be stretched out or retracted by opening 221.In a kind of embodiment, the movement
Terminal 200 further includes position detecting mechanism 100, and the position detecting mechanism 100 is set in the accommodating chamber 201, is used for band
Dynamic photographic device 23 is flexible, and detects the specific location of photographic device 23.The position detecting mechanism 100 includes the first noumenon
10, the second ontology 20, the first magnet 30 and Hall sensor 50.Second ontology 20 is set with the first noumenon 10 interval
It sets and can be moved relative to the first noumenon 10.First magnet 30 is set on second ontology 20, and can be with
Second ontology 20 it is mobile.The Hall sensor 50 is set on the first noumenon 10.The photographic device 23 is set
It is placed on the position detecting mechanism, and stretches out or retract the shell 22 under the drive of the position detecting mechanism.
Referring to Figure 4 together, Fig. 4 is the structural schematic diagram of the position detecting mechanism 100 during the application one is implemented.In this reality
It applies in mode, the first noumenon 10 is circuit board, and the circuit board is located in the accommodating chamber 201 and is fixedly installed on described
On shell 22.Second ontology 20 is bracket.The photographic device 23 includes camera 231 and driving assembly 232.It is described to take the photograph
It is arranged on the bracket as first 231, and the driving component 232 is fixedly connected with the bracket, to drive the bracket to move
It is dynamic, so that the camera 231 be driven to stretch out or retract the shell 22 from the opening 221.Specifically, the camera
231 are fixed on the bracket close to one end of the opening 221.
In the present embodiment, the Hall sensor 50 is set to one of the circuit board towards the display screen 21
Side.First magnet 30 is set to side of the bracket towards the display screen 21.
Wherein, circuit board is also known as the mainboard in mobile terminal 200, be the most basic of mobile terminal 200 is also most important
One of component, circuit board top is mounted with all kinds of control chips (such as processor, I/O control chip) and various electronic components
(such as all kinds of chips, resistance, capacitor), and it is furnished with route.The Hall sensor 50 can be welded on the circuit board, into
And inductive signal caused by making passes through specific line transmission to object component (such as processor), to realize hall sensing
Electrical connection between device 50 and other electronic components.For example, Hall sensor 50 is electrically connected with processor, and by the induction of generation
Signal is transferred to the processor.The processor determines the telescopic location of the camera 231 according to the inductive signal.
In present embodiment, the photographic device 23 is used to obtain the scape of the positive side of the mobile terminal 200
Object or portrait etc., i.e., the described photographic device 23 are used as preposition photographic device.In other embodiments, the photographic device
23 can be used as the use such as postposition photographic device, and the photographic device 23 may be set to be the photographic device of rotation type, In
This is not construed as limiting.
Need it is clear that, the application to the specific structure of mobile terminal 200 without limitation, as long as the tool of mobile terminal 100 holds
Receive setting photographic device 23 accommodating chamber 201 and photographic device 23 it is extended or retract the accommodating chamber.
In order to improve the kinematic accuracy of second ontology 20 and improve the reliability of running of mobile terminal, in an embodiment party
In formula, the driving component 232 includes actuator 2321, adapter 2322 and screw rod 2323.The actuator 2321, which is located at, to be received
In cavity 221, the screw rod 2323 is rotatablely connected with the actuator 2321.One end of the adapter 2322 and described second
Ontology 20 is fixedly connected, and the other end of adapter 2322 and the screw rod 2323 are rotatablely connected.Therefore, when the actuator
When the 2321 driving screw rod 2323 rotation, second ontology 20 can be driven mobile by the adapter 2322.
For example, second ontology 20 drives when the actuator 2321 drives the screw rod 2323 to rotate counterclockwise
The camera 231 moves (first direction) towards 221 directions of the opening;When the actuator 2321 drives screw rod
2323 when rotating clockwise, and second ontology 20 drives the camera 231 to move in a second direction and retract shell 22.It can
To understand, the steering of the screw rod 2323 is driven to be not construed as limiting the actuator 2321, for example, when the actuator 2321 drives
When moving the screw rod 2323 and rotating clockwise, the camera 231 can stretch out the shells 22 from the opening 221, work as institute
When stating actuator 2321 screw rod 2323 being driven to rotate counterclockwise, the camera 231 can retract institutes from the opening 221
It states shell 22 and is contained in the accommodating chamber 201.In present embodiment, the actuator 2321 is stepper motor.It is appreciated that not
Limiting the actuator 2321 is stepper motor, and the actuator 2321 can also be the driving devices such as cylinder, oil cylinder.
Referring to Fig. 5, Fig. 5 is the schematic diagram of position detecting mechanism 100 disclosed in another embodiment of the application.The Hall
Sensor 50 senses the magnetic field of first magnet 30 and generates inductive signal.Wherein, the Hall sensor 50 includes difference
The the first working face a and the second working face b extended in different directions.The Hall sensor 50 passes through the first working face a
It senses the magnetic field of first magnet 30 and generates the first inductive signal, and the Hall sensor 50 also passes through second work
Make face b to sense the magnetic field of first magnet 30 and generate the second inductive signal.First inductive signal and second sense
Induction signal is used to determine the location status of second ontology 20;Wherein, the location status of second ontology 20 includes described
What first movement process that the second ontology 20 is moved along first direction, second ontology 20 moved in a second direction second moves
Process, second ontology 20 along first direction be moved to the first predeterminated position first position state or second ontology 20
It is moved to the second position state of the second predeterminated position in a second direction.In one embodiment, the second direction and described
First direction is opposite.
That is, the mobile terminal 200 of the embodiment of the present application, first induction according to caused by the Hall sensor 50
Signal and second inductive signal determine the location status of the camera 231.For example, being stretched when the camera 231 is in
When out position, user can be used the camera 231 and take pictures, and when the camera 231 is in retracted position, it can
To be protected to camera 231.Wherein, the location status of the camera 231 includes stretching process (corresponding first movement mistake
Journey), retract process (corresponding second moving process), extended position (corresponding first position state) or retracted position (corresponding second
Location status).Here " retracting process " refers to camera 231 from the mistake in the Outer shrink of accommodating chamber 201 recycling cavity 201
Journey;Here " stretching out process " refers to the process of that camera 231 extend out to 201 outside of accommodating chamber out of accommodating chamber 201;Here
" retracted position " refers to that camera 231 is located in the accommodating chamber 201 of mobile terminal 200;Here " extended position " refers to camera shooting
First 231 stretch out the accommodating chamber 201 of mobile terminal 231, positioned at the outside of accommodating chamber 201.
Mobile terminal 200 and position detecting mechanism 100 disclosed in the embodiment of the present application, due to the Hall sensor 50
Including the first working face a and the second working face b, the Hall sensor 50 can be by described in the first working face a sensing
The magnetic field of first magnet 30 simultaneously generates the first inductive signal, and the Hall sensor 50 is also felt by the second working face b
It surveys the magnetic field of first magnet 30 and generates the second inductive signal, so that second ontology 20 is relative to the first noumenon
10 it is mobile when, the Hall sensor 50 exports two inductive signals (the first inductive signal and the second inductive signal) to determine the
The state of two mobile ontologies 20, i.e., only could judge second ontology 20 when two signals all meet preset condition
Location status can be improved detection accuracy relative to the existing Hall sensor with single working face.
In a kind of embodiment, in order to feeling to magnetic field caused by first magnet 30 compared with limits
It surveys, to further increase detection accuracy, the moving direction of the first working face a and second ontology 20 is substantially vertical;Institute
It states the second working face b and the first working face a is substantially vertical, and the first working face a and the second working face b are big
Cause the surface that the Hall sensor 50 is provided with perpendicular to the first noumenon 10.
In some embodiments, in order to detect the interference of external magnetic field, the Hall sensor 50 further include with
The extending direction of the first working face a and the second working face b are all different third working face c, the third working face c
It can be roughly parallel to the surface that the first noumenon 10 is provided with the Hall sensor 50, the Hall sensor 50 passes through
The third working face c sense first magnet 30 magnetic field and/or external magnetic field and generate third inductive signal;Described
Three inductive signals are for determining that the position detecting mechanism 100 is interfered with the presence or absence of external magnetic field.Wherein, external magnetic field refer to by
Object other than first magnet 30 and the magnetic field generated.
Wherein, when not having external magnetic field, the third inductive signal that the Hall sensor 50 generates does not change;And
When there are external magnetic field, the third inductive signal that the Hall sensor 50 generates can change.That is, when there is no the external worlds
When magnetic field, no matter how the relatively described the first noumenon 10 of the second ontology 20 is moved, first magnet 30 and described below second
Magnetic field caused by magnet 40 is all identical by the magnetic flux of the third working face.Alternatively, when there is no external magnetic field,
The third inductive signal that the Hall sensor 50 generates is 0;And when there are external magnetic field, the Hall sensor 50 generates
It is not 0 third inductive signal.That is, when external magnetic field is not present, no matter the second ontology 20 the first noumenon 10 relatively why
Sample moves, the magnetic flux that magnetic field caused by first magnet 30 and the second magnet 40 described below passes through the third working face
Amount is all 0.
In some embodiments, the third working face c respectively with the first working face a and second working face
B is substantially vertical, i.e., the described third working face c is roughly parallel to surface of the circuit board towards the display screen, to reduce both
There is the interference in magnetic field, and improves the sensing precision to external magnetic field.
Also referring to Fig. 3, Fig. 4 and Fig. 6, wherein Fig. 6 is position detecting mechanism disclosed in the application another embodiment
100 schematic diagram.In some embodiments, in order to improve the detection accuracy of the location status to the second ontology 20, institute's rheme
Setting testing agency 100 further includes the second magnet 40.Second magnet 40 and first magnet 30 are arranged at intervals at described the
On two ontologies 20.The Hall sensor 50 senses first magnet 30 and/or described second by the first working face a
The magnetic field of magnet 40 simultaneously generates first inductive signal, and the Hall sensor 50 is also felt by the second working face b
It surveys the magnetic field of first magnet 30 and/or second magnet 40 and generates second inductive signal.In present embodiment,
Since first inductive signal and second inductive signal are generated by least one of two magnets of sensing,
So that when the change rate of the first inductive signal and the second inductive signal is larger when moving for the second ontology 20, and then can be according to not
Same the first inductive signal and the second inductive signal determines the shift position of the second ontology 20, improves the position shape to the second ontology
The detection accuracy of state.
In some embodiments, when second ontology 20 is mobile relative to the first noumenon 10, described first
Magnet 30 and second magnet 40 are mobile relative to the Hall sensor 50, and the Hall sensor 50 is always positioned at described
In magnetic field range caused by least one of first magnet 30 and second magnet 40, no matter so that described second
Ontology 20 relative to the first noumenon 10 be moved to where, the Hall sensor 50 can generate the first induction letter
Number and second inductive signal, ensure that the stability of detection.
For example, in one embodiment, no matter how second ontology 20 moves, as long as guaranteeing at described second
During body 20 is mobile, the surface of the central point of the Hall sensor 50 and the magnet near the Hall sensor 50
The distance between be less than 5mm when, that is, can guarantee that the Hall sensor 50 is always positioned at first magnet 30 and described second
In the magnetic field range that magnet 40 generates.Certainly, since the volume of 50 volume of Hall sensor and magnet is not fixed, cause to generate
Magnetic field strength it is indefinite, the ability for sensing magnetic field is not known yet, therefore, the Hall sensor 50 and 30 He of the first magnet
Relative position between second magnet 40 also without limitation, as long as can guarantee when second ontology 20 is relative to described
When one ontology 10 is mobile, the Hall sensor 50 is always positioned in first magnet 30 and second magnet 40 at least
In one generated magnetic field range.
It is appreciated that due to the relative distance between the first noumenon 10 and second ontology 20 be it is unfixed,
It can be set according to specific design requirement, therefore, the Hall sensor 50 is set to the position on the circuit board,
And the position that first magnet 30 and second magnet 40 are set on second ontology 20 is also not fixed, only
No matter can guarantee how second ontology 20 moves relative to the first noumenon 10, the Hall sensor 50 is always
In the magnetic field range caused by least one of first magnet 30 and second magnet 40.
In addition, in some embodiments, magnetic field caused by first magnet 30 and second magnet 40 are produced
Raw magnetic field is superimposed, in this way, can make when second ontology 20 is mobile relative to the circuit board, first work
Make changing greatly for the magnetic flux that face a and the second working face b are sensed, and then can be improved the Hall sensor 50
Sensing magnetic field sensitivity, to improve the detection accuracy to 20 state of the second ontology.
For example, in one embodiment, when first magnet 30 and close to each other two of second magnet 40
When the distance between end face is less than 6mm, it is ensured that magnetic field phase caused by first magnet 30 and second magnet 40
Mutually superposition.Certainly, since the magnetic field of the volume difference generation of magnet is also different, first magnet 30 and described second
The distance between magnet 40 without limitation, as long as can guarantee magnetic field caused by first magnet 30 and second magnet 40
It is overlapped mutually.
In one embodiment, first magnet 30 and second magnet 40 are bar magnet, to facilitate
It is managed in production process and fool proof when producing line processing.Certainly, the shape of first magnet 30 and second magnet 40 is not
It is specifically limited, for example, in other embodiments, first magnet 30 and second magnet 40 can also be section in half
Circular cylindrical magnet.Wherein, cylindrical magnet is used in the surface of plane and second ontology 20 is fixedly connected, to protect
Demonstrate,prove the stability of the first magnet 30 and the setting of the second magnet 40.
In a kind of embodiment, the line of the central point of the central point of first magnet 30 and second magnet 40 and
Second ontology 20 is lain substantially parallel to the direction of movement, so, it is ensured that in the mobile (arrow in Fig. 5 of second ontology 20
L) the positional relationship of Shi Suoshu Hall sensor 50 and first magnet 30 and second magnet 40, to guarantee the Hall
Sensor 50 can sense when magnetic field caused by first magnet 20 and second magnet 30.Wherein, central point refers to
The center of gravity of element, when a certain element is regular object, then the central point of the element is then the geometric center of the regular object.
In some embodiments, the north and south polar axis of the north-south axis of first magnet 30 and second magnet 40
Line is lain substantially parallel to the direction of movement with second ontology 20 respectively, and then can make the Hall sensor 50 described
During two ontologies 20 are mobile, it can sense when to be superimposed magnetic caused by first magnet 30 and second magnet 40
.
In order to guarantee the detection sensitivity of the Hall sensor 50,40 institute of first magnet 30 and second magnet
The superposition magnetic field of generation must ensure second ontology 20 relative to the first noumenon 10 it is mobile during, the hall sensing
First inductive signal caused by device 50 and the second inductive signal rate of change meet certain requirements, therefore, a kind of embodiment
In, one end close to each other of first magnet 30 and second magnet 40 is homonymous magnetic pole.In one embodiment, institute
Stating homonymous magnetic pole is the pole N.
Wherein, south poles are axially vector of the magnet from the pole N to the pole S, that is, the direction of magnetic pole.Magnetic pole is magnetic on magnet
Property strongest part, the magnet being freely rotated in the horizontal plane, always a magnetic pole is directed toward south when static, another magnetic pole refers to
North, energized south is called the South Pole (pole S), and that is directed toward north is called the arctic (pole N).
It should be noted that in the embodiment of the present application, the term " substantially parallel " being related to, can be construed to it is parallel,
Approach in parallel or have certain predetermined angle;" substantially vertical " can be construed to vertical, close vertical or have certain predetermined
Angle.
Referring to Fig. 7, Fig. 7 is the operation principle schematic diagram of Hall sensor 50.As shown in fig. 7, in Hall sensor 50
Including Hall element.Wherein, for Hall element by taking wafer as an example, the working face of Hall sensor 50 refers to Hall sensor
The plane of induced magnetic field, the as plane where wafer are led in wafer when Hall sensor 50 works
Enter electric current, applies magnetic field in the vertical direction of thin slice, then thin slice will generate potential on the direction perpendicular to electric current and magnetic field
Difference.For example, when Hall sensor 50 working face between the first surface 501 and second surface 502, and respectively with institute
State first surface 501 it is parallel with second surface 502 when, when magnetic field is worn from the first surface (upper surface) 501 of Hall sensor 50
When crossing Hall sensor 50, the first output end 503 of Hall sensor 50 exports low level signal, and second output terminal 504 exports
High level signal;Conversely, when magnetic field passes through Hall sensor 50 from the second surface (lower surface) 502 of Hall sensor 50,
First output end 503 of Hall sensor 50 exports high level signal, and second output terminal 504 exports low level signal.
It should be noted that Fig. 7 is with the Hall sensor 50 of corresponding two voltage signal output ends of each working face
For illustrate the working principle by Hall sensor, in other embodiments, each working face of Hall sensor 50 is also
An output end, three output ends etc. can be corresponded to, the output signal of each output end can be voltage signal or current signal, In
This is not construed as limiting.When magnetic field passes through the working face of the Hall sensor 50, the output end of Hall sensor 50 is with voltage or electricity
The mode of stream exports electric signal, and the direction across the magnetic field of the working face of Hall sensor 50 is different, then the electric signal exported is not
Together, different operations is executed come the processor 24 of instruction terminal by different electric signals.
In addition, the Hall sensor 50 used in the embodiment of the present application can be lienar for Hall sensor, by Hall member
Part, linear amplifier and emitter follower composition, it exports analog quantity.Certainly, Hall sensor 50 is also possible to switching mode suddenly
That sensor, by voltage-stablizer, Hall element, difference amplifier, Schmitt trigger and output stage composition, it exports digital quantity.
It should be noted that either any Hall sensor, is all the different magnetic that can be set into according to detecting
Field intensity exports different inductive signals.Therefore, when second ontology 20 is moved to difference relative to the first noumenon 10
Position when, magnetic field strength that the Hall sensor 50 is sensed is different.In this way, being produced according to the Hall sensor 50
Raw the first inductive signal and the second inductive signal can determine the location status of the camera 231.Wherein, when the camera shooting
First 231 when being in different positions, and magnetic field that the Hall sensor 50 is sensed is different, i.e., with the shifting of the second ontology 20
It is dynamic, pass through the inductions that are different, and then generating of the magnetic flux of the first working face a and the second working face b of the Hall sensor 50
Signal is different.
Referring to Fig. 8, when the second ontology 20 that Fig. 8 is the position detecting mechanism 100 in Fig. 5 is in second position state
Schematic diagram.As shown in figure 8, when second ontology 20 is in second position state (corresponding camera 231 is in retracted position)
When, the magnetic line of force that the pole N of first magnet 30 is issued can largely pass through the first working face a and second work
Make face b and is back to the pole S of first magnet 30.Assuming that in this case, the magnetic flux by the first working face a is
Φ 1, the magnetic flux by the second working face b is Φ 2, at this point, the first working face a generates the first inductive signal v1,
The second working face b generates the second inductive signal v2.Wherein, the first inductive signal v1 and the second inductive signal v2 can be with
It is identical to can also be different.With the movement of the second ontology 20, the pole N of the first magnet 30 with a distance from Hall sensor 50 increasingly
Closely then and gradually become remote, in this process, can be occurred by the quantity of the magnetic line of force of the first working face a and the second working face b
Change, therefore, the first inductive signal v1 and the second inductive signal v2 also occur to change accordingly.Inductive signal in the present embodiment
It is illustrated by taking voltage signal as an example, when bigger by the magnetic flux of working face, the voltage signal of Hall sensor output is got over
By force.
Referring to Fig. 9, when the second ontology 20 that Fig. 9 is the position detecting mechanism 100 in Fig. 5 is in first position state
Schematic diagram.As shown in figure 9, when second ontology 20 is moved to first position state, (corresponding camera 231, which is in, stretches out position
Set) when, it is assumed that the magnetic flux by the first working face a is Φ 3, and the magnetic flux by the second working face b is Φ 4,
At this point, the first working face a, which generates the first inductive signal v3, the second working face b, generates the second inductive signal v4.Due to
When in the position, the magnetic line of force that the pole N of first magnet 30 is issued only some can pass through the first working face a
With the second working face b and it is back to the pole S of first magnet 30, therefore, the first inductive signal v3 can be than first
Inductive signal v1 is small, and the second inductive signal v4 can be smaller than the second inductive signal v2.Also that is, when the and ontology 20 relative to the
When one ontology 10 is moved to different positions, the first inductive signal caused by the first working face a of the Hall sensor 50
Different, the second inductive signal caused by the second working face b of the Hall sensor 50 is also different.Therefore, Ke Yigen
The shift position of the relatively described the first noumenon 10 of the second ontology 20 is determined according to the first inductive signal and the second inductive signal.
In some embodiments, in order to guarantee in the second ontology 20 in moving process, the Hall sensor 50 is
Corresponding first inductive signal and the second inductive signal can be generated, no matter second ontology 20 is in the first position state
Or second ontology 20 is in second position state, the central point of the Hall sensor 50 and 30 band of the first magnet
The line at the center of the end face at polarized and close 50 center of Hall sensor and the moving direction of second ontology 20
It is substantially vertical.
Also referring to Figure 10 and Figure 11, wherein Figure 10 is at the second ontology 20 of the position detecting mechanism 100 in Fig. 6
The schematic diagram when state of the second position;Figure 11 is that the second ontology 20 of the position detecting mechanism 100 in Fig. 6 is in first position
Schematic diagram when state.Similarly, when being provided with the first magnet 30 and the second magnet 40 on second ontology 20, in order to guarantee
In the second ontology 20 in moving process, the Hall sensor 50 generates corresponding first inductive signal and the second induction letter
Number, in some embodiments, when second ontology 20 is in the second position state, first magnet 30 is separate
The end face of second magnet 40 is close to the Hall sensor 50, and the central point of the Hall sensor 50 and described first
Magnet 30 is with polarized and close to the line at the center of the end face at 50 center of Hall sensor and second ontology 20
Moving direction is substantially vertical;When second ontology 20 is in the first position state, second magnet 40 is far from institute
The end face of the first magnet 30 is stated close to the Hall sensor 50, and the central point of the Hall sensor 50 and second magnetic
The shifting of line and second ontology 20 of the body 40 with polarized and close to the center of the end face at 50 center of Hall sensor
Dynamic direction is substantially vertical.
Figure 12 is please referred to, Figure 12 is the structural block diagram for the mobile terminal 200 that one embodiment of the application provides.It is described mobile whole
End 200 further includes at least one processor 24, communication bus 25, at least one communication interface 26 and memory 27.It can manage
Solution, described Figure 12 is only the example of the mobile terminal 200, does not constitute the restriction to the mobile terminal 200, described
Mobile terminal 200 may include perhaps combining certain components or different portions than more or fewer components shown in Figure 12
Part, such as the mobile terminal 200 can also include input-output equipment, network access equipment etc..
The processor 24 and at least one described communication interface 25, the memory 27, the display screen 21, the drive
Moving part 2321 and the Hall sensor 50 are communicated to connect by the communication bus 25.The processor 24 can be center
Processing unit (Central Processing Unit, CPU), can also be other general processors, digital signal processor
(Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated
Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other can
Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor
Or the processor is also possible to any conventional processor etc., the processor is the control centre of the mobile terminal 200,
Utilize the various pieces of the entire mobile terminal 200 of various interfaces and connection.
The communication bus 25 may include an access, and information is transmitted between said modules.
The communication interface 26, using the device of any transceiver one kind, for other equipment or communication,
Such as Ethernet, wireless access network (radio access network, RAN), WLAN (wireless local area
Networks, WLAN) etc..
The memory 27 can be used for storing computer program and/or module, and the processor 24 is by operation or executes
The computer program and/or module being stored in the memory 27, and the data being stored in memory 27 are called, it realizes
The various functions of the mobile terminal 200.The memory 27 can mainly include program storage area and data storage area, wherein
Program storage area can application program needed for storage program area, multiple functions (such as sound-playing function, image player function
Deng) etc.;Data storage area, which can be stored, uses created data (such as audio data, phone directory according to mobile terminal 200
Deng) etc..In addition, the memory 27 may include high-speed random access memory, it can also include nonvolatile memory, example
Such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card), multiple disk memories, flush memory device or other volatile solid-states are deposited
Memory device.The memory 27, which can be, to be individually present, and is connected by the communication bus 25 with the processor 24.It is described
Memory 27 can also be integrated with the processor 24.
In the concrete realization, as one embodiment, the processor 24 may include one or more CPU, such as Fig. 7
In CPU0 and CPU1.
In the concrete realization, as one embodiment, mobile terminal 200 may include multiple processors, such as in Fig. 8
Processor 24 and processor 241.Each of these processors can be monokaryon (single-CPU) processor, can also
To be multicore (multi-CPU) processor.Here processor can refer to one or more equipment, circuit, and/or be used for
Handle the processing core of data (such as computer program instructions).
In the embodiment of the application, when needing camera 231 stretching out shell 22, the processor 24 can be to institute
It states actuator 2321 and sends control signal to control the work of actuator 2321, so as to drive the second ontology 20 mobile, into one
Step pushes camera 231 to move along the direction for the opening 221 for stretching out mobile terminal 200, or edge shrinks back mobile terminal 200
The direction of accommodating chamber 201 is mobile, at this point, Hall sensor 50 can pass through the magnetic field of induction the first magnet 30 and the second magnet 40
Generate the first inductive signal and the second inductive signal, and feed back to processor 24, the processor 24 can according to it is described suddenly
Signal caused by your sensor 50 and reference signal compare, and the state of the camera 231 is determined according to comparison result.
In one embodiment, when receiving the trigger action of user's input, the processor 24 controls the driving
Component 232 works and drives second ontology 20 mobile, so drive the camera 231 stretched out from the opening 221 or
Person retracts the shell 22.The processor 24 also obtains the first inductive signal and second that the Hall sensor 50 is issued
Inductive signal, and determine according to acquired the first inductive signal and the second inductive signal the location status of the camera 231.
Wherein, the processor 24 obtains the first inductive signal and the second induction letter that the Hall sensor 50 is issued
Number, and determine according to acquired the first inductive signal and the second inductive signal the location status of the camera 231, comprising:
The processor 24 obtains the first inductive signal and the second inductive signal that the Hall sensor 50 is issued, and described in judgement
Whether the first inductive signal and second inductive signal persistently change;When first inductive signal and the second induction letter
When number no longer changing, the processor 24 calculates separately the difference and described the of first inductive signal and the first reference signal
The difference of two inductive signals and the second reference signal;It is default that the processor 24 also judges whether the absolute value of the difference is less than
Threshold value determines that the camera 231 is in the extended position or institute when the absolute value of the difference is less than preset threshold
State retracted position.When first inductive signal and the second inductive signal persistently change, taken the photograph described in the determination of processor 24
As head 231 is in the stretching process or the retraction process.
In some embodiments, the trigger action of user's input includes grasping for starting the triggering of the camera
Make;First reference signal includes the first stretching reference signal, and second reference signal includes the second stretching benchmark letter
Number;The preset threshold includes the first preset threshold.When the triggering for being used to start the camera 231 for receiving user's input
When operation, the processor 24 controls the work of the driving component 232 and second ontology 20 is driven to move along first direction,
So that the camera 231 is in the stretching process.The processor 24 also obtains the Hall sensor 50 described
Camera 231 is in the first inductive signal and the second inductive signal issued during stretching, and when the first induction letter
Number and the second inductive signal when no longer changing, calculate separately the first inductive signal and first and stretch out the difference and second of reference signal
The difference of inductive signal and the second stretching reference signal.The processor 24 also judges whether the absolute value of the difference is less than institute
The first preset threshold is stated, and when the absolute value of the difference is less than first preset threshold, is determined at the camera 231
In the extended position.
Wherein, when second ontology 20 is moved along first direction, first magnet 30 and second magnet 40
Position relative to the Hall sensor 50 can change, therefore, the first induction letter that the Hall sensor 50 exports
Number and the second inductive signal be continually changing.When second ontology 20 stops mobile, first magnet 30 and described
Second magnet 40 relative to the position of the Hall sensor 50 be it is fixed, at this point, the Hall sensor 50 export the
One inductive signal and the second inductive signal tend towards stability, i.e., do not change.Therefore, when the first acquired inductive signal and
Two inductive signals continue to illustrate that second ontology 20 is in moving condition in variation, i.e., the described camera 231, which is in, to be stretched out
Or retract process.When acquired the first inductive signal and the second inductive signal no longer change, illustrate second ontology 20
In the state for stopping movement.At this point, the processor 24, which calculates separately the first inductive signal and first, stretches out reference signal
Difference and the second inductive signal and second stretch out the difference of reference signal, and work as the absolute value of the difference less than the first default threshold
When value, determine that second ontology 20 is moved to the first predeterminated position, i.e., the described camera 231 is in extended position.In this way, can
Detect whether the camera 231 normally stretches out and in extended position.In present embodiment, due to the Hall sensor 50
It can produce two inductive signals, the accuracy of detection can be improved using two inductive signals as the foundation of judgement.
Wherein, in some embodiments, when can detect the camera 231 in advance and being in extended position, the Hall
First inductive signal and the second inductive signal caused by sensor 50, and to multiple first inductive signals that repeated detection obtains
It averages, equal similarly is asked to multiple second inductive signals that repeated detection obtains using the mean value as the first stretching reference signal
The mean value is stretched out reference signal by value.
When the absolute value of the difference is not less than the first preset threshold, illustrate that the secondth ontology 20 does not move to the
One predeterminated position, i.e., the described camera 231 is without the fully extended shell 22, at this time, it may be possible to which the second ontology 20 is in movement
It is hindered in the process, for example, the resistance for hindering the second ontology 20 mobile is greater than the driving force of actuator 2321, and makes second
The way on the move of ontology 20 stops movement.It is also possible that a certain structure failure of mobile terminal 200, at this point, if actuator
2321 continue working, and will damage to actuator component 232 and the second ontology 20.Therefore, in order to avoid this occurrence of,
In some embodiments, when the absolute value of the difference is not less than the first preset threshold, the processor 24 controls described
Driving assembly 232 continues working, and to drive second ontology 20 to continue to move along the first direction, and judges the camera shooting
Whether first 231 be in the extended position.When the camera 231 is still not in the extended position, the driving is controlled
Component 232 drives second ontology 20 to move in a second direction, to drive the camera 231 to retract the shell 22, from
And it can play a protective role to camera 231 and the driving component 232.
In some embodiments, when determining that the camera 231 is in the extended position, the processor 24 is also
The number for being in the extended position to the camera 231 records, described in indicating that the camera 231 successfully stretches out
Shell 22.For example, the processor 24 can become 1 from 0 by the number of control counter to indicate that inclination states camera 231
The shell 22 is stretched out in success, and when camera 231 retracts in shell 22, control counter is reset.
In another embodiment, the trigger action of user's input includes grasping for closing the triggering of the camera
Make;First reference signal includes the first retraction reference signal, and second reference signal includes the second retraction benchmark letter
Number;The preset threshold includes the second preset threshold.When the trigger action for being used to close camera 231 for receiving user's input
When, the processor 24 controls the work of the driving component 232 and second ontology 20 is driven to move in a second direction, so that
It obtains the camera 231 and is in the retraction process.The processor 24 also obtains the Hall sensor 50 in the camera shooting
First 231 the first inductive signals and the second inductive signal issued during retracting, and judge first inductive signal
Whether persistently change with the second induction letter;When first inductive signal and the second inductive signal no longer change,
The difference and the second inductive signal and second for calculating separately the first inductive signal and the first retraction reference signal retract reference signal
Difference.The processor 24 also judges whether the absolute value of the difference is less than second preset threshold, and works as the difference
When the absolute value of value is less than second preset threshold, determine that the camera 231 is in the retracted position.
In some embodiments, when can detect the camera 231 in advance and being in retracted position, the Hall sensor
First inductive signal and the second inductive signal caused by 50, and repeated detection obtains when being in retracted position to camera 231
Multiple first inductive signals average, using the mean value as first retract reference signal, similarly, to camera 231 be in contracting
Multiple second inductive signals that repeated detection obtains when return is set are averaged, and retract reference signal for the mean value as second.
Wherein, second preset threshold can be identical with first preset threshold, can also be different, specifically can be according to
It is set according to design requirement.In addition, described first stretches out reference signal, the first retraction reference signal, the second stretching benchmark
Signal and the second retraction reference signal can be different, and can be set before mobile terminal factory, and be stored in
In reservoir 27.
When the absolute value of the difference is not less than preset threshold, it is default to illustrate that second ontology 20 does not move to second
Position, i.e., the described camera 231 are not fully retracted the shell 22, at this time, it may be possible to which the second ontology 20 is in moving process
It is hindered, for example, the resistance for hindering the second ontology 20 mobile is greater than the driving force of actuator 2321, and makes the second ontology 20
Way on the move stops movement.It is also possible that a certain structure failure of mobile terminal 200, at this point, if actuator 2321 continues
Work, will damage actuator component 232 and the second ontology 20.Therefore, in order to avoid this occurrence of, in some realities
It applies in mode, when the absolute value of the difference is not less than second preset threshold, the processor 24 controls the driving
Component 232 continues working, and to drive second ontology 20 to continue to move along the second direction, and judges the camera shooting again
Whether first 231 be in the retracted position;When the camera 231 is still not in the retracted position, the driving is controlled
Component 232 stops working, to protect to the driving component 232 and the second ontology 20.
In some embodiments, when determining that the camera 231 is in the retracted position, the processor 24 is also
The number for being in the retracted position to the camera 231 records, described in indicating that the camera 231 successfully retracts
Shell 22.For example, the processor 24 can by control counter number from 0 become 1 with indicate the camera 231 at
Function retracts the shell 22.
In the detection process of 231 location status of camera, it is also possible to which there are the interference of external magnetic field, and work as and exist
To the position detection of camera 231, there are errors in the case where external magnetic field interference, that is, easily cause erroneous judgement, therefore, be
Ensure the accuracy to 231 position detection of camera, in some embodiments, whether in the stretching position of camera 231
It sets in detection process or in the retracted position detection process of camera 231, when the first acquired inductive signal and second
When inductive signal no longer changes, the processor 24 also obtains third inductive signal caused by the Hall sensor 50, and
Calculate the difference between the third inductive signal and steady-state signal;The processor also judge the difference absolute value whether
Greater than baseline threshold;When the absolute value of the difference is greater than baseline threshold, illustrate there are external magnetic field interference, at this point, described
Processor 24 controls the mobile terminal 200 and issues prompt information to remind with far from magnetic field.When the difference absolute value not
When greater than baseline threshold, illustrates to interfere there is no external magnetic field or external magnetic field interference is smaller, will not influence to camera
231 position detection, at this point it is possible to be detected to the position of camera 231.Wherein, steady-state signal is that mobile terminal 200 exists
In the case where there is no external magnetic field interference, inductive signal caused by the third working face c of the Hall sensor 50.For example,
When external magnetic field is not present, third working face c can not generate signal, and steady-state signal can be set to 0 at this time;When being not present
When external magnetic field, third working face c can also generate constant inductive signal, which can be used as steady-state signal.
When there are external magnetic field, the inductive signal that third working face c is generated can change compared to steady-state signal, and when this change
When amount is more than baseline threshold, illustrate that external magnetic field is stronger.In addition, baseline threshold is without limitation, it can be according to specific design requirement
Depending on.
In some embodiments, the mobile terminal 200 can be placed in the environment of no external magnetic field interference in advance
In, and multiple third inductive signals that repeated detection obtains are averaged, using the mean value as steady-state signal.Wherein, steady-state signal
It can also be set, and be stored in memory 27 before the factory of mobile terminal 200.
The mobile terminal 200 may include suggestion device, for example, light emitting diode or buzzer.Exist when determining
When external magnetic field interferes, it can control lumination of light emitting diode or control buzzer make a sound.Certainly, the suggestion device
It can also be display screen 10, when determining there are when external magnetic field interference, show a prompt information on control display screen 10.
When determining that the camera 231 is in the extended position, if processor 24 does not receive user and closes camera shooting
The trigger action of head, then camera 231 should be in extended position always, i.e. the second ontology 20 is in first predeterminated position not
It can move.However, when camera 231 receives the pressing of external force, for example, user is intended to Manual press camera 231 and makes it
When retracting shell 22, if actuator 2321 is still not in the state of work at this time, it will the service life of actuator 2321 is influenced,
Even actuator 2321 is caused to damage.Therefore, in order to avoid this occurrence of, in some embodiments, described in determination
When camera 231 is in the extended position, the processor 24 also obtains the Hall sensor 50 in the camera 231
The first inductive signal and the second inductive signal issued when in extended position, and judge first inductive signal and second
Whether inductive signal changes;When first inductive signal and the second inductive signal change, described first is judged
Whether the variable quantity of inductive signal and second inductive signal is greater than third predetermined threshold value;When first inductive signal and institute
When stating the variable quantity of the second inductive signal greater than the third predetermined threshold value, the processor 24 controls the driving component 232
Work makes the camera 231 retract the shell 22 to drive second ontology 20 to move in a second direction.Its
In, whether first inductive signal and the second inductive signal change, and refer to first inductive signal at current time with before
First inductive signal at one moment compared to whether change and second inductive signal at current time and previous moment the
Two inductive signals compare whether change.
Wherein, when the variable quantity of first inductive signal and second inductive signal is greater than third predetermined threshold value,
The operation that camera 231 is closed due to not receiving user, illustrates that the camera 231 is in pressed by external force state, at this point, institute
It states processor 24 and controls the work of actuator 2321 to drive second ontology 20 to move in a second direction, and then drive institute
It states camera 231 to be retracted in shell 22, and then may be implemented after applying pressure to camera 23, mobile terminal 200 can be automatic
It controls camera 231 and retracts effect in shell 22, i.e., the triggering command issued in addition to key or touch control operation can be with
In response to ambient pressure triggering and control camera 231 and be retracted in shell 22, enrich close camera 231 approach, mention
The high experience of user, and can play a protective role to driving assembly 232.
However, the first inductive signal and the second inductive signal change, be not necessarily camera 231 receive pressed by external force and
Caused by the movement for leading to the second ontology 20, it is also possible to which there are the interference of external magnetic field, therefore, when camera 231 is in
When the first inductive signal and the second inductive signal that extended position and Hall sensor 50 export change, also to judge whether
There are the interference of external magnetic field, judge by accident in order to avoid bringing and then influence user experience.For example, when camera 231 is used in user
When taking pictures, at this point, the first inductive signal of the output of Hall sensor 50 and the second inductive signal change if detecting, and control
Camera 231 processed retracts, it will interrupts taking pictures for user, and makes user experience poor.
Therefore, in some embodiments, described to drive in the processor 24 control the driving component 232 work
Second ontology 20 moves in a second direction, and before making the camera 231 retract the shell 22, the processor 22 is also
The third inductive signal that the Hall sensor 50 is issued when the camera 231 is in extended position is obtained, and is calculated
Difference between the third inductive signal and steady-state signal;The processor 24 also judges whether the absolute value of the difference is big
In the baseline threshold;When the absolute value of the difference is not more than the baseline threshold, the processor 24 controls the drive
The dynamic work of component 232 makes the camera 231 retract the shell to drive second ontology 20 to move in a second direction
Body 22.When the absolute value of the difference is greater than the baseline threshold, the processor 24 controls the mobile terminal 200 and issues
Prompt information, to remind user far from external magnets.
The specific of the trigger action for receiving user's input how is determined to the processor 24 of mobile terminal 200 below
Situation illustrates.
A kind of situation is as shown in figure 13, this kind of situation is illustrated so that the mobile terminal 200 is mobile phone as an example,
In the case that the mobile terminal 200 shown in the present embodiment is equipped with the camera applications of corresponding photographic device 23, mobile terminal 200
Interface can show the first icon 202 of camera applications.The camera applications include that can apply the application of photographic device 23
Software, such as wechat, QQ etc..The processor 24 of mobile terminal 200 is received in the first icon 202 for detecting camera applications
When the click event of user's input, processor 24 controls mobile terminal 200 and enters shooting interface.Processor 24 controls actuator
2321 drive screw rods 2323 to rotate, so that camera 231 stretches out the default camera site of the arrival of shell 22 from opening 221 and is in and stretches
Out position.
A kind of situation is as shown in figure 14, this kind of situation is illustrated so that the mobile terminal 200 is mobile phone as an example,
Mobile terminal 200 includes the first photographic device and the second photographic device 28, wherein first photographic device is that the application is aforementioned
The photographic device 23 that can be stretched out and retract from shell 22 by opening 221, the second photographic device 28 is fixed to be embedded at movement eventually
The back side at end 200 is used as postposition photographic device, and the mobile terminal 200 shown in the present embodiment is equipped with the feelings of camera applications
Under condition, the processor 24 of mobile terminal 200 receives the point of user's input in the first icon 202 for detecting the camera applications
When hitting event (similar with the interface of mobile terminal shown in Figure 13), please refer to Figure 15, processor 24 control mobile terminal 200 into
Enter to shoot interface 29, the shooting interface 29 includes the second icon 291.In present embodiment, second icon 291 is conversion
The application icon of work photographic device, when processor 24 detects that second icon 291 receives the click event of user's input
When, the control of processor 24 switches the photographic device used.Such as the second currently used photographic device 28 of mobile terminal 200 is cut
It is changed to the first photographic device, or the first currently used photographic device of mobile terminal 200 is switched to the second photographic device 28.
For example, it is second camera shooting that processor 24, which controls mobile terminal 200 to enter content shown by shooting interface 29,
Picture acquired in device 28, the i.e. photographic device of 200 work at present of mobile terminal are the second photographic device 28, when processor 24
When detecting that the second icon 291 receives the click event of user's input, the control of processor 24 is closed the second photographic device 28 and is cut
Shift to the work of the first photographic device.For another example processor 24, which controls mobile terminal 200, enters content shown by shooting interface 29
For picture acquired in first photographic device, i.e. the photographic device of 200 work at present of mobile terminal is the first photographic device,
When processor 24 detects that the second icon 291 receives the click event of user's input, the first camera shooting is closed in the control of processor 24
Device is so that the first photographic device is retracted to the shell 22 and switches to the work of the second photographic device 28.
Referring to Figure 13, mobile terminal 200 may be provided with multiple physical buttons 203.In one embodiment, wherein
One physical button 203 is the start key of photographic device 23.Processor 24 detects user to the trigger event of the start key
When, i.e. control starting or closing photographic device 23.In one embodiment, when the processor 24 of mobile terminal 200 detects use
When family is to the wherein trigger event of an entity key, the control starting photographic device 23 of processor 24.
It should be noted that the position detecting mechanism 100 is applied to be only one in mobile terminal 200 in the application
A to apply example, the position detecting mechanism 100 obviously can also be applied in other structures (for example, gastroscope probe), not
It is limited in mobile terminal 200.
Figure 16 is please referred to, is the flow chart of the method for detecting position in one embodiment of the application.The position detection side
Method is applied in mobile terminal 200 shown in Fig. 3.The method for detecting position includes the following steps:
Step S1601, when receiving the trigger action of user's input, control the driving component 232 drives the branch
Frame is mobile towards preset direction.
Wherein, preset direction includes first direction or second direction;The trigger action of user's input includes for opening
Move the trigger action of the camera 231 or the trigger action for closing the camera 231.For example, when receiving user
When the trigger action of the unlatching camera 231 of input, the control work of the driving component 232 is to drive the bracket towards first
Direction is mobile, to drive the camera 231 to stretch out the shell 22;Alternatively, inputting closing camera 231 when receiving user
Trigger action when, the work of control the driving component 232 is to drive the bracket towards opposite to the first direction the
Two directions are mobile, to drive the camera 231 to retract the shell 22.
Step S1602 obtains the first inductive signal caused by the Hall sensor 50 and the second inductive signal.
Wherein, first inductive signal is that the first working face a of the Hall sensor 50 senses first magnet
Magnetic field caused by inductive signal;Second inductive signal senses institute for the second working face b of the Hall sensor 50
State inductive signal caused by the magnetic field of the first magnet.
Step S1603 determines the position of the camera 231 according to acquired the first inductive signal and the second inductive signal
Set state.Wherein, the location status of the camera 231 includes extended position and retracted position.
Method for detecting position in the embodiment of the present application, due to being believed according to the first acquired inductive signal and the second induction
Number determine that the location status of the camera 231, i.e., the location status of the described camera 231 are jointly true by two inductive signals
It is fixed, and then improve the detection accuracy to 231 location status of camera.
Figure 17 is please referred to, Figure 17 is the sub-process figure of step S1603 in Figure 16.In some embodiments, step S1603
Specifically comprise the following steps:
Step S16031, judges whether first inductive signal and second inductive signal persistently change.If
It is to then follow the steps S11039;If it is not, thening follow the steps S11032.
Step S16032 obtains third inductive signal caused by the Hall sensor, and calculates described acquired
Difference between third inductive signal and steady-state signal.
Wherein, the third inductive signal is that the third working face c of the Hall sensor 50 senses first magnet
Inductive signal caused by 30 magnetic field;The steady-state signal is the mobile terminal 200 in the environment that external magnetic field is not present
Under, inductive signal caused by the third working face c of the Hall sensor 50.
Step S16033, judges whether the absolute value of the difference is greater than baseline threshold.If so, thening follow the steps
S16034;If it is not, thening follow the steps S16038.
Step S16034 calculates separately the difference and second induction of first inductive signal and the first reference signal
The difference of signal and the second reference signal.
Wherein, first reference signal and second reference signal are respectively to stretch described in the camera 231 is in
When out position, inductive signal caused by the first working face a and the second working face b of the Hall sensor 50;Alternatively, described
When first reference signal and second reference signal are respectively that the camera 231 is in the retracted position, the Hall
Inductive signal caused by the first working face a and the second working face b of sensor 50.
Step S16035, judges whether the absolute value of the difference is less than preset threshold;If so, thening follow the steps
S16036;If it is not, thening follow the steps S16037.
Step S16036 determines that the camera 231 is in the extended position or the retracted position.
Step S16037 determines that the camera 231 is not in the extended position or the retracted position, then secondary control
The driving component processed drives the bracket to move along preset direction.
Step S16038 controls the mobile terminal 200 and issues prompt information.
Step S16039 determines that the camera 231 is in the stretching process or the retraction process.
Figure 18 is please referred to, Figure 18 is the flow chart of the method for detecting position in another embodiment of the application.In some implementations
In mode, the trigger action of user's input includes the trigger action for starting the camera;The first benchmark letter
Number include first stretch out reference signal, and second reference signal include second stretch out reference signal;The preset threshold packet
Include the first preset threshold.Wherein, the first stretching reference signal and the second stretching reference signal are respectively the camera shooting
First 231 when being in the extended position, the first working face a and the second working face b of the Hall sensor 50 respectively produced by
Inductive signal.The method for detecting position includes the following steps:
Step S1801 controls institute when receiving the trigger action for being used to start the camera 231 of user's input
Stating driving assembly 232 drives the bracket to move along first direction.
Step S1802 obtains the first inductive signal caused by the Hall sensor 50 and the second inductive signal.
Step S1803, judges whether first inductive signal and second inductive signal persistently change.If so,
Execute step S1811;If it is not, thening follow the steps S1804.
Step S1804 obtains third inductive signal caused by the Hall sensor, and calculates described acquired the
Difference between three inductive signals and steady-state signal.
Wherein, the third inductive signal is that the third working face c of the Hall sensor 50 senses first magnet
Inductive signal caused by 30 magnetic field;The steady-state signal is the mobile terminal 200 in the environment that external magnetic field is not present
Under, inductive signal caused by the third working face c of the Hall sensor 50.
Step S1805, judges whether the absolute value of the difference is greater than baseline threshold.If so, thening follow the steps S1809;
If it is not, thening follow the steps S1806.
Step S1806 calculates separately the first inductive signal and first and stretches out the difference and the second inductive signal of reference signal
The difference for stretching out reference signal with second.
Step S1807, judges whether the absolute value of the difference is less than first preset threshold.If so, executing step
Rapid S1808;If it is not, thening follow the steps S1809.
Step S1808 determines that camera is in extended position, and records the number successfully stretched out.
Wherein, in some embodiments, the step of recording the number successfully stretched out can be omitted.
Whether step S1809, control bracket continuation are moved along the first direction, and judge camera 231 in described
Extended position;When the camera 231 is still not in the extended position, 232 driving arm of driving assembly is controlled along second
Direction is mobile, to drive the camera 231 to be in retracted position.
Step S1810, control mobile terminal 200 issue prompt information.
Step S1811 determines that the camera 231 is in the stretching process.
Figure 19 is please referred to, Figure 19 is the flow chart of the method for detecting position in another embodiment of the application.In some implementations
In mode, the trigger action of user's input includes the trigger action for closing the camera;The first benchmark letter
Number include first retract reference signal, and second reference signal include second retract reference signal;The preset threshold packet
Include the second preset threshold.Wherein, the first retraction reference signal and the second retraction reference signal are respectively the camera shooting
First 231 when being in the retracted position, the first working face a and the second working face b of the Hall sensor 50 respectively produced by
Inductive signal.The method for detecting position includes the following steps:
Step S1901 controls institute when receiving the trigger action for being used to close the camera 231 of user's input
Stating driving assembly 232 drives the bracket to move in a second direction.
Step S1902 obtains the first inductive signal caused by the Hall sensor 50 and the second inductive signal.
Step S1903, judges whether first inductive signal and second inductive signal persistently change.If so,
Execute step S1911;If it is not, thening follow the steps S1904.
Step S1904 obtains third inductive signal caused by the Hall sensor, and calculates described acquired the
Difference between three inductive signals and steady-state signal.
Wherein, the third inductive signal is that the third working face c of the Hall sensor 50 senses first magnet
Inductive signal caused by 30 magnetic field;The steady-state signal is the mobile terminal 200 in the environment that external magnetic field is not present
Under, inductive signal caused by the third working face c of the Hall sensor 50.
Step S1905, judges whether the absolute value of the difference is greater than baseline threshold.If so, thening follow the steps S1909;
If it is not, thening follow the steps S1906.
Step S1906 calculates separately the first inductive signal and first and retracts the difference and the second inductive signal of reference signal
The difference for retracting reference signal with second.
Step S1907, judges whether the absolute value of the difference is less than second preset threshold.If so, executing step
Rapid S1908;If it is not, thening follow the steps S1909.
Step S1908 determines that camera 231 is in retracted position, and records the number successfully retracted.
Wherein, in some embodiments, the step of recording the number successfully retracted can be omitted.
Whether step S1909, control bracket continuation are moved along the second direction, and judge camera 231 in described
Retracted position;When the camera 231 is still not in the retracted position, control driving assembly 232 stops working.
Step S1910, control mobile terminal 200 issue prompt information.
Step S1911 determines that the camera 231 is in the retraction process.
Figure 20 is please referred to, Figure 20 is the application again with the flow chart of the method for detecting position in embodiment.In some implementations
In mode, the method for detecting position includes the following steps.
Step S2001 obtains the Hall sensor 50 and is produced when the camera 231 is in the extended position
Raw the first inductive signal and the second inductive signal.
Step S2002, judges whether first inductive signal and the second inductive signal change.If so, executing
Step S2003;If it is not, then continuing to execute step S2002.
Step S2003 judges whether first inductive signal and the respective variable quantity of the second inductive signal are big
In third predetermined threshold value.If so, thening follow the steps S2004;If it is not, then continuing to execute step S2003.
Step S2004 obtains third inductive signal caused by the Hall sensor, and calculates described acquired the
Difference between three inductive signals and steady-state signal.
Wherein, the third inductive signal is that the third working face c of the Hall sensor 50 senses first magnet
Inductive signal caused by 30 magnetic field;The steady-state signal is the mobile terminal 200 in the environment that external magnetic field is not present
Under, inductive signal caused by the third working face c of the Hall sensor 50.
Step S2005, judges whether the absolute value of the difference is greater than baseline threshold.If so, thening follow the steps S2007;
If it is not, thening follow the steps S2006.
Step S2006, control the driving component 232 drives the bracket to move in a second direction, so that described take the photograph
As head 231 is in the retracted position.
Step S2007 controls the mobile terminal 200 and issues prompt information.
It should be noted that for simple description, therefore, it is stated as a systems for each embodiment of the method above-mentioned
The combination of actions of column, but those skilled in the art should understand that, the application is not limited by the described action sequence, because
For according to the application, certain some step be can be performed in other orders or simultaneously.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in some embodiment
Part, reference can be made to the related descriptions of other embodiments.
Step in the embodiment of the present application method can be sequentially adjusted, merged and deleted according to actual needs.
Method for detecting position provided by the present application can be implemented in hardware, firmware, or can be used as and can store
Such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory,
Abbreviation RAM), floppy disk, hard disk or magneto-optic disk etc. software or computer code in computer readable storage mediums, or can be with
Local is downloaded and stored in long-range recording medium or non-instantaneous machine readable media, through network as original storage
Computer code in recording medium, so that method described herein can use general purpose computer or special processor or all
As specific integrated circuit (ASIC) or field programmable gate array (FPGA) etc programmable or specialized hardware in be stored in
Software in recording medium is presented.Such as this field it will be appreciated that, computer, processor, microprocessor, controller or can compile
Journey hardware includes memory assembly, for example, RAM, ROM, flash memory etc., when the implementation of computer, processor or hardware is described herein
Processing method and when accessing and execute software or computer code, memory assembly can store or receive software or computer generation
Code.In addition, when general purpose computer accesses the code for implementing processing shown here, the execution of code is by general purpose computer
Be converted to the special purpose computer for executing processing shown here.
Wherein, the computer readable storage medium can be solid-state memory, storage card, optical disc etc..The computer can
Storage medium is read to be stored with program instruction and hold after calling for the mobile terminal of computer, mobile phone, tablet computer or the application
Method for detecting position shown in row Figure 16-20.
It is the embodiment of the embodiment of the present application above, it is noted that those skilled in the art are come
It says, under the premise of not departing from the embodiment of the present application principle, several improvements and modifications can also be made, these improvements and modifications
It is considered as the protection scope of the application.
Claims (19)
1. a kind of position detecting mechanism characterized by comprising
The first noumenon;
Second ontology is arranged with the first noumenon interval and can move relative to the first noumenon;
First magnet is set on second ontology;And
Hall sensor is set on the first noumenon comprising the first working face extended in different directions respectively and
Two working faces.
2. position detecting mechanism as described in claim 1, which is characterized in that first working face and second ontology
Moving direction is substantially vertical;Second working face and first working face are substantially vertical, and first working face and institute
It states the second working face and is both substantially perpendicular to the surface that the first noumenon is provided with the Hall sensor.
3. position detecting mechanism as claimed in claim 1 or 2, which is characterized in that the Hall sensor further include with it is described
The third working face that the extending direction of first working face and second working face is all different.
4. position detecting mechanism as claimed in claim 3, which is characterized in that the third working face respectively with first work
Make face and second working face is substantially vertical.
5. position detecting mechanism as described in claim 1, which is characterized in that the position detecting mechanism further includes the second magnetic
Body;Second magnet and first magnet are arranged at intervals on second ontology.
6. position detecting mechanism as claimed in claim 5, which is characterized in that the central point of first magnet and described second
The line of the central point of magnet and second ontology are lain substantially parallel to the direction of movement.
7. position detecting mechanism as claimed in claim 6, which is characterized in that the north-south axis of first magnet and described
The north-south axis of second magnet is lain substantially parallel to the direction of movement with second ontology respectively.
8. position detecting mechanism as claimed in claim 7, which is characterized in that the phase of first magnet and second magnet
Mutually close one end polarity is identical.
9. a kind of mobile terminal, including display screen, shell and photographic device;The display screen is installed on the shell;It is described
Shell is equipped with opening, and is formed with the accommodating chamber of the open communication to accommodate the photographic device;It is characterized in that, described
Mobile terminal further includes the position detecting mechanism being set in the accommodating chamber;The position detecting mechanism includes circuit board, branch
Frame, the first magnet and Hall sensor;The photographic device includes camera and driving assembly, and the camera is set to institute
It states on bracket, the driving component is connected with the bracket, for driving the bracket mobile to drive the camera to stretch
Out or retract the shell;The Hall sensor is set on the circuit board, and the Hall sensor includes difference
The first working face and the second working face extended in different directions.
10. mobile terminal as claimed in claim 9, which is characterized in that the mobile side of first working face and the bracket
To substantially vertical;Second working face and first working face are substantially vertical, and second working face and described first
Working face is both substantially perpendicular to surface of the circuit board towards the display screen.
11. the mobile terminal as described in claim 9 or 10, which is characterized in that the Hall sensor further includes and described
The third working face that the extending direction of one working face and second working face is all different.
12. mobile terminal as claimed in claim 11, which is characterized in that the third working face is roughly parallel to the circuit
Plate face is to the surface of the display screen.
13. mobile terminal as claimed in claim 12, which is characterized in that the position detecting mechanism further includes the second magnet;
Second magnet and first magnet are arranged at intervals on the bracket.
14. mobile terminal as claimed in claim 13, which is characterized in that the central point of first magnet and second magnetic
The line of the central point of body and second ontology are lain substantially parallel to the direction of movement.
15. mobile terminal as claimed in claim 14, which is characterized in that the north-south axis of first magnet and described
The north-south axis of two magnets is lain substantially parallel to the direction of movement with second ontology respectively.
16. mobile terminal as claimed in claim 15, which is characterized in that first magnet and second magnet it is mutual
Close one end polarity is identical.
17. mobile terminal as claimed in claim 9, which is characterized in that the driving component includes actuator, adapter and silk
Bar;One end of adapter is fixedly connected with the bracket, and the other end and the screw rod are rotatablely connected;The screw rod also with it is described
Actuator rotation connection;The actuator can drive the screw rod to rotate, so that the adapter drives the support motion,
To make the camera that the shell is stretched out or retracted from the opening.
18. mobile terminal as claimed in claim 9, which is characterized in that the mobile terminal further includes and the driving component
With the processor of Hall sensor electrical connection;When receiving the trigger action of user's input, the processor controls institute
Stating driving assembly drives the bracket mobile, and the processor also obtains described in the first working face sensing of the Hall sensor
Second working face of the first inductive signal and the Hall sensor caused by the magnetic field of the first magnet senses first magnetic
Second inductive signal caused by the magnetic field of body, and according to the first acquired inductive signal and the determination of the second inductive signal
The location status of camera.
19. mobile terminal as claimed in claim 11, which is characterized in that the mobile terminal further includes and the driving component
With the processor of Hall sensor electrical connection;The processor also obtains the third working face sensing of the Hall sensor
Third inductive signal caused by the magnetic field of first magnet, and the movement is determined according to acquired third inductive signal
Terminal is interfered with the presence or absence of external magnetic field.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201921767393.3U CN211378161U (en) | 2019-03-29 | 2019-03-29 | Mobile terminal |
CN201920426552.7U CN209659486U (en) | 2019-03-29 | 2019-03-29 | Position detecting mechanism and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201920426552.7U CN209659486U (en) | 2019-03-29 | 2019-03-29 | Position detecting mechanism and mobile terminal |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201921767393.3U Division CN211378161U (en) | 2019-03-29 | 2019-03-29 | Mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN209659486U true CN209659486U (en) | 2019-11-19 |
Family
ID=68528524
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201921767393.3U Active CN211378161U (en) | 2019-03-29 | 2019-03-29 | Mobile terminal |
CN201920426552.7U Active CN209659486U (en) | 2019-03-29 | 2019-03-29 | Position detecting mechanism and mobile terminal |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201921767393.3U Active CN211378161U (en) | 2019-03-29 | 2019-03-29 | Mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN211378161U (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109951702A (en) * | 2019-03-29 | 2019-06-28 | 华为技术有限公司 | Position detecting mechanism, mobile terminal and method for detecting position |
CN112491432A (en) * | 2020-11-09 | 2021-03-12 | 维沃移动通信有限公司 | Electronic equipment, plug detection method and plug detection device |
WO2021127921A1 (en) * | 2019-12-23 | 2021-07-01 | 诚瑞光学(常州)股份有限公司 | Camera device and electrode apparatus |
CN113242373A (en) * | 2021-06-03 | 2021-08-10 | 维沃移动通信有限公司 | Camera module and electronic equipment |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112399059B (en) * | 2020-11-17 | 2022-03-11 | Oppo广东移动通信有限公司 | Elevating system, module and mobile terminal make a video recording |
CN113114813A (en) * | 2021-04-12 | 2021-07-13 | 维沃移动通信有限公司 | Electronic device, control method, and readable storage medium |
-
2019
- 2019-03-29 CN CN201921767393.3U patent/CN211378161U/en active Active
- 2019-03-29 CN CN201920426552.7U patent/CN209659486U/en active Active
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109951702A (en) * | 2019-03-29 | 2019-06-28 | 华为技术有限公司 | Position detecting mechanism, mobile terminal and method for detecting position |
US11877047B2 (en) | 2019-03-29 | 2024-01-16 | Honor Device Co., Ltd. | Electronic device and method for determining a position state of a camera |
CN109951702B (en) * | 2019-03-29 | 2024-04-05 | 荣耀终端有限公司 | Position detection mechanism, mobile terminal and position detection method |
WO2021127921A1 (en) * | 2019-12-23 | 2021-07-01 | 诚瑞光学(常州)股份有限公司 | Camera device and electrode apparatus |
CN112491432A (en) * | 2020-11-09 | 2021-03-12 | 维沃移动通信有限公司 | Electronic equipment, plug detection method and plug detection device |
CN113242373A (en) * | 2021-06-03 | 2021-08-10 | 维沃移动通信有限公司 | Camera module and electronic equipment |
CN113242373B (en) * | 2021-06-03 | 2023-06-27 | 维沃移动通信有限公司 | Camera module and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN211378161U (en) | 2020-08-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109951702A (en) | Position detecting mechanism, mobile terminal and method for detecting position | |
CN209659486U (en) | Position detecting mechanism and mobile terminal | |
US11182066B2 (en) | Electronic device using auxiliary input device and operating method thereof | |
CN110113455A (en) | Position detecting mechanism, mobile terminal and method for detecting position | |
EP2606411B1 (en) | Magnetic sensing user interface method, device and computer-readable medium | |
US7911454B2 (en) | Information processing apparatus, position detecting apparatus and sensing part for performing a detection operation | |
KR20090046881A (en) | Three-dimensional touch pad input device | |
US20140327659A1 (en) | Electronic Apparatus | |
Abdelnasser et al. | Magboard: Magnetic-based ubiquitous homomorphic off-the-shelf keyboard | |
US10024689B2 (en) | Using magnets to detect a state of a cover | |
CN107065035B (en) | A kind of geomagnetic sensor calibrating installation, method and mobile terminal | |
US11199916B2 (en) | Operation support device | |
US9506967B2 (en) | Multi-dimensional electrodes for capacitive sensing | |
JPWO2010047075A1 (en) | Apparatus and method for detecting state in portable device | |
US11320947B2 (en) | Control and processing unit for a touch-sensitive screen, a system therewith and a method for use | |
JP2005011233A (en) | Coordinate input control method | |
US20080018622A1 (en) | Information inputting device and inputting method therefor | |
KR102578378B1 (en) | Electronic device for supporting finger pinch interaction using retrun loss of radio-frequency signal, operating method thereof | |
RU2786017C1 (en) | Positioning mechanism, mobile terminal and method for positioning | |
US11921954B2 (en) | Electronic apparatus, imaging apparatus, operation method of electronic apparatus, and operation method of imaging apparatus | |
JP2003216319A (en) | Coordinate inputting device for inputting coordinate on arbitrary two-dimensional plane by three-dimensional position detection | |
CN116045798A (en) | Angle detection device, electronic equipment and angle detection method | |
JPH0322016A (en) | Mouse input device | |
CN117706477A (en) | Position determining method, device and equipment | |
CN116233287A (en) | State detection device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210429 Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Device Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |
|
TR01 | Transfer of patent right |