And it looks to me like you're trying to drive more than one servo...8 of them?
Is your power supply up to the task?
Are you up to the task?
You should probably know (if you've done any research on the subject of driving servo's) that servo's require a multiple updates per second to hold their position without going all over the place, usually about 50 timers per second, some more, most less per second will do.
You code...8 servo pulses, say 2.5ms maximum, totals at 20ms.
At most, you can go thru that loop 50 times per second.
You've got all those extra pauses in there, which brings the total update rate per second down to less than one update per second...
Have you thought about getting rid of those pauses?
Bookmarks