Have you ever wondered whether your door was truly open or closed? With this device we make it simple. Utilizing three argon particle devices, a HC-SR04 ultrasonic sensor, and a basic detection circuit, you can easily know for sure whether or not you truly closed your door fully on your way in or out of the house! Never worry about a complete stranger walking into your home while you aren't home, because now you can know exactly whether or not your door is closed. We happily present to you the door-open-closed-detector!
The device functions using the following setup. The particle will be positioned behind a of choice against the wall. When the door swings open towards the particle device, it will activate the sensor and detect the now shortened distance between itself and the door. Particle device one will than publish an event, which particle device two will detect and forward to particle device three ensuring two sets of bi-directional communications. All of the particles are linked together utilizing the IFTTT app, allowing for instant notification to the owners phone if the door is left open, or opened.
The entire operation is first initialized utilizing a push-button sensor, than Utilizing two different Ultrasonic HC-SR04 sensors, the device detects the opening and closing of a door, as well as signals a buzzer device to activate. An LED device is also activated through this process to ensure that the closing LED is functioning and primed.
More specifically, the first ultrasonic senor triggers once the door is opened and publishes an event which is than sent to the buzzer, triggering a noise. Once the door is closed the second ultrasonic sensor will trigger, publish an event and activate the buzzer again. The LED is also activated during this time from the first ultrasonic sensor. The second ultrasonic sensor also publishes an event directed back to the first ultrasonic senor (vice versa in operation) to deactivate it and prevent unnecessary alarms from potential home owners walking in and out of the house.
These activations represent the three way communication of all devices involved through the publishing of events and activation of the sensors in the order listed above. The below flowchart demonstrates the activation method:
Utilizing the IFTTT app, the device will notify the owners phone at anytime when the door is detected as being left open or opened. By connecting the IFTTT app to google sheets, the time when the door was detected as being open or opened, as well as the published event time are logged. This assists in keeping track of when a door is accidentally left open, or opened. The link to the log is shown below:
This graph represents whether the door was opened or closed and the time it happened. 1 represents an open door and 0 represents a closed door