Edge Collective

Mesh Water Level

A solar-powered ultrasonic water level sensor that sends readings over a MeshCore LoRa link to a WiFi gateway and logs them to Bayou. Full parts list, wiring, and setup.

Illustration of the sender in the field: a small solar panel above a weatherproof box, with the ultrasonic sensor pointing down at the water

Illustration courtesy Jacob Lloyd

Problem Statement

We'd like to provide real-time alerts about local water levels and flooding conditions to rural areas, using technology that is accessible, inexpensive, and easy to deploy and repair locally.

One reason we're excited about mesh radio in particular is that it's increasingly widely adopted, and it opens up overlapping use-cases. The same network that carries water-level readings can also carry text messages between neighbors, readings from other sensors, and emergency communications when the power or internet is down. When a network is useful for many things, more people have a reason to keep it running, which makes ongoing community maintenance more likely.

Design Considerations

Remote sensor links compared by expertise required and outside dependencies. The MeshCore mesh with SD logging sits in the convivial corner: owned, and low on both.

Where this design sits among other ways of getting data out of a sensor. More in our research note, A map of sensor communications.

Diagram: a solar-powered sensor node over water storage sends readings over a LoRa mesh, via a hilltop repeater, to a gateway node at home that uplinks to an internet database over Wi-Fi. Within the local mesh, an e-ink kiosk and a phone paired by Bluetooth to a mesh radio can also read the level, even with the grid and internet down.
The sensor node sits on a local LoRa mesh. Readings reach the internet through a gateway at home, and they can also be read locally, on a kiosk or a phone with a mesh radio, when the grid or internet is down.

Current Approach

A solar-powered ultrasonic sensor that measures the distance down to a water surface, radios it over a MeshCore LoRa link to a WiFi gateway, and logs it to Bayou. It works where there's no cell service or WiFi at the water's edge.

Sender (Rook) ultrasonic + LoRa LoRa Receiver (Heltec V3/V4) LoRa + WiFi WiFi Bayou data store

Illustration courtesy Jacob Lloyd

The system is two devices:

The full build recipe covers:

A ready-to-deploy version is available as the Mesh Radio Water Level Kit.

Read the full build recipe →

Firmware

The firmware is documented at edgecollective/MeshCore-simple-sensor: how it works, how readings reach Bayou, and how to flash and configure both devices from the browser.