Control Servo With Gesture Using ESP32 and Arduino

Control Servo With Gesture Using ESP32 and Arduino

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.

Related Products

Male to Male Jumper Wire

$1.13 $1.75 $1.13

x 1 unit(s)
x 1 unit(s)

NODEMCU ESP32

$7.25 $7.25

x 1 unit(s)