Difference between revisions of "RS485-LoRa Wireless Station"
|Line 69:||Line 69:|
Revision as of 08:34, 18 September 2021
With the development of agricultural modernization and the popularization of precision agriculture, the measurement of soil parameters such as temperature, moisture, PH and so on, becomes more and more important. How to measure or obtain this data has become a focus.
RS485-LoRa Wireless station is developed by Makerfabs, comprising the PCBA part and a soil sensor that detects the accurate, real-time soil moisture content and soil temperature. The station features ESP32 WiFi/BT module and LoRa module, which provides three wireless ways (as LoRa, WIFI and Bluetooth) for the communication remotely.
RS485-LoRa Wireless station has stable performance and high sensitivity also is used to be a tool for observing and studying the occurrence, evolution and improvement of saline soil and the dynamics of water and salt. The station is suitable for soil moisture monitoring, scientific experiments, water-saving irrigation, greenhouse, flowers and vegetables, grassland and pasture, plant cultivation, sewage treatment, fine agriculture and other occasions.
- ESP32 WROOM module onboard with the WiFi and Bluetooth
- Arduino Compatible: You can play it with Arduino IDE
- Onboard LoRa module (433Mhz or 868Mhz or 915Mhz)
- 0.91inch I2C OLED display
- Sensor part is waterproof, completely sealed.
- Measuring range: -40℃~80℃，0~100% moisture
- Measuring accuracy: ±0.5℃，±3% moisture
- Communication distance: 2km or more
- Power by Micro USB, battery or DC 5V
- 1000mAh battery, charger IC onboard
Display value on screen
Let's start to get the temperature and moisture of the soil by using the RS485-LoRa wireless station and show them on the onboard screen.
1.Refer to the wiring details, connect the sensor to the board.
2.Connect the board to PC via Micro-USB cable, and open the code by Arduino IDE, the demo code (RS485_LoRa_default.ino) is available from Github.
3.Install the ESP32 board library (ESP32 V1.0.4) to support ESP32 working.
4.Install the Adafruit GFX library (V1.10.11) and Adafruit SSD1306 library (V2.4.6).
5.Verify the code and upload it to the board.
6.Reset it, and put the sensor probe into the measured soil, you will see the temperature and moisture on the screen.
Display value on webpage
According to the previous demo, this demo would show the value on the webpage by WiFi.
1.The same as the previous demo to connect, install the libraries, the demo code (RS485-display-webpage.ino) also is available on GitHub.
2.Open the code by Arduino IDE, it is required to modify the WiFi information for connecting your WiFi.
3.Verify the code and upload it to the board.
4.Reset the board and the screen would show the IP address. If no IP address shown on the screen, may the WiFi connection be failed, please reset the board.
5.Type the IP address to the browser on PC or phone, the measuring value would be shown on the webpage.
Transmission by LoRa
1.As the same previous demo to install libraries on Arduino IDE if you have not yet, besides, it is required to install the LoRa library (RadioLib.h) to drive the LoRa module.
2.Upload the code to the board that the code (RS485-LoRa-Transmit.ino) is available on GitHub, and it would obtain the sensor measuring and transmit the values by LoRa. Besides, it is required to prepare another LoRa device to receive the data. If you want any LoRa device, please check here for one.
3.The LoRa device I used in the demo is the ESP32 one, that the detail of this device is available on here.
4.Get the ESP32 board and upload the LoRa receiver code to it. The receiver code (RS485-LoRa-Receiver.ino) is available on GitHub.
5.Wait a moment, it will receive the measuring value through LoRa and display them on the screen.
You can list your questions here or contact with email@example.com for technology support.