Advertisement
Advertisement
ROBOT . HEAD to TOE
Product User’s Manual – 2A Motor Driver Shield
SHIELD-2AMOTOR
Cytron 2A Motor Driver Shield
User's Manual
V1.1
Feb 2015
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 1
ROBOT . HEAD to TOE
Product User’s Manual – 2A Motor Driver Shield
INDEX
1.
2.
3.
Product Specification And Limitations
3
4
5
4.
6
5.
7
6.
7.
9
14
8.
15
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 2
ROBOT . HEAD to TOE
Product User’s Manual – 2A Motor Driver Shield
1. INTRODUCTION
SHIELD-2AMOTOR is an Arduino shield for controlling dual DC motor up to 2A for each channel. It is compatible with Arduino Uno, Arduino Leonardo, Arduino Mega, Arduino Due and possibly other pin compatible main boards. SHIELD-2AMOTOR uses L298P SMD IC and support for both signed magnitude and locked anti-phase. SHIELD-2AMOTOR shield has stackable side headers which allows for more Arduino shields to be stacked on top of it.
SHIELD-2AMOTOR come with this features:
● Bi-directional control for 2 brushed DC motor.
● Support motor voltage ranges from 5V to 26V.
● Maximum current up to 2A per channel.
● 3.3V and 5V logic level input.
● Stackable I/O header pin.
● Selectable pins for Signed Magnitude and Locked Anti-Phase.
● Test switch for both channel.
● External voltage polarity protector.
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 3
ROBOT . HEAD to TOE
Product User’s Manual – 2A Motor Driver Shield
2. PACKING LIST
Please check the parts and components according to the packing list. If there are any parts missing, please contact us at [email protected]
immediately.
1. 1 x SHIELD-2AMOTOR
2. 5 x mini jumper
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 4
ROBOT . HEAD to TOE
Product User’s Manual – 2A Motor Driver Shield
3. PRODUCT SPECIFICATION AND LIMITATIONS
Absolute Maximum Rating
Parameter Min Typical Max Unit
Power Input Voltage (Motor supply voltage)
I
MAX
(Maximum Continuous Motor Current)
I
PEAK
(Peak Motor Current)
5
-
-
-
-
-
26
2
2
V
A
A
V
IOH
(Logic Input-High Level)
V
IOL
(Logic Input - Low Level)
Maximum PWM Frequency
*Must not exceed 10 seconds
3.3
0
-
-
0
-
5.5
0.5
10
V
V
KHz
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 5
ROBOT . HEAD to TOE
Product User’s Manual – 2A Motor Driver Shield
4. DIMENSION
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 6
ROBOT . HEAD to TOE
Product User’s Manual – 2A Motor Driver Shield
5. BOARD LAYOUT
F
G
D
E
Label
A
B
C
J
K
H
I
Function
Reset button for Arduino main board
Motor connectors.
External power (PWRIN) connector.
PWR LED.
Power source selection.
External power (PWRIN) reverse polarity protection circuit.
L298P driver motor IC.
Motor control mode selection.
Test switch.
LSS05 connector.
Arduino pinout.
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 7
ROBOT . HEAD to TOE
Product User’s Manual – 2A Motor Driver Shield
Reset button
User can press this button to restart Arduino program.
Motor connectors
Connect DC motor here.
External power (PWRIN) connector
Connect external power source here.
PWR LED
Motor power indicator.
Power source selection.
User can choose power source either from external (PWRIN) or internal (VIN).
External power (PWRIN) reverse polarity protection circuit.
In case user wrongly connect the external power source polarity, this circuit will protect the shield from broken.
L298P driver motor IC.
SHIELD-2AMOTOR uses L298P driver motor IC.
Motor control mode selection.
User can choose motor control mode either Signed Magnitude or Locked Anti-Phase .
Test switch.
When button A is pressed, current flows from output A to B and motor will turn CW (or
CCW depending on the connection).
When button B is pressed, current flows from output B to A and motor will turn CCW (or
CW depending on the connection).
LSS05 connector.
LSS05 can connect directly to this shield and can be interfaced with Arduino.
Arduino pinout.
Other Arduino shield can be stacked on top of this shield.
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 8
ROBOT . HEAD to TOE
Product User’s Manual – 2A Motor Driver Shield
6. HARDWARE
This section shows the example of using SHIELD-2AMOTOR with Arduino Uno as the main controller to control dual brush DC motor. However, other Arduino main board controller can be used ( Leonardo , Mega , Due ).
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 9
ROBOT . HEAD to TOE
Product User’s Manual – 2A Motor Driver Shield
Figure above shows that SHIELD-2AMOTOR is stacked on the Arduino UNO.
Move 4 mini jumpers to Signed Magnitude or Locked Anti-Phase. The default setting is
Signed Magnitude. Make sure correct power source is selected (VIN or PWRIN). VIN will connect to the Arduino power source, while PWRIN needs external power source connected to the PWRIN terminal.
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 10
ROBOT . HEAD to TOE
Product User’s Manual – 2A Motor Driver Shield
Connect motor to the MOTOR1 and MOTOR2 terminal block. Upload SHIELD-2AMOTOR example code to Arduino. Or you can test directly by using test switch.
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 11
ROBOT . HEAD to TOE
Product User’s Manual – 2A Motor Driver Shield
SHIELD-2AMOTOR also include with LSS05 connector. Means you can plug in LSS05 directly to Arduino.
6.1 MOTOR CONTROL PIN
Choose either Locked Anti-Phase or Signed Magnitude mode by moving the 4 mini jumpers on shield. Below is a table to summarize pin used for motor control.
Locked Anti-Phase
(Arduino Pin)
Signed Magnitude
(Arduino Pin)
DIR 2
EN 2
6
7
7
6
EN 1
DIR 1
4
5
5
4
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 12
ROBOT . HEAD to TOE
Product User’s Manual – 2A Motor Driver Shield
6.2 LSS05 PIN
LSS05 can connect directly to this shield and can be interfaced with Arduino. Below is a table showing the pins connection between LSS05 and Arduino on 2A motor driver shield.
Arduino Pin LSS05 Output Pin
5V
GND
A1
5V
GND
01
A2
A3
A4
A5
D8
02
03
04
05
Cal
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 13
ROBOT . HEAD to TOE
Product User’s Manual – 2A Motor Driver Shield
7. SOFTWARE
Arduino library and example code can be downloaded from the SHIELD-2AMOTOR product page at Cytron’s website.
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 14
ROBOT . HEAD to TOE
Product User’s Manual – 2A Motor Driver Shield
8. WARRANTY
● Product warranty is valid for 12 months.
●
●
●
Warranty only applies to manufacturing defect.
Damaged caused by misuse is not covered under warranty
Warranty does not cover freight cost for both ways.
Prepared by:
Cytron Technologies Sdn. Bhd.
No. 16, Jalan Industri Ringan Permatang Tinggi 2,
Kawasan Industri Ringan Permatang Tinggi,
14100 Simpang Ampat,
Penang, Malaysia.
Tel: +604-504 1878
Fax: +604-504 0138
URL: www.cytron.com.my
Email: [email protected] [email protected]
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 15
Advertisement