How to Use LCD HD44780 I2c

by ForbiddenBit_com in Circuits > Arduino

11750 Views, 1 Favorites, 0 Comments

How to Use LCD HD44780 I2c

4-1-1024x577.jpg

In this tutorial, I’ll show you how to connect an LCD to an I2C, which will have only 4 pins to control and use the LCD. So let’s get started.

Video Tutorial

How to use LCD HD44780 with i2c

List Elements

6192_1.jpg
C-400-DEV-A000046-a.jpg
images.jpg

For this project you will need :

  • LCD 2×16 or 4×20
  • i2c for LCD
  • Arduino
  • 4 wires

Connections

1.jpg
HD44780_i2c (Time 0_00_42;24).jpg
HD44780_i2c (Time 0_00_49;09).jpg

Connection:

  • GND to GND
  • VCC to 5V
  • SDA to SDA or A4
  • SCL to SCL or A5

Address I2c Module

2.jpg

Before using our display, we need to know its address. We can do this by using the I2C scanner code. Once we have the I2C address we can replace this value in the example code and start using it. Download sketch and upload to your Arduino. Next open Serial Monitor and copy address.

Downloads

Configure Arduino IDE and Test

3.jpg
4.jpg

Now we can go to the appropriate program. Install library LiquidCrystal_i2c by Frank de Brabander. Set the address and size of your i2c HD44780 my is 0x3F. Set the contrast with the potentiometer. You can change the address of the i2c module by shorting after A0, A1 and/or A2.

Downloads