As an Amazon Associate we earn from qualifying purchases.
A microcontroller pin can only supply a few milliamps, while even a small motor can draw hundreds of milliamps or more. A motor driver IC sits between the two. It takes a low-power logic signal and switches a higher current and voltage to the motor. It also helps handle the voltage spikes a motor produces when it is switched off.
This page covers four common motor driver ICs: the L293D and L298N H-bridge drivers, and the ULN2003 and ULN2803 Darlington arrays from the ULN series. It explains what each one does, where it fits, and how to choose between them.
Two main types of motor driver IC
The chips below do different jobs, so it helps to know the difference first.
- H-bridge drivers (L293D, L298N) can reverse the current through a motor. This lets you change a DC motor’s direction, and with a PWM signal on the enable pin, its speed. They can also drive one winding of a bipolar stepper motor.
- Darlington arrays (ULN2003, ULN2803) are banks of transistor switches that only sink current. They are good for turning loads on and off, and for driving unipolar stepper motors, relays, solenoids and LEDs. They cannot reverse a DC motor by themselves.
H BRIDGE TYPE
An H-bridge uses four switches arranged in the shape of the letter H, with the motor in the middle. Closing one diagonal pair of switches sends current through the motor one way. Closing the other pair reverses it. Both chips below contain two H-bridges, so each can drive two DC motors or one bipolar stepper motor.
L293D
The L293D is a 16-pin dual H-bridge in a DIP package, which makes it easy to use on a breadboard. It has internal clamp diodes, so you do not need to add flyback diodes for inductive loads. That makes it a good first driver for small projects.
Its limits are modest: roughly 600 mA continuous per channel, with higher short peaks. It suits small hobby gear motors, toy motors and small bipolar steppers. For larger motors it will get hot or fail to deliver enough current. Check the datasheet for your exact part and manufacturer.
If you want a working example, see how to control a bipolar stepper using the L293D with an Arduino in our guide.
Original listing: price 30, quantity listed 50.
L298N
The L298N is a dual full-bridge driver in a larger package with a metal tab for a heat sink. It handles considerably more current than the L293D, around 2 A per channel, and a higher supply voltage. That makes it a common choice for medium-sized DC motors, robot wheels and larger stepper motors.
A few practical points:
- The L298N does not include flyback diodes. Add fast diodes across each output, or use a module that already has them.
- It is built on bipolar transistors, so it loses a noticeable amount of voltage across the bridge. The motor receives less than the supply voltage, and the chip turns the difference into heat.
- Use a heat sink when you run it near its current rating.
The L298N is often sold on a small board with the diodes, a heat sink and screw terminals already fitted. See our overview of ready-made motor driver modules for those boards.
Original listing: price 80, quantity listed 10.
ULN SERIES
The ULN series contains arrays of Darlington transistor pairs. Each output switches a load to ground when its input goes high. The outputs are open-collector, and the loads connect between the motor supply and the output pin. The chips include clamp diodes, so you connect the common diode pin to the motor supply when driving inductive loads.
ULN2003
The ULN2003 has seven Darlington channels in a 16-pin package. Each channel can sink roughly 500 mA. Its inputs are designed to work with logic-level signals, so a 5 V microcontroller can drive it directly.
It is widely used to drive small unipolar stepper motors, such as the 28BYJ-48, and also relays, small solenoids and buzzers. Four of its channels are enough for one unipolar stepper. For code examples, start with Arduino stepper motor control.
Original listing: price 7, quantity listed 50.
ULN2803
The ULN2803 is the eight-channel version, in an 18-pin package. It works the same way as the ULN2003 but gives you one extra output per chip. That is useful for driving a row of relays or LEDs, or for driving two sets of loads from a single IC.
Like the ULN2003, each channel is rated for about 500 mA. Several channels can be paralleled for more current, but only within the total power the package can dissipate.
Original listing: price 10, quantity listed 40.
Quick comparison
- L293D: dual H-bridge, about 600 mA per channel, built-in diodes, breadboard-friendly.
- L298N: dual H-bridge, about 2 A per channel, needs external diodes and often a heat sink.
- ULN2003: seven sink-only channels, about 500 mA each, built-in diodes.
- ULN2803: eight sink-only channels, about 500 mA each, built-in diodes.
The prices and stock figures given in the original listing are not current and had no stated currency. Check with your supplier for today’s price and availability.
How to choose the right driver
- Check the motor type. A brushed DC motor that must run in both directions needs an H-bridge. A unipolar stepper or a simple on/off load works well with a ULN chip. A bipolar stepper needs two H-bridges.
- Check the current. Use the motor’s running current, and its stall current if it may jam. Leave a safety margin and do not run any chip at its limit.
- Check the voltage. The motor supply must be within the driver’s range, and you should allow for the voltage the driver drops.
- Plan for heat. Higher current needs a heat sink or a more efficient driver.
- Share the ground. The microcontroller and the motor supply must share a common ground, or the control signals will not work reliably.
For smooth speed control, send a PWM signal to the enable pin of an H-bridge. If you want to build a simpler switch-based circuit, see MOSFET and PWM speed control. If you are picking a board for a specific build, our guide to the best motor driver for Arduino compares more options.
Wiring tips
- Use a separate supply for the motor, and keep the logic supply for the microcontroller.
- Add a decoupling capacitor close to the driver’s supply pins.
- Keep motor wiring short and away from signal wires to reduce noise.
- Test the motor without a load first, then add the load gradually while watching the temperature of the chip.
FAQ
What is the difference between the L293D and the L298N?
Both are dual H-bridge drivers. The L293D is smaller, has built-in diodes and handles lower current. The L298N handles higher current and voltage but needs external diodes and usually a heat sink.
Can I drive a DC motor in both directions with a ULN2003?
Not on its own. The ULN2003 only sinks current, so it can switch a motor on and off but cannot reverse it. For reversing, use an H-bridge such as the L293D or L298N.
Which driver is best for a stepper motor?
It depends on the motor. Unipolar steppers such as the 28BYJ-48 work well with a ULN2003. Bipolar steppers need H-bridges, so use an L293D for small motors or an L298N for larger ones.
Do I need flyback diodes?
The L293D, ULN2003 and ULN2803 have internal clamp diodes. The L298N does not, so add external diodes unless your module already includes them.