Motor Driver Shield Manual
-
Upload
shiela-monique-fajardo -
Category
Documents
-
view
489 -
download
8
description
Transcript of Motor Driver Shield Manual
MOTOR DRIVER SHIELD
Features & Specifications
© Copyright 2013by e-Gizmo Mechatronix Central
All Rights Reserved
Pages 1 of 7 pageswww.e-Gizmo.com
The e-Gizmo Motor Driver Shield can be used 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.
Mot
or D
rive
r Sh
ield
MAJOR COMPONENTS
PRESENTATION
© Copyright 2013by e-Gizmo Mechatronix Central
All Rights Reserved
Pages 2 of 7 pageswww.e-Gizmo.com
Mot
or D
rive
r Sh
ield
Motor Driver Shield
LB
11847
Arduino-compatiblepins
DC Motor/Bipolar Stepper Motor
connection pins
Table 1. Motor Driver Shield pins and Descriptions
Motor Driver Shieldoccupied pins
Motor Driver Shield occupied pins
PIN I.D Descriptions
+5V Power Supply
GND Ground
OUT ARight Motor output
OUT A
OUT BLeft Motor output
OUT B
Pin 8 Digital I/O pins
Pin 9 Digital I/O pins
Pin 10 Digital I/O pins
Pin 11 Digital I/O pins
SCHEMATIC DIAGRAM
Fig
ure 2
. M
oto
r D
rive
r S
hie
ld S
chem
ati
c D
iagra
m
© Copyright 2013by e-Gizmo Mechatronix Central
All Rights Reserved
Pages 3 of 7 pageswww.e-Gizmo.com
Mot
or D
rive
r Sh
ield
Motor Driver Shield
PCB BOARD PRESENTATION
Figure 3. Motor Driver Shield (silkscreen layout)
Figure 4. Motor Driver Shield (Top layout)
Figure 5. Motor Driver Shield (Buttom layout)
© Copyright 2013by e-Gizmo Mechatronix Central
All Rights Reserved
Pages 4 of 7 pageswww.e-Gizmo.com
Mot
or D
rive
r Sh
ield
Motor Driver Shield
SAMPLE APPLICATIONS Motor Driver Shield
© Copyright 2013by e-Gizmo Mechatronix Central
All Rights Reserved
Pages 6 of 7 pageswww.e-Gizmo.com
Mot
or D
rive
r Sh
ield
JP3 JP4
AR
EF
GN
D 13 12 11 10 9 8 7 6 5 4 3 2 1 0RXTX
PWM
JP1
Re
se
t
+3
.3V
+5
V
GN
D
GN
D
VIN
A0 A1 A2 A3 A4 A5 A6 A7
JP2
POWERANALOG IN
+5
V
11 10 9 8
Connections to Motor Driver Pins
+5
VG
ND
Connections to Motor Driver Pins
Figure 6. Gizduino connections to Motor Driver Shield Sample Application Wiring Diagram
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
SAMPLE APPLICATIONS
© Copyright 2013by e-Gizmo Mechatronix Central
All Rights Reserved
Pages 5 of 7 pageswww.e-Gizmo.com
Mot
or D
rive
r Sh
ield
Motor Driver Shield
MotorDriver
11 10 9 8
Connections to GIZDUINO PINS
+5
V
+5
V
GN
D
RIGHT MOTOR
LEFT 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
© Copyright 2013by e-Gizmo Mechatronix Central
All Rights Reserved
Pages 7 of 7 pageswww.e-Gizmo.com
Mot
or D
rive
r Sh
ield
SAMPLE CODES Motor Driver Shield
/* Sample Program for Motor Driver Shield.Codes by:e‐GizmoMechatronix CentralSeptember 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 } }
(Copy & paste this to your Arduino IDE)