This repository is developed in Kuituhamppu käyttöön -project
https://lapinamk.fi/hanke/kuituhamppu-kayttoon/
Soil moisture measurement system. Collects data from Ruuvitag sensors and DFRobot soil moisture sensors. In this project system is used to measure biomass temperature and moisture from three different locations (bottom, middle and top). Biomass is located in compost unit. Ruuvitag sensors are used to measure outdoor and indoor temperature and relative humidity.
System can send data to cloud using wifi connection or LoRaWAN.
System is designed to work multiple years without need to change batteries.
Hardware components are placed industrial IP68 rated enclosure.
Hardware | Model | Placement | Link |
---|---|---|---|
Main board | Seeed XIAO ESP32S3 | Enclosure | Link |
LoRaWAN module* | Grove Wio-E5 | Link | |
RS485 Module | Grove - RS485 | Link | |
DC/DC module | Adafruit | Link | |
Battery pack | 3x1.5 AA | Link | |
Outdoor sensor | Link | ||
Indoor sensor | Link | ||
Soil moisture sensor | Link |
- LoRAWAN module is optional.
Connections of the hardware used in prototype.
Device | PIN | Device | PIN |
---|---|---|---|
Main board | BAT+ | Battery pack | Battery + |
Main board | BAT- | Battery pack | Battery - |
DC/DC module | VIN | Battery pack | Battery + |
DC/DC module | GND | Battery pack | Battery - (GND) |
DC/DC module | EN | Main board | GPIO9 (D10) |
LoRaWAN module | GND | Battery pack | GND |
LoRaWAN module | VCC | Main board | 3V3 |
LoRaWAN module | UART TX | Main board | GPIO1 (D0) |
LoRaWAN module | UART RX | Main board | GPIO2 (D1) |
RS485 module | GND | Battery pack | GND |
RS485 module | VCC | DC/DC module | 5V |
RS485 module | UART TX | Main board | GPIO3 (D2) |
RS485 module | UART RX | Main board | GPIO4 (D3) |
Soil sensor 1,2,3 | GND | Battery pack | GND |
Soil sensor 1,2,3 | VIN | DC/DC module | 5V |
Soil sensor 1,2,3 | GND | RS485 modul | RS485 TX |
Soil sensor 1,2,3 | GND | RS485 modul | RS485 RX |
Connection diagram:
TBD
-
Install Thonny (https://thonny.org/)
-
Connect and verify ESP32
-
Build connections between devices
-
Add LoRaWAN module to Digita LoRaWAN portal (or any other compatible platform you like to use)
-
Update ESP32 Micropython using Thonny
-
Clone this repository You can clone the repository with the command:
git clone https://github.com/Lapland-UAS-Tequ/tequ-iot-soil-moisture-esp32
or by downloading and unzipping the repository.
-
Create settings.json In the repository you'll find template files.
-
Open folder in Thonny and upload files into device
-
Run project and verify operation