Item Description:
L298P motor driver shield adopts L298P driver chip made by LGS, such chip is exclusively made for high-quality large power motor. It can directly drive two DC motors with driving current reaching 2A. The output port of the motor carries eight high speed Schottky diodes as its protection. The stackable design makes it possible to be directly connected to FOR Arduino, making it more convenient to use!
Technical Specifications:
1.Logical part ofthe input voltageVD: 5V
2.Drivenpart of the inputvoltageVS: VINInput6.5 ~ 12V, PWRIN4.8 ~ 35Vinput
3.Logicalpart of the workcurrentIss: <36mA
4.Drivenpart of theoperating currentIo: <2A
5.Maximum power dissipation: 25W (T = 75Celsius)
6.Controlsignalinput level:High2.3Vlow-0.3V
7.Working temperature: -25 + 130Celsius
8.Hardware interface: 5.0mmpitchterminal
9.beltclipandcan be controlledviafront rowaccesssignal
10.Drive Type:DualpowerH-bridge driver
11.Pinoccupancy: D4 ~ D7directdrive motor
12.supportsPWM / PLLmodemotor speedcontrol
Features:
1. There is L298P motor driver chip on the board so that you can use digit IO
interface(D .D10. D11. D12) without cumbersome wiring connection.
2. Onboard buzzer (D4), you can set the astern alarm ringtone.
3. Convenient motor interface can be two routes motor output.
4. Two-way bluetooth interface requires no wiring and you can plug directly.
5. It has seven digital interface that are not occupied(including D 2 , D 3 , D 5 , D 6 ,
D 7 , D 9 , D).
6. It has six analog interfaces(A0, A1, A2, A3, A4, A5).
7. It has indicator for forward and backward changing direction .
Testing:
With wiring as the image shows, we can control forward rotation, reverse rotation,
stop and the PWM speed of the two DC motors.
The E1, E2 pins on the 2 motors's control chip with speed control function are
connected with the 10,11 interfaces, And M1, M2 pins with direction control function
are connected with the 12,13 interfaces
Code:
int E1 = 10;
int M1 = 12;
int E2 =11;
int M2 = 13;
void setup(){
pinMode(M1, OUTPUT);
pinMode(M2, OUTPUT);
}
void loop(){
{
int value;
for(value = 0 ; value <= 255; value+=5){
digitalWrite(M1,HIGH);
digitalWrite(M2, HIGH);
analogWrite(E1, value);
analogWrite(E2, value);
delay(30);
}
delay(1000);
}
{
int value;
for(value = 0 ; value <= 255; value+=5){
digitalWrite(M1,LOW);
digitalWrite(M2, LOW);
analogWrite(E1, value);
analogWrite(E2, value);
delay(30);
}
delay(1000);}
}