SENSORS

57 views
Skip to first unread message

Paul Simon

unread,
Sep 14, 2023, 11:49:18 AM9/14/23
to painlessmesh-user

Greetings

I want to share with you my project built on PainlessMesh platform (ESP-MESH)

  Component parts:

- SENSORS

- ESP32

- SCD30

- GATEWAY v1

- WEMOS LOLIN D1 mini Pro – BRIDGE v1

- WEMOS LOLIN32 – GATEWAY

- BRIDGE v2

- WEMOS LOLIN D1 mini Pro

1) SENSORS:

They are dedicated to measuring the level of CO2 in rooms and are composed of SCD30 sensors produced by SENSIRION. The processing part is provided by ESP-WROOM-32.

Sensors send data to InfluxDB via BRIDGE v1. In addition, the sensors display the information in the mobile application developed by SENSIRION "Sensirion My Ambiance" via Bluetooth.

Additionally, I equipped a sensor with SCD30, SFA30 and SEN54.

2) GATEWAY v1:

It was used in the initial configuration of the sensors, it served to decode the messages and write the values to an InfluxDB database.

WEMOS LOLIN D1 mini Pro has the role of ROOT in MESH, and sent the message received from SENSORS to WEMOS LOLIN32 via Serial1.

WEMOS LOLIN32 acted as the GATEWAY, having the role of decoding the message received from the BRIDGE and writing the obtained values into an InfluxDB database.

The big problem was the message decoding (JSON) errors and the connection to InfluxDB.

3) BRIDGE v2

It's a simple WEMOS LOLIN D1 mini Pro that acts as ROOT in the MESH network and relays JSON messages to a python script via USB (Serial)

 

4) PYTHON

It decodes the JSON messages received on the USB port and inserts the data into the InfluxDB database

The system works flawlessly...

If you have any questions...



All the best

Paul

SENZORI_SDC32.ino
BRIDGE_ESP8266_USB.ino
IMPORT_USB_JSON.py
SENZORI_ALL.ino
Reply all
Reply to author
Forward
0 new messages