A kind of mobile terminal
Technical field
This application involves mobile terminal function expansion technique field, in particular to a kind of mobile terminal.
Background technique
In the industries such as engineering and building, it is often necessary to test whether wall is vertical.In general, level is being surveyed
When, simple method can be used and be poured water with water pipe, and then two people observe whether two sides in water pipe are same levels, if it is
Same level then indicates that both ends sustained height is horizontal;Or one piece of brick is tied up, to test the verticality of wall;Or with special
Level meter, to get contraposition ready.However, sometimes forget about carry level meter either it is subject to conditions, then can not come in aforementioned manners
Operation is carried out, Operating Ratio is caused.
Summary of the invention
This application provides a kind of mobile terminals, can measure horizontal function by using what is be equipped in mobile terminal,
Convenient for operation, operating personnel can be helped to fulfil assignment in time.
In order to achieve the above object, the embodiment of the present application provides a kind of mobile terminal, comprising:
Display screen;
For acquiring the mobile terminal in the gravity sensor of space internal coordinate information;
It connect with the gravity sensor signal, for by coordinate information real-time display on the display screen
Gyro sensor;
Processing unit for preset reference coordinate information in the coordinate information and the display terminal to compare,
When the coordinate information is consistent with the reference coordinate information, the processing unit issues luminous signal;
According to the luminescent device of the luminous signal emitting linear light source.
It is hard to increase gravity sensor, gyro sensor and luminescent device etc. for mobile terminal in the embodiment of the present application
Part, in house software also set the small routine of testing level, in mobile terminal factory, preset one first with gyro sensor
What a reference coordinate information, i.e. the reference coordinate information indicated is that mobile terminal is in horizontal state.When it is practical when in use,
Gravity sensor can obtain the component of acceleration of gravity of the mobile terminal in space on tri- directions X, Y, Z in real time, utilize weight
Software inside force snesor feeds back information to chip for cell phone, to judge the state of mobile terminal Z-direction in space.Top
Spiral shell instrument sensor according to gravity sensor provide information in real time the actual coordinate by mobile terminal in space by display screen display
It shows and, and calculate the angle message of gyroscope and reference coordinate, processing unit believes actual coordinate information and reference coordinate
Breath compares, when the two is shown as being overlapped on a display screen, then it represents that mobile terminal is in horizontal position in space.This
When, it handles out dress and issues luminous signal, for luminescent device according to obtained luminous signal emitting linear light source, operating personnel can basis
The linear light source carrys out testing level.
Therefore, the mobile terminal in the embodiment of the present application passes through setting gravity sensor, gyro sensor and photophore
Part, and the function of combining mobile terminal internal processes that level meter can be realized can help operating personnel complete in time convenient for operation
At operation.
Preferably, the gravity sensor and the gyro sensor are all set in the mobile terminal shell
On the mainboard in portion.
Preferably, the gravity sensor and the gyro sensor are bonded on the mainboard.
Preferably, the gravity sensor includes gravity block and piezo-electric crystal.
Preferably, the luminescent device is laser or LED light lamp.
Preferably, the luminescent device is set on the side wall of the mobile terminal, and be located at the mobile terminal in
The mainboard in portion is electrically connected.
Preferably, the luminescent device is set on the mainboard inside the mobile terminal, the mobile terminal
Side wall is equipped with aperture so that the light that the luminescent device issues penetrates.
Preferably, the aperture is equipped with water proof and dust proof film away from the side of the luminescent device.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of the mobile terminal in the embodiment of the present application;
Fig. 2 is a kind of structural schematic diagram of the mobile terminal in the embodiment of the present application.
In figure:
1- gravity sensor;2- gyro sensor;3- luminescent device.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Fig. 1 and Fig. 2 is please referred to, the embodiment of the present application provides a kind of mobile terminal, comprising: display screen;It is moved for acquiring
Gravity sensor 1 of the dynamic terminal in space internal coordinate information;It is connect with 1 signal of gravity sensor, for coordinate information to exist
The gyro sensor 2 of real-time display on display screen;For by preset reference coordinate information in coordinate information and display terminal
The processing unit to compare, when coordinate information is consistent with reference coordinate information, processing unit issues luminous signal;According to luminous
The luminescent device 3 of signal emitting linear light source.
Mobile terminal in the embodiment of the present application increases gravity sensor 1, gyro sensor 2 and luminescent device 3 etc.
Hardware, in house software also set the small routine of testing level, pre- first with gyro sensor 2 in mobile terminal factory
If a reference coordinate information, i.e., what the reference coordinate information indicated is that mobile terminal is in horizontal state.Gravity sensor 1
The external force according to suffered by mobile terminal can obtain mobile terminal X, Y, Z tri- in space along the component in three directions in real time
The component of acceleration of gravity on direction feeds back information to chip for cell phone using the software inside gravity sensor 1, with judgement
The state of mobile terminal Z-direction in space out.
Gyro sensor 2 provides actual coordinate of the information in real time by mobile terminal in space according to gravity sensor 1
It is shown by display screen, and calculates the angle message of gyroscope and reference coordinate, processing unit is by actual coordinate information
It compares with reference coordinate information.Operating personnel is according to the feedback of display screen, in conjunction with hand motion, when the two is shown on a display screen
When being shown as being overlapped, then it represents that mobile terminal is in horizontal position in space.At this point, handling out dress issues luminous signal, hair
For optical device 3 according to obtained luminous signal emitting linear light source, operating personnel can be according to the linear light source come testing level.
Therefore, the mobile terminal in the embodiment of the present application by setting gravity sensor 1, gyro sensor 2 and shines
Device 3, and the function of level meter can be realized in conjunction with mobile terminal internal processes, convenient for operation, can help operating personnel and
When fulfil assignment.
Further, gravity sensor 1 and gyro sensor 2 are mountable on the shell of mobile terminal, also mountable
In in the shell of mobile terminal.Alternatively, gravity sensor 1 and gyro sensor 2 are all set in be located at and move
On mainboard inside dynamic terminal shell, the appearance of mobile terminal can be optimized convenient for saving space.
Alternatively, gravity sensor 1 and gyro sensor 2 are bonded on mainboard.
Alternatively, gravity sensor 1 includes gravity block and piezo-electric crystal, and gravity block and piezo-electric crystal are formed
Gravity sensing module, when mobile terminal is in the position of different angle in space, gravity block is acted on piezo-electric crystal
Power is also different.When mobile terminal is not at horizontality, the power that gravity block acts on piezo-electric crystal is then gravity block sheet
Body gravity can judge direction locating for mobile terminal according to the numerical value of the power in the component of some angle;When mobile terminal is in
When horizontality, gravity block act on the power on piezo-electric crystal then with the gravity of gravity block itself.
Alternatively, luminescent device 3 is laser or LED light lamp, it is ensured that the directionality of light,
Guarantee the level for the light that luminescent device 3 issues, while also guaranteeing the brightness of light, convenient for observation.
Alternatively, luminescent device 3 is set on the side wall of mobile terminal, and be located at mobile terminal inside
Mainboard electrical connection, specifically, luminescent device 3 may be disposed at the top of mobile terminal perhaps bottom also or can be set in
The two sides of mobile terminal.
Alternatively, luminescent device 3 is set on the mainboard inside mobile terminal, the side of mobile terminal
Wall is equipped with aperture so that the light that luminescent device 3 issues penetrates, and specifically, side wall can be the top or bottom of mobile terminal
Portion is also possible to the two sides of mobile terminal.
Alternatively, when above-mentioned luminescent device 3 is set on mainboard, luminescent device 3 can be deviated from aperture
Side set up defences water dustproof membrane, to prevent extraneous steam from entering by aperture the inside of mobile terminal, to influence product
Use.
Obviously, those skilled in the art can carry out various modification and variations without departing from this hair to the embodiment of the present invention
Bright spirit and scope.In this way, if these modifications and changes of the present invention belongs to the claims in the present invention and its equivalent technologies
Within the scope of, then the present invention is also intended to include these modifications and variations.