28BYJ-48 stepper + ULN2003 driver with ESP32

Supply 5 V Bus GPIO
IN1IN2IN3IN4-+

Pins and ESP32 wiring

PinRoleESP32 pinNotes
IN1Input (the ESP32 drives it)D25
IN2Input (the ESP32 drives it)D26
IN3Input (the ESP32 drives it)D27
IN4Input (the ESP32 drives it)D32
-GroundGNDDriver ground. Share it with the ESP32 GND
+PowerVINMotor supply 5 V: use VIN (about 240 mA)

Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.

This module is sold for 5 V. Its outputs may be 5 V: use a level shifter or a voltage divider on ESP32 inputs.

Sources

Try it in 3D in BoardPilot

BoardPilot Part data (JSON)

Related parts

Part data: CC BY 4.0, free to reuse with credit to BoardPilot.