Close
0%
0%

I Put My Toilet On The Internet

Logging Flushes to the Cloud

Similar projects worth following
Using a float switch, flushing my toilet will publish an event to Particle. This triggers a web hook on Losant, which updates a dashboard.

I don't know why I did this. But you could use this to get better insight into your water bill. I would not suggest this if you happen to live with other people, however.

  • Detect When The Handle Needs Jiggling

    Christopher Hiller08/26/2016 at 20:10 0 comments

    Idea: this should be able to detect if it's taking too long to refill the tank. It should then alert, or even jiggle the handle itself (though I'm not handy with servos).

  • Initial Prototype

    Christopher Hiller08/26/2016 at 20:06 0 comments

    I've completed a prototype, but the following needs doing:

    1. Modify code and/or hardware to make the switch less sensitive. Currently using an interrupt to detect a low water level; perhaps this is better done with polling.
    2. Battery power. It's plugged into a power bank right now. The toilet is not close enough to a wall outlet to plug it in.
    3. Given the moisture in a bathroom, the Oak will need an enclosure. Clingfilm will do the trick for now.
    4. I have two toilets, so I need to build another one.
    5. Data is lost upon daily reset. Modify Losant workflow to store or export it somehow.

    Here's the current code:

    #define SWITCH_PIN 3
    
    void setup () {
      attachInterrupt(SWITCH_PIN, flush, FALLING);
    }
    
    void flush() {
      Particle.publish("flush");
    }
    
    void loop () {}

View all 2 project logs

Enjoy this project?

Share

Discussions

Jarrett wrote 08/26/2016 at 22:16 point

Where's the website?

  Are you sure? yes | no

Christopher Hiller wrote 08/26/2016 at 22:19 point

I'll post the link once I've got a more permanent solution (and fix some of the triggering issues)--right now it's just running on a power bank.

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates