You are browsing as a guest. Sign up (or log in) to start making projects!

38m 47s logged

#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

0
1

Comments 0

No comments yet. Be the first!