Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ESP32-S3 Core Development Board RTU, I2C, 1-wire Demo ESP-IDF Application
#1
Hello,

This demo application utilizes RS-485, 1-Wire, and I2C under the ESP-IDF environment.

KinCony S3 Core Development Board RTU, I2C, 1-wire Demo Application
The demo application interfaces the following sensors:

The demo application interfaces the following sensors:
  • MODBUS RTU - RS2E radar precipitation sensor with temperature and humidity sensor
  • MODBUS RTU - WDC2E ultrasonic anemometer
  • I2C - BMP280 atmospheric pressure sensor
  • 1-Wire - DS18B20 ground temperature sensor

The RS2E and WDC2E sensors are configured as MODBUS RTUs and interfaced to the core development board via the RS-485 port. The BMP280 sensor is interfaced to the core development board via I2C and the DS18B20 sensor is interfaced to the board via 1-wire.

ESP-IDF Components Library

The demo application attempts to connect to a WiFi network, once connected, the system clock is synchronized over SNTP and then it will poll all four sensors at a user-defined interval (6-seconds). As each sensor is polled the application prints the results via the serial debug port.

Serial debug port print example:
Code:
E (23447) RTU [APP]: ################## KINCONY-S3 ##################
I (23477) RTU [APP]: RS2E Air Temperature:        20.93°C
I (23517) RTU [APP]: RS2E Relative Humidity:      29.30 %
I (23527) RTU [APP]: RS2E Dewpoint Temperature:   2.35°C
I (23567) RTU [APP]: RS2E Precipitation Rate:     0.00 mm/h
I (23607) RTU [APP]: RS2E Precipitation Type:     No Rain
I (23647) RTU [APP]: WDC2E Wind Direction:        0°
I (23687) RTU [APP]: WDC2E Wind Speed:            0.00 m/s
I (23907) RTU [APP]: DS18B20 Ground Temperature:  22.25°C
I (23917) RTU [APP]: BMP280 Atmospheric Pressure: 994.46 hPa
Reply
#2
thanks for your effort.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)