Hello guys in this tutorial we will learn how to connect LCD with I2C serial interface adapter. It will reduce 4 input/output ports on Arduino board. And wiring is much simpler and easier to connect. So let’s get started.

For this you will need

  1. Arduino,
  2. LCD display 16X2,
  3. I2C,
  4. Breadboard (optional if you solder I2C with LCD),
  5. Jumper Wire.


This is I2C serial interface adapter. We can adjust contrast of LCD by this blue potentiometer shown in picture. We can solder this directly on LCD. In this tutorial we are going to connect I2C and LCD by breadboard. Do connection as shown in diagram.

How to connect LCD with I2C serial interface adapter.

Download library for I2C from Github  OR you can download it from here because github library may change by the time or it may not work.

Download l2C library Arduino-LiquidCrystal-I2C-library-master.zip

After downloading it, unzip it and change the name of folder to LiquidCrystal_I2C. And copy that folder and paste it to Arduino libraries.

Before uploading any sketch first we need to find out its I2C address. Go to I2C scanner website.

  1. Copy that i2c scanner code and paste it.
  2. Compile & Upload the sketch.
  3. Go to serial monitor.
  4. Now you can see your lcd address. 0x3F is LCD address. Copy that address.

LCD address

And goto examples ->LiquidCrystal_I2C -> hello world. Change lcd address to previously copied address.

// Set the LCD address to 0x3F for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x3F, 16, 2);

Compile and upload the sketch,

#include <Wire.h>  
#include <LiquidCrystal_I2C.h>
// Set the LCD address to 0x3F for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x3F, 16, 2);

void setup()
 // initialize the LCD
// Turn on the blacklight and print a message.
 lcd.print("Hello, world!");

void loop()
 // Do nothing here...

now you can see hello world on the screen. If it is not showing anything on screen you can adjust contrast of lcd by adjusting potentiometer.

I2C vs coventional wiring LCD

Till then keep learning keep making.

Categories: Arduino


How to make 12 hour format clock. – Robotica DIY · August 5, 2019 at 2:43 pm

[…] I am using I2C for LCD if you don’t know you can learn here how to use LCD with I2C. […]

How to measure high degree temperature with Arduino by K type thermocouple. – Robotica DIY · August 5, 2019 at 5:11 pm

[…] If you don’t know how to use I2C with LCD. You can see my previous tutorial on how to connect I2C with LCD. […]

Automatic School Bell System Using Arduino - Robotica DIY · March 23, 2020 at 8:28 pm

[…] You will also need to find LCD address. You can watch my previous tutorial for connecting LCD to I2C. […]

How to make smoke detector alarm using Arduino - Robotica DIY · March 25, 2020 at 6:29 pm

[…] library for I2C. Read how to connect LCD to I2C and How to Add […]

Comments are closed.