-
Detect When The Handle Needs Jiggling
08/26/2016 at 20:10 • 0 commentsIdea: 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
08/26/2016 at 20:06 • 0 commentsI've completed a prototype, but the following needs doing:
- 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.
- 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.
- Given the moisture in a bathroom, the Oak will need an enclosure. Clingfilm will do the trick for now.
- I have two toilets, so I need to build another one.
- 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 () {}