Introduction: Use Gestures to Control YouTube Playback With Arduino
YouTube only allow you to fastforward 5 seconds everytime you click the right button. So I decided to use Arduino and python to make a controller to help me fastforward 20 seconds everytime I wava my hand.
Seeeduino V4.2 [Buy Here](https://www.seeedstudio.com/Seeeduino-V4-2-p-2517....)
Seeed Grove - Human Presence Sensor [Buy Here](https://www.seeedstudio.com/Grove-Human-Presence-S...)
Python [Download Here](https://www.python.org/)
Arduino IDE [Download Here](https://www.arduino.cc/en/Main/Software)
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Hardware Connection
Connect your Arduino with your computer and the IR sensor. The IR sensor should be plugged into an I2C port.
Step 2: Download and Install Arduino Library
Download the [Grove_Human_Presence_Sensor Library](https://github.com/Seeed-Studio/Grove_Human_Presence_Sensor) from Github. Then include it into your Arduino library. You can refer to [How to install library](http://wiki.seeedstudio.com/How_to_install_Arduino_Library/) to install library for your Arduino.
Step 3: Arduino Code
Copy and paste the Arduino code below into your Arduino IDE. Then compile and upload it into your Arduino board.
Step 4: Python Code
Copy and paste the python code below into your python editor. Remember to install the pyserial and pynput library. If you don’t know how to do it. Just open your terminal and type 'pip install pyserial' and 'pip install pynput'.
Step 5: Enjoy the Controller
Execute the python file and play with your own gesture controller!
This is an entry in the