Motorize dumb roller blinds with an ESP32 and a stepper
An ESP32 and a cheap 28BYJ-48 stepper motorize ordinary roller blinds from a web UI or MQTT, with Home Assistant cover integration. Low-voltage DC only.

What it is
Open-source MIT firmware by eg321 that motorizes ordinary roller blinds with an ESP32 and one cheap 28BYJ-48 stepper per blind — web UI, MQTT, Home Assistant cover entities — on 3D-printed direct-drive mounts. Schedules and sunrise/sunset automation live in your automation system, not on the board.
What you need
- ESP32-DevKitC (ESP32-WROOM-32)
- 28BYJ-48 5V stepper with ULN2003 driver board No catalog match — buy the common stepper+driver bundle; 12 V winding variant recommended for heavy blinds
- 5V power supply
- 3D-printed mounts (free STLs) Leroy Merlin direct-drive models in the repo + Thingiverse thing:4093205
- Dupont jumper wires (assorted)
How hard
Beginner — commodity parts, phone-based setup, no code edits; you need 3D-printer access, and fitting the printed parts to your blinds is the actual hard part.
Key Facts
- ESP32 + 28BYJ-48 stepper + ULN2003 driver motorize ordinary roller blinds — low-voltage DC only, no mains wiring
- Web UI for open/close/stop and travel end-point calibration; position survives power cuts (saved on device)
- MQTT with Home Assistant auto-discovery (HA 2021.11+); one ESP32 drives up to 4 steppers
- Schedules and sunrise/sunset live in Home Assistant automations, not on the ESP32
- 12V 28BYJ-48 variant recommended for heavier blinds — more torque and speed
- Firmware MIT-licensed (eg321 repo); printed STLs free; direct-drive mounts fit Leroy Merlin blinds, adapt for others
About This Project
The blinds you already own, opening themselves. An ESP32-DevKitC (ESP32-WROOM-32) drives a small geared stepper bolted to the roller with 3D-printed parts; firmware from the eg321 project (MIT-licensed, on GitHub) gives you a web interface to open, close, stop and set the travel end-points of each blind, from your phone. Add MQTT and the blinds appear in Home Assistant or OpenHAB as cover entities you can automate: open at sunrise, close when the afternoon sun hits, shut everything from one button at night. One ESP32 can run up to four blinds at once, and each blind's position survives power cuts.
Be precise about the division of labor: the ESP32 moves blinds and reports where they are; schedules and sunrise/sunset triggers come from your automation system, not from the motor board. MCU Atlas is not affiliated with the maker, Home Assistant or OpenHAB.
Why it's a good first 'real' build
This is the build r/esp32 readers keep recommending as a first step past blinking LEDs, because the payoff is visible every single morning. Every part is commodity hardware: a dev board, a stepper that ships with its own driver board, a phone-charger-class supply. Nothing touches mains voltage — it's all low-voltage DC, so the worst wiring mistake is usually a motor that doesn't turn (one r/esp32 builder's first attempt even burned a stepper driver — it still became his first finished ESP32 build). You need access to a 3D printer for the mechanical parts; the rest rewards patience, not expertise.
The parts list
The whole BOM is commodity hardware, five lines deep. The controller is an ESP32-DevKitC (ESP32-WROOM-32), running the web UI and MQTT (an ESP8266 like a Wemos D1 mini works for up to 2 blinds if that's what you have). The muscle is a 28BYJ-48 5V stepper with ULN2003 driver board, sold as a bundle with the driver included; the maker recommends the 12-volt winding variant of the same motor for more torque and speed on heavier blinds, then powered from a 12 V supply. A 5V power supply is sized for the board plus motor — a decent USB supply or small regulated 5 V adapter. The 3D-printed mounting parts are free STLs from the maker's repo and Thingiverse. And Dupont jumper wires (assorted) plus a few M3 fasteners for the mount.
Build overview
Print the mounts first. The maker publishes STLs in the repo's 3d_parts directory and on Thingiverse (thing:4093205), designed for Leroy Merlin roller blinds: direct drive — remove the plastic chain and attach the motor to the roller. The fixing holes match the original parts, so the blind converts back to manual anytime. For other brands you'll adapt or find a remix — one community builder found his blinds "are apparently not a common design" and simply designed his own.
Then wire the driver to the ESP32: four GPIOs per stepper go to the ULN2003 board, and you power the motor rail from your supply, not from the dev board's USB/5V pin — budget a 5 V rail of at least 2 A if you drive four motors. There is no fixed pin map to get wrong: you type your chosen pins into the setup portal. Flash the firmware from the project's GitHub Releases — v2.0 and v2.0.1 ship precompiled esp32.bin, esp32_bootloader.bin and nodemcuv2.bin images — or build it yourself with PlatformIO (free tooling). Configure from your phone: the device starts a captive portal; join it and set Wi-Fi, pins, motor speed and MQTT — no code edits after flashing. Finally, mount and calibrate: bolt the motor to the roller, then drive the blind to fully open and fully closed in the web UI and save those as the end-points. Position is stored on the device, so a power cut doesn't lose the calibration. The full walkthrough, including the wiring diagram, is in the tutorial below.
Firmware route 1: eg321 web UI + MQTT
The primary route is the eg321 firmware itself. Beyond the web UI and captive portal it brings features you'd otherwise build yourself: MQTT control including remote end-point setting (a complete replacement for the web UI), a watchdog, over-the-air updates with in-UI notifications, windings powered off when idle, and Home Assistant MQTT auto-discovery (needs HA 2021.11 or newer) that creates the cover entities for you — the README also ships manual MQTT cover YAML for older setups.
Firmware route 2: ESPHome for Home Assistant
Already living in Home Assistant? The community-favored alternative is an ESPHome config: ESPHome's stepper component supports the ULN2003 driver directly, and the blind is exposed to HA as a cover entity (the docs note steppers don't surface in Home Assistant by themselves, so the config pairs the stepper with a cover platform). A blinds builder in r/homeassistant runs exactly this — "Software is esphome with a custom config" — with morning-open automation and west-facing blinds closing when the sun drops low. Sunrise/sunset triggering then lives in HA automations, in this setup. Our complete compile-verified ESPHome YAML ships alongside this page (see the ESPHome config link below); its pin choices match the wiring diagram, and it was compiled, not just written.
Torque reality check
The honest question: can a cheap geared stepper really lift a window blind? The 28BYJ-48 is geared roughly 1:64, and for typical lightweight roller blinds builders say yes — the 3D model's author reports the 12 V variant's torque "is enough to easily open/close my 60 cm blinds with quite well speed". For wide or heavy blackout blinds, start with the 12 V motor variant and a healthy supply; if a blind resists, the motor skips rather than forces — which protects the mechanism, but says it's underpowered.
Community proof
The firmware and printed models this page is built on are eg321/esp32-motorized-roller-blinds (GitHub, MIT): years of iteration from an ESP8266 single-motor fork into a multi-stepper ESP32 project with OTA, MQTT and Home Assistant support. The r/esp32 first-build story — "First ESP32 project finished! I've made automatic blind roller" — has the builder admitting "It took much longer than expected and I've burned some stepper drivers, but it works now", with the whole process documented on YouTube. And when r/homeassistant asked for the best ESP32 project for Home Assistant, blinds answers rose to the top: one builder's setup opens in the morning and closes west-facing blinds when the sun is low, on ESPHome with a custom config.
Honest limits
The ESP32 doesn't schedule: timetables, sunrise/sunset and scenes live in Home Assistant or OpenHAB; the board just moves and reports. Torque is finite — the 5V stepper suits light blinds; heavy or wide blinds need the 12 V variant, and some blinds (the r/homeassistant thread has an honest failure story) take more force than a small stepper has. Printed parts are blind-specific: the repo's STLs fit Leroy Merlin models, other blinds need adapted prints, and getting a good fit is the actual hard part of this build. Keep it on your LAN — the web UI has no real authentication, fine at home, wrong on the internet.
Safety: everything runs at low-voltage DC; no mains wiring anywhere. Mount securely — a falling blind or slack drive chain is the real hazard, especially around children (chain-loop blinds carry strangulation risk; motorizing the roller removes the loop, but treat any leftover cord seriously).
What we verified, and what we didn't
We verified the firmware's claims against the maker's own source code and README on 2026-11-15 (features, four-blind support, position storage, no web-UI authentication), confirmed the precompiled release binaries exist (v2.0 and v2.0.1), and compiled our ESPHome config with ESPHome 2026.11.0 on 2026-11-26: the binary fits in 44.6% of a 4 MB ESP32's flash and 24.5% of its RAM (one config, one compile). We have not built the hardware — torque, blind fit and long-term reliability are the maker's and community builders' reports, attributed as such throughout this page.
Where to go next
The skills here — driving steppers, captive-portal setup, MQTT covers — transfer straight to bigger home automation builds. The ESP32-DevKitC (ESP32-WROOM-32) is the same board behind our walkie-talkie and voice-assistant projects; for more Home Assistant-native builds, see the ESPHome wake-word voice assistants and the ESP32 OpenTherm boiler controller pages.
Source & Attribution

Illustration
How to Build It
Parts Needed
- An ESP32-DevKitC (ESP32-WROOM-32) dev board
- A 28BYJ-48 5V stepper with its ULN2003 driver board (12 V winding variant for heavy blinds, powered from 12 V)
- A 5V power supply sized for board plus motors (at least 2 A on the 5 V rail for four motors)
- 3D-printed mounting parts — free STLs from the repo's 3d_parts directory or Thingiverse thing:4093205
- Dupont jumper wires (assorted) and a few M3 fasteners
Steps
- 1
Print the mounts
The maker's STLs live in the repo's 3d_parts directory and on Thingiverse (thing:4093205), designed for Leroy Merlin roller blinds: direct drive — remove the plastic chain and attach the motor to the roller. The fixing holes match the original parts, so the blind converts back to manual anytime. Other brands need adapted or remixed prints; one community builder designed his own after finding his blinds "are apparently not a common design".
- 2
Wire the driver to the ESP32
Four GPIOs per stepper go to the ULN2003 board's IN1–IN4 inputs — GPIO 16–19 in our diagram, but any four free pins work on the eg321 firmware (you type them in at setup). Power the motor rail from your supply, not from the dev board's USB/5V pin — budget a 5 V rail of at least 2 A if you drive four motors — and tie all grounds together at one shared point. The 12 V motor variant wants a 12 V supply and turns faster.

Wiring diagram by MCU Atlas. Tap for the full-size figure. - 3
Flash the firmware
Flash the precompiled firmware from the project's GitHub Releases — v2.0 and v2.0.1 ship ready-made esp32.bin, esp32_bootloader.bin and nodemcuv2.bin images — or build it yourself with PlatformIO (free tooling). No web flasher exists; the releases are the easy route. Going the ESPHome route instead? Flash our compile-verified config (see the ESPHome config link on the page).
- 4
Configure from your phone
The device starts a captive portal; join it and set Wi-Fi, pins, motor speed and MQTT — no code edits after flashing. On the ESPHome route, the pins instead live in the YAML before you flash.
- 5
Mount and calibrate
Bolt the motor to the roller, then drive the blind to fully open and fully closed in the web UI and save those as the end-points. Position is stored on the device, so a power cut doesn't lose the calibration. The ESPHome config doesn't save position across reboots — drive the blind fully closed first after any power loss.
- 6
Automate with Home Assistant
With MQTT, the blinds appear in Home Assistant (2021.11+) as cover entities via auto-discovery; schedules, sunrise/sunset triggers and scenes live in HA automations. ESPHome works too: our compile-verified config pairs the ULN2003 stepper with a cover entity, so the same sunrise/sunset automations drive it.

Automation flow by MCU Atlas. Tap for the full-size figure.
Bill of Materials
Parts list
5 parts · 4 linked
Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works
1× 28BYJ-48 5V stepper with ULN2003 driver board
1× 3D-printed mounting parts (STLs free from maker)
Learn
Docs & guides
Read these before you buy. These pages explain things; they don't sell anything.
- Project repo (GitHub)eg321/esp32-motorized-roller-blinds — firmware, 3D models, READMEDocs
- Precompiled firmware (Releases)v2.0/v2.0.1 ship esp32.bin, esp32_bootloader.bin and nodemcuv2.bin — the easy flash routeDocs
- 3D models on ThingiverseErop's direct-drive models for Leroy Merlin blinds; also in the repo's 3d_partsDocs
- First-build story (r/esp32)"First ESP32 project finished!" — the builder's whole process, including burned driversDocs
- Build video (YouTube)The same build, filmed end to endDocs
- "Best ESP32 project" thread (r/homeassistant)u/ttabbal's ESPHome blinds setup and the honest failure storyDocs
- ESPHome stepper docsULN2003 platform: pin_a–pin_d, max_speed, sleep_when_doneDocs
- ESPHome cover docsThe cover platform the stepper pairs withDocs
- Our compile-verified ESPHome configOne blind, one 28BYJ-48, cover pairing — compiled with ESPHome 2026.11.0Docs
Related Projects




