In this previous article, I’ve demonstrated everything about this IC using its datasheet and build a driver library (in Embedded-C) for this IC. Moreover, it’s shared with all I2C devices on the bus, so you can still have so many other modules/sensors connected on the same bus. The I2C IO expander IC (PCF8574) is commonly used as a cheap solution to implement an I2C LCD interface that replaces the classic parallel connection to the LCDs (at least 6 pins) with an easy to use I2C bus (only 2 pins). Get The ESP32 Full Course Kit (List of components).Or just refer to the table for the exact components to be used in practical LABs for only this specific tutorial. You can either get the complete course kit for this series of tutorials using the link down below.
We’ll be using this a lot in future tutorials, so I hope you can follow and do all the LABs listed below successfully. Which does save a lot of GPIO pins and very suitable for many projects. Except for the fact that it does use the I2C bus instead of parallel (4-Bit) data mode. The library APIs are very similar to the standard LiquidCrystal library in Arduino that we’ve used in this previous tutorial. We’ll be using the LiquidCrystal_I2C library with I2C Wire.h library in Arduino Core to interface LCD 16×2 display via the I2C bus.
ARDUINO I2C EXAMPLE LCD HOW TO
In this tutorial, you’ll learn how to use ESP32 (or ESP8266) with the I2C LCD Display module (PCF8574) in Arduino IDE. Previous Tutorial Tutorial 9 Next Tutorial ESP32 I2C LCD in Arduino IDE | PCF8574 I2C LCD Module ESP32 Course Home Page ?