Use Gestures to Control YouTube Playback With Arduino

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](

Seeed Grove - Human Presence Sensor [Buy Here](

Python [Download Here](

Arduino IDE [Download Here](

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]( from Github. Then include it into your Arduino library. You can refer to [How to install 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!

STEM Contest

Participated in the
STEM Contest

Be the First to Share


    • Crafts For Kids Challenge

      Crafts For Kids Challenge
    • Baking Contest

      Baking Contest
    • Block Code Contest

      Block Code Contest