LCD 16x2 Display (Parallel)

> [!NOTE] > OMS's simulated component models all 16 pins for visual accuracy, but every real driver (the Arduino LiquidCrystal library, and the MicroPython bit-bang port below) only ever…

Displays9 blocksMicroPythonC++
LCD 16x2 Display (Parallel)

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 (Parallel), drawn as in the circuit editor. Select a label to see that pin in the table below.

Pins

Pins of this part
PinLabelType
VSSVSSGround
VDDVDDPower in
V0V0Analog in
RSRSSignal in
RWRWSignal in
EESignal in
D0D0Signal in
D1D1Signal in
D2D2Signal in
D3D3Signal in
D4D4Signal in
D5D5Signal in
D6D6Signal in
D7D7Signal in
AAPower in
KKGround

1. Overview

The 16×2 character LCD is the classic HD44780-controller alphanumeric display — two rows of sixteen 5×8-pixel character cells. This is the direct parallel-wired version: the controller's data/control pins connect straight to the microcontroller's GPIO, with no I2C backpack in between. It needs six GPIO pins (in 4-bit mode) instead of the two used by the I2C variant in 10.3, but has no extra chip on the bus and no I2C address to configure.


2. Pinout

Verified against simulator/components/lcd 16x2 (parallel).ts (16-pin header):

PinNameFunction
1VSSGround
2VDD+5V logic supply
3V0Contrast bias (normally set by a potentiometer on real hardware)
4RSRegister Select — LOW selects command register, HIGH selects data register
5RWRead/Write — tied to GND for write-only use (the overwhelming majority of projects)
6EEnable — latches data on a falling edge
7–10D0–D3Low data nibble — unused in 4-bit mode (see note below)
11–14D4–D7High data nibble — the 4 bits actually used in 4-bit mode
15ABacklight LED anode (+)
16KBacklight LED cathode (–)

[!NOTE] OMS's simulated component models all 16 pins for visual accuracy, but every real driver (the Arduino LiquidCrystal library, and the MicroPython bit-bang port below) only ever operates the LCD in 4-bit mode — it wires and drives D4–D7 only. D0–D3 are never read or written by any generated code; leaving them unconnected on the canvas matches how every real 4-bit-mode HD44780 project is wired.


3. Key Specifications

SpecValue
ControllerHD44780 (or a pin-compatible clone)
Character grid16 columns × 2 rows, 5×8 pixels per cell
Interface4-bit or 8-bit parallel (OMS uses 4-bit)
Logic voltage5V (VDD)
BacklightSeparate LED, driven through its own current-limiting resistor (A/K pins)
ContrastSet by DC bias on V0, typically from a 10kΩ trim potentiometer

4. Libraries Used

  • C++ (Arduino): LiquidCrystal — part of the standard Arduino core, no separate install needed.
  • MicroPython: a lightweight bit-banged liquid_crystal module (bundled by OMS's code generator) exposing a LiquidCrystal class with the same begin()/print()/setCursor()/clear() shape as the C++ library, driving RS/EN/D4–D7 directly via machine.Pin.

5. Component Properties

From the real props: [...]:

  • line1 (text) — Row 1 content shown on the simulated glass. Default: "OpenMakerStudio".
  • line2 (text) — Row 2 content. Default: "16x2 LCD Ready!".
  • theme (select) — Backlight color: Blue Backlight (White text) (default) or Green-Yellow (Dark text).

Powered state comes from VDD: above 3.0V the backlight and text render; below 4.5V while powered, a LOW VDD fault is raised (real modules expect a clean 5V rail).


6. Simulator Behavior

The on-canvas glass renders line1/line2 as a live 16×2 character grid once powered, with a glowing backlight matching the selected theme. During simulation, an editable text bar appears below the part with two 16-character-limited fields wired directly to line1/line2 — typing there updates the display instantly.

[!IMPORTANT] The displayed text is not driven by your compiled program. OMS's simulator has no HD44780 parallel-bus protocol decoder — it doesn't watch RS/RW/E/D4-D7 for real setCursor()/print() traffic the way it watches, for example, the OLED's I2C bus (see 10.6). What appears on the simulated glass is always just whatever is currently set in the line1/line2 props (via the Property Inspector or the live text bar), regardless of what your actual sketch prints. The Blockly-generated code itself is genuine, correct LiquidCrystal/bit-bang code that works exactly as documented on real hardware — it just has nothing to talk to in the Circuit Canvas today. This is the same category of gap as the Ultrasonic (HC-SR04) and TCS3200 sensors in Chapter 5: a useful interactive representation, not an electrical simulation of real bus traffic.


7. Supported Blockly Blocks (9 Blocks)

Drawing the blocks…

LCD 16x2 Display (Parallel) — OMS Parts