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.py
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
Privacy
The face is detected using OpenCV's Haar Cascade (CPU, no conflict with the GPU/Metal engine used by MediaPipe for the hands) and automatically blurred on every frame 'f' → toggle face blur

_ztBMuBhMHo.jpg?auto=compress%2Cformat&w=48&h=48&fit=fill&bg=ffffff)







Comments