https://github.com/stephendade/esp_influx
Networked ESP32 and LoRA boards with DHT22 sensors sending data to an InfluxDB instance
https://github.com/stephendade/esp_influx
dht22sensor esp32 lora ttgo
Last synced: 2 months ago
JSON representation
Networked ESP32 and LoRA boards with DHT22 sensors sending data to an InfluxDB instance
- Host: GitHub
- URL: https://github.com/stephendade/esp_influx
- Owner: stephendade
- License: gpl-3.0
- Created: 2022-09-22T23:34:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-30T02:00:38.000Z (over 3 years ago)
- Last Synced: 2025-02-23T05:25:39.469Z (over 1 year ago)
- Topics: dht22sensor, esp32, lora, ttgo
- Language: C++
- Homepage:
- Size: 475 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
esp_influx
==========
This repository contains code for running a small ESP32 LoRA network of DHT22 temperature and humidity sensors, which push data to a local InfluxDB installation.
This does not require a LoRA gateway or concentrator. One of the ESP32 LoRA modules acts as a receiver for all other "nodes".
Hardware
--------
This has been tested with LILIGO ESP32 LoRA (https://www.aliexpress.com/item/32872078587.html?spm=a2g0o.store_pc_groupList.8148356.15.5bd1391cdaYoBA&pdp_npi=2%40dis%21AUD%21AU%20%2426.56%21AU%20%2426.56%21%21%21%21%21%402100bdec16645014319921715e42bf%2112000022840374525%21sh) modules.
The DHT sensor is connected to IO13 (and the 3.3V and GND) ports on the ESP32.
A small box is recommended for waterproofing if using outside:


Software
--------
The overall architecture is:
- LoRA Nodes poll attached DHT22 sensors for temperature and humidity readings
- LoRA Nodes send this information (plus module voltage and unique device ID) via (encrypted) LoRA to a Main Node
- The Main Node decrypts the readings, adds in the RSSI value and onsends this to a local InfluxDB installation via Wifi.
The Lora Nodes are configured for very low power operation. They will read the DHT22 sensors once per minute, going into a deep sleep mode in between readings. A typical healthy 18650 battery should give 2 years operation. See ``ESP32 Power.ods`` for the calculations.
The InfluxDB install can be on a Raspberry Pi or similar. The InfluxDB IP address, database name, username and password can be configured in ``TTGO_LoraMain``. Grafana is recommended for data visualisation:

