LabWired The easy way to build hardware
board I/O module

H-bridge motor driver

The H-bridge motor driver is a board I/O module in the LabWired part catalog. Its catalog type is l298n. It connects to the MCU over GPIO. The catalog gives a supply range of 5–35 V. It has 12 pins. A registered peripheral model runs in the engine: the firmware talks to it over the real bus and gets device-accurate responses.

Key facts

CategoryBoard I/O modules
Catalog typel298n
InterfaceGPIO
Supply range5–35 V
Pins12

What LabWired simulates

What is simulated

Simulated device model

How it was validated

Built from the datasheet. Implemented from the part’s register documentation and exercised by automated tests. Nothing physical was ever placed next to it.

H-bridge motor driver pinout

PinElectrical typeFunction
VCC Power input Supply
GND Power input Supply
IN1 Input GPIO
IN2 Input GPIO
IN3 Input GPIO
IN4 Input GPIO
ENA Input PWM
ENB Input PWM
OUT1 Passive —
OUT2 Passive —
OUT3 Passive —
OUT4 Passive —

How to simulate the H-bridge motor driver in LabWired

  1. Open the Playground at app.labwired.com and place an MCU board.
  2. Add the H-bridge motor driver (catalog type l298n).
  3. Connect VCC and GND to the supply and ground of the board. Use a supply inside the catalog range of 5–35 V.
  4. Connect ENA and ENB to pins that can output PWM.
  5. Connect IN1, IN2, IN3 and IN4 to free GPIO pins.
  6. Connect OUT1, OUT2, OUT3 and OUT4 as your circuit needs.
  7. Run the firmware. It drives and reads the pins of the part, and the device model responds on those pins.

Related Board I/O modules

All Board I/O modules · All parts

No manufacturer datasheet is indexed for this part yet, so none is linked here.