Arduino I2C LCD 1602 Display

Display text on the I2C LCD 1602A display with Arduino

Purpose of this tutorial:

To display text on an I2C LCD 1602A display with Arduino, you will need to connect the display to your Arduino board, install the necessary libraries, and write code to control the display.

Here are the basic steps to get started:

  1. Connect the LCD to your Arduino board: The I2C LCD 1602A display has 4 pins (VCC, GND, SDA, and SCL), which you will need to connect to the corresponding pins on your Arduino board.
  2. Install the LiquidCrystal_I2C library: This library allows you to control the LCD display using the I2C protocol. You can install it through the Arduino IDE by going to Sketch > Include Library > LiquidCrystal_I2C.
  3. Write code to control the display: You will need to include the LiquidCrystal_I2C library in your sketch, initialize the display, and use the library’s functions to control the display.

In this tutorial we will see how to display text in an LCD display with Arduino.

Necessary components

Arduino UNO

The Arduino UNO is a microcontroller board based on the ATmega328P. It has 14 digital input/output pins, 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header, and a reset button. It is the most popular and widely used board among the Arduino boards.

The Arduino UNO can be programmed using the Arduino programming language, which is based on C++. It uses a simple and intuitive programming environment, making it easy for beginners to get started with microcontroller programming.

The Arduino UNO can be connected to various sensors and actuators to control different devices and perform different tasks. For example, it can be used to control motors, read data from sensors, display information on an LCD screen, and communicate with other devices via serial communication protocols such as I2C and SPI.

The Arduino UNO can also be powered by a USB cable or an external power supply, making it easy to use in a wide range of projects and applications. It’s compatible with a wide range of shields (expansion boards) that adds functionality to the board, such as Ethernet, WiFi, and Bluetooth, and it’s widely supported by a strong and active community, which provides a lot of tutorials, examples and libraries to help users to get the most of the board.

LCD I2C 160A display

An LCD I2C 160A display is a type of liquid crystal display (LCD) that uses the I2C communication protocol and has a screen size of 160×128 pixels. The I2C (Inter-Integrated Circuit) protocol is a communication protocol that allows multiple devices to communicate with each other over a shared bus. This means that the LCD display can be connected to a microcontroller, such as an Arduino, using just two wires for communication and power.

The I2C interface allows for a simpler wiring and board design, and also multiple LCD can be connected to a single microcontroller by just changing the I2C address of each display. The size of 160×128 pixels provides a decent resolution for displaying text, images or graphics.

This type of LCD display can be used in various projects such as in home automation, weather station, data logger, etc. It’s also compatible with many development board like Raspberry Pi, Arduino, etc.

connecting wires

Connecting wires are used to connect various components in an electronic circuit. They allow for the transfer of electricity, data, or signals between different devices and components.

When connecting wires to an Arduino or other microcontroller, it is important to pay attention to the correct pinout. The pinout refers to the arrangement of pins on the microcontroller and the corresponding function of each pin. The Arduino pinout can be found in the documentation provided by the manufacturer, or in various resources available online.


To complete the assembly you must connect:

  • the SDA pin of the LCD display to A4 PIN of the Arduino
  • the SCL pin of the LCD display to A5 PIN  of the Arduino
  • the GND pin of the LCD display to GND pin of the Arduino
  • the VCC pin of the LCD display to  5V pin of the Arduino


Here is the program to display text on the LCD display.


Note: You must download the LiquidCrystal_I2C library(Download).

29 commentaires

LUKA 16-03-2323

Hi! I'm so happy while reading this site. Can you do some more things about that

n 25-01-2323

I һave been surfing on-line ցreater than three hours today, үet I by no means found any interesting ɑrticle liкe yours. It is lovely worth sufficient for me. Personally, if all site owners and bloggers made excellent cօntent materіal as you ⲣrobably did, the internet shaⅼl be a lot more helpful thɑn еver before.

pg สล็อต 31-12-2222

Spot on with this write-up, I absolutely feel this website needs far more attention. I'll probably be returning to read more, thanks for the information!

รีวิวเกมสล็อต 21-12-2222

I think the admin of this site is truly working hard in favor of his web site, for the reason that here every information is quality based material.

เกมสล็อต PG SLOT เกมไหนดี 15-12-2222

Hi there! This is my 1st comment here so I just wanted to give a quick shout out and say I genuinely enjoy reading through your blog posts. Can you recommend any other blogs/websites/forums that deal with the same subjects? Many thanks!

สล็อตแตกหนัก 14-12-2222

Hey would you mind sharing which blog platform you're working with? I'm looking to start my own blog in the near future but I'm having a hard time choosing between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I'm looking for something completely unique. P.S My apologies for getting off-topic but I had to ask!

baccarat 13-12-2222

I seriously love your website.. Great colors & theme. Did you build this web site yourself? Please reply back as I'm wanting to create my own site and would love to find out where you got this from or exactly what the theme is named. Many thanks!

สล็อต ฝาก-ถอน true wallet ไม่มี บัญชีธนาคาร 12-12-2222

Have you ever considered about including a little bit more than just your articles? I mean, what you say is fundamental and all. Nevertheless think of if you added some great photos or videos to give your posts more, "pop"! Your content is excellent but with pics and videos, this website could definitely be one of the greatest in its niche. Good blog!

สล็อต ทดลองเล่นฟรี ถอนได้ 12-12-2222

I think everything composed was actually very logical. But, what about this? what if you wrote a catchier title? I mean, I don't wish to tell you how to run your website, however suppose you added something that makes people want more? I mean Display text on the I2C LCD 1602A display with Arduino is a little boring. You could peek at Yahoo's front page and note how they create article titles to grab viewers to click. You might add a related video or a related picture or two to grab people excited about what you've written. Just my opinion, it might bring your posts a little bit more interesting.

สล็อตแจก เครดิตฟรี 02-12-2222

Having read this I believed it was extremely enlightening. I appreciate you taking the time and effort to put this content together. I once again find myself personally spending way too much time both reading and leaving comments. But so what, it was still worth it!

tracfone special 30-11-2222

Hi my friend! I want to say that this article is amazing, nice written and come with approximately all significant infos. I'd like to peer extra posts like this .

tracfone coupon 29-11-2222

I need to to thank you for this wonderful read!! I definitely loved every little bit of it. I've got you bookmarked to look at new things you post…

moving from California to Oregon 16-11-2222

I visited several sites except the audio quality for audio songs existing at this web site is genuinely excellent.

Ericka 20-10-2222

This is my first time go to see at here and i am genuinely happy to read all at single place.

Maddison 14-10-2222

Heya! I'm at work surfing around your blog from my new iphone 4! Just wanted to say I love reading through your blog and look forward to all your posts! Keep up the outstanding work!

Buck 12-10-2222

Great post. I was checkіng continuously this weblօg аnd I'm impressed! Very useful information specifically the ultimate phase :) I maintain such information a lot. I was looking for this particular information for a very lengthy time. Tһanks and best of luck.

Peter 09-08-2222

Are you writing the articles in your website yourself or you outsource them? I am a blogger and having difficulty with content. Other bloggers told me I should use an AI content writer, they are actually pretty good. Here is a sample article some bloggers shared with me.

Adrian 07-07-2222

Hi, I do believe your blog might be having web browser compatibility problems. When I take a look at your web site in Safari, it looks fine however when opening in I.E., it has some overlapping issues. I merely wanted to give you a quick heads up! Apart from that, excellent site!

Kermit 13-06-2222

Excellent article. I definitely love this website. Continue the good work!

Jack 09-06-2222

Wonderful blog! I found it while surfing around on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I've been trying for a while but I never seem to get there! Thank you

Mabel 30-05-2222

I’m not that much of a online reader to be honest but your sites really nice, keep it up! I'll go ahead and bookmark your site to come back later on. All the best

Lester 24-05-2222

Wow, marvelous blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your site is great, as well as the content!

Belle 24-05-2222

Tremendous things here. I'm very happy to see your article. Thank you a lot and I am having a look forward to contact you. Will you kindly drop me a mail?

Roma 23-05-2222

When someone writes an piece of writing he/she keeps the plan of a user in his/her mind that how a user can be aware of it.

Magdalena 18-05-2222

I like the helpful information you provide in your articles. I will bookmark your weblog and check again here frequently. I'm quite certain I will learn many new stuff right here! Best of luck for the next!

Josephine 18-05-2222

My coder is trying to persuade me to move to .net from PHP. I have always disliked the idea because of the expenses. But he's tryiong none the less. I've been using WordPress on a number of websites for about a year and am anxious about switching to another platform. I have heard good things about blogengine.net. Is there a way I can import all my wordpress posts into it? Any help would be really appreciated!

Bernd 27-04-2222

Does your blog have a contact page? I'm having problems locating it but, I'd like to shoot you an email. I've got some creative ideas for your blog you might be interested in hearing. Either way, great website and I look forward to seeing it improve over time.

Colby 27-04-2222

Can I simply just say what a comfort to discover somebody that really knows what they're talking about on the internet. You definitely realize how to bring a problem to light and make it important. A lot more people should read this and understand this side of the story. I was surprised you aren't more popular since you most certainly possess the gift.

Conrad 27-04-2222

I don't even understand how I stopped up right here, but I assumed this post was once great. I don't recognise who you are but certainly you're going to a famous blogger in case you aren't already. Cheers!

Leave a comment

Votre adresse e-mail ne sera pas publiée.

Scroll to Top