Coder Social home page Coder Social logo

myinvent / esp32-lora-rs485-agriculture-kit Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 8.0 915 KB

Affordable Agriculture Kit ESP32 LoRa 915 MHz RS485 Modbus Controller with Industrial Grade Soil Temperature, Moisture, EC, pH & NPK Sensor

C++ 100.00%
arduino esp32 iot lora sensor

esp32-lora-rs485-agriculture-kit's Introduction

ESP32 LoRa RS485 Agriculture Kit

Introducing an affordable Agriculture Kit ESP32 LoRa 915 MHz RS485 Soil Temperature, Moisture & Electrical Conductivity Sensor

Consists of 2 Main Components:

  1. ESP32 LoRa RS485 Modbus Controller: The heart of this board is a mighty ESP32 Wi-Fi based microcontroller under ESP-WROOM-32 module as it is compatible with Arduino programming. It has RS485 controller, thus able to convert the RS485 signal from the soil sensor. Integrated with LoRa 915 MHz wireless communication, programmable for Malaysia's LoRa frequency which is 923 MHz.
  2. Industrial-Grade Soil Sensor: Measure multi-parameters of soil including Temperature, Moisture, pH, EC and Nitrogen, Phosphorus and Potassium (NPK). The output signal is RS485 and can be operated broad range of voltage from 5~30 VDC.

ESP32 Controller Board Specifications

  • ESP32-WROOM-32 Module for microcontroller with Wi-Fi and BLE communication.
  • Compatible with Arduino and Micropython Programming
  • USB Serial Chip Silicon Labs CP2104
  • LoRa Module 915 MHz (Programmable to 923 MHz for Malaysia)
  • 0.91" I2C OLED Display
  • Power by Micro USB, Battery or 5 VDC
  • On-board LiPo Charging Circuit

Soil Sensors Specifications

  • Operating Voltage: 5 ~ 30 VDC
  • Communication Protocol: RS485
  • Temperature
    • Measurement Range: -40°C ~ 80 °C
    • Measurement Accuracy: ±0.5 °C
  • Moisture Content
    • Measurement Range: 0 ~ 100 %
    • Measurement Accuracy: ±3 %
    • Measurement Range: 0 ~ 100 %
    • Measurement Accuracy: ±3 %
  • Electrical Conductivity (EC).
    • Measurement Range: 0 ~ 20000 uS/cm
    • Measurement Resolution: 1 uS/cm
  • pH
    • Measurement Range: 3 ~ 9
    • Measurement Resolution: 0.1
  • NPK
    • Measurement Range: 0 ~ 2999 mg/kg
    • Measurement Resolution: 1 mg/kg

RS845 Communication Details

  • Data Bits: 8-bit
  • Parity Bits: NO
  • Stop Bit: 1
  • Error Checking: CRC
  • Baud Rate: 2400, 4800 (default), 9600
  • Device Address: 0x01
  • Function Code: 0x03
  • Data Code: 16 bits
  • Request Frame (8 Bytes)
Address Code Function Code Start Address Register Length of Register CRC
0x01 0x03 0x00 0x00 0x00 0x07 0x04 0x08
  • Example of Response Frame (19 Bytes)
Address Code Function Code Byte Number Moisture Temperature EC pH Nitrogen (N) Phosphorus (P) Potassium (K) CRC
0x01 0x03 0x0E 0x01 0xE6 0x01 0x55 0x05 0xDC 0x01 0x34 0x00 0x20 0x00 0x25 0x00 0x30 0x04 0x08
  • Byte Response Example Calculation
    • Moisture Content = (0x01 * 256 + 0xE6) * 0.1 = 48.6 %
    • Temperature = (0x01 * 256 + 0x55) * 0.1 = 34.1 °C
    • EC = (0x05 * 256 + 0xDC) = 1500 uS/cm
    • pH = (0x01 * 256 + 0x34) * 0.1 = 3.08
    • N = (0x00 * 256 + 0x20) = 32 mg/kg
    • P = (0x00 * 256 + 0x25) = 37 mg/kg
    • K = (0x00 * 256 + 0x30) = 48 mg/kg

Shipping List

  • Agriculture Kit ESP32 LoRa 915 MHz RS485 Modbus Controller
  • Industrial Grade Soil Sensor
  • Waterproof Case

Shopping Now

How To?

  1. Interface and Wiring | Wire Colour: Brown (5~30 VDC), Black (GND), Yellow (RS485 A) and Blue (RS485 B)

  2. Choose your development environment, Arduino or Micropython.
  3. Use example program from folder Example Programs
  4. Upload or flash the program into the microcontroller. For Arduino IDE, choose board "ESP32 Dev Board".

Contact Us

esp32-lora-rs485-agriculture-kit's People

Contributors

ariffinzulkifli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

esp32-lora-rs485-agriculture-kit's Issues

Deviations in readings

Hello,
I would like to thank you for your work! It has helped me a lot. I have a small problem with the nitrogen and phosphorus readings. Do you also have such deviations in the readings ? In clean water I have such readings:

01:00:16.695 -> Nitrogen (N): 50.00 mg/kg
01:00:16.695 -> Phosporus (P): 114.00 mg/kg
01:00:16.695 -> Potassium (K): 104.00 mg/kg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.