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.

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 Name Quantity Cost Source
ECE 4760 Custom PCB 3 $12.00 ECE 4760 Lab
ATmega644 Atmel Microcontroller 3 $24.00 ECE 4760 Lab
6″ Solder Board 2 $5.00 ECE 4760 Lab
RCR-433-RP Radiotronix Wireless Receiver 1 $4.00 ECE 4760 Lab
RCT-433-AS Radiotronix Wireless Transmitter 1 $4.00 ECE 4760 Lab
CC089 Velleman USB B Female Single Connector 1 $0.98 Parts Express
USB Type A to Type B Cable 1 Pre-owned
B/W TV rental 1 $5.00 ECE 4760 Lab
RCJ-6Y Right-angle PCB Mount RCA Jack 1 $0.10 All Electronics
VMC-12 12′ RCA Plug to RCA Plug, Co-ax Cables 1 $2.25 All Electronics
9V Battery Clip 1 $1.00 ECE 4760 Lab
9V Battery 1 $3.00 Kmart
MMA2260D Freescale Semiconductor Single Axis Accelerometer 2 Donated ECE 4760 Lab
20″x30″ Foamboard 1 $2.99 Michaels
Resistors, Capacitors, Inductors, Zener Diodes, Wires, PCB components, etc. ECE 4760 Lab
Total $64.32

For more detail: USB wireless tilt mouse Using Atmega644


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top