LCD with ESP32 on Arduino IDE

For this Embedded System assignment, my team and I purchased an LCD with I2C communication and installed a library. We wanted to display a static test on the LCD.

We followed this tutorial. Sadly, connecting the LCD to ESP32 needed four female to female jumper wires while we only had three. So, instead of directly connecting the two device, we connected the I2C to the arduino breadboard and wired it to the ESP32 using male to female jumper wire. We connected the ESP32 to our laptop using USB cable.

We could see the LED on ESP32 and the LCD lit up. We thought the circuit had connected to the laptop just fine. We compiled and uploaded the code in the IDE to search for I2C address. We failed for the first time because apparently we had used the schematic diagram of the wiring for ESP8266. Our circuit was not detected by the IDE.

Wrong circuit arrangement
Correct circuit arrangement

After following the right diagram for ESP32, we found the address which was 0x27, same as the address listed on the tutorial.

Next, we compiled and uploaded the code for displaying a static test. We observed there was nothing on the LCD even though there was no problem with the code. Using a screwdriver, we adjusted the potentiometer on the I2C. The backlight was fixed so that our static test could be displayed clearly.

For this assignment, we got many experiences because the challenges we faced. Thankfully, we were able to overcome all of them.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s