Four-line I²C LCD with Arduino

FunduinoPublished on

20 Zeichen in vier Zeilen über nur vier Leitungen

Das vierzeilige LCD zeigt deutlich mehr Text als das klassische zweizeilige Display. Dank des angelöteten I²C-Moduls brauchst du trotzdem nur vier Leitungen.

In dieser Anleitung installierst du die passende Bibliothek und schließt das Display am UNO oder am MEGA an.

The four-line I²C LCD with 20 characters per line

You need this

LCD Module 20x4 - I2C, Blue Backlight, 3.3-5 V LCD Module 20x4 - I2C, Blue Backlight, 3.3-5 V 6,21 € *Item no. F23107181About the product — LCD Module 20x4 - I2C, Blue Backlight, 3.3-5 V
Funduino UNO R3 Microcontroller - ATmega328P, 16 MHz, for Arduino Funduino UNO R3 Microcontroller - ATmega328P, 16 MHz, for Arduino 11,12 € *Item no. F23107480About the product — Funduino UNO R3 Microcontroller - ATmega328P, 16 MHz, for Arduino
Breadboard cables male-female - 40 pieces, 20 cm Breadboard cables male-female - 40 pieces, 20 cm 1,74 € *Item no. FUN-1010554About the product — Breadboard cables male-female - 40 pieces, 20 cm

All 3 parts together 19,07 € *Ready to ship immediately · Delivery time: 1-3 business days

* All prices include statutory VAT, plus shipping costs.

The four-line I²C LCD

The LCD module displays 20 characters across four lines. An I²C module is soldered to the back, so you only need four wires - especially useful for larger projects where pins are in short supply.

The four-line I²C LCD with 20 characters per line

Install the library

For the I²C LCD, you need a library that isn’t preinstalled in the Arduino IDE. We use “LiquidCrystal I2C.” Install it through the Library Manager by entering its name directly in the search field.

The instructions show you exactly how to do this Hardware and software.

The wiring

The I²C module has only four contacts:

  • GND to the microcontroller’s GND
  • VCC to 5V
  • SDA to A4
  • SCL to A5

On the Arduino MEGA2560, SDA and SCL have dedicated pins: 20 and 21.

There’s a blue potentiometer on the back that you can use to adjust the contrast - no extra dial is needed. The contrast is often turned all the way down by default. If you can’t see anything, turn it up first.

The sketch for this task is still missing.

The four-line I²C LCD on the Funduino UNO R3
The I²C LCD on the Arduino MEGA2560 with SDA connected to pin 20 and SCL to pin 21
1 / 2
Rate the instructions

Comments

2 posts
Funduino TeamTeam

Hallo Heinz, willkommen in der Mikrocontroller-Welt! Direkt geht das leider nicht. Der 89C51CC03 gehört zur 8051-Familie, und die unterstützt die Arduino IDE von Haus aus nicht. Für 8051-Controller nutzt man eigene Werkzeuge, zum Beispiel den freien Compiler SDCC oder Keil C51. Für den Einstieg ist ein Arduino-kompatibles Board wie der UNO deutlich einfacher, darauf bauen auch alle unsere Anleitungen auf.

Funduino Team

Heinz Hartig

Hallo,
zuerst, ich bin ein Neuling!!
Meine Frage,
kann man mit der Arduino IDE auch einen Maschinencode für einen 89C51CC03 erzeugen?
Tausend Dank für eine entsprechende Hilfe!!!
Grüße Heinz

Ask a question or share an experience

Contact us if something doesn’t work. Please include your board and the error message.

We review every comment before publication. Your email address remains with us.