xyzarivera / IoToilet

The Internet of Our Toliet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IoToilet

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!

How it Works

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).

Build Your Own IoToilet

Schematic diagrams and breadboard prototype can be found in this folder

Hardware Components

  • 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

Software applications and Online Services

Getting Started

Full documentation on Getting Started here.

  1. Clone or Download the IoToilet Github repository
  2. Build your IoToilet circuit
  3. Test the light-dependent comparator circuit
  4. Create your own IoToilet Twitter account
  5. Build your IFTTT Applet
  6. Upload the IoToilet.ino file to the ESP8266

To-dos

  • 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

About

The Internet of Our Toliet


Languages

Language:C++ 100.0%