One of the apartments that I rented during my undergraduate studies had no light switch near the door. This setup made it difficult to navigate the apartment when entering at night. Therefore, I decided to design a system that would turn on the lights for me. To achieve this, I wanted to implement a system that would utilize sensors to determine how dark the room was and when someone entered the apartment. The system would then use this input and automatically turn on a light in the room if someone entered the apartment and it was too dark to see.
The final prototype I created utilized an Arduino microcontroller, photoresistor, magnetic door sensor, electronic relay, LCD screen, and a button. The photoresistor would measure how dark the room was, and the magnetic door sensor would determine when someone entered the apartment. If the room was sufficiently dark when a person entered, the light would turn on. The system could be turned on/off via a button, with the mode displayed on the LCD screen.
During this project, I became comfortable with troubleshooting electrical systems, calibrating sensors, using control logic, and prototyping with microcontrollers. The system I created worked flawlessly and was left installed in my apartment.
While the system I created solved the problem I had, it would have been nice to have utilized additional sensors. Aside from using the front door to determine when someone entered the room, I would have liked to employ an IR break beam sensor to determine when someone entered the main room from another room in the apartment. Additionally, having the lights turn on when someone was watching a movie and forgot to turn off the system was an annoyance. To correct this problem, I could have utilized a sensor to register when the television was on and not turn on the lights when someone entered the apartment. I could have accomplished this by using a microphone placed by the television speaker and calibrating it so that it would only register the television if the noise was above a certain level.
Mark Verosky
Copyright © 2020 Mark Verosky - All Rights Reserved.