Read and display Temperature and Humidity in my van.
- This is my FIRST esp32 project.
- I could not find a digital thermaometer that met my needs.
- Wanted the Temp, the RH and the 24 hour Highs and Lows.
- TTGO T-Display: Amazon
- DHT22: Amazon
- Adruino 1.8.19
- TFT_eSPI
- Adafruit Unified Sensor (Dependancy for DHT library)
- DHT sensor library
- Gets the Temperature and Humidity and displays it on the screen.
- Screen brightness adjusts to the ambient light.
- Manufacturer info: Xinyuan-LilyGO
- You will need the Adruino IDE. (I am on windows)
- Add esp32 support by adding
https://dl.espressif.com/dl/package_esp32_index.json
in the preferences - Select the board: Tools -> Board: -> TTGO LoRa32-OLED V1
- Set the Serial at 921600
- TFT_eSPI
- In Arduino/libraries/TFT_eSPI/User_Setup_Select.h
- Comment out this line:
#include <User_Setup.h> // Default setup is root library folder
- Un-comment this line:
#include <User_Setups/Setup25_TTGO_T_Display.h> // Setup file for ESP32 and TTGO T-Display ST7789V SPI bus TFT
- Once the IDE is set up, and the components wired.
- Plug in your T-Display.
- Verify your Port.
- Click the Upload arrow.
- And I think that's it.
Project is: Completed.
- Big thanks to Retro Tech & Electronics for the TTGO and DHT22 information.
- Got the Battery info from oxinon.
- Got the README template from ritaly.