This project uses proximity switches and relays to control a bank of indicator lights. The lights convey the occupancy status of two bathrooms.
Problem: Two single user bathrooms - in a dorm style house - are shared by multiple people, but the bathroom doors are not visible from the main hallway. This results in many failed trips down the hallway, only to find the one containing all of your toiletries or both (depending on what the need may be) are already occupied.
Solution: A centrally located visual indicator to convey the use status of the bathrooms.
Step 1: Inputs - Detecting Door Status
An assumption must be made to simplify the act of determining if the bathrooms are avaliable or unavailable. This determination will be based on the condition of the door. If a bathroom door is open, the bathroom is avaliable. If a bathroom door is closed, the bathroom is unavailable. The input I used for detecting the status of the door are inductive proximity switches.
Inductive proximityswitches sense objects by generating a magnetic field. When a metal object reaches a certain distance from the sensors head, it will open or close a circuit (depending on the model). By placing a screw in the door, the sensor can be triggered when the door is closed.