Introduction
Do you leave your bathroom light on way too much? We do too. That's why we've created a device that senses when you walk into your bathroom and turns the lights on. And you don't even have to worry about turning them off when you're done! The device will turn the lights back off after a specified amount of time, which can easily be set by the user. For the testing of this project, we set the time to turn the lights off after 30 minutes.
Photon Setup
The device uses one Particle Photon with a passive infrared motion sensor to detect when you walk into your bathroom and another Particle Photon with a servo motor and attachment to turn the light switch on and off. The two photons communicate by Particle.publish and Particle.subscribe located in the codes.
System Demonstrations
Below is a simple video of the servo motor turning the lights on for 5 seconds then back off. Again, the amount of the time the light is on is determined by the user.
IFTTT Event
Using the IFTTT mobile app, we created an applet that sends a notification to the user's phone when the event occurs. Here, the photon named 'kaitlin' published the event 'light' meaning the sensor was triggered and the lights were turned on. This app was used
Not only does the Light Saver significantly prolong the lifetime of the lightbulbs, but also helps cut down on energy costs. Using an IFTTT event, we were able to plot when the lights were turned on through the duration of one day. Shown in the plot below, when the lights were on, there was a value of 1, and when the lights were off there was a value of 0.
The motion sensor was triggered, turning on the lights, eight times throughout the day for 30 minutes each, yielding a total of four hours that the bathroom lights were on. Compared to leaving the lights on all day, as many people do, you can save around $40 a year. This estimation can be seen below.
Comments