Introduction: Light Opens Curtain Arduino Uno

This project will open up your curtains for you in the Morning! Go to sleep with the blinds shut, wake up to the morning light! This project uses the LDR to react to light to open up the curtains for you in the morning before you wake up.

Supplies

  • Arduino Uno Circuit Board
  • Arduino Uno Wires
  • Arduino Uno Battery Pack
  • 2 Arduino Boards
  • 1 100k Resistor
  • 2 2.2k Resistor
  • 2 DC motors
  • 3 Ribbon rolls
  • 2 P2N2222A Resistors
  • 2 orange tubes Arduino
  • Light Dependent Resistor (LDR)
  • Hot Glue
  • String
  • Scissors
  • Canvas Board

Step 1: Set Up LDR With Arduino Circuit

Use the photo above as a guide to set up LDR with the Arduino.

Photo and more details go to: https://maker.pro/arduino/tutorial/how-to-use-an-ldr-sensor-with-arduino

Step 2: Finish LDR Set Up

See Photo's above for LDR Set up

Follow Steps below:

  1. Place LDR in slots B13 & B16
  2. Connect wire from D13 to positive column on Arduino Board
  3. Connect wire from E16 to A0 on Arduino
  4. Place 100k Resistor in slots A16 & A23
  5. Connect wire from E23 to negative column on Arduino Board
  6. Connect wire from Ground to Negative
  7. Connect wire from 5v to Positive

Step 3: Code LDR

Code LDR in Arduino by using the Code pictured above

coding help from: https://create.arduino.cc/projecthub/electronicsfan123/interfacing-arduino-uno-with-ldr-8760ba

Step 4: Photo Guide-Motors

Use Photo above for Motor Set Up reference

Step 5: Set Up Motors

  1. Place wire from positive column to A7
  2. Place wire from negative column to E1
  3. Place 2.2K resistor from E2 to G2
  4. Connect wire from E3 to D11
  5. Place orange tube from B11 to B7
  6. Place P2N2222A Resistor in slots A1,A2,A3
  7. Connect Wire from Pin 9 to J2
  8. Connect motors positive wire to E7
  9. Connect motors negative wire to E11

Please Note: GND and 5v are already connected to positive and negative

* Repeat Process again using the second Arduino board to finish double motor set up

Step 6: Code Motors With LDR

Use photo above to code both motors with the LDR

Note:

  • Highest Motor spin is 255
  • Change delay settings if needed
  • Change light value from 500 if needed

Step 7: Secure Components on Canvas Board

Using velcro command strips secure the Arduino board, Arduino Uno circuit and battery pack onto the canvas board.

Using hot glue secure the motor onto the canvas with the motor facing up.

Use the hot glue to secure the ribbon roll onto the motor

Step 8: Rig Window Set Up

  1. Cut a small hole at the top of the curtain
  2. loop string through hole and tie string around the rod
  3. Place command strip on ribbon roll
  4. Secure Ribbon roll onto wall sideways
  5. Place string behind the ribbon roll
  6. Secure string around Arduino ribbon roll on motor

Step 9: Celebrate

Congrats! You have completed the steps to this project