Ks0007 Shield L298P 2A High Current Dual DC Motor Driver Module

From Keyestudio Wiki
Jump to navigation Jump to search

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.

Ks0007.png


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.

Pic 1.png
Pic1

Pic 2.png
Pic2

Pic 3.png
Pic3