Motion-Controlled-Hand
- 3 Devlogs
- 2 Total hours
A gesture controlled hand which runs using openCV and mediapipe to translate motion into servo motors to control limbs
A gesture controlled hand which runs using openCV and mediapipe to translate motion into servo motors to control limbs
TROUBLESHOOTING!
#Devlog for 12/06/26 for Project Handy
#11:04, I've been trying to troubleshoot this thing for the last 45 minutes now; nothing new is happening.
#11:09, I reconnected the servo directly to the Pi and it works fine, the pinout it servo orange to pin 16, servo red to pin 2, and servo brown to pin 6, so the problem is definitely with the breadboard wiring
#NOTE: still need to fix some micromovements, but the servo is moving back and forth which is good, so I just need to fix the micromovements and then connect the other servos.... if that even works out
#11:34: I think I'm gonna wait for the power module to arrive before I try to connect the other servos, I don't want to deal with the messy wiring anymore, hopefully the power module will make things easier and less prone to errors
#This is a Devlog for 12/06/26 for Project Handy
#Okay so right now I have one servo motor attached to the Raspberry Pi:
#Brown –> Pin 6 (Ground)
#Red –> Pin 2 (5V)
#Orange –> Pin 12 (GPIO 18)
#Uhhhh, okay the Raspi is now saying that the connection is being refused???
#12:27: trying to figure out the problem with the sshing thingy but I’m not sure, this doesn’t usually happen
#12:31: Okay I fixed the problem I think we are good hpprayayayay
#12:37 I ran yesterday’s code and it worked, the servo motor is moving back and forth, but the micromovements still aren’t there
#12:40 I think I know what the problem is, the servo motor is moving back and forth but it’s not doing the micromovements because the code is only telling it to move to 0 degrees and then to 180 degrees, so I need to change the code to make it move to different angles in between
#I think I’m gonna try and troubleshoot my code and see what’s up
#12:47 Okay I figured out that maybe the code was erasing micromovements because it was rounding the angle to WHOLE degrees, so I changed the code to round to 2 decimal places instead of whole numbers, hopefully that will fix the problem
#12:52 I ran the code and it seems to be working better, the servo motor is moving to different angles instead of just 0 and 180, but I still need to test it more to see if the micromovements are there and connect the other servos
#I think I’m gonna try and connect the other servos now and see if they are working properly, hopefully they will be
#So I don’t have a USB board so I’m gonna have to cut up a USB-A cable
#1:00 I cut up the USB-B cable and I have the wires ready, now I just need to connect them to the breadboard and then to the Raspberry Pi
#I have red, blue, green, white cables; usually there’s black instead of blue for the ground GND but I’m gonna assume blue is just ground GND (which is what Google says too)
#1:15 I connected the red wire to 5V, the blue wire to GND, and the green and white wires to (GPIO 23 and GPIO 24) nothing yet respectively, now I just need to test if they are working properly
#1:22 Okay I connected everything and there aren’t any errors in the code, but the servo motors aren’t moving, I’m not sure what’s wrong, maybe I need to change the GPIO pins in the code to match the ones I connected to, or the power bank is bad
#1:24 Well looks like the power bank is bad, I’m gonna try to find another
#2:17 I troubleshooted a lot and I think the problem is that the breadboard wiring is really bad. I ordered a usb power module so I can connect it directly to the breadboard and then connect the servos to that, hopefully that will fix the problem and I won’t have to deal with the messy wiring anymore
Devlog 10/06/26: Finished the basic code for the hand tracker and connected the first servo!
The basic code was fairly simple and just tracks the motion of my index finger for now, but I’m having trouble capturing the micromovements fairly smoothly. I also need to find an external power source to connect all 5+ servos; right now, the one is just running connected directly to the Pi. I also need to start planning the 3D frame for printing soon and figure out the mechanics.