You are currently viewing I2C LCD Library for Proteus: Free 16×2 and 20×4 Download
I2C LCD Library for Proteus

I2C LCD Library for Proteus: Free 16×2 and 20×4 Download

This free I2C LCD library for Proteus gives you the character LCD module you actually buy: a 16×2 or 20×4 HD44780 display with the black PCF8574 I2C backpack soldered on the back. One part, four pins (GND, VCC, SDA, SCL), and your Arduino sketch with LiquidCrystal_I2C runs on it unchanged.

Proteus already has bare LCDs (LM016L, LM044L) and a separate PCF8574 chip, but you have to wire the two together yourself, and the mapping must match the library. Here the backpack is built in, with its contrast trimpot, backlight jumper and power LED, in blue, green and white.

In short

With the I2C LCD library for Proteus installed, place I2C LCD 16X2 BLUE (or any of the six parts), connect SDA to A4 and SCL to A5 of an Arduino UNO, VCC to 5 V and GND to ground, and run a LiquidCrystal_I2C sketch with address 0x27. No pull-up resistors are needed: the backpack has them.

I2C LCD library for Proteus: 16x2 and 20x4 LCD modules in blue, green and white
Figure: The six parts of the I2C LCD library for Proteus.

Six I2C LCD Parts in One Library

PartGlassText
I2C LCD 16X2 BLUE / I2C LCD 20X4 BLUEBlue backlightWhite characters
I2C LCD 16X2 GREEN / I2C LCD 20X4 GREENYellow-green backlightDark characters
I2C LCD 16X2 WHITE / I2C LCD 20X4 WHITEWhite backlightDark characters

The size and the colour belong to the part, just like a real module: pick the one you have on your desk. All six use the same model, ETLCDI2C.DLL.

I2C LCD Library for Proteus: Features

FeatureWhat it does
Real backpack wiringPCF8574 pins P0 = RS, P1 = RW, P2 = E, P3 = backlight, P4 to P7 = D4 to D7: the common YwRobot / LCM1602 board that LiquidCrystal_I2C and hd44780 expect
I2C address0x27 (PCF8574T) by default, 0x20 to 0x27 or 0x38 to 0x3F (PCF8574AT) in the part settings
Real charactersThe HD44780 A00 character set (with Japanese katakana), or A02 (European), drawn with the real 5×8 dot grid and gaps of the 1602A / 2004A glass
Full HD447804-bit set-up, cursor, blink, scrolling, autoscroll, right-to-left, 8 custom characters, reading back the display memory
Contrast trimpotThe value box on the board shows the trimpot (0 to 10 kΩ). Click + / – while the simulation runs: too low and you see blocks, too high and the text fades, as on the real module
BacklightSwitched by the sketch (backlight() / noBacklight()) and by the LED jumper, which you can click to pull it
Power LEDLights while VCC and GND are connected
Real timingInstructions that arrive while the LCD is busy are lost, like on the real chip
Plain-English hintsWrong address, SDA / SCL not connected, LCD not initialised, backlight never switched on, contrast too low or high, text past the end of a row: each one is explained in the simulation log

I2C LCD Proteus Pins and Wiring

PinArduino UNO / NanoESP32Mega
GNDGNDGNDGND
VCC5V5V (VIN)5V
SDAA4GPIO 2120
SCLA5GPIO 2221

VCC and GND are real pins: leave one open and the module has no power, does not answer on the bus and the glass stays dark, exactly as on your bench.

Part Settings

Double-click the LCD to change it:

SettingWhat it doesDefault
I2C AddressThe address of the backpack. Use the same number in your sketch0x27
Contrast TrimpotResistance from the trimpot wiper to GND, 0 to 10k. You can type 4700, 4.7k or 4k7. A low value gives a dark glass with blocks, a high value faint text5k
Backlight Jumper FittedThe 2-pin LED jumper. Without it the backlight stays offYes
Character ROMA00 (Japanese, nearly every module) or A02 (European)A00
Trimpot Step per Click (advanced)How far one + / – click turns the trimpot500 Ω
On-Board I2C Pull-Ups (advanced)The backpack’s 4.7k pull-ups on SDA and SCLYes
Log LCD Instructions (advanced)Writes every instruction and the text into the simulation logNo

Example 1: Hello World on a 16x2 I2C LCD

Place an Arduino UNO and I2C LCD 16X2 BLUE, wire them as in the table above and load this sketch. You need the library LiquidCrystal I2C by Frank de Brabander (Arduino IDE: Tools, Manage Libraries).

LCD16x2_I2C_Test.inoArduino
// I2C LCD library for Proteus: 16x2 test (www.electronicstree.com)
// LCD GND -> GND, VCC -> 5V, SDA -> A4, SCL -> A5
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 16, 2);       // PCF8574T backpack = 0x27 (PCF8574AT = 0x3F)

byte heart[8] = { 0b00000, 0b01010, 0b11111, 0b11111, 0b01110, 0b00100, 0b00000, 0b00000 };

void setup()
{
  lcd.init();                             // 4-bit set-up of the HD44780
  lcd.backlight();                        // init() leaves the backlight OFF
  lcd.createChar(0, heart);

  lcd.setCursor(0, 0);
  lcd.print("ElectronicsTree");
  lcd.setCursor(0, 1);
  lcd.print("I2C LCD ");
  lcd.write(0);
  lcd.print(" 16x2");
  delay(2000);
}

void loop()
{
  // counter on row 2
  lcd.clear();
  lcd.setCursor(0, 0);
  lcd.print("Counting:");
  for (int i = 0; i <= 20; i++) {
    lcd.setCursor(0, 1);
    lcd.print("n = ");
    lcd.print(i);
    lcd.print("   ");
    delay(150);
  }

  // a message longer than the glass, slid in with scrollDisplayLeft()
  lcd.clear();
  lcd.setCursor(0, 0);
  lcd.print("Proteus model by electronicstree.com");
  lcd.setCursor(0, 1);
  lcd.cursor();
  lcd.blink();
  delay(1000);
  for (int i = 0; i < 20; i++) {
    lcd.scrollDisplayLeft();
    delay(250);
  }
  lcd.noCursor();
  lcd.noBlink();
  delay(1000);
}

The LCD shows ElectronicsTree and a heart made with createChar(), counts from 0 to 20, then slides a long message in with scrollDisplayLeft() while the cursor blinks.

Now try what a real module does: click + on the trimpot a few times and the text fades; click – until it reads 1k and dark blocks appear behind every character. Click the LED jumper and the backlight goes out. Remove the line lcd.backlight(); and the log tells you why the screen is so dark.

New to simulating an Arduino? Our Arduino UNO R3 library for Proteus shows how to load a sketch.

Arduino UNO with a 16x2 I2C LCD in Proteus showing text and a custom character
Figure: Example 1 running on the 16x2 I2C LCD in Proteus.

Example 2: DS3231 Clock on a 20x4 I2C LCD

Two I2C modules share the same two wires. Add the DS3231 RTC module (part DS3231 RTC MODULE) and I2C LCD 20X4 GREEN, and connect both SDA pins to A4 and both SCL pins to A5. The LCD answers at 0x27, the clock at 0x68. Install RTClib by Adafruit too.

LCD20x4_DS3231_Clock.inoArduino
// I2C LCD library for Proteus: 20x4 clock with a DS3231 (www.electronicstree.com)
// LCD and DS3231 on the same bus: SDA -> A4, SCL -> A5
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <RTClib.h>

LiquidCrystal_I2C lcd(0x27, 20, 4);
RTC_DS3231 rtc;

const char* const DAYS[7] = { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };

void setup()
{
  lcd.init();
  lcd.backlight();
  if (!rtc.begin()) {
    lcd.print("DS3231 not found");
    while (true) {}
  }
  lcd.setCursor(0, 0);
  lcd.print("  ElectronicsTree");
}

void loop()
{
  DateTime now = rtc.now();
  char line[21];

  snprintf(line, sizeof(line), "Time: %02d:%02d:%02d", now.hour(), now.minute(), now.second());
  lcd.setCursor(0, 1);
  lcd.print(line);

  snprintf(line, sizeof(line), "Date: %02d.%02d.%04d", now.day(), now.month(), now.year());
  lcd.setCursor(0, 2);
  lcd.print(line);

  // row 4 built as ONE 20-character string: day name padded to 13, temperature right-aligned in 5,
  // then the degree sign (0xDF in the A00 ROM) and C. Nothing is blanked and rewritten, so nothing flickers.
  char temp[8];
  dtostrf(rtc.getTemperature(), 5, 1, temp);
  snprintf(line, sizeof(line), "%-13s%s\xDF" "C", DAYS[now.dayOfTheWeek()], temp);
  lcd.setCursor(0, 3);
  lcd.print(line);

  delay(200);
}

The four rows show the title, the time, the date, and the day with the temperature of the DS3231. The clock starts at your PC’s time. Character 223 is the degree sign in the A00 character set.

DS3231 clock on a 20x4 I2C LCD in Proteus with an Arduino UNO
Figure: Example 2, a DS3231 clock on the 20x4 I2C LCD.

I2C LCD Library for Proteus: Troubleshooting

Look in the simulation log first: the model tells you what is wrong and how to fix it.

What you seeCause and fix
Row 1 full of blocks, row 2 emptyThe LCD has power but was never set up. Call lcd.init() (or lcd.begin()) in setup(), and check the I2C address
Nothing at allWrong address (try 0x27 and 0x3F, or set the part to the address in your sketch), SDA / SCL swapped, or VCC / GND not connected
Text is there but very darklcd.backlight() missing (init() leaves the backlight off), or the LED jumper is pulled
Blocks behind every characterContrast too high: click + on the trimpot (or set it to 5k)
Text too faintContrast too low: click – on the trimpot
20×4: row 3 continues row 1That is how the HD44780 works: row 1 runs on into row 3. Use setCursor(0, 2) for row 3
Text cut off at the right edgeIt went past the end of the row. The LCD keeps it in memory but does not wrap it: use setCursor() or scrollDisplayLeft()

Download the I2C LCD Library for Proteus

The zip file of the I2C LCD library for Proteus holds the model ETLCDI2C.DLL and the library ElectronicsTree[LCDI2C].LIB with all six parts.

Download
22 Downloads

Installing it takes two minutes (see the steps right below). Looking for more parts? Browse all our free Proteus libraries.

We’re always looking to expand our library collection based on what our community needs. If you’re looking for a specific Arduino module, sensor, or component that we don’t currently offer, we’d love to hear from you!

Reach out to us at help@electronicstree.com with your requests. We prioritize new library development based on community demand, so your suggestion could be our next addition.

Join the official WhatsApp channel of ElectronicsTree to stay updated with the latest electronics tutorials, Proteus libraries, Arduino projects, and simulation resources.

How to Install the I2C LCD Library for Proteus 8

New to adding libraries? Our guide how to install a library in Proteus 8 shows where the Proteus folders are.

  1. Close Proteus.
  2. Copy the files into the Proteus data folder, normally C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\DATA
    • ETLCDI2C.DLL goes into DATA\MODELS
    • ElectronicsTree[LCDI2C].LIB goes into DATA\LIBRARY
    Windows asks for administrator rights because the folder is under Program Files: click Continue.
  3. Start Proteus, open Pick Devices (press P) and search for I2C LCD. The parts are in the category Sensor and Modules.
Tested with 8.17 SP2

The I2C LCD library for Proteus is made for Proteus 8 only; it does not work in Proteus 9. It is a library, not Proteus itself: the software comes from Labcenter Electronics, who also offer a free demo on their website.

Frequently Asked Questions

Does Proteus have an I2C LCD?

Proteus has bare character LCDs (LM016L for 16×2, LM044L for 20×4) and a separate PCF8574 chip, which you must wire together yourself. This I2C LCD library for Proteus is the complete module with the backpack, in one part with four pins.

Which Arduino library do I use?

LiquidCrystal I2C by Frank de Brabander (LiquidCrystal_I2C.h). The hd44780 library (hd44780_I2Cexp) works too and finds the address and the pin mapping on its own.

What is the I2C address of the LCD?

0x27 for the common PCF8574T backpack, 0x3F for the PCF8574AT. Set the same address in the part and in your sketch.

Why does my LCD show only blocks?

The LCD has power but was not initialised: call lcd.init() in setup() and check the address. If every character has a block behind it, the contrast is too high: click + on the trimpot.

Can I use it with an ESP32?

Yes. Connect SDA to GPIO 21 and SCL to GPIO 22 and use the same LiquidCrystal_I2C sketch.

Does it work in Proteus 9?

No. This I2C LCD library is made for Proteus 8 only (tested in Proteus 8.17 SP2). It does not work in Proteus 9.

Is this I2C LCD library for Proteus free?

Yes. Download it from this page. The zip holds the model DLL and the library with all six parts.

More Libraries for Proteus

Modules to show on the I2C LCD in Proteus:

Conclusion

The I2C LCD library for Proteus brings the 16×2 and 20×4 modules everyone uses into the simulation: four wires, the real PCF8574 backpack, the real character set, a contrast trimpot and backlight jumper you can click, and clear hints when something is wrong. Your LiquidCrystal_I2C sketch runs on it unchanged, so what works in Proteus works on the bench.

Questions, or a display you want next? Write them in the comments!

Leave a Reply