Mearm-computer-vision

About the project

I made this project to control a MeArm(Keyestudio KS0198X) with hand gestures

Project info

Difficulty: Easy

Platforms: Arduino,  Python

Estimated time: 1 hour

License: MIT license (MIT)

Items used in this project

Hardware components

Keyestudio 4DOF Robot Arm Keyestudio 4DOF Robot Arm x 1
18650 2-Slot Battery Holder 18650 2-Slot Battery Holder x 1
Keyestudio Servo Motor Driver Shield Keyestudio Servo Motor Driver Shield x 1
Keyestudio V4.0 Control Board Keyestudio V4.0 Control Board x 1

Software apps and online services

arduino ide arduino ide

Story

A webcam watches your hands. Python (using mediapipe) tracks the landmarks of both hands in real-time, translates them into angles for the 4 servomotors of the arm, and sends them via serial port to an Arduino which applies them. 


Control

Left hand: Thumb-index pinch → BASE rotation (pin A1)Right hand: Hand height in the frame → arm extension: moves SHOULDER (pin A0) and ELBOW (pin 6) together in a coordinated way (hand high = arm extended forward, hand low = arm retracted) Thumb-index pinch → GRIPPER control (pin 9) 

Safety 

If a hand leaves the frame, its axis remains locked at the last commanded value (no sudden jumps) Spacebar → full pause of all servo motors 'q' → exit 




Code

MeArm-computer-vision

Credits

Photo of lucaeffe03

lucaeffe03

Computer and Automation Engineering student

   

Leave your feedback...