Home > Projects > Battery Projects > Project: Gesture Controlled Mouse (Air Mouse) Using Arduino & Accelerometer

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

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


This project creates a wireless gesture-controlled "Air Mouse" using an Arduino Nano and MPU6050 accelerometer. The transmitter detects hand tilt via I2C and sends data via RF to an Arduino Leonardo receiver, which acts as a USB HID device to move the cursor and simulate clicks on a computer.

Parts used in the Gesture Controlled Mouse:

  • Arduino Nano
  • MPU6050 Accelerometer
  • RF Transmitter Module (ASK433)
  • RF Receiver Module
  • Arduino Leonardo
  • Left Click Switch
  • Right Click Switch
  • 9-volt Battery
  • 15 cm single core wire antenna
2 min read

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.

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

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.

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.

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

If you wish to build the circuit on universal PCB (ZERO PCB) or breadboard, use the design provided below.

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

Quick Solutions to Questions related to Gesture Controlled Mouse:

  • How does the Air Mouse work?
    The mouse works based on hand gesture by measuring the tilt of the hand in X and Y direction using an accelerometer.
  • What communication method connects the transmitter and receiver?
    Data is transferred from the transmitter to the receiver circuit using RF module ASK433.
  • Why is Arduino Leonardo used for the receiver side?
    Arduino Leonardo is used because it supports HID, allowing control of the PC or Laptop mouse and keyboard.
  • How are the SCL and SDA pins connected in the transmitter?
    SCL and SDA pins of the MPU 6050 are connected to A5 and A4 pins of the Arduino Nano respectively.
  • Which pin connects the interrupt pin of the accelerometer?
    The INT pin of the MPU 6050 is connected to the INT0 pin of the Arduino, which is D2.
  • What is used as the antenna for the RF transmitter?
    An antenna consisting of only a 15 cm long single core wire is connected to the ANT pin of the RF transmitter.
  • On which Arduino pins are the click switches connected?
    The Left Click and Right Click switches are connected to D11 and D13 of the Arduino.
  • How is the transmitter circuit powered?
    The whole circuit is powered by a 9-volt battery connected to the Vin pin of the Arduino through a switch.

About The Author

Avatar of Ibrar Ayyub

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
Use Arduino for Projects

Free Arduino projects, circuits, code and tutorials. Pick a board, pick a sensor, build something.

Scroll to Top