[go: up one dir, main page]

CN1327324C - Control method for gradient induction mouse - Google Patents

Control method for gradient induction mouse Download PDF

Info

Publication number
CN1327324C
CN1327324C CNB2004100201647A CN200410020164A CN1327324C CN 1327324 C CN1327324 C CN 1327324C CN B2004100201647 A CNB2004100201647 A CN B2004100201647A CN 200410020164 A CN200410020164 A CN 200410020164A CN 1327324 C CN1327324 C CN 1327324C
Authority
CN
China
Prior art keywords
mouse
microprocessor
sensor chip
acceleration
intelligent terminal
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.)
Expired - Fee Related
Application number
CNB2004100201647A
Other languages
Chinese (zh)
Other versions
CN1598751A (en
Inventor
王金刚
王达心
王铮
李蕊
孙效闻
左国辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin University
Original Assignee
Tianjin University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianjin University filed Critical Tianjin University
Priority to CNB2004100201647A priority Critical patent/CN1327324C/en
Publication of CN1598751A publication Critical patent/CN1598751A/en
Application granted granted Critical
Publication of CN1327324C publication Critical patent/CN1327324C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Position Input By Displaying (AREA)

Abstract

The present invention relates to a method for controlling a gradient induction mouse, which is composed of a sensor chip 1 and a microprocessor 2. X-Y directional balancing induction signals X (OUT) and Y (OUT) generated by the sensor chip are transferred into the end port of a timer / a timing device of the microprocessor UP2, the balancing induction signals X (OUT) and Y (OUT) are decoded by the microprocessor, and the acceleration speed in an X direction and a Y direction can be determined; thereby, the direction and the speed of the mouse movement of a screen can be controlled so that the purpose of the mouse intelligent control can be achieved. The mouse intelligent control method proposed by the present invention uses the gravity as one input vector of a balancing inductor (sensor chip) for the gravity acceleration, and the space position of the mouse on a control panel of the movable intelligent terminal can be determined through the (solidification) software calculation. Thereby, the present invention has the characteristics of simple structure, and strong operational reliability, and is the ideal movable intelligent terminal for most computer users.

Description

倾斜度感应鼠标控制方法Tilt Sensitive Mouse Control Method

技术领域technical field

本发明涉及计算机领域,具体的说是一种移动智能终端的鼠标智能控制方法。The invention relates to the field of computers, in particular to an intelligent mouse control method for a mobile intelligent terminal.

背景技术Background technique

目前各种移动智能终端,如掌上电脑PDA,正在越来越广泛地应用于电子计算机领域,信息的输入一般是依靠按键或触摸屏的方法,而方便的鼠标输入方法却由于不符合掌上装置便携性的要求而得不到广泛应用。如果可以在不影响移动智能终端便携性的前提下,实现鼠标智能控制功能,增强其易用性,无疑是广大移动智能终端使用者梦寐以求的。本发明的提出可以使这一设想得以实现。At present, various mobile intelligent terminals, such as PDAs, are being more and more widely used in the field of electronic computers. The input of information generally relies on buttons or touch screens, but the convenient mouse input method does not meet the portability of handheld devices. requirements and are not widely used. If it is possible to realize the mouse intelligent control function and enhance its ease of use without affecting the portability of the mobile intelligent terminal, it is undoubtedly the dream of the majority of mobile intelligent terminal users. Proposing of the present invention can make this idea come true.

发明内容Contents of the invention

本发明的目的是提出一种将内置的平衡感应装置代替一般外置滚动式鼠标,在不影响移动智能终端便携性的前提下实现鼠标控制功能。The purpose of the present invention is to propose a built-in balance sensing device instead of a general external scrolling mouse to realize the mouse control function without affecting the portability of the mobile smart terminal.

本发明主要由传感器芯片1和微处理器2组成(如图1),传感器芯片1产生的X,Y方向的平衡感应信号XOUT和YOUT传送到微处理器μP2的计时器/定时器端口,由微处理器2对平衡感应信号XOUT和YOUT进行解码,确定出X,Y两个方向上的加速度,以此控制屏幕鼠标移动的方向和速度,从而达到鼠标智能控制的目的。ADXL202E是二维加速度传感器芯片,它能提供在X,Y方向上与加速度成比例的工作循环(即脉冲宽度与周期的比)的数字信号作为输出。该工作循环输出可以直接输入一个μP,由μP对工作循环进行计数并分别计算出X,Y方向上的加速度。X,Y方向上典型输出的工作循环曲线如图5所示。The present invention is mainly made up of sensor chip 1 and microprocessor 2 (as shown in Figure 1), and the X that sensor chip 1 produces, the balance induction signal X OUT of Y direction and Y OUT are sent to the timer/timer port of microprocessor μ P2 , the microprocessor 2 decodes the balance sensing signals X OUT and Y OUT to determine the acceleration in the X and Y directions, so as to control the direction and speed of the mouse movement on the screen, so as to achieve the purpose of intelligent mouse control. ADXL202E is a two-dimensional acceleration sensor chip, which can provide the digital signal of the duty cycle (that is, the ratio of pulse width to period) proportional to the acceleration in the X and Y directions as an output. The output of the working cycle can be directly input into a μP, and the μP counts the working cycle and calculates the acceleration in the X and Y directions respectively. Typical output duty cycle curves in the X and Y directions are shown in Figure 5.

其中:T1-循环中处于“on”状态的宽度。Where: T1 - Width in the "on" state in the loop.

T2-总循环的宽度。变化范围:由0.5ms到10ms。T2 - the width of the total loop. Variation range: from 0.5ms to 10ms.

工作循环-处于“on”状态(T1)的时间占总循环(T2)的比例。Duty Cycle - The time spent in the "on" state (T1) as a proportion of the total cycle (T2).

脉冲宽度-处于“on”状态的脉冲宽度。Pulse Width - The width of the pulse in the "on" state.

加速度计算公式:Acceleration calculation formula:

加速度(g)=(T1/T2-50%)/(12.5%)Acceleration (g) = (T1/T2-50%)/(12.5%)

在这里,0g表示50%工作循环。缩放系数:12.5%工作循环/gHere, 0g means 50% duty cycle. Scaling factor: 12.5% duty cycle/g

在X,Y两个方向上,输出电路把模拟信号转换为用工作循环调制的数字信号,该数字信号可以通入一个μP的计时器/定时器端口,并对其进行计数及解码。计时器/定时器通过测量T1,T2信号的长度并由上述公式:加速度(g)=(T1/T2-50%)/(12.5%)来计算加速度。解码方法有很多,本实施例采用的方法是(如曲线图6所示),计时器从X轴的上升沿(Ta=0)开始计数,记录下降沿(Tb),计时器在下一次X轴上升沿(Tc)到来时停止计时。T1=Tb-Ta,T2=Tc-Ta。对于Y轴输出,作同样处理(Td,Te,Tf)。In the X and Y directions, the output circuit converts the analog signal into a digital signal modulated with a duty cycle, and the digital signal can be passed into a μP timer/timer port, and it is counted and decoded. The timer/timer calculates the acceleration by measuring the length of the T1, T2 signals and by the above formula: acceleration (g) = (T1/T2-50%)/(12.5%). There are many decoding methods, and the method adopted in this embodiment is (as shown in graph 6), the timer starts counting from the rising edge (Ta=0) of the X-axis, records the falling edge (Tb), and the timer starts counting on the next X-axis Stop timing when the rising edge (Tc) arrives. T1=Tb-Ta, T2=Tc-Ta. For Y-axis output, do the same (Td, Te, Tf).

本发明提出的鼠标智能控制方法是以重力作为重力加速度平衡感应装置(传感器芯片)的一个输入矢量,通过(固化)软件计算,从而确定移动智能终端控制面板上鼠标的空间位置。当移动智能终端的控制面板与地面平行时,加速度传感器对倾斜度最敏感。一旦移动智能终端的控制面板发生倾斜时,控制面板上的鼠标就会在重力加速度的作用下发生滚动,通过控制面板倾斜的方向及倾斜度的大小控制鼠标的移动方向和速度。当鼠标进入某选定区域时可以作短暂停留,并在用户按下确认按钮后进行“确认”。也可以通过软件设置鼠标移动的快慢、停止等功能。The mouse intelligent control method proposed by the present invention uses gravity as an input vector of the gravity acceleration balance sensing device (sensor chip), and calculates through (solidified) software to determine the spatial position of the mouse on the control panel of the mobile intelligent terminal. When the control panel of the mobile smart terminal is parallel to the ground, the acceleration sensor is most sensitive to the inclination. Once the control panel of the mobile smart terminal is tilted, the mouse on the control panel will roll under the action of the acceleration of gravity, and the direction and speed of the mouse can be controlled by the tilt direction and the size of the tilt of the control panel. When the mouse enters a selected area, it can stay for a short time, and "confirm" after the user presses the confirm button. You can also set the mouse movement speed, stop and other functions through the software.

附图说明Description of drawings

附图1为本发明硬件系统框图。Accompanying drawing 1 is the hardware system block diagram of the present invention.

附图2为实施例ADXL202E芯片管脚配置说明图。Accompanying drawing 2 is an explanatory diagram of pin configuration of the ADXL202E chip of the embodiment.

其中:ST-测试;T2-连接RSET,由RSET设置T2;COM-公共端;YOUT-Y通道工作循环输出;XOUT-X通道工作循环输出;YFILT-Y通道滤波管脚;XFILT-X通道滤波管脚;VDD-3V到5.25V。Among them: ST-test; T2-connect R SET , T2 is set by R SET ; COM-common terminal; Y OUT -Y channel duty cycle output; X OUT -X channel duty cycle output; Y FILT -Y channel filter pin; XF ILT - X channel filter pin; V DD -3V to 5.25V.

附图3为ADXL202E芯片电路图。Accompanying drawing 3 is ADXL202E chip circuit diagram.

附图4为计算软件流程图。Accompanying drawing 4 is the flow chart of computing software.

附图5为X,Y方向上典型输出的工作循环曲线图。Accompanying drawing 5 is the duty cycle graph of typical output in X, Y direction.

附图6为ADXL202E芯片的解码方式。Accompanying drawing 6 is the decoding method of ADXL202E chip.

具体实施方式Detailed ways

以下通过具体实施例对本发明做进一步的说明。The present invention will be further described below through specific examples.

本发明采用ANALOG公司的ADXL202E芯片作为传感器芯片1。该芯片既可以测量动态加速度,又可以测量静态加速度。测量范围:±2g。将ADXL202E芯片内置于移动智能终端内,并与移动智能终端的微处理器μP进行连接,ADXL202E芯片电路如图3所示。芯片八个管脚的连接情况为:VDD接3V到5.25V电源;VDD和COM之间接电容CDC起到去耦合的作用,CDC推荐值0.1μF;XFILT,YFILT分别接电容CX,CY,并由CX,CY的取值来设置低通滤波器的带宽;T2接电阻RSET;XOUT和YOUT分别为X,Y方向上的输出,通入一个μP的计时器/定时器端口,μP通过软件分别计算出X,Y方向上的加速度;ST为测试端。The present invention adopts the ADXL202E chip of ANALOG Company as the sensor chip 1 . The chip can measure both dynamic acceleration and static acceleration. Measuring range: ±2g. The ADXL202E chip is built into the mobile intelligent terminal and connected with the microprocessor μP of the mobile intelligent terminal. The ADXL202E chip circuit is shown in Figure 3. The connection of the eight pins of the chip is as follows: V DD is connected to a 3V to 5.25V power supply; a capacitor C DC is connected between V DD and COM for decoupling, and the recommended value of C DC is 0.1μF; X FILT and Y FILT are respectively connected to capacitors C X , C Y , and the bandwidth of the low-pass filter is set by the value of C X , C Y ; T2 is connected to the resistor R SET ; X OUT and Y OUT are the outputs in the X and Y directions respectively, and are connected to a μP The timer/timer port, μP calculates the acceleration in the X and Y directions respectively through software; ST is the test terminal.

本实施例参数设置:CDC:推荐值0.1μF;T2:X,Y方向使用相同的总循环的宽度。T2计算公式如下,通过设置不同的RSET值来设置T2。Parameter settings in this embodiment: C DC : a recommended value of 0.1 μF; T2: use the same total cycle width in X and Y directions. The calculation formula of T2 is as follows, and T2 is set by setting different R SET values.

TT 22 == RR SETSET (( ΩΩ )) 125125 MΩMΩ

CX,CY:由CX,CY设置低通滤波器的带宽。C X , C Y : C X , C Y set the bandwidth of the low-pass filter.

RFILT:典型值32kΩ。R FILT : 32kΩ typical.

计算软件工作流程:Calculation software workflow:

软件的主要工作流程如图4所示。首先CPU读传感器芯片ADXL202E的输出XOUT和YOUT,计算X,Y两个方向的加速度及鼠标在X,Y方向的新坐标,并把鼠标的新坐标与原坐标进行比较,如果没有变化则继续读传感器芯片ADXL202E的输出,如果有变化,则在屏幕上显示鼠标的新位置,直到用户进行“确认”,进入相应处理,否则CPU继续读传感器芯片ADXL202E的输出。The main workflow of the software is shown in Figure 4. First, the CPU reads the output X OUT and Y OUT of the sensor chip ADXL202E, calculates the acceleration in the X and Y directions and the new coordinates of the mouse in the X and Y directions, and compares the new coordinates of the mouse with the original coordinates. If there is no change, then Continue to read the output of the sensor chip ADXL202E, if there is a change, display the new position of the mouse on the screen until the user confirms and enter the corresponding process, otherwise the CPU continues to read the output of the sensor chip ADXL202E.

本发明的有益效果及优点在于,提出的鼠标智能控制方法是以重力作为重力加速度平衡感应装置(传感器芯片)的一个输入矢量,通过(固化)软件计算,从而确定移动智能终端控制面板上鼠标的空间位置。该鼠标智能控制方法是以不影响移动智能终端便携性为前提,实现鼠标智能控制功能,增强其易用性。因此具有结构简单、操作可靠性强的特点,是广大计算机使用者理想的移动智能终端。The beneficial effects and advantages of the present invention are that the proposed mouse intelligent control method uses gravity as an input vector of the gravitational acceleration balance sensing device (sensor chip), and calculates by (curing) software to determine the position of the mouse on the control panel of the mobile intelligent terminal. Spatial location. The mouse intelligent control method realizes the mouse intelligent control function and enhances its usability on the premise that the portability of the mobile intelligent terminal is not affected. Therefore, it has the characteristics of simple structure and strong operational reliability, and is an ideal mobile intelligent terminal for computer users.

Claims (1)

1.倾斜度感应鼠标控制方法,用于移动智能终端,其中移动智能终端包括传感器芯片(1)和微处理器(2),其特征在于传感器芯片(1)产生的平衡感应信号传送到微处理器(2)的计时器/定时器端口,由微处理器(2)对平衡感应信号进行解码,确定出X,Y两个方向上的加速度,以此控制屏幕鼠标移动的方向和速度。1. The tilt-sensing mouse control method is used in a mobile intelligent terminal, wherein the mobile intelligent terminal includes a sensor chip (1) and a microprocessor (2), and is characterized in that the balance sensing signal generated by the sensor chip (1) is transmitted to the microprocessor The timer/timer port of the device (2), the balance induction signal is decoded by the microprocessor (2), and the acceleration in the X and Y directions is determined, so as to control the direction and speed of the mouse movement on the screen.
CNB2004100201647A 2004-07-27 2004-07-27 Control method for gradient induction mouse Expired - Fee Related CN1327324C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100201647A CN1327324C (en) 2004-07-27 2004-07-27 Control method for gradient induction mouse

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100201647A CN1327324C (en) 2004-07-27 2004-07-27 Control method for gradient induction mouse

Publications (2)

Publication Number Publication Date
CN1598751A CN1598751A (en) 2005-03-23
CN1327324C true CN1327324C (en) 2007-07-18

Family

ID=34663161

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100201647A Expired - Fee Related CN1327324C (en) 2004-07-27 2004-07-27 Control method for gradient induction mouse

Country Status (1)

Country Link
CN (1) CN1327324C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100399848C (en) * 2005-03-28 2008-07-02 英华达(上海)电子有限公司 Method for realizing acceleration transducer in mobile phone and mobile phone for realizing same
CN100401243C (en) * 2005-12-28 2008-07-09 财团法人工业技术研究院 State sensing mechanism and inertial pointer control device using same
TWI330802B (en) 2006-12-13 2010-09-21 Ind Tech Res Inst Inertial sensing method and system
CN100565436C (en) * 2006-12-25 2009-12-02 财团法人工业技术研究院 3D micro-inertial sensing method
CN101551718B (en) * 2006-12-25 2011-01-05 财团法人工业技术研究院 3D micro-inertia sensing method and system
CN102109913B (en) * 2009-12-29 2012-11-28 金领导科技(深圳)有限公司 Controller pointer positioning method based on composite MEMS sensor and controller

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1063411A (en) * 1996-08-13 1998-03-06 Nippon Telegr & Teleph Corp <Ntt> Portable information processing terminal
JPH10124178A (en) * 1996-10-15 1998-05-15 Olympus Optical Co Ltd Electronic main terminal, method for processing the same, and its medium
CN1484785A (en) * 2001-01-10 2004-03-24 索尼公司 Information processing terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1063411A (en) * 1996-08-13 1998-03-06 Nippon Telegr & Teleph Corp <Ntt> Portable information processing terminal
JPH10124178A (en) * 1996-10-15 1998-05-15 Olympus Optical Co Ltd Electronic main terminal, method for processing the same, and its medium
CN1484785A (en) * 2001-01-10 2004-03-24 索尼公司 Information processing terminal

Also Published As

Publication number Publication date
CN1598751A (en) 2005-03-23

Similar Documents

Publication Publication Date Title
CN101479692B (en) Multipoint touch surface controller
JP5858155B2 (en) Method for automatically switching user interface of portable terminal device, and portable terminal device
CN104781775B (en) Electronic equipment
CN107357411B (en) electronic device
US20130300985A1 (en) Integrated privacy filter
TW200949638A (en) Touch detecting device capable of saving electricity
CN1327324C (en) Control method for gradient induction mouse
US10699665B2 (en) Semiconductor device, portable terminal device, and operation detecting method
US9600177B2 (en) Electronic device with gesture display control and corresponding methods
CN104123081A (en) Electronic device and sleep awakening method thereof
CN101393488A (en) columnar input device
TWI556090B (en) Battery capacity display system of wireless peripheral device
CN107911533A (en) A kind of lower mobile terminal function key implementation method of screen comprehensively
CN104850417B (en) A kind of method and electronic equipment of information processing
CN105759941A (en) System and method for controlling dormancy of mobile terminal and mobile terminal
CN1320430C (en) Gradient induction encrypted method
EP4083751A1 (en) Information processing device, program, and method
CN114489154A (en) Control method, control device, handle and medium
CN204925917U (en) Electronic device
CN209327982U (en) A gesture recognition device based on FDC2214
CN1657974A (en) Acceleration Sensing Earthquake Prediction Device
US9684368B2 (en) Event detection method for waking up a portable electronic device and action sensor using same
CN202693983U (en) Portable projector
CN2724106Y (en) Tilt induction mouse controller
CN1648607A (en) Acceleration sensing energy consumption pedometer device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee