Buy an Axon, Axon II, or Axon Mote and build a great robot, while helping to support SoR.
0 Members and 1 Guest are viewing this topic.
Javafiend sorry if I'm stating the obvious - You just need to be careful how you write your code if you are driving loads of servos.The typical (ie simple) code says:Set pin highpause (between 1ms and 2ms) to change the servo angle/speedSet pin lowpause for 20ms (since servos only expect one pulse every 20ms)The 'problem' is that the pauses are not interrupt driven (ie they just sit there wasting time). If you only have a few servos then its ok. But if you have 20 servos it becomes an issue as each servo then only gets a pulse every 20 x 20ms = 400ms which means it will be very jerky. So rather than using this round robin approach you have to write a more sophisticated program to try to issue pulses simultaneously - which involves using timers/interrupts. If you are happy knowing how to do that - then great. But a controller upgrade to Mega32 wont help you with the software (as it is a servo timing issue made worse as the number of servos increases) - it will just give you more IO pins for more servos.