Professional Documents
Culture Documents
Copyright 2013
by e-Gizmo Mechatronix Central
All Rights Reserved
Pages 1 of 7 pages
www.e-Gizmo.com
MAJOR COMPONENTS
PRESENTATION
LB11847
DC Motor/
Bipolar Stepper Motor
connection pins
Descriptions
+5V
Power Supply
GND
Ground
OUT A
OUT A
OUT B
OUT B
Copyright 2013
by e-Gizmo Mechatronix Central
All Rights Reserved
Pin 8
Pin 9
Pin 10
Pin 11
Pages 2 of 7 pages
www.e-Gizmo.com
S CHEMATIC D IAGRAM
Copyright 2013
by e-Gizmo Mechatronix Central
All Rights Reserved
Pages 3 of 7 pages
www.e-Gizmo.com
Copyright 2013
by e-Gizmo Mechatronix Central
All Rights Reserved
Pages 4 of 7 pages
www.e-Gizmo.com
S AMPLE A PPLICATIONS
Connections to
Motor Driver Pins
11 10 9 8
GND
JP4
AREF
JP3
13
12
11
10
A0
A1
A2
1
TX
0
RX
PWM
ANALOG IN
VIN
GND
GND
+5V
+3.3V
Reset
POWER
A3
A4
A5
A6
A7
JP2
+5V
+5V
GND
JP1
Connections to
Motor Driver Pins
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
Pages 6 of 7 pages
www.e-Gizmo.com
S AMPLE A PPLICATIONS
LEFT MOTOR
Connections to
GIZDUINO PINS
11 10 9 8
+5V
RIGHT MOTOR
+5V
GND
Motor
Driver
Connections to
GIZDUINO PINS
Wiring connections:
LEFT MOTOR MOTOR DRIVER SHIELD
- OUTB
- OUTB
RIGHT MOTOR
- OUTA
-OUTA
Copyright 2013
by e-Gizmo Mechatronix Central
All Rights Reserved
Pages 5 of 7 pages
www.e-Gizmo.com
S AMPLE C ODES
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
Pages 7 of 7 pages
www.e-Gizmo.com