Skip to content

DIY home anti-flood system with ESP-32, hall sensor and valve with actuator.

Notifications You must be signed in to change notification settings

tomekceszke/water-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Anti-Flood System

This is a kind of magic home anti-flood system.

It contains valve with actuator, hall sensor as a flow meter and ESP32 as a main microcontroller. Water flow is continuously measured and on some conditions ESP32 decides when to close the main valve. It may depend either on fixed rules (e.g. flow speed/duration) or anomaly detection algorithm.

Features

  • installed on main water connection it measures consumption amount and flow duration
  • telemetry (start time, water consumption amount, flow duration and speed) is on-the-fly sent to the cloud (Google Cloud Platform) for further processing and analysing
  • in case of anomaly detection main valve is closing to prevent flooding
  • user is notified about all events and can decide whether open or close the main valve remotely
  • collected data may be used to
    • make an analysis that helps to save more water
    • learn model of typical water usage and improve anomaly detection algorithm
    • generate beautiful reports e.g. on Google Data Studio
  • Over-The-Air firmware updates
  • Simple web interface & api (tbd)
  • Strong security (PKI, TLS, JWT)

Hardware

hardware
3/4" valve with actuator and flow meter (hall sensor)
unit
Control Unit

Software

Tech stack

3rd Party Components

Developing

pcb
Main micro-controller: ESP-WROOM-32 dev kit
assembling
Measuring and testing Control Unit

Testing

monitoring
Water is flowing
activated
Protection activated
log
Device's logs

Collecting data

big-query
Collected data on Google BigQuery database

Reporting

report1
Sample report on Google Data Studio

TODO