This solution shows how to create an agriculture monitor node. The monitor node measures pH conductivity, air temperature, air humidity, photosynthetically active radiation (PAR), soil conductivity, soil humidity and wind speed from a agriculture sensor system with a RS485 interface. It then transmits this data frequently over LoRaWan® to a LoRaWan® server.
At the LoRaWan® server the data arrives in the following format
Byte1 | Byte2 | Byte3 | Byte4 | Byte5 | Byte6 | Byte7 |
---|---|---|---|---|---|---|
8 | PAR1 | PAR2 | PH1 | PH2 | CON1 | CON2 |
Byte8 | Byte9 | Byte10 | Byte11 | Byte12 | Byte13 |
---|---|---|---|---|---|
T1 | T2 | H1 | H2 | S1 | S2 |
where |
- Byte 1 is a marker for the data type, here always 8
- PAR is sent as
PAR1PAR2
e.g. 1009 PAR (would be 0x03 0xF1 in the data package) - pH value is sent as
PH1PH2
e.g. 45 (would be 0x00 0x2D in the data package) - Soil conductivity is sent as
CON1CON2
e.g. 0945 (would be 0x03 0xB1 in the data package) - Temperature is sent as
T1.T2
e.g. 23.45 C - Humidity is sent as
H1.H2
e.g. 74.12 % rel - Wind speed is sent as
S1.S2
e.g. 54.03 m/s
If this examples is implemented for the Region US915, DR0 cannot be used because the package size is too large to fit into the allowed payload.
To build this system, the following hardware are required:
WisBlock Base RAK5005-O * 1pcs
WisBlock Core RAK4631 * 1pcs
WisBlock IO RAK5802 * 1pcs
JXBS-3001-FS * 1pcs
JXBS-3001-PH-RS * 1pcs
JXBS-3001-EC-RS-4 * 1pcs
JXBS-3001-GHFS * 1pcs
4-Port RS-485 HUB * 1pcs
Note: To send the data of sensor node to LoRaWan® server, a LoRaWan® gateway is >also needed. If you don't have, we recommend you use RAK7243.
This solutions diagram:
The code for the intelligent agriculture sensor node can be found in the sketch file
LoRa® is a registered trademark or service mark of Semtech Corporation or its affiliates. LoRaWAN® is a licensed mark.