Skip to content

A micropython script for the RaspberryPi pico w to totalize water flow and transmit value over mqtt.

Notifications You must be signed in to change notification settings

michaelpappas/van_water_meter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Van Water Meter Sensor

A Micropython script that starts monitors when water is passing through a flow meter and send that flow amount in gallons to an MQTT client running on a Raspberry Pi for a van systems dashboard. This uses a GR-301 flow meter but should also work well with the generic YS-201 or most hall effect sensors. The GR-301 has a male 3 wire JST-PH connector on it so I used a female JST connector on some perf board to make a clean installation. An LM2596 dc-dc voltage converter is used to step the 12v house battery voltage down to 5v to power the Pico W.

Table of Contents

Manual Installation

Clone the repo:

git clone https://github.com/michaelpappas/WATER_TANK_SENSOR
cd WATER_TANK_SENSOR

Replace the SSID and PASSWORD values with your own wifi network. Modify the "mqtt_server" value for the ip address of the MQTT broker.

Wiring

Flow meter ground -> pi GND (pin38)
Flow meter VCC -> pi 3v3 (pin36)
Flow meter signal out -> pi GPIO15 (pin20)

Top of board:

circuit-board-top

Bottom of board:

circuit-board-bottom

Board with flow meter:

circuit-board-flowmeter

Project Structure

\                           # project directory
 |--flowMQTT.py             # micropython script for sensing water volume and mqtt
 |--readme.md               # project readme

About

A micropython script for the RaspberryPi pico w to totalize water flow and transmit value over mqtt.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages