Thursday, 16 November 2017

Project: Gesture Controlled Mouse (Air Mouse) Using Arduino & Accelerometer

AIR Mouse is also called gesture-controlled mouse and it works based on hand gesture. In this project an accelerometer is used for measuring the tilt of hand in X and Y direction and moves the cursor according the tilt. In the project two types of circuit are used, one is the transmitter circuit and other is the receiver circuit. Transmitter circuit makes use of MPU6050 series of accelerometer, which is connected to Arduino through I2C communication. The data is transferred to receiver Circuit using RF module, ASK433. Two switches are also used in transmitter circuit to work as Left Click and Right Click. In the receiver side an Arduino Leonardo is used. The purpose of using Arduino Leonardo is that it supports HID (Human Interface Device). HID allows us to control the mouse and Keyboard of our PC or Laptop. Components Circuit In the project two circuits are used, one is the transmitter circuit and other is the receiver Circuit. Transmitter Circuit The transmitter circuit is placed in our hand. In this circuit, Arduino Nano is used which receives the data from accelerometer through I2C communication. MPU6050 is used in the transmitter circuit, which is accelerometer and supports I2C communication. SCL and SDA pins or accelerometer (MPU 6050) are connected to SCL and SDA pin of Arduino Nano, where SCL is A5 and SDA is A4 pins of Arduino. MPU 6050 have an INT pin, which is connected to interrupt (INT0) pin of Arduino that is D2. Now data of accelerometer is transferred to receiver circuit using RF communication. For RF communication RF transmitter is used in transmitter side. Data pin of RF transmitter is connected to D4 pin of Arduino. An antenna is connected to ANT pin of RF transmitter. Antenna is nothing but only a 15 cm long single core wire. Two switches are connected to D11 and D13 of Arduino that are Left Click and Right Click. This whole circuit is powered by 9-volt battery which is connected to Vin pin of Arduino through a switch. If you are good in PCB Etching please use circuit provided below to build the project.   If you wish to build the circuit on universal PCB (ZERO PCB) or breadboard, use the design provided below. Receiver Circuit In the receiver side, two major components used are the Arduino Leonardo and RF Receiver. Two switches are used for Enable/Disable the mouse and on/off the RF communication. In the receiver circuit data pin of RF Receiver is connected to Interrupt pin (INT1) of Arduino, that is D2 pin. A switch is used in the power line of RF Receiver, which is used for ON/OFF of the RF Receiver. Another switch is also connected to D4 pin of Arduino that is used to Enable/Disable the mouse. Arduino Leonardo is connected to PC through standard USB cable. Circuit and PCB schematic are shown below.     Working In the transmitter side an Arduino Nano is used as the controlling unit. The accelerometer is connected to Arduino through I2C communication that measures the gravitational acceleration in X, Y and Z direction, but we need only values in two axis so we are using values of X and Y. Two switches are also connected to Arduino; they are used for Left and Right click. Arduino measures all the values, now we have four values Acceleration in X direction Acceleration in Y direction Status of Right click Status of left click All the values are merged into an integer of four digits, where each digit shows each value. In the receiver side, Arduino receives the data (integer)...
read more

The post Project: Gesture Controlled Mouse (Air Mouse) Using Arduino & Accelerometer appeared first on Electronic Circuits and Diagram-Electronics Projects and Design.

No comments:

Post a Comment

Scientists produce high-power attosecond X-ray pulses at megahertz repetition rates

A research team has achieved a major advance in X-ray science by generating unprecedented high-power attosecond hard X-ray pulses at megaher...