LCD 16x2 Display (I2C)

Powered state comes from VCC: above 3.0V the backlight and text render; below 4.5V while powered, a LOW VCC fault is raised.

Displays10 blocksMicroPythonC++
LCD 16x2 Display (I2C)

At a glance

Pins and properties exactly as the circuit editor and simulator define this part. The text below explains how to use them.

Pinout

Pinout of the LCD 16x2 Display (I2C), drawn as in the circuit editor. Select a label to see that pin in the table below.

Properties

What you can change in the Property Inspector.

Properties of this part
PropertyRange or choicesDefault
I2C Address0x20 (PCF8574T, A2=0 A1=0 A0=0), 0x21 (PCF8574T, A2=0 A1=0 A0=1), 0x22 (PCF8574T, A2=0 A1=1 A0=0), 0x23 (PCF8574T, A2=0 A1=1 A0=1), 0x24 (PCF8574T, A2=1 A1=0 A0=0), 0x25 (PCF8574T, A2=1 A1=0 A0=1), 0x26 (PCF8574T, A2=1 A1=1 A0=0), 0x27 (PCF8574T, A2=1 A1=1 A0=1 — factory default), 0x38 (PCF8574AT, A2=0 A1=0 A0=0), 0x39 (PCF8574AT, A2=0 A1=0 A0=1), 0x3A (PCF8574AT, A2=0 A1=1 A0=0), 0x3B (PCF8574AT, A2=0 A1=1 A0=1), 0x3C (PCF8574AT, A2=1 A1=0 A0=0), 0x3D (PCF8574AT, A2=1 A1=0 A0=1), 0x3E (PCF8574AT, A2=1 A1=1 A0=0), 0x3F (PCF8574AT, A2=1 A1=1 A0=1 — factory default)0x27 (PCF8574T, A2=1 A1=1 A0=1 — factory default)

1. Overview

This is the same 16×2 HD44780 character LCD as 10.2, but mounted on a small PCF8574 I2C backpack — a tiny I/O-expander chip that turns the 6 parallel control/data lines into a 2-wire I2C bus (SDA/SCL). It trades a fixed I2C address and a slightly slower refresh for using only 2 GPIO pins instead of 6, and lets several I2C devices share the same bus.


2. Pinout

Verified against simulator/components/lcd 16x2 (i2c).ts (4-pin header on the backpack):

Pins of this part
PinLabelTypeNotes
GNDGNDGroundGround
VCCVCCPower in+5V supply (powers both the LCD and the PCF8574 backpack)
SDASDABidirectionalI2C data line
SCLSCLSignal inI2C clock line

3. Key Specifications

SpecValue
ControllerHD44780 (behind a PCF8574 I2C-to-parallel expander)
Character grid16 columns × 2 rows, 5×8 pixels per cell
InterfaceI2C, 400kHz
Default address0x27 (PCF8574T) — 0x3F (PCF8574AT) also supported
Logic voltage5V
BacklightControlled through the same I2C bus (no separate A/K pins to wire)

4. Libraries Used

  • C++ (Arduino): LiquidCrystal_I2C — the widely used community fork built specifically for PCF8574 backpacks.
  • MicroPython: a community lcd_i2c module exposing an LCD class (move_to(), putstr(), backlight_on()/off(), cursor_on()/off(), blink_on()/off()) over machine.I2C.

5. Component Properties

From the real props: [...]:

  • line1 (text) — Row 1 content. Default: "OpenMakerStudio".
  • line2 (text) — Row 2 content. Default: "I2C LCD 16x2 Ready".
  • theme (select) — Backlight color: Blue Backlight (White text) (default) or Green-Yellow (Dark text).
  • i2cAddress (select) — 0x27 (Default PCF8574T) (default) or 0x3F (PCF8574AT).

Powered state comes from VCC: above 3.0V the backlight and text render; below 4.5V while powered, a LOW VCC fault is raised.


6. Simulator Behavior

Identical rendering to the parallel variant (10.2): a live 16×2 character grid on-canvas driven by line1/line2, plus an editable text bar during simulation.

[!IMPORTANT] Same disclosed gap as 10.2: OMS has no I2C-transaction decoder for this component, so the on-canvas text is always just the current line1/line2 props — not a reflection of the real putstr()/print() calls your compiled program sends over SDA/SCL. Compare with the OLED (10.6), whose I2C traffic genuinely is decoded and rendered pixel-for-pixel.


7. Supported Blockly Blocks (10 Blocks)

Drawing the blocks…

LCD 16x2 Display (I2C) — OMS Parts