In this project we are going to make a simple hand gesture control device using Arduino Leonardo and some IR sensors. We can implement any control of our PC or mobile phone using just the movement of our hands. What I made here only scratches the surface on the endless possibilities of gesture control.Concept
We are using Arduino keyboard library to convert the inputs from IR obstacle sensor to key strokes for controlling the car in NFS game,
- When the top right and top left sensors are trigged then it will simulate up arrow key.
- When the down right and down left sensors are trigged then it will simulate down arrow key.
- When the top right and down right sensors are trigged then it will simulate right arrow key.
- When the down left and top left sensors are trigged then it will simulate left arrow key.
Arrange the sensors on the four corners of the Leonardo board as shown in the figure in the video. Connect all the VCC of the IR sensor modules to the 3.3 v or 5v of the Leonardo and connect the ground of all the four sensors to the ground of the Arduino and connect the output pins of sensor to the following Arduino digital pins.
Sensor 1 to digital pin 11
Sensor 2 to digital pin 9
Sensor 3 to digital pin 12
Sensor 4 to digital pin 10