Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: R.O.B. 2.0 on July 04, 2008, 08:50:01 AM

Title: Motor Driver
Post by: R.O.B. 2.0 on July 04, 2008, 08:50:01 AM
I recently built two H-bridges for my robot. :-[ :-[ I found this motor driver on spark fun but I can't figure out what goes where from the data sheet. Could someone help.

http://www.sparkfun.com/commerce/product_info.php?products_id=315 (http://www.sparkfun.com/commerce/product_info.php?products_id=315)
Title: Re: Motor Driver
Post by: Steve Joblin on July 04, 2008, 09:29:48 AM
Regulated +5 Volts to pins 1, 9, and 16
Microcontroller Control signals to pins 2, 7, 10, and 15
Motor "A" to pins 3 and 6
Motor "B" to pins 11 and 14
Voltage supply for motors to pin 8
Ground to pins 4, 5, 12, and 13

You control Motor "A" as follows:
To halt motor, make pins 2 and 7 both low, or make pins 2 and 7 both high
To make motor spin in one directon, make pin 2 high and pin 7 low
To make motor spin in the other direction, make pin 2 low and pin 7 high

You control Motor "B" as follows:
To halt motor, make pins 10 and 15 both low, or make pins 10 and 15 both high
To make motor spin in one directon, make pin 10 high and pin 15 low
To make motor spin in the other direction, make pin 10 low and pin 15 high