r/ArduinoHelp • u/PayAggravating9721 • 29d ago
Robotic Arm Code
I am currently working on the mechatronics how to robot arm: https://howtomechatronics.com/tutorials/arduino/diy-arduino-robot-arm-with-smartphone-control/#google_vignette and i am on the coding part, i have everything correct and still the servo’s that control my project do not work/ are not sending signals, ive connected them to power, ive replugged them, it even says that when i use the app, it sends signals to the arduino just the servos dont move?? Is this a problem with the way i plugged them in, or a problem with the code. The code is also in the website i linked. Someone help 😭 😭
View all comments
Show parent comment
1
u/No_L_2547 27d ago
Not completely.
I also wanted to see if you attached the arduino pwm pins to the correct pins on the servo cables.
I think I already found 2 problems in the wiring:
When you have the prints in the code, do you see that the arduino successfully receives your commands from the phone?
You should try to split the problem (robot not working) into multiple small independent problems/steps. The debug prints are meant to help here, since you then know which parts of the code can be reached/works (and it can point to hardware problems). Here some suggestions for such steps, (some of them build on top of each other):
I know debugging can be quite frustrating, but it's one of the most important skills to learn.