I built a circuit that uses an ATtiny26 for control and an SN754410NE motor driver (ultimately destined for a line-following hobby robot). It works nicely and I have full control over the motors using pins PB1 & PB3 to control the enable pins on the motor driver. I also have an AVRISP dongle that I use for in system programming, via the 6-pin header. This also works nicely. BUT, there's one issue. PB1 serves several purposes, specificially, I use it as the output to one of the motor enable pins (for PWM output), and PB1 is also MISO and used by the ISP programmer. SO, during programming, the motor drives wildly. I've tried some pull-down resistors on the enable pin of the motor driver, but no joy. Atmel design note on ISP says that you should use series resistors to protect the programmer from any other circuitry, but I don't think I'm in that situation because the motor isnt interfering with programming, its just making my robot fidget wildly during programming. Does anybody have a solution? Unless someone has a common solution, I was thinking of trying to drive the motor-enable pins through a logical AND of the RESET line and PB1. This will drive the motor-enable pin low anytime the reset line is brought low, and the rest of the time, the value of my PB1 will be the value output by the AND. I'd really appreciate any advice or experience you can share. Ethan www.bufbotics.org
Message
tiny26, motor driver, and ISP
2005-01-30 by ethan@bufbotics.org
Attachments
- No local attachments were found for this message.