https://github.com/robthree/temperaturedisplay
Measures temperature and humidity using a GXHT30 and displays this information on an SSD1306 OLED display. Offers a HTTP endpoint to read values as JSON, also outputs values on serial.
https://github.com/robthree/temperaturedisplay
cpp electronics esp8266 ghxt30 ghxt30-sensor hardware platformio serial serial-communication smarthome smartmeter ssd1306 ssd1306-oled temperature temperature-monitoring temperature-sensor wemos wemos-d1 wemos-d1-mini
Last synced: about 1 month ago
JSON representation
Measures temperature and humidity using a GXHT30 and displays this information on an SSD1306 OLED display. Offers a HTTP endpoint to read values as JSON, also outputs values on serial.
- Host: GitHub
- URL: https://github.com/robthree/temperaturedisplay
- Owner: RobThree
- Created: 2025-03-19T23:37:12.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-03-20T00:16:26.000Z (about 1 month ago)
- Last Synced: 2025-03-20T01:24:39.986Z (about 1 month ago)
- Topics: cpp, electronics, esp8266, ghxt30, ghxt30-sensor, hardware, platformio, serial, serial-communication, smarthome, smartmeter, ssd1306, ssd1306-oled, temperature, temperature-monitoring, temperature-sensor, wemos, wemos-d1, wemos-d1-mini
- Language: C++
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Temperature Display
Uses an Wemos D1 mini with a GXHT30 I²C temperature & humidity sensor and a SSD1306 I²C 0.96" OLED display.
This project supports OTA updates, uses the WiFi manager to configure the WiFi and provides a `/read` endpoint to get the temperature and humidity as JSON and a `/reset` endpoint (`PUT`) to reset the module. The readings (and display) are updated every 2 seconds.

## Hardware
You'll need:
* Wemos D1 mini
* GXHT30 I²C temperature & humidity sensor
* SSD1306 I²C 0.96" OLED displayAll of these components are readily available at the time of writing, you should be able to easily source them.
Connect the GXHT30 and SSD1306 to the Wemos D1 mini's `3v3` pin, connect the grounds of all three modules. And connect `SDA` to `D2` (`GPIO4`) and `SCL` to `D1` (`GPIO5`). That's it. Done. Apparently some modules require 5V; if your display is glitching or not turning on, try connecting it to the 5V pin on the Wemos D1 mini. I power the project via the Wemos' onboard USB port but you should also be able to power it by directly powering the power pins.
```
+----------+ +------------------+
| GXHT30 | | SSD1306 |
| [X] | | |
| | | |
| V G S S | | V G S S |
+-----------------+ | C N D C | | C N D C |
| Wemos D1 Mini | | C D A L | | C D A L |
| (ESP8266) | +----------+ +------------------+
| | | | | | | | | |
| D1 |-------|-|--|-+---------------|---|-|--+
| D2 |-------|-|--+-----------------|---|-+
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| GND |-------|-+--------------------|---+
+--| 3V3 | | |
| +-----------------+ | |
+----------------------------+----------------------+
```