Wireless mouse solution based on micro-electromechanical system

Publisher:nu23Latest update time:2012-09-09 Keywords:MEMS Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Where [ ] represents integer; a is the voltage output by the acceleration sensor, V. The maximum sampling rate of the ATmega 16L microcontroller can reach 15,000 times/second, and this article uses 1,000 times/second; that is, sampling once every 1ms, and reporting the relative displacement change to the computer once every 25ms to ensure the accuracy and smoothness of the mouse pointer movement on the screen, then each reported displacement change contains 25 acceleration sampling data. An approximate algorithm can be used to perform a secondary integration of the acceleration signal to obtain a displacement signal.

The purpose of encoding is to encode the displacement changes in the X and Y directions, together with the real-time information of the mouse buttons, in the format required by the standard Microsoft mouse protocol, so that the information finally sent to the host can be correctly recognized by the computer, so that the computer can correctly process the displacement signal sent to it to correctly control the movement of the mouse cursor and other actions. Table 1 shows the three-byte data packet format specified by the standard mouse protocol. The first byte records the information of the left and right buttons and the highest two bits of the mouse X and Y displacement. When the button is pressed, the corresponding position is 1, otherwise, it is set to 0; the second and third bytes record the lower 6 bits of the X and Y displacement data respectively. The displacement value ranges from -127 to +127, and any larger displacement change will automatically overflow.

Table 1 Microsoft standard mouse protocol data packet format

Microsoft Standard Mouse Protocol Packet Format

2 Specific design plan

2.1 Mouse Principle

At the heart of an optical mouse is a low-resolution mini camera called a sensor. A viewing LED illuminates a surface, and the light bounces off the surface and is collected by a lens. Most mouse manufacturers use visible red LEDs, and some also make mice that use infrared LEDs.

As the mouse moves, the sensor continuously photographs the surface and uses digital signal processing to compare the images to determine the distance and direction of movement. The results are sent back to the computer, and the cursor on the screen moves based on these results. Although optical mouse sensors can move over almost any surface, there are some surfaces that mouse sensors cannot navigate, such as mirrors, glass, glossy surfaces, magazines, and holographic surfaces.

According to Figure 1, the mouse can be divided into the following functional parts:

1) Displacement detection unit--X, Y dual-axis acceleration sensor;

2) Key detection unit;

3) Single chip microcomputer (MCU);

4) Bluetooth transmitter chip;

5) Bluetooth transceiver chip - as receiver (RX);

6) Microcontroller with USB interface (USB MCU).

Description of wireless mouse based on accelerometer

Figure 1 Description of wireless mouse based on acceleration sensor

The specific working principle of the mouse is as follows: the single-chip microcomputer in the mouse monitors the movement and button status of the acceleration sensor in real time. When the state of the mouse changes, the single-chip microcomputer reads the button status and promptly obtains the current X/Y coordinate movement position; then the single-chip microcomputer packages the changed data according to the agreed communication protocol and sends it to the receiving end through wireless transceiver technology. The receiving end decodes the data packet that conforms to the mouse USB protocol to the USB port of the PC host through the single-chip microcomputer; the mouse driver in the PC receives the data packet from the port, decodes it and transmits it to the corresponding application software, thereby completing the detection and control process of the mouse.

Keywords:MEMS Reference address:Wireless mouse solution based on micro-electromechanical system

Previous article:Wireless mouse solution based on micro-electromechanical system
Next article:Non-contact air distance measurement method based on ultrasonic sensor

Recommended ReadingLatest update time:2024-11-16 17:46

Audio technology company Soundskrit announces biomimetic directional MEMS microphone
According to foreign media reports, audio technology company Soundskrit announced the launch of the world's first bionic directional MEMS microphone designed for current and future consumer electronic devices: SKR0400. As an excellent solution for traditional microphone arrays, the SKR0400 MEMS microphone uses a new
[Automotive Electronics]
Audio technology company Soundskrit announces biomimetic directional MEMS microphone
Hackers' physical attack and sound wave attack on acceleration sensor!
  When it comes to hacker attacks, most people first think of intrusions at the software and network communication levels. Few people notice that hardware sensors can also be attacked. What is even more unexpected is that the attack path is the ubiquitous "sound waves". However, a recent study by the University of Mic
[sensor]
Hackers' physical attack and sound wave attack on acceleration sensor!
Problems in China's MEMS industry
Although China's MEMS industry faces good development opportunities, it cannot be ignored that compared with foreign MEMS industries, the current development of the domestic MEMS industry has the following problems. Although China's MEMS industry faces good development opportunities
[sensor]
SmartSens Technology and EMS Drive jointly develop chip-level anti-shake technology for CMOS image sensors
SmartSens, a leading CMOS image sensor supplier, today announced that it has signed a cooperation agreement with MEMS Drive, an innovator in the field of MEMS image stabilization. The two parties will conduct a series of R&D cooperation in the field of CMOS image sensor chip-level stabilization technology. In additi
[Security Electronics]
SmartSens Technology and EMS Drive jointly develop chip-level anti-shake technology for CMOS image sensors
The Importance of Ultra-High Signal-to-Noise for MEMS Microphones
The popularity of automatic speech recognition systems and the use of video content to share information and experiences are increasing dramatically. The performance and quality of microphones used to capture sound must be high to ensure a good user experience. Critical factors include noise, distortion, frequency res
[Embedded]
The Importance of Ultra-High Signal-to-Noise for MEMS Microphones
Allegro MicroSystems acquires Voxtel to accelerate ADAS and Lidar integration
Allegro MicroSystems (Allegro), a global leader in sensing technology and power semiconductor solutions, announced the acquisition of Voxtel, Inc. (Voxtel), a privately held company specializing in advanced photonics, 3D imaging, and long-range, eye-safe LiDAR technology. The acquisition combines Voxtel’s expertise in
[Automotive Electronics]
CCC 3.0 Vehicle Keyless Entry System Implementation System Architecture
With the development of various wireless connection technologies and the release of the Car Connectivity Consortium Digital Key Release 3.0 (CCC3.0) specification, the standard for smartphones to become fully digital car keys has been determined. This article will gradually learn the CCC3.0 standard for v
[Embedded]
CCC 3.0 Vehicle Keyless Entry System Implementation System Architecture
Investing 360 million yuan! Bosch Suzhou MEMS sensor test expansion project started
Recently, at the 2021 Work Mobilization Meeting of Suzhou Industrial Park, Bosch announced an investment of 360 million yuan to expand its microelectromechanical systems (MEMS) sensor testing project in Suzhou. Among them, an additional 120 million yuan will be used for laboratory research and development investment
[Automotive Electronics]
Investing 360 million yuan! Bosch Suzhou MEMS sensor test expansion project started
Latest Analog Electronics Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号