🇬🇧 English 🇪🇸 Español 🇩🇪 Deutsch 🇫🇷 Français 🇮🇹 Italiano 🇮🇳 हिंदी (Hindi) 🇷🇺 Русский 🇷🇴 Română 🇯🇵 日本語 🇨🇳 中文 🇵🇹 Português

@tutorial: 16x2 LCD i2c control Arduino

This is a very short example. How to wire up an 16x2 LCD to the arduino using i2c communication and then display text, numbers, some special cahracters but also some unique made icons byte by byte. Below you have the schematic you need and an example code. Remember to install the i2c lyquid crystal library. Read the comments in the code for more or leave a question below.

External Link: https://electronoobs.com/eng_arduino_tut51.php

by: ELECTRONOOBS on 2026-11-04

First, make sure you solder a i2c module like this one on this link, to the pins of the LCD. This module could control the 16x2 LCD but also the 20x4 one and costs only 1 dollar.

~PART 1 - Schematic 16x2

Ok, make the i2c connections from the Arduino to the LCD module as below. Add a 10k potentiometer in order to be able to set the contrast of the LCD: Also a small 220 resistor to limit the current fot the backlight LED. The rest of the pins are the parallel data and the wr/re pins.

Wiring a 16x2 LCD to an Arduino via I2C, showing custom icons, numbers and text with schematic and code.
Wiring a 16x2 LCD to an Arduino via I2C, showing custom icons, numbers and text with schematic and code.
~EXAMPLE 1 - ONE i2c LCD 16x2

First of all, you need the i2c liquid crystral library in order to work. For that, go below and downlaod that library. It will be a .zip file. Open Arduino IDE and go to sketch, include library, add .zip library and select the downlaoded file. Now the library is installed. You could downlaod the example code or just copy/paste it from below.

~EXAMPLE 2 - TWO i2c LCD 16x2

First of all, you need the i2c liquid crystral library in order to work. For that, go above and downlaod that library. It will be a .zip file. Open Arduino IDE and go to sketch, include library, add .zip library and select the downlaoded file. Now the library is installed. You could downlaod the example code or just copy/paste it from below.

~EXAMPLE 3 - ONE i2c LCD 20x4

First of all, you need the i2c liquid crystral library in order to work. For that, go above and downlaod that library. It will be a .zip file. Open Arduino IDE and go to sketch, include library, add .zip library and select the downlaoded file. Now the library is installed. You could downlaod the example code or just copy/paste it from below.

Leave a comment

Please login in order to comment.

Comments