Degree of tilt induction mouse control device
Technical field
The utility model relates to computer realm, specifically a kind of mouse intelligence controlling device of mobile intelligent terminal.
Technical background
Present various mobile intelligent terminal, as palm PC PDA, be applied to the robot calculator field more and more widely, the input of information generally is the method that relies on button or touch-screen, and easily mouse input method owing to the requirement that does not meet the hand-held device portability can not get widespread use.If can be under the prerequisite that does not influence the mobile intelligent terminal portability, realize mouse Based Intelligent Control function, strengthen its ease for use, be undoubtedly that vast mobile intelligent terminal user dreams of.Proposition of the present utility model can make this imagination be achieved.
Summary of the invention
The purpose of this utility model is to propose a kind ofly built-in balance induction installation to be replaced general external tumbling-type mouse, realization mouse control function under the prerequisite that does not influence the mobile intelligent terminal portability.
The utility model is mainly formed (as Fig. 1,2) by sensor chip 1 and microprocessor 2, the X that sensor chip 1 produces, the induction signal X of the sense of equilibrium of Y direction
OUT(the 5th pin) and Y
OUT(the 4th pin) is sent to timer/timer port of microprocessor μ P2, by the induction signal X of 2 pairs of sense of equilibriums of microprocessor
OUTAnd Y
OUTDecode, determine X, the acceleration on the Y both direction is controlled direction and the speed that screen mouse moves with this, thereby reaches the purpose of mouse Based Intelligent Control.ADXL202E is the two dimension acceleration sensor chip, and it can be provided at X, on the Y direction with the digital signal of the proportional working cycle of acceleration (being pulse width and the ratio in cycle) as output.A μ P can be directly imported in this working cycle output, working cycle is counted and calculated respectively X, the acceleration on the Y direction by μ P.X, the working cycle of typical case's output is shown in curve map a on the Y direction.
Wherein: the width that is in " on " state in the T1-circulation.
The width of T2-global cycle.Variation range: by 0.5ms to 10ms.
The time of working cycle-be in " on " state (T1) accounts for the ratio of global cycle (T2).
The pulse width of pulse width-be in " on " state.
Acceleration formula:
Acceleration (g)=(T1/T2-50%)/(12.5%)
Here, 0g represents 50% working cycle.Zoom factor: 12.5% working cycle/g
At X, on the Y both direction, output circuit can feed timer/timer port of a μ P to analog signal conversion for using working cycle modulated digital signal, this digital signal, and it is counted and decodes.Timer/timer is by measuring T1, the length of T2 signal and by above-mentioned formula: acceleration (g)=(T1/T2-50%)/(12.5%) calculates acceleration.Coding/decoding method has a lot, and the method that present embodiment adopts is (shown in curve map b), and timer begins counting from the rising edge (Ta=0) of X-axis, and record negative edge (Tb), timer stop timing when X-axis rising edge (Tc) arrival next time.T1=Tb-Ta,T2=Tc-Ta。For Y-axis output, do to handle equally (Td, Te, Tf).
The mouse intelligence controlling device that the utility model proposes is with the input vector of gravity as acceleration of gravity balance induction installation (sensor chip), by (curing) computed in software, thus the locus of mouse on definite mobile intelligent terminal control panel.When the control panel of mobile intelligent terminal was parallel to the ground, acceleration transducer was the most responsive to degree of tilt.In case during the control panel run-off the straight of mobile intelligent terminal, the mouse on the control panel will roll under the effect of acceleration of gravity, the moving direction and the speed of the direction that tilts by control panel and the big or small mouse beacon of degree of tilt.When mouse enters certain selection area, can do short stay, and after the user presses ACK button, carry out " affirmation ".Also the speed that can move by the software setting mouse, function such as stop.
Description of drawings
Accompanying drawing 1 is the utility model hardware system block diagram.
Accompanying drawing 2 is embodiment A DXL202E chip pin configuration instruction figure.
Wherein: the ST-test; T2-connects R
SET, by R
SETT2 is set; The COM-common port; Y
OUTThe output of-Y passage working cycle; X
OUTThe output of-X passage working cycle; Y
FILT-Y channel filtering pin; X
FILT-X passage filtering pin; V
DD-3V is to 5.25V.
Accompanying drawing 3 is ADXL202E chip circuit figure.
Accompanying drawing 4 is the software for calculation process flow diagram.
Accompanying drawing 5 is X, the working cycle curve map of typical case's output on the Y direction.
Accompanying drawing 6 is the decoding process of ADXL202E chip.
Embodiment
Below by specific embodiment the utility model is described further.
The utility model adopts the ADXL202E chip of ANALOG company as sensor chip 1.This chip both can be measured dynamic acceleration, can measure static acceleration again.Measurement range: ± 2g.The ADXL202E built-in chip type in mobile intelligent terminal, and is connected with the microprocessor μ P of mobile intelligent terminal, and the ADXL202E chip circuit as shown in Figure 3.The connection situation of eight pins of chip is: V
DDMeet 3V to the 5.25V power supply; V
DDAnd connect capacitor C between the COM
DCPlay the effect of uncoupling, C
DCRecommendation 0.1 μ F; X
FILT, Y
FILTConnect capacitor C respectively
X, C
Y, and by C
X, C
YValue the bandwidth of low-pass filter is set; T2 connecting resistance R
SETX
OUTAnd Y
OUTBe respectively X, the output on the Y direction, timer/timer port of a μ P of feeding, μ P calculates X respectively by software, the acceleration on the Y direction; ST is a test lead.
The present embodiment parameter is provided with: C
DC: recommendation 0.1 μ F; T2:X, the Y direction is used the width of identical global cycle.The T2 computing formula is as follows, by different RSET values is set T2 is set.
C
X, C
Y: by C
X, C
YThe bandwidth of low-pass filter is set.
R
FILT: representative value 32k Ω.
The software for calculation workflow:
The groundwork flow process of software as shown in Figure 4.The output X of CPU read transducer chip ADXL202E at first
OUTAnd Y
OUTCalculate X, the acceleration of Y both direction and mouse be at X, the new coordinate of Y direction, and the new coordinate of mouse and former coordinate compared, if do not have to change then continue the output of read transducer chip ADXL202E, if change, then on screen, show the reposition of mouse, carry out " affirmation " up to the user, enter respective handling, otherwise CPU continues the output of read transducer chip ADXL202E.
The beneficial effects of the utility model and advantage are that the mouse intelligence controlling device of proposition is to add as gravity with gravity An input vector of velocity balance induction installation (sensor chip) calculates by (curing) software, thereby determines The locus of mouse on the mobile intelligent terminal control panel. Therefore have characteristics simple in structure, that operating reliability is strong, It is the desirable mobile intelligent terminal of vast computer user.