to drive two DC motors independently, or one bipolar stepping motor. Up to 16VDC 1.4A per motor output drive. Compatible in all Gizduino/Arduino kits.
Table 1. Motor Driver Shield pins and Descriptions PIN I.D +5V GND Descriptions Power Supply Ground Right Motor output
LB11847
Motor Driver Shield occupied pins
Left Motor output Digital I/O pins Digital I/O pins Digital I/O pins Digital I/O pins
S CHEMATIC D IAGRAM
S AMPLE A PPLICATIONS
Connections to Motor Driver Pins
11 10 9 8
JP3
GND AREF
JP4 13 12 11 10 9 8 7 6 5 4 3 2 1 TX 0 RX
PWM
POWER
Reset +3.3V GND +5V GND VIN
ANALOG IN
A0 JP2 A1 A2 A3 A4 A5 A6 A7
JP1
+5V GND
Wiring connections: MCU MOTOR DRIVER SHIELD +5V - +5V GND - GND VIN - +5V PIN 8 - PIN 8 PIN9 - PIN 9 PIN 10 - PIN10 PIN11 - PIN 11
Figure 6. Gizduino connections to Motor Driver Shield Sample Application Wiring Diagram
Copyright 2013 by e-Gizmo Mechatronix Central All Rights Reserved Pages 6 of 7 pages www.e-Gizmo.com
+5V
S AMPLE A PPLICATIONS
Connections to GIZDUINO PINS
11 10 9 8
LEFT MOTOR
Motor Driver
+5V GND
RIGHT MOTOR
Connections to GIZDUINO PINS Wiring connections: LEFT MOTOR MOTOR DRIVER SHIELD - OUTB - OUTB RIGHT MOTOR - OUTA -OUTA
Figure 7. Motor Driver Shield wire connections to Gizduino (MCU) and to the Left and Right Motor Sample Application Wiring Diagram
+5V
S AMPLE C ODES
(Copy & paste this to your Arduino IDE) /* Sample Program for Motor Driver Shield. Codes by: eGizmo Mechatronix Central September 19,2013 */ int speed; void setup() { pinMode(8, OUTPUT); pinMode(9, OUTPUT); pinMode(10, OUTPUT); pinMode(11, OUTPUT); } void loop() { digitalWrite(8, LOW); digitalWrite(11, LOW); for (speed=0; speed<256; speed++){ analogWrite(9, speed); analogWrite(10, speed); delay(10); // wait for a second } for (speed=255; speed>0; speed){ analogWrite(9, speed); analogWrite(10, speed); delay(10); // wait for a second } digitalWrite(8, HIGH); digitalWrite(11, HIGH); for (speed=0; speed<256; speed++){ analogWrite(9, speed); analogWrite(10, speed); delay(10); // wait for a second } for (speed=255; speed>0; speed){ analogWrite(9, speed); analogWrite(10, speed); delay(10); // wait for a second } }
Copyright 2013 by e-Gizmo Mechatronix Central All Rights Reserved