LORA Waterlevel Alarm

by lazygarden in Circuits > Arduino

952 Views, 5 Favorites, 0 Comments

LORA Waterlevel Alarm

1.JPG

In this instructable I make use of a float switch and an arduino in combination with a LORA tranceiver to send an update when a waterlevel reaches a certain level. This node consumes very little current and can be used for a very long time on a coin cell battery.

Get the Needed Parts

Parts:

Tools:

Making the Antenna

For the antenna I use some leftover cable of my 2x2x0.8mm or 2x2 20awg bus cable.
On the things network you can choose your tranceiver and antenna frequency band by country.
These are the lengths per frequencie:

  • 868mhz 3.25 inches or 8.2 cm (this is the one I use)
  • 915mhz 3 inches or 7.8 cm
  • 433mhz 3 inches or 16.5cm

Soldering the Esp Shield

10.jpg
  • Remove the resistors of the esp shield (see R1 to R3 in the red field)
  • Solder the rfm95 chip onto the esp shield.
  • Solder the pinheaders onto the esp shield
  • Solder the antenna onto the esp shield. Don't use without an antenna you can damage the shield.
  • If the pinheaders aren't soldered onto the arduino solder these too

Wiring

2.JPG

In the image above you see the schematic wiring.

Coding

I have included 2 files. One is the code without the LORA tranceiver and the second Is the one sending data via LORA.

Conclusion

In this instructable you learned how to use a float switch with an interrupt in order to send a message to the LORA server. This way you can trigger by example an sms message or you can drive a pump to refill by example an IBC container.