PC: Remote Desktop for connecting to the Desktop of the Raspberry Pi
Raspberry Pi:
ESP32 receiver (attached to Raspberry Pi): Receive data via LoRa from multiple sensor nodes and send the data via serial (USB) to the Raspberry Pi (or PC). https://github.com/TomNaiser/LoRa-Sensor-Monitoring/blob/master/LoraToSerialInterfaceV4.ino
ESP32 sensor node: https://github.com/TomNaiser/LoRa-Sensor-Monitoring/blob/master/LoraSenderDSleepV5.ino
HX711 based weight acquisition. For long battery life the ESP32 goes into Deep Sleep Mode until the next measurement is scheduled.
(Re-)installation of Raspbian:
download balena-Etcher (used for writing the image to a SD-card) to PC
download Raspbian-image
selected the zipped imageFile in balena-Etcher
select your SD-Card and write the image
Install SD in the Raspberry Pi and install Raspbian
setup Remote-Desktop:
sudo apt-get purge realvnc-vnc-server
sudo apt-get install xrdp
sudo apt-get install spyder3
sudo apt-get install kst
setup python script autostart:
sudo crontab -e
open with nano
enter the following line at the end:
@reboot python /home/pi/PythonCodes/LoRaSensorMonitoringServer.py
Load the Arduino projects and flash to ESP32