Back to Parent

Outcome


Problem Statement:

One of my roommates lives on the opposite side of the apartment from our bathroom. As a result, there are times when he takes his 45 second, slow morning trek to the bathroom and will find out that it is occupied. At this point he can either wait around for it to be free or go back to his room and try again later.

I choose this roommate because I've seen him race towards the bathroom in the hopes that it is unoccupied, so that he can start his morning routine.

Goal:

I'm trying to make a solution that can easily integrate into his life, that will casually let him know whether or not the bathroom is occupied or free. This is all in the efforts of saving my roommate time.

Process:

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!"


Outcome:


Parts Needed:

1 LED light - This will indicate whether or not the bathroom is occupied

Particle and breadboard

Battery

Mini Photocell - To detect if the light in the bathroom is on

Hall effect sensor + Magnet - To detect if the door is open or closed

7 Wires

2 Resistors


Show Advanced Options
Screen shot 2018 02 06 at 2.40.50 pm.thumb
Show Advanced Options
Show Advanced Options
Show Advanced Options

Reflection:

The project got to almost exactly where I wanted it to be. If I were to continue with it, I would find a way to properly integrate it into my bathroom, which would give me a more in depth prototype. I would also use a different sensor for the door, as the hall effect sensor would sometimes enter a "toggle mode" which would require the magnet to touch the sensor again before it would shut off (rather than turn off/to LOW when the magnet would leave the vicinity of the sensor)

Drop files here or click to select

You can upload files of up to 20MB using this form.