L298N Datasheet Explained: Pinout, Specifications, and Motor Control Basics

Share
Tweet
Pin
LinkedIn
L298N datasheet featured on Ultra Librarian
L298N in a Multiwatt15 V Package
.

Microcontrollers like an Arduino or an STM32 are excellent for logic, but they lack the current-carrying capacity to drive heavy loads, such as motors, directly. The L298N is an industry-standard solution to this problem. Produced by STMicroelectronics, this dual H-bridge high-current motor driver is capable of controlling the speed and direction of two DC motors or one stepper motor. This guide breaks down the L298N datasheet to show the technical specifications, physical pinout, and practical application requirements for this versatile IC.

What is the L298N?

The L298N is a high-voltage, high-current dual full-bridge driver designed to accept standard TTL logic levels. It drives inductive loads, including relays, solenoids, DC motors, and both unipolar and bipolar stepper motors. More specifically, the L298N driver contains two H-bridge circuits, each allowing current to flow through a motor (or coil) in either direction, enabling bidirectional control.

L298N Datasheet Specifications

Exceeding the operating limits stated in the L298N Datasheet can lead to immediate failure of the silicon.

Absolute maximum ratings

ParameterValueUnit
Power supply50V
Logic supply voltage7V
Input and enable voltage–0.3 to 7V
Peak output current (each channel):
• Non repetitive (t = 100 ms)
• Repetitive (80% on –20% off; ton = 10 ms)
• DC operation
3
2.5
2
A
Sensing voltage–1 to 2.3V
Total power dissipation (tcase = 75 °C)25W
Junction operating temperature–25 to 130°C
Storage and junction temperature–40 to 150°C

Technical Note: Voltage Drop

One critical detail often overlooked is the voltage drop across the output stage. Because the L298N uses bipolar transistors rather than MOSFETs, there is a cumulative drop of about 1.5V to 2.5V between the supply voltage (Vs) and the motor terminals. This must be accounted for in your power budget.

Pinout and Functional Descriptions

L298N pin configuration
Pin Configuration of L298N packages: Multiwatt15 and PowerSO20.

The L298N is manufactured in two primary packages: the Multiwatt15 (through-hole version) and the PowerSO20 (surface mount version). While pin numbering varies by package, the functional groups remain the same:

  • Outputs (OUT1 through OUT4): These pins connect directly to the motor terminals. OUT1 and OUT2 serve Bridge A, while OUT3 and OUT4 serve Bridge B.
  • Logic Inputs (IN1 through IN4): These accept TTL signals from the MCU to control the bridge state. For a DC motor, setting one input HIGH and the other LOW sets the direction.
  • Enable Pins (ENA, ENB): These act as the “on/off” switch for each bridge. In most designs, a Pulse Width Modulation (PWM) signal is applied to these pins to control the motor speed.
  • Current Sensing (SENS A, SENS B): These pins are located at the bottom of each H-bridge. They allow an external sensing resistor to be connected to ground to monitor motor current. If current sensing is not needed, these pins must be tied directly to ground.
  • Supply Pins (Vs, Vss): The Vs pin provides the high-voltage power for the motors, while Vss provides the 5V logic power for the internal circuitry.
  • Ground (GND): This is the common ground reference for both the high-power motor supply and the low-power logic supply.

Package Comparison: Multiwatt15 vs. PowerSO20

FeatureMultiwatt15PowerSO20
Mounting StyleThrough-Hole (Vertical)Surface Mount (SMD)
Total Pins1520
Cooling MethodExternal Bolt-on HeatsinkPCB Copper Pour / Thermal Vias
Best Used ForHigh-power, high-heat appsCompact, automated SMT assembly
GND ConnectionSingle Pin (Pin 8)Multiple pins connected to a thermal slug

While the PowerSO20 is better suited to compact designs, the Multiwatt15 remains the standard for high-power motor control due to its superior cooling. If your PCB layout uses the SMT version, ensure the thermal pad is correctly defined in your CAD library to prevent the chip from overheating during operation.

Motor Control Wiring Basics

To drive a DC motor, connect the motor to OUT1 and OUT2. The logic follows this pattern:

  • Forward: IN1 = High, IN2 = Low
  • Reverse: IN1 = Low, IN2 = High
  • Brake: IN1 = High, IN2 = High (or Low/Low)

Stepper Motor Control

To drive a bipolar stepper motor, the two coils of the motor should connect to Bridge A (OUT1/OUT2) and Bridge B (OUT3/OUT4). The MCU must step through a specific logic sequence on IN1 through IN4 to rotate the motor.

Practical Implementation Notes

Heat Dissipation

At its maximum rated current of 2A per channel, the L298N generates significant heat. The datasheet indicates that a large heatsink is mandatory for high-current applications. Without thermal management, the chip’s internal protection will trigger, or the part will suffer permanent damage.

External Diodes

Unlike some modern drivers, the L298N does not have internal freewheeling diodes. When the motor stops, it generates an inductive spike (back-EMF). You must place 8 fast-recovery diodes (e.g., 1N5819 Schottky diodes) on your PCB to protect the driver from these spikes.

Frequently Asked Questions

Can the outputs of the L298N dual H-bridge motor driver be connected in parallel to drive a single motor?
Yes. The two H-bridges (Bridge A and Bridge B) can be connected in parallel to drive a single DC motor with higher current capacity. This is done by tying the corresponding outputs together (OUT1 with OUT3, and OUT2 with OUT4) and applying identical control signals to both bridges.

What is the minimum voltage for Vs?
The motor supply voltage must be at least 2.5V higher than the logic supply voltage (Vss) for the internal level shifters to work correctly.

Why is my motor spinning slowly?
Check the voltage drop mentioned in the L298N Datasheet. If you provide 12V at the input, the motor may only receive 9.5V.

How Ultra Librarian Helps

Integrating a power driver into your PCB layout requires precision. The Multiwatt15 package has staggered pins that are difficult to draw manually. Ultra Librarian provides verified footprints, schematic symbols, and 3D models that match the L298N datasheet exactly, ensuring your physical board meets the datasheet specifications. If you’re looking for CAD models for common components or the L298N driver, Ultra Librarian helps by compiling all your sourcing and CAD information in one place.

Working with Ultra Librarian sets your team up for success, ensuring streamlined and error-free design, production, and sourcing. Register today for free.

UL-Icon.png

The Ultra Librarian Team

Ultra Librarian offers the world’s largest PCB CAD library, putting cutting-edge materials at your fingertips so you can build better products faster—all for free.

Join Our Newsletter

Subscribe to our newsletter to receive the latest news, and important updates

Name(Required)

Related Posts

If you’re looking for any of our component footprints or models, we have readily available and free options for you and your design team. Search our library for the solution you’ve been looking for.

IC Manufacturers

Working with us allows you to target the right audience for your component, provide content to nurture them along their design process, and analyze how your parts are being received and used.

How do manufacturers help shape the pcb design engineer’s journey?

Download now to discover how manufacturers support PCB design with data, tools, models and more.

Free Design Resources

Ultra Librarian is the worlds largest online – and always free – PCB CAD library. Build products better, faster, and more accurately with easy access to vendor-verified symbols, footprints, and 3D models. Register today to start searching the right components for your next design.

Recommended

Search Our Blog

Categories