Hi,
Friends, I need some help with this small project.
Description: There two Esp32Lore Heltec communicating eachother by LoRa. One is the slave which is in the field getting the sensors data, the other one is the master which is in the house connected to WiFi and sending the values to Ubidots.
Problem: the sensors readings at the slave adcs are very noise and I dont know what might be causing this. The Ubidots data is attached as well, I indicated with red circles some of the noises.
Actually these noises are like "steps", suddently the sensors are reading in different levels, even if the moisture did not change.
How the reading are made? Basically 3 capacitive soil moisture sensors are buried (5cm, 20cm and 40cm - all very well sealed) reading the soil moisture directly to slave Esp32 adcs. The sensors are powered only when they will read, each 15 minutes. Each one is powered by Esp32 GPIOS (red lines in the sketch).
For each sensor it takes 10 readings, so it calculates the average. Those final values are encoded then sent to the master.
- The yellow wire in the sketch: I noticed if do not connect this ground to the sensors grounds it does not work (no readings).
** The slave is powered by usb using a cellphone charger.
Sensor: https://media.digikey.com/pdf/Data%20Sheets/DFRobot%20PDFs/SEN0193_Web.pdf
LoraHeltec - WIFI LoRa 32 (V2) (Phaseout) – Heltec Automation
Thanks for your help!
Slave_v1.ino (8.33 KB)
Master_v1_Ubidots.ino (9 KB)
WIFI_LoRa_32_V2.pdf (248 KB)