I've included my code in as an attachment, its too long to post.
The code is an attempt to combine an anemometer, differential-gap control solar tracking and RTC
My problem is that once I run the code, servo 1 connected to D11 twitches a bit, servo 2 connected to D9 goes to max position, servo 3 does nothing.
and then nothing else, no response in the serial monitor either.
just to test if I have insufficient power going through, I removed two of the 10kg servo with my code uploaded and still nothing happens.
I'm still unsure whether its a code problem or insufficient power problem or both, considering the complexity of the program (which is still incomplete) as well as the servos in use.
Any pointers? Since I'm using a 12v (sealed lead acid) battery to power the arduino, I will try adding power (regulated with a 7805) to the servo later this morning.
Any pointers? Since I'm using a 12v (sealed lead acid) battery to power the arduino, I will try adding power (regulated with a 7805) to the servo later this morning.
So just how are you powering your 10kg servo now? A 7805 can supply 1a max. May not be enough for that servo.
@MarkT
at the part where the servo should be exercised, nothing happens, no serial out for serial monitor, and no activity from the servo.
@zoomkat
At the moment, only two servos (5 and 10 kg) are directly connected to the arduino, I've removed the other 10kg and its still not moving with my code. I made a new code to move all servos to their min max ranges and with only one of each 5 and 10 kg servo, they work fine. with three connected, the second 10kg servo wont move but the 5 kg servo moves instead.
At the moment I'm making a little circuit with a 7805 to provide for the second 10kg servo.
Well the code seems simple enough for the servos - I suspect the power supply - I think you might want about 2A capability per servo to be on safe side.