ULN2003 Stepper Driver
A ULN2003 Darlington-array breakout that lets a microcontroller drive a 5V unipolar stepper motor (typically the 28BYJ-48) from four digital pins.
- Supply voltage5 V
- Maximum supply voltage50 V
- InterfaceGPIO
- Dimensions32 × 35 × 20 mm

The ULN2003 stepper driver board carries TI's ULN2003A, an array of seven Darlington sinks rated 500 mA and 50 V per output with built-in clamp diodes (TI ULN2003A datasheet, p.1); the board uses four of them for a 28BYJ-48's coils. Wire IN1 to IN4 to four GPIO pins, power the board from 5 V, share ground with the microcontroller and plug the motor into the 5-pin socket.
This module carries a single ULN2003 chip, a high-voltage, high-current array of seven NPN Darlington pairs. On the board, four of those channels are broken out to the IN1 to IN4 header and a 5-pin motor connector, turning a general-purpose sink driver into a low-cost controller for unipolar stepper motors, most often the 28BYJ-48 sold in the same kit.
Each Darlington channel is an open-collector current sink: when an input goes high, the matching output pulls its coil end to ground and energizes that phase. The motor's red common wire connects to the board's +5 V, and firing IN1 through IN4 in the correct sequence steps the rotor. Four onboard LEDs mirror the input states so the phase pattern is visible. Each output of TI's ULN2003A is rated 500 mA and 50 V, and the chip's common-cathode clamp diodes absorb the coils' inductive kickback, so no external flyback diodes are needed.
A 28BYJ-48's 50 Ω coils draw about 100 mA each at 5 V, far below the 500 mA per channel, leaving generous headroom. Because the chip only sinks current, it drives unipolar steppers, small relays, solenoids and lamps, but it cannot reverse the current in a winding and so will not run a bipolar stepper.
ULN2003 Stepper Driver pinout
| Pin | Function | Type |
|---|---|---|
| IN1 | Digital | input |
| IN2 | Digital | input |
| IN3 | Digital | input |
| IN4 | Digital | input |
| VCC | +5V5 V (max 50 V) | power in |
| GND | GND | power in |
| M_BLUE | Motor Blue | free |
| M_PINK | Motor Pink | free |
| M_YELLOW | Motor Yellow | free |
| M_ORANGE | Motor Orange | free |
| M_RED_COM | Motor Red / +5V common | power out |
How to wire the ULN2003 Stepper Driver
Pin by pin, for the board you have.
| ULN2003 Stepper Driver | Arduino Uno | Note |
|---|---|---|
| IN1 | D2 | |
| IN2 | D3 | |
| IN3 | D4 | |
| IN4 | D5 | |
| VCC | 5V | |
| GND | GND |
| ULN2003 Stepper Driver | ESP32 DevKit V1 | Note |
|---|---|---|
| IN1 | GPIO13 (D13) | |
| IN2 | GPIO14 (D14) | |
| IN3 | GPIO27 (D27) | |
| IN4 | GPIO26 (D26) | |
| VCC | VIN | |
| GND | GND |
- VCC is on VIN, which gives about 5 V only while the board is powered from USB.
| ULN2003 Stepper Driver | Raspberry Pi Pico | Note |
|---|---|---|
| IN1 | GP0 | |
| IN2 | GP1 | |
| IN3 | GP2 | |
| IN4 | GP3 | |
| VCC | VBUS | |
| GND | GND |
- VCC is on VBUS, which gives about 5 V only while the board is powered from USB.
ULN2003 Stepper Driver code
Every example here compiles for its board.
// ULN2003 Stepper Driver on Arduino Uno: wiring and a free simulation at https://www.tinkered.ai/components/uln2003-stepper-driver
#include <Stepper.h>
const int STEPS_PER_REV = 2048; // 28BYJ-48 with internal gearing
// 28BYJ-48 quirk: pass the pins as (IN1, IN3, IN2, IN4) so the coil field
// rotates in order. Wiring above on an Uno: IN1=D2, IN2=D3, IN3=D4, IN4=D5
Stepper stepper(STEPS_PER_REV, 2, 4, 3, 5);
void setup() {
stepper.setSpeed(10); // RPM
}
void loop() {
stepper.step(STEPS_PER_REV); // one full revolution forward
delay(500);
stepper.step(-STEPS_PER_REV); // one full revolution back
delay(500);
}
Compiled for arduino:avr:uno on 2026-10-30Before you wire it
- Connect the ULN2003 board's IN1,IN2,IN3,IN4 each to an MCU digital pin.
- Power the board's VCC from 5V (it powers both the logic and the motor) and share GND with the MCU.
- The 28BYJ-48 motor plugs into the board's 5-pin socket: wire its coil pins BLUE/PINK/YELLOW/ORANGE to the board's M_BLUE/M_PINK/M_YELLOW/M_ORANGE and its RED_COM to M_RED_COM.
- Coils must be energised in sequence. With the Stepper library the classic 28BYJ-48 pin order is Stepper(2048, IN1, IN3, IN2, IN4): note IN3/IN2 are swapped so the field rotates smoothly.
- No driving the 28BYJ-48 coil wires directly from MCU GPIOs: they must go through the ULN2003 (the coils need far more current than a GPIO can source).
- No analogRead / PWM speed: this is a discrete step sequence.
- Feed the board and motor from 5 V on the board's power pins. A 28BYJ-48 draws about 200 mA with two coils on, so a dedicated 5 V supply is the safer choice on a USB-powered project with other loads.
- Tie the driver board GND to the microcontroller GND so logic and motor share a common reference; without it the inputs float and stepping is erratic.
- The motor's red wire (common) goes to the +5 V common (M_RED_COM); the four coil wires (blue, pink, yellow, orange) connect to the ULN2003 outputs in order.
- No external flyback diodes are required. The ULN2003A's clamp diodes return each coil's kickback to its COM pin, which the board ties to the motor supply.
- Each output is rated 500 mA (TI). Stay within that per channel and mind the package's total dissipation when several channels conduct at once.
- Inputs are 5 V TTL and CMOS compatible through a 2.7 kΩ series base resistor. 3.3 V logic also drives them: the ULN2003A needs at most 2.4 V at its input for 200 mA of output.
Specifications
- Supply voltage
- 5 V
- Maximum supply voltage
- 50 V
- Interface
- GPIO
- Dimensions
- 32 × 35 × 20 mm
- Weight
- 10 g
From the TI / generic breakout module's datasheet, published by TI / generic breakout module.
Common mistakes
Powering a busy project's motor from the Arduino 5V pin
A 28BYJ-48 with two coils on draws about 200 mA. Added to the rest of a USB-powered build, that can brown out the board and cause resets or missed steps. Run the motor from a separate regulated 5 V supply and share grounds.
Forgetting the common ground
If the driver board and the microcontroller do not share GND, the IN1 to IN4 signals have no return path: the LEDs may glow faintly and the motor jitters or stalls.
Wiring the coils or IN pins out of order
The step sequences assume a fixed phase order. Swapping two coil wires or two input pins makes the motor hum and vibrate instead of rotating. With the Arduino Stepper library, pass the pins as IN1, IN3, IN2, IN4.
Trying to drive a bipolar stepper
The ULN2003 only sinks current to ground and cannot reverse the current in a winding. It works with unipolar 5-wire and 6-wire motors, not 4-wire bipolar steppers, which need an H-bridge or a stepper driver such as the A4988 or TMC2209.
Ignoring the gearbox in the step count
The 28BYJ-48 has a 1/64 gearbox, so one output-shaft revolution is about 2,048 full steps (or 4,096 half steps). Code that uses the bare rotor's count rotates far too little.
ULN2003 Stepper Driver questions
How do I wire a ULN2003 stepper driver board to an Arduino?
Connect IN1, IN2, IN3 and IN4 to four digital pins, the board's power pin to 5 V and its GND to the Arduino's GND, then plug the 28BYJ-48 into the white 5-pin socket. Drive it with Stepper(2048, IN1, IN3, IN2, IN4).
Does the ULN2003 board work with 3.3V microcontrollers like the ESP32?
Yes. The ULN2003A needs at most 2.4 V at its input to sink 200 mA (TI ULN2003A datasheet, p.5), so 3.3 V GPIO drives it. Keep the board's motor supply at 5 V from VIN, because the 28BYJ-48 is a 5 V motor.
Do I need flyback diodes with the ULN2003?
No. The ULN2003A has common-cathode clamp diodes on every output for switching inductive loads (TI ULN2003A datasheet, p.1); the board connects their COM pin to the motor supply, so coil kickback is already clamped.
How much current can the ULN2003 handle?
Each output is rated 500 mA with outputs up to 50 V (TI ULN2003A datasheet, p.1), but the total package dissipation limits how many channels can carry that at once. A 28BYJ-48 needs only about 100 mA per coil at 5 V.
Why do the LEDs blink but the motor does not turn?
The inputs are working, so check the motor side: the motor plugged fully into the socket, 5 V present on the board's power pins, and the phase order in code. With the Stepper library pass IN1, IN3, IN2, IN4, and lower the speed if it only vibrates.
ULN2003 vs A4988: which stepper driver do I need?
Use the ULN2003 for 5-wire unipolar motors like the 28BYJ-48: it only sinks current through each coil half. A 4-wire bipolar motor such as a NEMA 17 needs a bipolar driver with current control, such as the A4988 or TMC2209.
Build something with the ULN2003 Stepper Driver
- Build this
Motorized blinds and curtains
Pair the board with an ESP32 or Arduino to open and close shades on a schedule; the geared 28BYJ-48 holds its position between moves.
- Build this
Analog-style clock or gauge
Use the fine step resolution to sweep a printed dial or clock hand, driving a physical indicator from sensor data or the time.
- Build this
Camera pan or slider control
Drive slow, repeatable pans and time-lapse moves where the motor's quiet geared output matters more than speed.
- Build this
Small rotary table
Turn a lightweight platform for 3D scanning and photography, using four GPIO pins per motor and the onboard LEDs to watch the phase timing.
This page as plain Markdown, for ChatGPT, Claude or your own agent. /components/uln2003-stepper-driver.md