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
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
Finish LDR Set Up
See Photo's above for LDR Set up
Follow Steps below:
- Place LDR in slots B13 & B16
- Connect wire from D13 to positive column on Arduino Board
- Connect wire from E16 to A0 on Arduino
- Place 100k Resistor in slots A16 & A23
- Connect wire from E23 to negative column on Arduino Board
- Connect wire from Ground to Negative
- Connect wire from 5v to Positive
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
Photo Guide-Motors
Use Photo above for Motor Set Up reference
Set Up Motors
- Place wire from positive column to A7
- Place wire from negative column to E1
- Place 2.2K resistor from E2 to G2
- Connect wire from E3 to D11
- Place orange tube from B11 to B7
- Place P2N2222A Resistor in slots A1,A2,A3
- Connect Wire from Pin 9 to J2
- Connect motors positive wire to E7
- 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
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
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
Rig Window Set Up
- Cut a small hole at the top of the curtain
- loop string through hole and tie string around the rod
- Place command strip on ribbon roll
- Secure Ribbon roll onto wall sideways
- Place string behind the ribbon roll
- Secure string around Arduino ribbon roll on motor
Celebrate
Congrats! You have completed the steps to this project