Bringup
Open the editor
Behavioural mixed-signal modelL298N module (HW-095)l298n_module

L298N dual H-bridge module

Two bipolar H-bridges for DC motors or one bipolar stepper, 5–46 V motor supply, 2 A per bridge. IN1–IN4 set the outputs (high = output to +12V, low = output to GND), ENA/ENB enable the bridges (jumpers to +5 V fitted: always enabled; remove them for PWM on ENA/ENB). Typical saturation drop 1.35 V (source) + 1.2 V (sink) at 1 A, so a motor gets about 2.5 V less than the supply. Recirculation diodes on the board. Supply the logic with 5 V on the +5V pin.

+12VGND+5VENAIN1IN2IN3IN4ENBOUT1OUT2OUT3OUT4L298N module (HW-095)
Schematic symbol

Key data

Category
Modules
Simulation model
Behavioural mixed-signal model
Manufacturer part number
L298N module (HW-095)
Reference prefix
U
Pins
13
Land pattern
PinHeader_1x13_P2.54mm_Vertical

Simulation model

A behavioural model implements the interface of the chip (registers, protocol, timing) at its pins. The pins are connected to the analog circuit like CMOS pins.

Model
l298n
Supply pins
5V / GND

Pins 13

PinNameUse
VS+12VSupply pinMotor supply 5–46 V (screw terminal +12V)
GNDGNDGround pinGround
5V+5VSupply pinLogic supply 5 V (4.5–7 V)
ENAENAInput pinEnable bridge A: high = on, PWM for the speed (jumper to 5 V when not used)
IN1IN1Input pinDirection input bridge A: OUT1 follows
IN2IN2Input pinDirection input bridge A: OUT2 follows
IN3IN3Input pinDirection input bridge B: OUT3 follows
IN4IN4Input pinDirection input bridge B: OUT4 follows
ENBENBInput pinEnable bridge B: high = on, PWM for the speed (jumper to 5 V when not used)
OUT1OUT1Output pinMotor A terminal
OUT2OUT2Output pinMotor A terminal
OUT3OUT3Output pinMotor B terminal
OUT4OUT4Output pinMotor B terminal

Parameters 2

Jumper ENA → +5 V fittedjumperA
Defaulton

As delivered: bridge A always enabled. Remove it to drive ENA with PWM.

Jumper ENB → +5 V fittedjumperB
Defaulton

As delivered: bridge B always enabled. Remove it to drive ENB with PWM.

PCB

Connector / off-boardPinHeader_1x13_P2.54mm_Vertical

L298N dual H-bridge module as a module on a 13-pin header (+12V, GND, +5V, ENA, IN1, IN2, IN3, IN4, ENB, OUT1, OUT2, OUT3, OUT4) – wire it to the pads / terminals of your module