How To Make A Glove Mouse

Hello there! Gesture Mouse – Controlling Computer With a Glove.

This instructable is on making a gesture-controlled mouse in the form of a glove.

The initial idea is to integrate this in FPS (First Person Shooter) games and computer pointer control, but it can also be used in other projects like a remote controlled car, mechanical hand, etc.

Hope you like the project. Leave your thoughts and suggestions in the comment section.

Thank you!

All of the above listed items can be bought by one’s own choice, albeit keep care on buying the glove.

Step 1: Know How the Sensors Work

Step 3: Readying the Glove

Before we do any programing, we’ll need to install Arduino IDE onto our computer along with MPU-6050 operating library.

Download the IDE from here : Software | Arduino

And the MPU-6050.h library from here : ElectronicCats/mpu6050: MPU6050 Arduino Library (github.com)

Install the IDE and open the .ino code file in the editor. Include the .zip file from the GitHub repositery into the code.

Afterwards, now lets understand the working of vital portions of the code.

The code starts off by including the following libraries.

  • Wire.h : This library allows the microcontroller to communicate with I2C devices. Here, I2c device is referred to MPU-6050 module, which communicates with the SCL and SDA pins.
  • I2Cdev.h : This library is used for reading and writing I2C functions.
  • MPU-6050.h : Controller library for MPU-6050 module.
  • Mouse.h : HID Library for mouse functions.
Refer to more articles:  How To Clean Maxiflex Gloves

The Wire.h, I2Cdev.h and Mouse.h generally come pre-installed with the IDE. If not, download and include these libraries from GitHub.

setup() initializes I2C communication, MPU-6050 module connection, HID mouse functionality and serial communication.

loop() executes continuously the whole functionality.

moveMouse() gets rotational values from the gyro sensor and feeds them into the variable assigned.

Then, it converts the output values into pointer displacement values in the form of x and y displacement coordinates.

In the end, it calls the Mouse.move() function, which moves according to the displacement values calculated.

clickMouse() uses values from the flex sensors to detect change in bend and take actions defined in the clickIndex() and clickMiddle() functions. Both functions are assigned to the respective flex sensor.

clickIndex() makes sure of left mouse clicks based on state of the flex sensors. clickMiddle() also works in a similar fashion. The only difference is of mouse button.

After understanding the whole code, now just plug the arduino in, compile the code and upload it.

Open the serial monitor afterwards for viewing the sensor outputs.

Related Posts

How To Keep Working Gloves Organized

Organizing gloves. They can be a bit frustrating to organize… They used to just pileup on top of my tool chest. Which was a wasted of space……

How Big Is Yoenis Cespedes Glove

How Big Is Yoenis Cespedes Glove

Player Profile: Yoenis Cespedes Before I get started, I just want to say sorry for not having posted for the last few days. I was in Boston…

How To Buy Softball Glove

Younger players buying a new mitt should look for a softer mitt that they can squeeze and close. Most young players also should look for lightweight options…

How Much Are Old Baseball Gloves Worth

GUEST: They’ve come from different places over a number of years, but mostly flea markets- this one definitely a flea market- or a garage sale.You may be…

Do Caregivers Wear Gloves When Assisting With Showers

Do Caregivers Wear Gloves When Assisting With Showers

When helping a client take a bath or shower, watch out for muscle strains and sprains from lifting, transferring, and reaching. Precautions must be taken for possible…

How To Keep Golf Glove Dry

Hand washing tops my list when we think of dependable methods of cleaning our cherished golf gloves. It’s a gentle process that goes a long way in…