Control Servo With Gesture Using ESP32 and Arduino

Let's control servo with magic gesture!

Introduction

Do you interested in gesture? There have sensor that able to sense gesture which is PAJ7620U2. This sensor can recognize 9 gestures and the gesture information can simply access via the I2C bus. The 9 gestures are:

  • Move Up
  • Move Down
  • Move Right
  • Move Left
  • Move Forward
  • Move Backward
  • Circle-Clockwise
  • Circle-Counter Clockwise
  • Wave

Since the max supply voltage and I/O are ~3.3V, so I decided to interface with ESP32 board. To make it more interesting, I use servo as an output actuator.

Video

This video will show you how to control servo movement using gesture using ESP32 and Arduino.

Hardware Preparation

This is the list of items used in the video.

Sample Program

This is Arduino sample sketch to sense gesture and control servo movement. Please install 2 additional library at Arduino IDE Library Manager:

  • Gesture PAJ7620 by Seeed Studio Version 1.0.0
  • ESP32Servo by John K. Benneth, Kevin Harrington Version 0.6.0

Thank You

References:

Thanks for reading this tutorial. If you have any technical inquiries, please post at Cytron Technical Forum.

Leave a Comment

Your email address will not be published.

Share this Tutorial

Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest
Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest

Latest Tutorial

Control Stepper Motor 28BYJ-48 Using TTGO T-Display ESP32
Smart Dustbin
Interface LSM9DS1 9DOF IMU With TTGO T-Display ESP32
Send and Receive SMS Using TTGO ESP32 SIM800L
Getting Started With ProjekIoT.com Using Raspberry Pi
Scroll to Top