science tinker

Motor driver (L298N)

Lets a board control the speed and direction of two DC motors that need far more current than a pin can give.

Motion · Elements inside: SiCuAlZnSn

How it works

Inside are two H-bridges: four transistor switches around each motor, arranged like the letter H. Close one diagonal pair and current flows one way through the motor; close the other pair and it flows the other way. IN1 and IN2 choose the direction of motor A (IN3 and IN4 for motor B), and a PWM signal on ENA (ENB) sets the speed by switching the bridge on and off very fast.

What it is made of

  • Driver chip: L298 silicon chip in a 15-pin power package SiCu
  • Heatsink: Aluminium with fins Al
  • Terminals and board: Tin-plated brass screw terminals on a copper circuit board CuZnSn
  • Regulator: 78M05 5 V regulator Si

Where the materials come from: Aluminium from bauxite; copper from chalcopyrite; zinc from sphalerite; silicon from quartz.

The chemistry

The L298 loses about 2 V as heat in its transistors, so at 1 A it makes about 2 W of heat. Fins give the aluminium heatsink a large surface to pass that heat to the air.

Biology connection

Your arm reverses direction with a pair of muscles: the biceps pulls one way and the triceps the other. An H-bridge reverses a motor by sending current the other way. Antagonistic muscles and levers →

Safety and the environment

Power the motors from a battery pack on +12V and join its − to the board's GND (common ground). It handles up to 2 A per motor and gets hot. Remove the 5V jumper if the supply is above 12 V.

Did you know? Newer drivers with MOSFET switches, like the TB6612FNG, waste far less energy as heat, so robot batteries last longer.

Try it in the simulator

Build and code a circuit with a Motor driver in these practice projects:

Questions students ask

What does a Motor driver do?

Lets a board control the speed and direction of two DC motors that need far more current than a pin can give.

How does a Motor driver work?

Inside are two H-bridges: four transistor switches around each motor, arranged like the letter H. Close one diagonal pair and current flows one way through the motor; close the other pair and it flows the other way. IN1 and IN2 choose the direction of motor A (IN3 and IN4 for motor B), and a PWM signal on ENA (ENB) sets the speed by switching the bridge on and off very fast.

What is a Motor driver made of?

Driver chip: L298 silicon chip in a 15-pin power package. Heatsink: Aluminium with fins. Terminals and board: Tin-plated brass screw terminals on a copper circuit board. Regulator: 78M05 5 V regulator.

Is a Motor driver safe? How should it be recycled?

Power the motors from a battery pack on +12V and join its − to the board's GND (common ground). It handles up to 2 A per motor and gets hot. Remove the 5V jumper if the supply is above 12 V.

More motion

Know someone who would use this?

It’s free for every learner. Send it to your class, team or club.

Updated · Free, no sign-up ·

Connected tools

The same idea from another angle, across the site.