In IoT, LCD is rarely required, but some times its useful to monitor errors and connection related issues. In this tutorial we are interfacing I2C LCD with ESP8266 or ESP32. Both code examples are given.
We have very few IOs on ESP8266 and ESP32. I2C based display interface uses only two IO lines.
Let’s see whats the difference between ESP32 and ESP8266? Both ESP32 and ESP8266 are WiFi based SOC (Systems on Chop). Both have 32-bit processor, ESP32 is dual core 80Mhz to 240MHz CPU and ESP8266 is 160MHz single core processor. In depth comparison is given below.
In this tutorial we are interfacing DHT11 or DHT22 Humidity temperature sensor withESP32 DevKit.
The DHT11 (or DHT22 and similar) are cheap temperature and humidity sensors. The communicate with a ESP32 is over a single wire, but unfortunately it is not compatible with the 1-Wire protocol defined by Dallas Semiconductors.
The electric connection to the ESP32 DevKit is very simple, as the DHT series can be powered direct with 3.3V. Only 3 wires are needed: VCC, GND and the data line. Data Line is connected to GPIO15 (D15).
Connecting ESP32 to WiFi is first step when using ESP32. In all projects of ESP32 Connecting to WiFi and then accessing other thing is must. ESP32 can operate in three different modes: Wi-Fi station, Wi-Fi access point, and both at the same time. Let’s Connect ESP32 DevKit to WiFi.
Things you’ll need
A WiFi router/modem, or You can use your mobile hot spot.
Your WiFi network name (SSID) and password (WPA). If you need to set up, check or change the WiFi network name or password, you’ll need to check your modem’s setup guide or user manual for instructions on how to do this.
A computer, laptop or other device with a built-in WiFi adapter or a plugin USB WiFi adapter.