Digital and PWM pins

Hi there,

My project includes an arduino controlling 6 motor drivers, which is each taking 1 ON, 1 Off and 1 PWM pin. Adding it up (x6), i would need 6 PWM and 12 DigitalPins. As the Arduino has only 14 Digital pins which 6 is PWM, is the anyway to go around this or expand the pins for my requirements?

or is the only other choice is getting the ArduinoMega?

best

dze

The analog pins can be used as digital pins, too. Just keep numbering up. Analog pin 0 is digital pin 14, etc.

What kind of motor driver are you talking about? Typically a motor driver that uses PWM uses only one other pin to define direction. Set that pin HIGH to go one way. Set it LOW to go the other way.

Motors (H-Bridges) will work with Software PWM, they do not have tight requirements..) PWM is just a convenient way to reduce the voltage without too much dissipation...

Hi, i'm using the Pololu dual Drive 14A VNH2SP30 (MD03A). Yes i was wondering about this as well. Since i'm only turning the motor in 1 direction, i don't really need the extra pin, yes?

Right now, i'm connecting 1INA and 1INB and 1 PWM on the Pololu board.

i'm using PWM to modulate the speed of the motor.

i'm using PWM to modulate the speed of the motor.

This is what you think... In fact you are using it to reduce the average voltage applied to it.

i'm using PWM to modulate the speed of the motor.

PWM will only affect the speed of a heavily loaded motor. Light loads will just coast through the periods where the motor is not receiving power. One way round this is tho have the motor shorted out during the off period of the PWM signal. This is known as fly wheel clamping.
http://www.thebox.myzen.co.uk/Workshop/Motors_2.html