DOIT ESP32 DevKit | 16×2 I2C LCD Display | ESP32 Tutorial
In this tutorial, we’ll show you how to use 16×2 I2C LCD Display with the DOIT ESP32 DevKit.
16×2 I2C LCD Display is used in projects requiring output a string of words or sensor data to a display for visual feedback. 16×2 I2C LCD Display can able to display 16×2 characters on 2 rows and has a Hitachi HD44780 LCD controller. It uses a I2C module, which contains an NXP PCF8574T chip. The chip provides general purpose remote input/output expansion via Two Wire Interface (TWI) or I2C bus. We can control backlight of the LCD Display by the on-board jumper and can also adjust contrast of the LCD Display by the on-board potentiometer. This 16×2 I2C LCD Display has a default I2C address of 0x27 and has an operating voltage of 5V.
Components that you’ll required:
– DOIT ESP32 DevKit
– 16×2 I2C LCD Display
– 400 Tie-Points Breadboard
– U-Shaped Jumper Wire
– Jumper Wire
– Type-A to Type-Micro B USB Cable
Please check out here to buy these components.
Now, let’s see the connections.
– Connect the SDA Pin of 16×2 I2C LCD Display to the SDA Pin of DOIT ESP32 DevKit.
– Connect the SCL Pin of 16×2 I2C LCD Display to the SCL Pin of DOIT ESP32 DevKit.
– Connect the VCC Pin of 16×2 I2C LCD Display to the VIN Pin of DOIT ESP32 DevKit.
– Connect the GND Pin of 16×2 I2C LCD Display to the GND Pin of DOIT ESP32 DevKit.
In order to program the DOIT ESP32 DevKit, you’ll need to download the software and source code from the links below.
– Arduino IDE: https://www.arduino.cc/en/Main/Software
– Source Code: 16x2_I2C_LCD_Display.zip
Now, let’s program the DOIT ESP32 DevKit.
– Connect the one end of USB cable to the DOIT ESP32 DevKit, and another end to your Computer.
– Open the sketch in the Arduino IDE. This program enables the DOIT ESP32 DevKit to communicate with the 16×2 I2C LCD Display via Two Wire Interface (TWI) or I2C bus to display text on the LCD Display. This program requires Wire and LCD Display library.
– Include the required Library from the Sketch menu of Arduino IDE.
– Select the proper Board from the Tools menu of Arduino IDE.
– Select the proper Serial Port from the Tools menu of Arduino IDE.
– Click on the Upload button to upload the sketch.
If the upload is successful, the message “Done uploading” will appear in the status bar of Arduino IDE. After a few seconds, you should see the text is displayed on the LCD Display.
WANT TO LEARN MORE ABOUT ESP32?
Build a strong foundation in ESP32 and Open-Source Electronics with this Comprehensive Course.
WANT TO SUPPORT US?
We love to share our knowledge with you and we need your continued support to enable us to continue with our work with the same vigour and passion. If you like eductronics™ and appreciate the information and knowledge we provide, please consider supporting us. Every contribution, however big or small, helps us keep going!
Please visit our Support Us page to make a contribution online.
LIKED THIS TUTORIAL & WANT TO READ MORE?
Here is the list of some tutorials, that you may find useful.