Squirrels have fuzzy tails.
0 Members and 1 Guest are viewing this topic.
Needs 3xpins from the mcu per motor. Probably (?) also needs some of these pins to come via PWM to control the speed info so that its not just full fwd/reverse etc. Given that the ATMega8 has limited pins then this seems like a good answer if you only have 2 motors.
I am using Baby Orangutan Board, they are good. But I do have one gripe about them. The kind of H-bridge they have on the board forces one to use 3 interrupts and software control to do PWM on 2 motors, ie. one is unable to use the built in PWM feature of the ATMega chips.
something like the Pololu Dual Serial Motor Controller
If you use Locked Antiphase mode to drive the H-Bridge then you can control a motor with just 1 pin. One pin for both direction and speed.Here is more infohttp://www.barello.net/Papers/Motion_Control/index.htm
From the article then 'enable' is always turned on and we can control both sides of the L293D bridge from 1 PWM line.I assume that this will mean that the PWM will need to connect to Input 1 and then via a logic invertor to Input 2. Is this correct - ie that I will need to add the invertor?