Giter Site home page Giter Site logo

jessedavids / lorawan-water-tank-meter Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 575 KB

This water tank meter, calculates the distance from the sensor to the corresponding level of water inside the tank, sends it off with lora protocols to The Things Network. Once it is in TTN we can retrieve the data into a database or application of your own creation.

License: GNU General Public License v2.0

C++ 100.00%
lorawan-device lorawan-gateway lorawan-application lora sleep-mode rtc mkrwan1310 murata felt pvc-pipe

lorawan-water-tank-meter's Introduction

LoraWan - Water Level Tank Meter

by Jesse Davids

Introduction:

This water tank meter, calculates the distance from the sensor to the corresponding level of water inside the tank, sends the data off with lora protocols to The Things Network. Once it is in TTN we can retrieve the data into a database or application of your own creation.

Challenges:

First we were getting sloppy readings, until a blog post enlightened us on how ultrasonic waves work. With that we bought some material, specifically "felt" and snugged it within the inner walls of the 50mm pipe, by 200mm in length. It absords the sounds you dont want to hear back from, which in turn can make the sensor very accurate if held at the right angle, remember, the sound wave needs to come back. The datasheet for the sensor shows it can reach up to 4.5meters. The tallest jojo tank is around 4.25meters.

------------------------------------------------------------------------------

Firstly i tested the sensor out to get the most accurate reading on this board

title

The second image shows the felt inside the pipe innerwalls

title

When the readings were accurate I needed to send that data to TTN. We have our own gateway setup for ease of debugging. I swapped out the board to this one MKRWAN1310, amazing board that runs on the SAMD21 low power processor, the Murata CMWX1ZZABZ LoRa® module, and the MKR family’s characteristic crypto chip (the ECC508)

title

Here we added a smart power bank. Do note the power bank we have turns itself off when not being used. When the board went to sleep, after around 3 minutes the power bank switches off as the board wasn't drawing enough power to keep the power bank on.

title

This is the tank we used to measure.

title

title

lorawan-water-tank-meter's People

Contributors

jessedavids avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.