Ks0007 keyestudio L298P Motor Shield: Difference between revisions
Keyestudio (talk | contribs) |
Keyestudio (talk | contribs) |
||
Line 92: | Line 92: | ||
==Test Result== | ==Test Result== | ||
Upload well the code, you should see the two motors firstly turn forward for 8 seconds, then reverse for 8 seconds, repeatedly. | Upload well the code, you should see the two motors firstly turn forward for 8 seconds, then reverse for 8 seconds, repeatedly. | ||
<br>[[Image:KS0007 | <br>[[Image:KS0007 result.png|800px|frameless]]<br> | ||
<br> | <br> | ||
Revision as of 09:06, 14 September 2018
Introduction
You can use UNO R3 microcontroller and add external components to complete a variety of amazing experiments, such as smart robot DIY. When DIY your robot, it is necessary to use the motor driver board to drive the DC motors, however, sometimes need to connect the motor drive board to UNO using lots of jumper wires, pretty inconvenient.
Now, we have launched this keyestudio motor shield with L298P as core. Just simply stack it onto UNO R3 board when using. Note that the motor’s speed and direction interfaces have been connected. D3 is for controlling the speed of motor A, and D12 is for controlling the direction of motor A. D11 is for controlling the speed of motor B, and D13 is for controlling the direction.
The green terminal blocks should been connected to VIN /GND pins on the UNO. You can supply the power to the board via the terminal blocks or black DC jack of UNO. The maximum voltage supply is DC 18V.
Onboard also comes with through-hole pad, so you are able to weld the electronic elements to design a variety of prototyping circuits.
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℃ to+130℃ |
Driver form | Dual power H bridge driving |
Controller Compatible
Technical Details
- Dimensions: 60mm x 54mm
- Weight: 20.8g
PINOUT Instruction
How to Test it ?
Connect it Up
Simply stack the shield onto UNO R3 board, then connect two motors to terminal block.
Upload the Code
Below is an example code, you can copy and paste it on Arduino IDE.
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); }
Test Result
Upload well the code, you should see the two motors firstly turn forward for 8 seconds, then reverse for 8 seconds, repeatedly.
File:KS0007 result.png
Resources
Video
http://www.keyestudio.com/wp/ks0007/
PDF
https://drive.google.com/open?id=1yU9UR8Nd2pfKEiHc0vDGMtQtOl56GoC6
Get One Now
Official Website
http://www.keyestudio.com/ks0007.html
Amazon Store
https://www.amazon.com/Shield-current-driver-module-Arduino/dp/B016PNP93I/