driving 8 servos with arduino nano

Hello all,

I'm a new Arduino user. I have to drive 8 servo motor for a modular robot and I have to use Arduino nano beacuse arduino mega is too big for the modular robot. My question is can I drive a pwm signal using all digital pin? I read this can be possible using digital output and sequential delay but the disadvantage is that any interrupts will affect the timing, which can cause considerable jitter unless you disable interrupts. What about using timers and register?

thank you very much

puma

Maybe this will help.. http://arduino.cc/en/Reference/Servo

Dave

You don't use PWM to drive servos.

how can i use 8 servos with nano if it have only 6 PWM outputs?

how can i use 8 servos with nano if it have only 6 PWM outputs?

See reply #2. Use the Servo library.

so, i don't need a PWM at all? and i can use all digitall outputs? :D

so, i don't need a PWM at all? and i can use all digitall outputs?

No, you use PPM to drive servos. PPM looks a bit (actually, a lot) like very low duty cycle PWM, but for servos, you need to use 50Hz, not 490Hz.

i use HS-422& looks like it hould be good. can you explain what legs are PPM on nano? (sorry, i don't understand english electronic shorts wery well..) :-/

PPM is implemented using timers, by the servo library, ON EVERY DIGITAL PIN.

i don't understand english electronic shorts wery well

Let the magic smoke out a few times and you'll discover that electrons don't speak english, either.

ok, and the last one dummy question: what if i'll give 6 volts instead of 5 volts on a arduino? will it work? it only 1 volt of difference and it should have voltage regulator on a board... :-?

Have a look at this thread: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1287331227/45#47