DIY Room Demo
Live Demo Site
Awkward moments caused by premature timeout of motion sensors in the bathroom late at night.
What it does
Tracks number of people in a room and uploads the data to a database online in real time. Automatically turns off the lights when the room is empty and turns it back on when someone enters.
How we built it
Connected 2 PIR sensors that are used to determine whether a person is entering or exiting, LED lights that automatically turn on/off, and an LCD that displays information to a Particle Photon that is wirelessly connected to the cloud through which we provide a management interface to visualize the data.
Challenges we ran into
Many issues with setting up the physical device including faulty hardware and little documentation. Detecting direction and outputting the appropriate response were difficult as well. On the back-end side of things, difficulty with publishing the data to the web due to differences in PHP versions and trying to integrate OSIsoft API.
Accomplishments that we're proud of
Being able to link all the hardware to properly differentiate between people coming in, leaving, and accidentally triggering the sensors. Configuring the lights and the LCD to properly update after a response. Publishing all the data online for statistical use. Using OSIsoft API to visualize energy efficiency as a graph.
What we learned
We learned a lot about working with hardware through the Particle Photon and programming it to do what we want using C++. More importantly, making sure that the little things are correct when they need to be.
What's next for Smart Sensor
Use on a larger scale to greatly decrease energy consumption around the world.