This project uses OpenCV and MediaPipe to track hand movement in real-time and control a servo motor via Arduino. The servo "waves back" to the user.
- Basic Tracking (Current) β Tracks one hand and moves a single servo.
(Future variations can include dual-hand tracking, angle limits, smoothing, and gesture-based control.)
- Arduino Uno (or compatible)
- Servo Motor (SG90/MG995)
- USB Webcam / Laptop Camera
- USB Cable
- Python 3.8+
- Arduino IDE
git clone https://github.com/yourusername/hand-wave-servo.git
cd hand-wave-servo
pip install -r requirements.txt- Connect Arduino and upload the servo control sketch from
arduino/servo_controller.ino. - Update
ARDUINO_PORTin the script to your correct COM port. - Run the variation:
python variations/variation1_basic_tracking.py- Press
qto quit.
(https://youtu.be/Dy3oX6qcPuQ)
MIT License