GithubHelp home page GithubHelp logo

michaelcastiau / ro-water-counter Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 34.42 MB

Reverse Osmoses water flow counter with smart functionality

License: GNU General Public License v2.0

C 6.27% C++ 65.17% HTML 27.46% JavaScript 1.10%

ro-water-counter's Introduction

RO Water Counter

Screenshot 2022-12-10 at 11 30 11

This repository contains the source code and hardware schematics for a Reverse Osmosis water counter device, based on an ESP32 module. The device allows for setting an amount of needed liters of water an will swich on/off the RO system automatically. When the amount of liters needed has been reached, the ESP32 module is programmed to interact with a webhook to send a notification to your smartphone.

It interfaces with a high-precision water flow sensor with a K-factor of 20.

Flashing

python -m esptool  --port /dev/tty.usbserial-1420 --chip esp32 write_flash 0x00010000 .pio/build/esp32/firmware.bin

Bootloader

The ESP32 requires a second stage bootloader that will read the partition table and boot the corresponding app. The booloader is located in the bootloader.bin file and should be flashed at address 0x1000 in the flash.

python -m esptool  --port /dev/tty.usbmodem14301 --chip esp32 write_flash 0x1000 bootloader.bin

Partition Table

This project utilises a custom partition table to make enough room for OTA updates. The partition definitions can be found in partitions.csv file. The partition table should be flashed at address 0x8000 in the flash after building the project with PlatformIO.

python -m esptool  --port /dev/tty.usbmodem14301 --chip esp32 write_flash 0x8000 .pio/build/default/partitions.bin

Application

The application itself should be flashed at address 0x10000 (or 0x210000 if using OTA), corresponding to the address defined in the bootloader table.

python -m esptool  --port /dev/tty.usbmodem14301 --chip esp32 write_flash 0x10000 .pio/build/default/firmware.bin

ro-water-counter's People

Contributors

michaelcastiau avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.