To get started, I researched similar products and stumbled across the Occupus, which aimed to bring and improve the technology found with airplane restrooms, into the home or office.
Through this I discovered that I would need to use a photocell sensor, to detect light, and a hall effect sensor to detect if the door was closed. I then conducted more research and discovered helpful tutorials on the functionality of these two sensors. I originally wanted to include a temperature sensor to see whether or not the person in the bathroom is showering, but I ultimately decided that, that would have been too much of an undertaking for this project.
Once I scrapped the temperature sensor, I created two separate code files, one which tested the hall effect sensor, and one which tested the light sensor. After I got each individual sensor working, I created a third file to combine the code of both so that they could work in tandem with one another. Following this, I used IFTTT to take the input of when the Light Sensor and Hall Effect Sensor were HIGH, and if their previous state was LOW. If this was the case, IFTTT would send an email to me that said "The Bathroom is Occupied!"
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .