Difference between revisions of "SoutHACKton:TipsAndTricks/Motor Drivers"
(Created page with "For motor driver boards, such as those that use the [https://www.sparkfun.com/products/9479 L298N dual motor driver]. == Logic Signals == I'm not sure why, but if you try an...")
Latest revision as of 16:29, 14 April 2013
For motor driver boards, such as those that use the L298N dual motor driver.
 Logic Signals
I'm not sure why, but if you try and drive two separate logic signals from the same (Arduino) pins then they can interfere with each other, resulting in unpredictable behaviour. To solve this, don't share pins between different motors. You might consider an I2C port expander (such as the MCP23017) if you're running out of Arduino pins.
(The ports on some driver boards that are meant to read the signal actually seem to set a voltage, which flows back and affects any other directly connected driver boards. You could solve this with a large number of diodes (you'd need 3 per motor controlled) - but who can be bothered with that?)