Your shopping cart is empty!
Control Servo With Gesture Using ESP32 and Arduino
- Idris Zainal Abidin
- 13 Nov 2019
- 1184
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.
- Node32 Lite Wifi & Bluetooth Development Kit
- PAJ7620U2 9 Gesture Recognition Sensor Module
- Analog Micro Servo 9g (3V-6V)
- Breadboard 16.5x5.5cm (830 Holes)
- Male to Male Jumper Wire
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:
- Hand Gesture Recognition Sensor (PAJ7620)
- Tech Note 104 - Adding Gesture Control to your Arduino / ESP projects
Thanks for reading this tutorial. If you have any technical inquiries, please post at Cytron Technical Forum.