Ks0007 Shield L298P 2A High Current Dual DC Motor Driver Module: Difference between revisions
Keyestudio (talk | contribs) |
Keyestudio (talk | contribs) |
||
Line 3: | Line 3: | ||
L298P Shield DC motor driver adopts the L298P driver chip wich is exclusively made for large-power motor. It can drive 2 DC motors directly with a drive current reaching 2A. The motor output is equipped with eight high-speed schottky diode as protection. This driver carries neat circuit layout and bonded components, in addition, the multi-layer design enables it to be plugged to Arduino directly.<br> | L298P Shield DC motor driver adopts the L298P driver chip wich is exclusively made for large-power motor. It can drive 2 DC motors directly with a drive current reaching 2A. The motor output is equipped with eight high-speed schottky diode as protection. This driver carries neat circuit layout and bonded components, in addition, the multi-layer design enables it to be plugged to Arduino directly.<br> | ||
L298P Shield DC motor driver carries PWM mode. The motor can be powered via Arduino VIN input or terminal input on the driver, which are switchable by jumper. <br> | L298P Shield DC motor driver carries PWM mode. The motor can be powered via Arduino VIN input or terminal input on the driver, which are switchable by jumper. <br> | ||
[[File:ks0007.png|thumb]] | |||
[[File:ks0007.png]] | |||
== Specifications == | == Specifications == |
Revision as of 09:18, 15 September 2017
Introduction
L298P Shield DC motor driver adopts the L298P driver chip wich is exclusively made for large-power motor. It can drive 2 DC motors directly with a drive current reaching 2A. The motor output is equipped with eight high-speed schottky diode as protection. This driver carries neat circuit layout and bonded components, in addition, the multi-layer design enables it to be plugged to Arduino directly.
L298P Shield DC motor driver carries PWM mode. The motor can be powered via Arduino VIN input or terminal input on the driver, which are switchable by jumper.
Specifications
Logic part input voltage | VD: 5V |
---|---|
Driving part input voltage VS | VIN input 6.5 ~ 12V, PWRIN input 4.8 ~ 24V |
Logic part working current Iss | ≤36mA |
Driving part working current Io | ≤ 2A |
Maximum dissipation power | 25W (T=75℃) |
Control signal input level | High level: 2.3V ≤ Vin ≤ 5V Low level: -0.3V ≤ Vin ≤ 1.5V |
Working temperature | -25℃~+130℃ |
Driver form | Dual power H bridge driving |
According to wiring method above, we can control the transferring, reversing, stopping of two DC motor (M1 and M2), as well as the speed regulation of PWM.
Programming
int E1 = 3; int M1 = 12; int E2 =11; int M2 = 13; void setup() { pinMode(M1, OUTPUT); pinMode(M2, OUTPUT); } void loop() { digitalWrite(M1,HIGH); digitalWrite(M2, HIGH); analogWrite(E1, 200); // PWM regulate speed analogWrite(E2, 200); // PWM regulate speed delay(8000); digitalWrite(M1,LOW); digitalWrite(M2, LOW); analogWrite(E1, 200); //PWM regulate speed analogWrite(E2, 200); //PWM regulate speed delay(8000); }
Result
After power is on, power indicator will be turned on; two motors begin to rotate clockwise; the pin13 LED on the main board will be on and the two red LEDs on the shield will be on too. After rotating CW for 8S, the two red LED will be off and the 2 blue ones will be on; the two motor rotate CCW for 8S, and then repeat the cycle.
Resources
Video
http://www.keyestudio.com/wp/2016/05/ks0007-keyestudio-l298p-motor-driver-shield/
Datasheet
http://www.keyestudio.com/files/index/download/id/1463642664/