Introduction: ESP32 Quick Wall Temp

About: 3D printing and designing RaspberryPI projects for a few years now
DHT22 Sensor - SD1306 i2c Display for quick time and temperature + data logging


Supplies

0.91" 128x32 IIC I2C Display

DHT22

ESP WROOM 32

Step 1: FLASH ESP32

Checkout the ESP32 Folder to your VSCode with PlatformIO installed as a dependancy.

Connect the USB from the ESP32 to your computer running VSCode/PlatformIO to build and deploy the project.

Clone the Github Project

https://github.com/khinds10/ESP32-Quick-Temp-and-Display

Configure your project

Located in the main src/ folder create a copy of settings.h from settings-default.h and set your custom values for the variables.

You can set WIFI (ssid, password), Timezone (gmtOffset_sec) and latitude, longitude where you live.

OPTIONAL DATAHUB

(datahub_host, device_name settings)

use https://github.com/khinds10/DeviceHub 

to setup a custom datahub for your device to post temps as time goes on.

Get Outside weather

(weather_api_endpoint)

https://openweathermap.org/ account is required, the device will simply read from the default forecast returned from the API, it will also post it to the Datahub.

Step 2: Wire and Hot Glue the Components.

Step 3: WIRING

DHT22

[+] pin -> ESP32 [3V]

[-] pin -> ESP32 [GND]

[out] pint -> ESP32 [Pin 4]

SD1306

[+] pin -> ESP32 [3V]

[-] pin -> ESP32 [GND]

[SDA] pin -> ESP32 [Pin 21]

[SCL] pin -> ESP32 [Pin 22]

Step 4: 3D Print

3D Print the Box and back panel, use the hole on the side to run the USB to power the ESP32 inside the case.


Step 5: Finish - Attach to Wall