The Internet of our Toilet
IoToilet is a side project using the ESP-12 as a microcontroller, currently on its first iteration. The idea was conceived from irritating inconvenience of standing up just to check the availability of the office comfort room. There were instances that the door was unlocked by a key from the outside even if the comfort room was occupied. The lack of an occupancy indicator is the cause of this dilemma. Thus, the IoToilet is born!
IoToilet is an Internet of Things project that uses a light-dependent resistor to check the occupancy of the comfort room.
- A lighted comfort room would mean it is occupied.
It uses the IFTTT Applet service to be able to tweet in its own Twitter account, @IoToilet.
- Tweeting is triggered when there is a change in the light brightness (from bright to dark or from dark to light).
Schematic diagrams and breadboard prototype can be found in this folder
- ESP-12f
- LM393 Low-offset Dual Comparator
- Light-dependent Resistor (LDR)
- Light-emitting Diode (LED)
- Resistors
- 330Ω
- 10kΩ
- 10kΩ potentiometer
- push button
- CP2102 USB to Serial converter
Full documentation on Getting Started here.
- Clone or Download the IoToilet Github repository
- Build your IoToilet circuit
- Test the light-dependent comparator circuit
- Create your own IoToilet Twitter account
- Build your IFTTT Applet
- Upload the IoToilet.ino file to the ESP8266
- Design a proper power supply circuit
- Enable Sleep mode
- Include a PIR motion sensor to increase detection success
- Integrate to a Slack Chatbot
- Create an API