Skip to content

About

This project connects real-time hand tracking on a computer to a physical servo-driven arm using a wired Arduino connection. A Python process captures video from a webcam, detects a single hand, derives finger bend angles, and streams those values over serial. An Arduino sketch receives the data and drives five servos in near real time.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

Repository files navigation

Hand-Tracked Servo Arm

Hand Tracking Demo

Watch the demo video

This project connects real-time hand tracking on a computer to a physical servo-driven arm using a wired Arduino connection.

A Python process captures video from a webcam, detects a single hand, derives finger bend angles, and streams those values over serial. An Arduino sketch receives the data and drives five servos in near real time.

The Python side is implemented in hand_control.py.
The Arduino firmware lives in servoarm_wired.ino.


Overview

  • Input: Live webcam feed
  • Processing: Hand landmark detection and angle mapping
  • Transport: USB serial (comma-separated integers)
  • Output: Five servo motors driven directly by an Arduino

The GIF above shows the full loop in action: live tracking, angle extraction, and physical actuation.


Notable Techniques


Technologies and Libraries Used

These are easy to miss if you only skim the code, but they matter for maintainability and performance:


Data Flow

  1. Webcam frames are captured and converted to RGB.
  2. MediaPipe detects and tracks a single hand.
  3. Finger joint angles are computed from landmark positions.
  4. Angles are serialized as comma-separated integers.
  5. Arduino parses the line and updates five servos in one pass.

The visual feedback loop shown in the GIF is intentional: it makes debugging latency, jitter, and mapping errors straightforward.


Project Structure

.
├── assets/
├── hand_control.py
└── servoarm_wired.ino

About

This project connects real-time hand tracking on a computer to a physical servo-driven arm using a wired Arduino connection. A Python process captures video from a webcam, detects a single hand, derives finger bend angles, and streams those values over serial. An Arduino sketch receives the data and drives five servos in near real time.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages