Tutorial for L298 2Amp Motor Driver Shield for Arduino
by mybotic in Circuits > Arduino
34892 Views, 14 Favorites, 0 Comments
Tutorial for L298 2Amp Motor Driver Shield for Arduino
![1.JPG](/proxy/?url=https://content.instructables.com/FVD/19IN/J9YJH4P1/FVD19INJ9YJH4P1.jpg&filename=1.JPG)
Description
L298 2Amp Motor Driver Shield for Arduino is based on L298 motor driver integrated circuit, a full- bridge motor driver. It can drive two seperate 2A DC motors or 1 2A step motor. Motor's velocity and directions can be controlled separately and also there are 6 connectors connected to Arduino analog pins. This motor driver shield with PWM speed control mode and the PLL mode, using jumper to switch.
Features
- input voltage : 5V
- Onboard buzzer (D4), can set the astern alarm ringtone.
-
It has six digital interface that are not occupied(including D2 , D3 , D5 , D6 , D7 , D9)
-
It has six analog interfaces(A0, A1, A2, A3, A4, A5)
-
It has indicator for forward and backward changing direction .
For details of this module, you may refer to here.
Pin Definition
![L298P-Motor-Shield.jpg](/proxy/?url=https://content.instructables.com/FFH/89DH/J9YJH4PL/FFH89DHJ9YJH4PL.jpg&filename=L298P-Motor-Shield.jpg)
Material Preparation
![Capture.JPG](/proxy/?url=https://content.instructables.com/FJC/12W2/J9YJH4GJ/FJC12W2J9YJH4GJ.jpg&filename=Capture.JPG)
![2.JPG](/proxy/?url=https://content.instructables.com/FBP/RN99/J9YJH4G8/FBPRN99J9YJH4G8.jpg&filename=2.JPG)
![1.JPG](/proxy/?url=https://content.instructables.com/FA0/MXSS/J9YJH4G6/FA0MXSSJ9YJH4G6.jpg&filename=1.JPG)
For this tutorial, we required these items:
1. L298 2Amp Motor Driver Shield for Arduino
2. Arduino Uno Board and USB
3. 2x Plastic Gear Motor
Hardware Connection
![connection.JPG](/proxy/?url=https://content.instructables.com/FF1/N9AU/JA1TVG8B/FF1N9AUJA1TVG8B.jpg&filename=connection.JPG)
In this tutorial, you need to use this motor driver shield pins stacked on the Arduino Uno. Then, connect the two gear motor to the terminal block of MOTOR A and MOTOR B.
Sample Source Code
Download this sample source code.
Downloads
Results
![photo_2017-11-16_11-22-50.jpg](/proxy/?url=https://content.instructables.com/FMW/6NGB/JA1TVGXA/FMW6NGBJA1TVGXA.jpg&filename=photo_2017-11-16_11-22-50.jpg)
Based on the result, the Motor 1 moves in reverse direction while Motor 2 moves in forward direction. After 3 seconds, the Motor 1 will forward direction and Motor 2 moves in reverse direction and this cycle is repeating continuously.
Video
![L298D 2Amp Motor Driver Shield for Arduino](/proxy/?url=https://content.instructables.com/FAQ/49ET/JA1TVHUU/FAQ49ETJA1TVHUU.jpg&filename=L298D 2Amp Motor Driver Shield for Arduino)
This video shows the demonstration of the tutorial for L298D 2Amp Motor Driver Shield for Arduino.