MuTech RoboticsLearning Hub
Kids OK with adultArduino NanoLevel 1/3

Auto Curtain Opener

When morning light stays bright, a stepper motor pulls the curtain cord open.

Auto Curtain Opener
Kids OK, with an adult

DIY project. Children must build this only with an adult (16+ years) beside them at all times. Not suitable for children under 8 years.

Strictly follow the description given with this video.

Video

The video link will be added here soon.

How it works

  1. The LDR module reads the daylight level.
  2. If it stays bright for a while, the Nano runs the stepper through the ULN2003 driver.
  3. A 3D-printed pulley on the stepper pulls the curtain cord.
  4. The button opens or closes the curtain by hand.

Parts you need

  • Arduino Nano× 1Buy
  • LDR module× 1Buy
  • 28BYJ-48 stepper + ULN2003 driver× 1Buy
  • Push button× 1Buy
Kit for this projectPrice on request
Get the kit

Wiring

Wiring diagram
PowerGroundSignal
#FromConnect to
1 SignalLDR AONano A0
2 PowerLDR VCCNano 5V
3 GroundLDR GNDNano GND
4 SignalButtonNano A1 (INPUT_PULLUP)
5 GroundButton other legNano GND
6 SignalULN2003 IN1–IN4Nano A2, A3, A4, A5
7 GroundDriver −Nano GND
8 PowerDriver +Nano 5V
9 Signal28BYJ-48 cableDriver socket

3D print files

  • stepper_pulley.stlPLA / PETG · 0.2 mmLink at launch
  • motor_mount.stlPLA / PETG · 0.2 mmLink at launch

Code

The tested Arduino / ESP32 code for this project will be posted here, ready to copy.

Learn the idea behind it