Skip to content
Notifications You must be signed in to change notification settings

Outdatedcandy92/CurtainOpener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1205694 · · Aug 20, 2025

History

12 Commits
Jul 23, 2025
Aug 20, 2025
Aug 19, 2025

Repository files navigation

Curtain Opener

A compact DIY curtain opener that uses an ESP32 microcontroller and a NEMA 17 stepper motor to automatically open and close curtains. The device is powered directly from a wall outlet, ensuring consistent and reliable operation.

suu.mp4

Hardware Components

  • ESP32 C3 SuperMini
  • NEMA 17 stepper motor
  • TMC2209 stepper driver
  • 12V DC power adapter
  • MP1584EN step-down converter
  • Paracord or Kevlar string for curtain movement
  • Mounting hardware (screws, heat inserts, anchors)

See BOM.md for the full bill of materials.

How It Works

  1. The NEMA 17 motor, controlled by the ESP32, pulls a string to move the curtain.
  2. Power is supplied by a 12V DC adapter connected to a wall outlet it is stepped down to 5v to power the ESP32.
  3. The ESP32 can be programmed for scheduled routines or remote operation.

Assembly

  1. 3D print the enclosure and mechanical parts (see src/CAD/).
  2. Mount the motor, idler, and string to the curtain.
  3. Wire up the stuff and enclose it in a case (optional).
  4. Upload your control firmware to the ESP32. (see src/code).

Parts

Motor Mount

Screws into the motor and then screws onto the wall near the curtain.

img

Idler

This uses a gt2 idler with 8mm bore, this attaches to the curtain rod. (you might have to redesign this based off your cutain rod diameter).

img

Enclosure

This holds all the electronics (motor drivers, step down, esp32 and wires). It has a detachable front panel and side mounts in case you need to update it later.

img

Wiring Diagram (scuffed)

EN_PIN = 5

STEP_PIN = 6

DIR_PIN = 7

MS1_PIN = 8

MS2_PIN = 9 img

IRL Pics

Motor

img

Idler

img

Enclosure img

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages