You Are Here: Home » AVR ATmega Projects » Interfacing(USB - RS232 - I2c -ISP) Projects » USB wireless tilt mouse Using Atmega644

USB wireless tilt mouse Using Atmega644




Introduction

We created a handheld mouse device that measures its tilt and then wirelessly transmits the data to a base unit, which is connected to a PC through a USB cable and can be recognized by certain modern computers as an actual mouse.

The purpose of this project was to explore the possibility of creating a wireless mouse that could be used in any location without having a flat surface to move it on. For this reason, we created a handheld device that uses accelerometers to detect its own orientation USB wireless tilt mouse Using Atmega644 a feature that can be controlled by a user’s arm movements alone. We made the device transmit data wirelessly to a base station so that there would not need to be any wires connecting the handheld device to the computer it controls, which would limit range and comfort when using the mouse from a distance.

 

We later discovered we had an excess of computing power in our base unit, so we added an extra mode of operation by which the base unit could be connected to an analog TV via an RCA cable, and the user could play a game of Minesweeper using the wireless mouse.

top

High Level Design

 

Rationale

The ideal device we had in mind was one that a user could control with simple arm movements without necessarily having to be sitting at the desk or other flat surface where the computer is located. This kind of device could be used for controlling a computer while giving presentations, or while located on the opposite side of a small room without having to relocate oneself toward the computer. We were inspired to combine features of several previous ECE 4760 mouse-related projects.

First, there was an accelerometer-based mouse by Karthikeyan Muthuswamy and Aseem Kohli, who described the idea as “cool” and hypothesized that it may reduce the risk of carpal tunnel syndrome by reducing pressure on the median nerve (see the National Institute of Neurological Disorders and Stroke fact sheet for more information).

Second, there was an easy input head-controlled keyboard and mouse project by Sara Xiangrong Huang, Jesse McMullen, and “Frank” Wai Shing Wong. This project used a wireless transmitter and receiver to relay information from a measurement unit to a base unit connected to a computer. We decided it was a good idea to separate our own project into handheld and base units to improve ease-of-use.

Third, there was a USB magnetic mouse project by Yiyin Ma and Abby Lin. From this project, we were inspired to have the base unit communicate with the computer over a USB cable, because USB ports are a very common feature on modern computers, whereas PS/2 ports are becoming increasingly rare.

The decision for implementing a Minesweeper game on the base unit was a result of an excess of computing power, to be discussed in the hardware design section.

Background Math

Suppose a 1D accelerometer is represented by the rectangle. It can measure acceleration, either positive or negative, along one axis. If the accelerometer is tilted by an angle relative to vertical, then the acceleration it would experience due to the force of gravity is proportional to the sine of that angle. Thus, increasing the angle of tilt up to 90 degrees relative to vertical will increase the magnitude of the measured acceleration. As long as the accelerometer can detect accelerations up to 1g, it can measure the magnitude of tilt experienced by the handheld device in one direction. By placing two accelerometers positioned orthogonally on the handheld device, it is possible to measure the tilt of the device in two directions (corresponding to x and y mouse movements).

USB wireless tilt mouse Using Atmega644 Schemetic

Logical Structure

The high-level logical structure is represented in Figure 3. It shows the flow of information, from when data is first collected by accelerometers, to when it is sent to the computer or TV.

Parts List:

Part No.Part NameQuantityCostSource
ECE 4760 Custom PCB3$12.00ECE 4760 Lab
ATmega644Atmel Microcontroller3$24.00ECE 4760 Lab
6″ Solder Board2$5.00ECE 4760 Lab
RCR-433-RPRadiotronix Wireless Receiver1$4.00ECE 4760 Lab
RCT-433-ASRadiotronix Wireless Transmitter1$4.00ECE 4760 Lab
CC089Velleman USB B Female Single Connector1$0.98Parts Express
USB Type A to Type B Cable1Pre-owned
B/W TV rental1$5.00ECE 4760 Lab
RCJ-6YRight-angle PCB Mount RCA Jack1$0.10All Electronics
VMC-1212′ RCA Plug to RCA Plug, Co-ax Cables1$2.25All Electronics
9V Battery Clip1$1.00ECE 4760 Lab
9V Battery1$3.00Kmart
MMA2260DFreescale Semiconductor Single Axis Accelerometer2DonatedECE 4760 Lab
20″x30″ Foamboard1$2.99Michaels
Resistors, Capacitors, Inductors, Zener Diodes, Wires, PCB components, etc.ECE 4760 Lab
Total$64.32

For more detail: USB wireless tilt mouse Using Atmega644

Leave a Comment

You must be logged in to post a comment.

Read previous post:
Automated Rock Band player Using Atmega644

Introduction For our final design project, we built an automated Rock Band player that can beat any Rock Band song...

Close
Scroll to top