I recently made this 3D printed frame with servo's in it, I tried to power it with the Arduino mega which worked although not multiple servo's at the same, because the Arduino couldn't deliver enough power
so I connected the servo's, arduino and lab supply via the schematic I added and when I turn on the power the servo's moves a bit but when I upload the servo test code (see below) the servo's don't respond
I also tried to connect the servo's to the Arduino again like I did in the begin without the lab supply and just control 1 servo but that didn't work either.
How are you powering the Mega? is that the black wire going into the 5V pin? or is that an output?
Have you joined the ground (as your drawing suggests) because I don't see any ground pin in your arduino Picture? (or does the black cable actually have 2 wires hidden inside and one goes into 5v and the other GND?)
is the 30mA we see on your power supply the cap limit or instant draw at the time you were taking the picture? obviously you need more than 30mA to drive your Mega. Your motors will also draw current - so you need a lot more there
The black wire is going to ground on the arduino, power supply and servo's and the power supply is not limited at 30mah it's just the current draw,
I also have tried to power the arduino just from the power supply while also powering the servo's from the same power supply but they still didn't work. Also the lab power supply limit is at 5a so I'm sure that it should be able to drive 1 servo
Ok was difficult to tell which pin was connected to that wire.
Well the code is simple enough that it can't be the pb... You are 100% sure the code uploads fine? Can you add a Serial.begin and Serial.print as you go through the different angles just to be sure it's executing and not crashing for some reason?
Also Can you try from a different pin? Wondering if your testing prior by powering directly from the mega pin did not damage that pin by drawing too much current.
I am so sorry for my late reply's school just started and I'm very busy already,
anyway I tried 5 different pins the last time so I don't think they are burned trough.
I will try to write the code with serial events trough out the code (short on time now) but last time I added a serial.print("test"); and It printed just fine at the beginning of the code so uploading work and simple things like blink also still work
And if you try moving manually the servo in your 3D printed stuff, that works, right? It's not like it's too heavy for the motors or too tight for them to move?or they are mounted in the right way, not prevented from turning?
So I thought I'd post what happened,
I ordered a new servo attached it like I drew in the schematic and it works perfectly
I think I've Overloaded the servos before? Although I don't know for sure, but now its working