Skip to content

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

JesseDavids/lorawan-water-tank-meter

Repository files navigation

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages