PinLab › Components › Stepper motor 28BYJ-48 + ULN2003
28BYJ-48 (5 V) ULN2003 IN1–4+5V GND

Stepper motor 28BYJ-48 + ULN2003

precise turning, step by step

A small motor that turns in exact steps, so you know exactly how far it has turned without a sensor. It comes with a ULN2003 driver board with 4 LEDs that show which coil is on.

Open the course →

How it works

The motor has 4 coils (electromagnets). When you switch them on in order, the rotor follows them step by step. With half-steps (8 combinations) you get 4096 steps per turn (thanks to the built-in 1:64 gearbox). The ESP32 cannot supply enough current for the coils, so the ULN2003 is an "amplifier": 4 transistors that switch the coils on when the GPIO goes HIGH.

Pins and wiring

PinWhat it isWhere it connects / why
IN1 – IN4Coil inputs→ 4 GPIO (e.g. 14, 27, 26, 25).
+ (5–12 V)Motor supply→ VIN (5 V).
− (GND)Ground→ GND, shared with the ESP32.
Connector (white)5-wire motor cableFits only one way round.

Specifications

Voltage5 V
Steps4096 half-steps / turn
Speedmax ~15 RPM
Current~240 mA
Gearbox1:64

Tips and typical mistakes

Used in projects