2A Motor Shield For Arduino Twin SKU:DRI0017
Part | Datasheet |
---|---|
![]() |
DRI0017 (pdf) |
PDF Datasheet Preview |
---|
2A Motor Shield For Arduino Twin SKU:DRI0017 Introduction This motor shield allows Arduino to drive two channel DC motors. It uses a L298N chip which deliveries output current up to 2A each channel. Specifications • Motor Driven Voltage 4.8V to 35V • Output Current up to 2A/channel • Total Power Dissipation 25W(T=75 • Driven Structure Dual full-bridge driver • Driven Power Port External power terminal, or VIN from Arduino • Driven Output Port 2 channel screw terminals, or male PIN headers • Control Port 4 TTL Compatible digital signals Digital 10-13 • Operation Temperature -25 to 130 • Shield Size 56x57mm Application • Electric toy car PinOut • Power Selection Jumper The motors can be powered by external power supply PWMIN or VIN from Arduino control board e.g., UNO . Default is VIN showed by the diagram. Note There are two jumpers in parallel that can afford heavy current. • PWMIN Terminal Used to connect to external power. • Motor Terminal Used to connect motors by screw terminals M1- M1+ M2- M2+ or PIN headers 1 2 3 • Analog 3Pin Port Used to connect sensors or actuators. Note pinout is + - S . • Motor Indicator The red LED lights if Mn+ is positive, whereas the green LED lights. • Control Port Used to control speed and direction of motor. You can get port's description in the "Control Table" printed on the shield. • Control Function Table: Name En Mn Function Mn Speed control PWM Mn Direction Control • Control Signal Truth Table: En Mn State L X Disable Mn H L Mn Foreward Mn+ is positive H Mn Backward Mn+ is negative Note n of "Mn" or "En" is 1, 2 Tutorial DC Motor Control Target Control speed and direction of DC motor Step1 Hardware List • DF_UNO 1 • Micro Metal Gearmotor 2 • Regulated Power 1 • The Shield 1 • Wires Step2 Software List • Arduino IDE Step3 Wiring Step4 Sample Code Open Arduino IDE Upload the code to UNO /**set control port**/ const int E1Pin = 10 const int M1Pin = 12 const int E2Pin = 11 const int M2Pin = 13; /**inner definition**/ typedef struct byte enPin byte directionPin MotorContrl; const int M1 = 0 const int M2 = 1 const int MotorNum = 2; const MotorContrl MotorPin[] = ; const int Forward = LOW const int Backward = HIGH; /**program**/ void setup initMotor ; void loop int value /**test M1 **/ setMotorDirection M1, Forward ; setMotorSpeed M1, 100 delay 1000 setMotorSpeed M1, 0 delay 100 ; setMotorDirection M1, Backward setMotorSpeed M1, 50 delay 1000 setMotorSpeed M1, 0 delay 100 ; |
More datasheets: HG0113 | 875 | SR3S 02 GY 5N/5N 01 R01 M | SR3S 05 GY 5N/5N 01 R01 M | SR3S 01 GY 5N/5N 01 R01 M | SR3S 02 GY 5N/5N 01 R00 M | SR3S 01 GY 5N/5N 01 R00 M | SR3S 05 GY 5N/5N 01 R00 M | CD40193BCN | SEN0192 |
Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived DRI0017 Datasheet file may be downloaded here without warranties.