L298N DataSheet

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11
At a glance
Powered by AI
The key takeaways are that the L298 chip is a dual full-bridge motor driver that can control two DC motors or one stepper motor independently, with a maximum current of 2A per channel or 4A total. It operates between 4V to 35V.

The L298 chip is a dual full-bridge driver designed to drive inductive loads such as relays, solenoids, DC motors, and stepping motors. It allows controlling the speed and direction of two DC motors independently.

The L298 driver can control two DC motors independently, with each motor having its own H-bridge circuit.

L298 Dual H-Bridge Motor Driver

Users Guide

L298 Dual H-Bridge Motor Driver

Users Guide

Overview
The Motor Shield is based on the L298, which is a dual full-bridge driver designed to
drive inductive loads such as relays, solenoids, DC and stepping motors. It lets you drive two
DC motors , controlling the speed and direction of each one independently.

Summary
Operating Voltage 4V to 35V
Motor controller L298N, Drives 2 DC motors or 1 stepper motor
Max current 2A per channel or 4A max
Free running stop and brake function
Chip: ST L298N
Logic power supply:5v
Max power:25w
Weight: 35g
Size:55mm x 60mm x 30mm
Storage temperature:-25 to +135

L298 Dual H-Bridge Motor Driver

Users Guide

CSA: Between this pin and ground is conncted the


sense resistor to control the current of the load.
Enable-------- Ignore current detection function
CSB: Between this pin and ground is conncted the
sense resistor to control the current of the load.
Enable-------- Ignore current detection function

Logic power
indicator

5V-EN: Enable----78M05 worked ,output DC 5V


Disable----78M05 do not work . Need input DC 5V
The module need DC 5V always, for logic supply.

The pull-up resistor enabled.


U1---Enable In1 pull-up resistor [10k].
U2---Enable In2 pull-up resistor [10k].
U3---Enable In3 pull-up resistor [10k].
U4---Enable In4 pull-up resistor [10k].
IN1 IN2 : TTL Compatible Inputs of the Bridge A
In3 In4 :TTL Compatible Inputs of the Bridge B.
ENA ENB:TTL Compatible Enable Input: the L state disables the
bridge A(enable A) and/or the bridge B (enable B).

5V_EN:
Enable: [5V] can
output DC 5V.
Disable:[5v] need
input DC 5V.

L298 Dual H-Bridge Motor Driver

Users Guide

DC brush motor
All enable

DC 5v to 16v
+

Channel A:
IN1---5V
IN2---GND Forward
IN1---GND IN2--5V
Reverse
ENA---5V
channel A enable
ENA---GND channel A disable
ENA---PWM adjust speed

Enable
Chip 78M05 provides 5v logic supply

L298 Dual H-Bridge Motor Driver


DC brush motor

All enable
Channel B

DC 5v to 16v
+

Users Guide

Channel A:
IN1---5V
IN2---GND Forward
IN1---GND IN2--5V
Reverse
ENA---5V
channel A enable
ENA---GND channel A disable
ENA---PWM adjust speed
Channel B:
IN3---5V
IN4---GND Forward
IN3---GND IN4--5V
Reverse
ENB---5V
channel B enable
ENB---GND channel B disable
ENB---PWM adjust speed

Enable
Chip 78M05 provides 5v logic supply

Channel A

L298 Dual H-Bridge Motor Driver

Users Guide

Stepper motor

All enable

In1 In2 In3 In4 refer to the sample code


ENA and ENB ----5V ouput enable
ENA or ENB---GND
output disable

DC 5v to 16v

Enable
Chip 78M05 provides 5v logic supply

L298 Dual H-Bridge Motor Driver

Users Guide

Motor powered with DC 4V to 5.5V

All enable

DC 4v to 5.5v
+

Channel A:
IN1---5V
IN2---GND Forward
IN1---GND IN2--5V
Reverse
ENA---5V
channel A enable
ENA---GND channel A disable
ENA---PWM adjust speed

Please disable the jumper


The chip 78M05 will not work good
when the supply voltage lower than 5v.
Then need a separate 5V logic supply

L298 Dual H-Bridge Motor Driver

Users Guide

Motor powered with DC 16V to 35V

All enable

DC 5V
+
DC 16v to 35v
+

Channel A:
IN1---5V
IN2---GND Forward
IN1---GND IN2--5V
Reverse
ENA---5V
channel A enable
ENA---GND channel A disable
ENA---PWM adjust speed

Please disable the jumper


The chip 78M05 will be s erious heat
when the supply voltage exceeds 16V.
Then need a separate 5V logic supply

L298 Dual H-Bridge Motor Driver

Users Guide

Connect with Arduino


The power supply, please refer to
the previously described

If you need to adjust the motor speed , you need to load a PWM signal on the red line

L298 Dual H-Bridge Motor Driver

Users Guide

Example Code :
Platform:Arduino
Target:4-wire 2 -phase stepper motor

Platform:Arduino
Target:2-wire DC brush motor

L298 Dual H-Bridge Motor Driver


Schematic

Users Guide

You might also like