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.
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.
Six I2C LCD Parts in One Library
| Part | Glass | Text |
|---|---|---|
| I2C LCD 16X2 BLUE / I2C LCD 20X4 BLUE | Blue backlight | White characters |
| I2C LCD 16X2 GREEN / I2C LCD 20X4 GREEN | Yellow-green backlight | Dark characters |
| I2C LCD 16X2 WHITE / I2C LCD 20X4 WHITE | White backlight | Dark 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
| Feature | What it does |
|---|---|
| Real backpack wiring | PCF8574 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 address | 0x27 (PCF8574T) by default, 0x20 to 0x27 or 0x38 to 0x3F (PCF8574AT) in the part settings |
| Real characters | The 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 HD44780 | 4-bit set-up, cursor, blink, scrolling, autoscroll, right-to-left, 8 custom characters, reading back the display memory |
| Contrast trimpot | The 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 |
| Backlight | Switched by the sketch (backlight() / noBacklight()) and by the LED jumper, which you can click to pull it |
| Power LED | Lights while VCC and GND are connected |
| Real timing | Instructions that arrive while the LCD is busy are lost, like on the real chip |
| Plain-English hints | Wrong 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
| Pin | Arduino UNO / Nano | ESP32 | Mega |
|---|---|---|---|
| GND | GND | GND | GND |
| VCC | 5V | 5V (VIN) | 5V |
| SDA | A4 | GPIO 21 | 20 |
| SCL | A5 | GPIO 22 | 21 |
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:
| Setting | What it does | Default |
|---|---|---|
| I2C Address | The address of the backpack. Use the same number in your sketch | 0x27 |
| Contrast Trimpot | Resistance 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 text | 5k |
| Backlight Jumper Fitted | The 2-pin LED jumper. Without it the backlight stays off | Yes |
| Character ROM | A00 (Japanese, nearly every module) or A02 (European) | A00 |
| Trimpot Step per Click (advanced) | How far one + / – click turns the trimpot | 500 Ω |
| On-Board I2C Pull-Ups (advanced) | The backpack’s 4.7k pull-ups on SDA and SCL | Yes |
| Log LCD Instructions (advanced) | Writes every instruction and the text into the simulation log | No |
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).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
// 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.
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
// 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.
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 see | Cause and fix |
|---|---|
| Row 1 full of blocks, row 2 empty | The LCD has power but was never set up. Call lcd.init() (or lcd.begin()) in setup(), and check the I2C address |
| Nothing at all | Wrong 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 dark | lcd.backlight() missing (init() leaves the backlight off), or the LED jumper is pulled |
| Blocks behind every character | Contrast too high: click + on the trimpot (or set it to 5k) |
| Text too faint | Contrast too low: click – on the trimpot |
| 20×4: row 3 continues row 1 | That 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 edge | It 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.
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.
- Close Proteus.
- Copy the files into the Proteus data folder, normally
C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\DATAETLCDI2C.DLLgoes intoDATA\MODELSElectronicsTree[LCDI2C].LIBgoes intoDATA\LIBRARY
Program Files: click Continue. - Start Proteus, open Pick Devices (press P) and search for
I2C LCD. The parts are in the category Sensor and Modules.
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:
- DS3231 library for Proteus: time, date and temperature
- DS18B20 library for Proteus: a 1-Wire thermometer
- DHT11 library for Proteus: temperature and humidity
- BME280 library for Proteus: pressure, temperature and humidity
- Keypad library for Proteus: a keypad and LCD door lock
- Oscilloscope library for Proteus: watch the SDA and SCL bits on the logic channels
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!