0% found this document useful (0 votes)
90 views8 pages

Handson Technology: L298P 2-A Dual H-Bridge Motor Shield For Arduino

This document provides information about the L298P 2-A Dual H-Bridge Motor Shield for Arduino. It can control two separate DC motors or one step motor, with independent control of speed and direction for each motor. It uses an L298P motor driver IC and can be powered by Arduino or an external power source. The shield includes connectors for Arduino analog pins and an onboard buzzer. A sketch is provided to demonstrate controlling two DC motors connected to the shield.

Uploaded by

quocduypt95
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views8 pages

Handson Technology: L298P 2-A Dual H-Bridge Motor Shield For Arduino

This document provides information about the L298P 2-A Dual H-Bridge Motor Shield for Arduino. It can control two separate DC motors or one step motor, with independent control of speed and direction for each motor. It uses an L298P motor driver IC and can be powered by Arduino or an external power source. The shield includes connectors for Arduino analog pins and an onboard buzzer. A sketch is provided to demonstrate controlling two DC motors connected to the shield.

Uploaded by

quocduypt95
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Handson Technology

User Guide

L298P 2-A Dual H-Bridge Motor Shield for Arduino


This Arduino Motor Shield is designed based on L298P Power Motor Driver IC, a full- bridge motor driver.
It can drive two seperate 2A DC motors or 1 2A step motor. Motor speed and directions can be controlled
separately. Also there are 6 connectors connected to Arduino analog pins for fast prototyping. An onboard
buzzer can be activated when required for audible warning purposes. This Motor shield can be powered
directly from Arduino or from external power source. It is strongly recommended to use external power
supply to power the motor shield.

SKU: DRV1007

Brief Data:

 Driver: L298N Dual H Bridge DC Motor Driver


 Motor Driving Voltage: 4.8 ~ 35V (From Arduino or External Power Source)
 Peak Motor Current: 2Amp.
 Onboard Buzzer.
 Motor Direction LED indicators.
 Control signal input voltage range:
o Low: -0.3V ≤ Vin ≤ 1.5V.
o High: 2.3V ≤ Vin ≤ Vss.
 Enable signal input voltage range :
o Low: -0.3 ≤ Vin ≤ 1.5V (control signal is invalid).
o High: 2.3V ≤ Vin ≤ Vss (control signal active).
 Maximum power consumption: 25W (when the temperature T = 75 ℃).
 Storage temperature: -25 ℃ ~ +130 ℃.
 Size: 68.5mm x 53mm x 12mm

1 www.handsontec.com
Functional Block Diagram:

Arduino Motor Control I/O Pin Assignment:


Function Motor-A Motor-B
Direction Control D12 D13
PWM Control D10 D11
Buzzer Control D4

You can use 2 brushed DC motor by connecting them to Motor A and Motor B terminals on the shield. By
making Direction Control A (D12) and Direction Control B (D13) pins HIGH or LOW, you can control
direction of motors. By changing PWM-A (D10) and PWM-B (D11) rate, you can control speed of the
motors.

2 www.handsontec.com
Board Dimension:
Unit: mm

3 www.handsontec.com
Arduino Connection Examples:
Controlling 2-DC Motor with +12V External Power Supply:
Below is the circuit connection using +12V external power supply, and should be done with the Jumper
inserted as shown. This connection can drive two 12V DC motors simultaneously.

4 www.handsontec.com
Sketch Listing:
Copy and paste the sketch below to Arduino IDE and upload to Arduino Uno/Mega board.

/*==========================================================================
// Author : Handson Technology
// Project : Arduino Uno
// Description : L298P Arduino Motor Shield demo
// Source-Code : L298.ino
//==========================================================================
*/

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);}
}

After successfully download, the 2-DC motors attached to the motor shield will turn forward and backward.
The motor turning direction will be indicated by the yellow and green LED indicators.

5 www.handsontec.com
Web Resources:

 775 Ball Bearing DC Motor


 A58SW-555 Worm Gear Motor
 40A Reversible Motor Speed Controller

6 www.handsontec.com
Handsontec. com
We have the parts for your ideas

HandsOn Technology provides a multimedia and interactive platform for


everyone interested in electronics. From beginner to diehard, from student
to lecturer. Information, education, inspiration and entertainment. Analog
and digital, practical and theoretical; software and hardware.

HandsOn Technology support Open Source Hardware (OSHW)


Development Platform.

Learn : Design : Share


handsontec.com

7 www.handsontec.com
The Face behind our product quality…
In a world of constant change and continuous technological development, a new or replacement
product is never far away – and they all need to be tested.
Many vendors simply import and sell wihtout checks and this cannot be the ultimate interests of
anyone, particularly the customer. Every part sell on Handsotec is fully tested. So when buying from
Handsontec products range, you can be confident you’re getting outstanding quality and value.

We keep adding the new parts so that you can get rolling on your next project.

Breakout Boards & Modules Connectors Electro-Mechanical Parts

P
Engineering Material Mechanical Hardware Electronics Components

Power Supply Arduino Board & Shield Tools & Accessory

8 www.handsontec.com

You might also like