https://github.com/gerryvel/roomsensor
Roomsensor for temperature, humidity and pressure with battery and 24VDC
https://github.com/gerryvel/roomsensor
bme280 esp32 modbus-tcp
Last synced: 3 months ago
JSON representation
Roomsensor for temperature, humidity and pressure with battery and 24VDC
- Host: GitHub
- URL: https://github.com/gerryvel/roomsensor
- Owner: gerryvel
- License: gpl-3.0
- Created: 2024-12-07T15:17:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-05T22:58:44.000Z (over 1 year ago)
- Last Synced: 2025-08-26T09:31:56.107Z (10 months ago)
- Topics: bme280, esp32, modbus-tcp
- Language: C
- Homepage:
- Size: 1.01 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Room Sensor Modul


## Description
The ESP32 in this project is an ESP32C3. This is a small module with USB connector.
The Sensors is a BME280 for Temperatur, pressure and humidity.
It's Webinterface and Modbus available.
The Modbus-server has 10 Register:
- Register 0, read, temperatur
- Register 1, read, pressure
- Register 2, read, humidity
- Register 3, read, altitude
- Register 4, read, voltage (batterie)
- Register 10, read/write, Set "True" from client: enable Deep-Sleep-Modus for xx sec
- Register 11, read/write, Deepsleep-Time in sec
- Register 15, read/write, calibraton value temperature
- Register 16, read/write, calibraton value pressure
- Register 17, read/write, calibraton value humidity
The 12/24 Volt is reduced 10-26 Volt to 5 Volt with a DC Step-Down_Converter for connect to wired power.
Also is a Batterie inserted in the housing and measurement for this voltage.
After configuration with the Webinterface can you with modbus switch to Deepsleep-Modus.
The Website use LittleFS Filesystem. You must use Partition Schemes "Minimal SPIFFS with APPS and OTA".
The HTML Data upload separately.
Modbus is tested with PLC S7-1214 TCP Client and KTP400
## Partlist:
- Espressiv ESP32-C3-DevkitM1 [Link](https://www.reichelt.de/entwicklungsboard-esp32-c3-mini-1-esp32c3devkitm-p311730.html?&nbc=1)
- BME 280 [Link](https://www.reichelt.de/entwicklerboards-temperatur-feuchtigkeits-und-drucksensor--debo-bme280-p253982.html?&nbc=1)
- Traco-Power TSR 1-2450 for 12V / 5V [Link](https://www.reichelt.de/dc-dc-wandler-tsr-1-1-w-5-v-1000-ma-sil-to-220-tsr-1-2450-p116850.html?search=tsr+1-24)
- Housing [Link](https://www.reichelt.de/sensorgehaeuse-74x74x25-5-mm-belueftet-weiss-cb-rs02vwh-p317699.html?&nbc=1)
- Batterieholder [Link](https://www.reichelt.de/batteriehalter-fuer-1-18350-keystone-1095p-p213366.html?&nbc=1)
- Akku [Link](https://www.reichelt.de/li-ion-akku-cr123-3-6-v-850-mah-usb-c-xcell-148203-p366682.html?&nbc=1)
## Wiring diagram

## PCB and Housing assembly
PCB by Aisler [Link](https://aisler.net/p/JVQKQVUK)
## Webinterface





## S7 Connection


## Versions
- 1.4 add calibration Register
- 1.3 Update Settings (failure BMP Type)
- 1.2 add Modbusregister to switch DeepSleepModus on and WiFiScan off
- 1.1 add batterie voltage measurement
- 1.0 working Version