This is my second Arduino Project. It is a powerful light that turns on or off depending on the brightness of its surroundings. It also has a manual mode, allowing you to manually toggle the light.
If you build an enclosure for it and calibrate the photocell, this can be used as an outdoor light, which turns off during the day, when it is unnecessary, and turns on at night. For power, this exact circuit only requires one AC wall socket.
I did not complete the process to utilize this practically since school is starting soon for me, and I already had a more robust commercial product with the same functionality lying around.
Assuming you are using a generic AC-powered light, like I did, you need to cut one side of its wire (as can be seen in the picture) and remove some insulation so you can plug it into the relay. If you are planning on using this practically, you will likely use a different lighting configuration (e.g. a more power-consuming light, mutiple lights, etc.). For this, you may need to use multiple AC wall sockets. For each extra wall socket, you will need to use another relay. Simply copy the code for one relay and paste it right next to it.
Comments