Monitoring water quality parameters using an IoT-based system.
Note
My papers, posters etc. corresponding to this project will be uploaded in the Publications folder. As soon as one of them is published "officially", e.g. in a journal or open access site, I will also put the proper citation with the DOI here.
I used this tutorial by Alex from AEQ-WEB for setting up LoRa with TTN and the Heltec Lora32 V3 board.
The code uses RadioLib by Jan Gromeš (@jgromes), specifically the "LoRaWAN_Starter" example. The contents of the .ino file were replaced with the content from the "LoRaWAN_ESP32" example of RadioLib Persistence by @radiolib-org, to ensure deep sleep during inactivity and enabling session persistence. The contents of the config.h file wered edited to support the SX1262 chip and match the LoRaWAN 1.0.4 configuration. The sensor codes for the pH, dissolved oxygen, turbidity, electrical conductivity, and total dissolved solids sensors are from @DFRobot. The temperature sensor code is from this tutorial by Start Hardware.
The following hardware resources have been used for this project:
- Microcontroller: Heltec WiFi LoRa 32 (v3) (here)
- Sensor suite:
- Dissolved Oxygen (DO) (here)
- Electrical Conductivity (EC) (here)
- pH (here)
- Temperature (here)
- Total Dissolved Solids (TDS) (here)
- Turbidity (here)
- SparkFun Sunny Buddy - MPPT Solar Charger (here)
Further sensors that could enhance the system are:
- BME280: Sensor for humidity, temperature, and air pressure. Useful inside of the sensor box to monitor if the electronics remain dry and in working temperature range.
- Flow meter to assess the river flow rate, useful to contextualize the other water parameters, especially for modeling purposes.
- Rainfall sensor to assess influences on flow rate.
- Water level sensor, both to contextualize the other parameters and for flood or drought warning purposes.
Thanks to Steven Boonstoppel (@bns), Nick McCloud (@nmcc), and users @dstacer and @ksjh from the Heltec community for their help, feedback, and general input (threads here and here).