Displays

LCD Displays

Liquid Crystal Displays, commonly called LCDs, are electronic display devices used to present text, numbers, symbols, graphics and images. LCD technology is widely used in instruments, calculators, control panels, industrial equipment, televisions, computers, measuring equipment and embedded systems.

What Is an LCD?

LCD stands for Liquid Crystal Display.

An LCD uses liquid-crystal material whose optical properties change when an electric field is applied. The liquid crystal works together with polarizers, electrodes and other optical layers to control the amount of light reaching the viewer.

LCDs normally require a light source or ambient light because the liquid crystal itself does not produce visible light.

How an LCD Works

A simplified LCD structure consists of several layers.

Backlight
   │
   ▼
Diffuser
   │
   ▼
Polarizer
   │
   ▼
Liquid Crystal Layer
   │
   ▼
Color / Electrode Layers
   │
   ▼
Polarizer
   │
   ▼
Viewer

The electric field applied to the liquid-crystal layer changes the orientation of the crystals. This changes the polarization of light and therefore controls how much light passes through the display.

Main Types of LCDs

LCD displays are available in many different forms.

  • Segment LCD
  • Character LCD
  • Graphic LCD
  • TFT LCD
  • Monochrome LCD
  • Color LCD
  • Passive-matrix LCD
  • Active-matrix LCD

Segment LCD

A segment LCD contains predefined segments that can be switched on and off to display numbers, letters or symbols.

A familiar example is the display used in digital clocks and measuring instruments.

Segment displays are particularly useful when only a fixed set of symbols is required.

Character LCD

Character LCDs are designed to display characters arranged in rows and columns.

One of the most common formats is:

  • 16 × 2 characters
  • 20 × 2 characters
  • 20 × 4 characters

A 16 × 2 display, for example, can display 16 characters on each of two rows.

16 × 2 LCD

The 16 × 2 LCD is one of the most common character LCD modules used in electronics projects.

It normally provides:

  • 16 characters per row
  • 2 rows
  • Character generator
  • Display controller
  • LED backlight

Many modules use a controller compatible with the HD44780 interface or a compatible controller.

20 × 4 LCD

A 20 × 4 character LCD provides four rows with twenty characters per row.

It is useful when more information must be displayed than can fit on a 16 × 2 module.

Typical applications include:

  • Measurement equipment
  • Control panels
  • Power supplies
  • Industrial equipment
  • Embedded projects

Graphic LCD

A graphic LCD can display individual pixels rather than only predefined characters.

This allows the display of:

  • Text
  • Lines
  • Shapes
  • Icons
  • Simple graphics

The resolution depends on the particular display.

TFT LCD

TFT stands for Thin-Film Transistor.

TFT LCDs use transistor-controlled pixels and are commonly used for high-resolution color displays.

They are found in:

  • Smartphones
  • Automotive displays
  • Industrial HMIs
  • Digital instruments
  • Portable equipment
  • Embedded systems

Monochrome LCD

A monochrome LCD displays information using one primary display color rather than full-color pixels.

Monochrome displays are often chosen for simple instruments and low-power applications.

Color LCD

Color LCDs use individual color components to reproduce a wide range of colors.

A typical color pixel is divided into:

  • Red
  • Green
  • Blue

The intensity of these components determines the resulting color.

Passive-Matrix LCD

Passive-matrix LCDs select pixels using a matrix of rows and columns.

They are relatively simple but generally have slower response and lower performance than modern active-matrix displays.

Active-Matrix LCD

Active-matrix displays use a transistor associated with each pixel or pixel element.

TFT LCDs are a common form of active-matrix display.

Active-matrix technology provides better control of individual pixels and is suitable for high-resolution displays.

LCD Resolution

Resolution describes the number of pixels in a display.

For example:

800 × 480

means the display contains 800 pixels horizontally and 480 pixels vertically.

Higher resolution generally allows more detailed graphics.

LCD Pixel

A pixel is an individual picture element.

In a monochrome display, a pixel may have only a limited number of visible states.

In a color display, each pixel is generally formed from multiple color components.

LCD Controller

The LCD controller manages communication between the host processor and the display hardware.

Depending on the display, the controller may handle:

  • Pixel addressing
  • Character generation
  • Display refresh
  • Timing
  • Memory
  • Command processing

HD44780-Compatible LCDs

The HD44780 interface is associated with a large number of character LCD modules.

These modules commonly provide an interface containing:

  • Data lines
  • Register-select control
  • Read/write control
  • Enable control

Many modern modules use compatible controllers with similar command interfaces.

LCD Parallel Interface

A traditional character LCD can communicate using a parallel interface.

Commonly used data configurations include:

  • 8-bit mode
  • 4-bit mode

Four-bit mode reduces the number of microcontroller GPIO pins required.

LCD 4-Bit Mode

In 4-bit mode, the LCD transfers data using four data lines instead of eight.

A typical connection uses:

  • RS
  • E
  • D4
  • D5
  • D6
  • D7

This leaves the unused upper data lines disconnected according to the controller's recommended configuration.

LCD I2C Interface

Many character LCD modules use an I2C interface adapter to reduce the number of connections required between the microcontroller and display.

The connection normally requires:

  • VCC
  • GND
  • SDA
  • SCL

An I2C interface adapter typically contains an I/O expander that converts the serial I2C commands into the parallel control signals required by the LCD controller.

LCD SPI Interface

Many graphic and TFT displays use SPI for communication.

Typical SPI connections include:

  • Clock
  • MOSI
  • MISO where required
  • Chip select
  • Data/command control
  • Reset

The exact signals depend on the display controller.

LCD Wiring

The correct wiring depends on the display type and controller.

Before connecting an LCD, identify:

  • Supply voltage
  • Ground
  • Data interface
  • Control signals
  • Backlight connections
  • Contrast connection
  • Reset connection where applicable

Never assume that two LCD modules with similar physical dimensions have the same pinout.

LCD Contrast

Character LCDs commonly provide a contrast input.

The contrast voltage controls the visibility of the characters.

A potentiometer can often be used to adjust the contrast.

VCC
 │
 ┌───────┐
 │ 10 kΩ │
 │ POT   │
 └───────┘
 │
 ▼
Contrast
 │
GND

The exact recommended circuit depends on the LCD module.

LCD Backlight

Many LCD modules include an LED backlight.

The backlight may have separate positive and negative terminals.

Some modules include a current-limiting resistor while others may require external current limiting.

Always check the module specifications before powering the backlight.

LCD Backlight Control

A microcontroller can control an LCD backlight through a suitable transistor or MOSFET driver.

Microcontroller
      │
      ▼
Transistor / MOSFET
      │
      ▼
LCD Backlight

PWM can be used to adjust brightness when the hardware supports it.

LCD Initialization

A character LCD controller normally requires an initialization sequence before normal display commands can be sent.

The initialization process establishes parameters such as:

  • Interface width
  • Number of display lines
  • Character font
  • Display enable
  • Cursor configuration

The exact initialization sequence depends on the controller.

LCD Commands

Character LCD controllers generally provide commands for functions such as:

  • Clear display
  • Return home
  • Set cursor position
  • Display on/off
  • Cursor control
  • Character entry
  • Display shifting

LCD Cursor

The cursor identifies the position where the next character will be written.

Depending on the controller, the cursor may be:

  • Visible
  • Invisible
  • Blinking

LCD Custom Characters

Many character LCD controllers allow user-defined characters to be stored in character-generator RAM.

This can be used to create:

  • Custom symbols
  • Arrows
  • Icons
  • Bar graphs
  • Simple graphical indicators

LCD Character Generator

The character generator contains the patterns used to display characters.

A character may be represented internally as a matrix of pixels.

For example, a small character can be represented using a pattern such as:

01110
10001
10000
11110
10001
10001
11110

The exact character dimensions depend on the display controller.

LCD Response Time

LCD pixels do not change state instantaneously.

Response time depends on the LCD technology and operating conditions.

Slow response can produce visible motion blur or ghosting in moving images.

LCD Viewing Angle

Viewing angle describes how well the display remains readable when viewed from different directions.

The viewing characteristics depend on the LCD technology and panel design.

LCD Brightness

Brightness depends on factors such as:

  • Backlight type
  • Backlight current
  • Optical layers
  • Panel efficiency
  • Contrast setting
  • Ambient lighting

LCD Power Consumption

LCD power consumption consists mainly of the display electronics and, where present, the backlight.

The backlight can consume a significant portion of the total power, especially in portable equipment.

LCD Testing

When an LCD does not work, begin by checking the power supply and wiring.

  1. Check VCC.
  2. Check GND.
  3. Check the backlight.
  4. Check contrast.
  5. Check the interface connections.
  6. Check controller initialization.
  7. Check communication signals.
  8. Check the display data.
  9. Check for damaged pins or connectors.

LCD Has No Display

Possible causes include:

  • No power
  • Incorrect supply voltage
  • Incorrect contrast voltage
  • Incorrect initialization
  • Wrong interface wiring
  • Faulty controller
  • Damaged LCD panel

LCD Backlight Works but No Characters

If the backlight operates but no characters appear, check:

  • LCD supply voltage
  • Contrast adjustment
  • RS connection
  • Enable connection
  • Data lines
  • Initialization sequence
  • Microcontroller firmware

LCD Shows Dark Blocks

Dark blocks on a character LCD can indicate that the LCD has power but has not been correctly initialized.

Incorrect contrast adjustment can produce a similar appearance.

Check the initialization sequence and contrast voltage before replacing the LCD.

LCD Shows Random Characters

Random characters may result from:

  • Incorrect data wiring
  • Incorrect timing
  • Noise
  • Incorrect initialization
  • Incorrect supply voltage
  • Communication errors
  • Firmware problems

LCD Flickering

Flickering may be caused by:

  • Unstable power supply
  • Poor connections
  • Incorrect refresh handling
  • Communication errors
  • Electrical interference
  • Backlight problems

LCD Communication Testing

An oscilloscope or logic analyzer can be used to observe the signals between the microcontroller and LCD.

For an I2C display, inspect:

  • SDA
  • SCL

For SPI, inspect:

  • Clock
  • MOSI
  • MISO where applicable
  • Chip select

LCD Replacement

When replacing an LCD, physical dimensions alone are not sufficient.

Check:

  • Display size
  • Resolution
  • Interface
  • Controller
  • Pinout
  • Supply voltage
  • Backlight voltage
  • Backlight current
  • Mounting dimensions
  • Viewing angle

LCD Controller Compatibility

Two displays with the same resolution may still use different controllers.

The controller determines the communication protocol and command set.

Always verify controller compatibility before assuming that an LCD is a drop-in replacement.

LCD Selection

  1. Determine the required display size.
  2. Determine whether text or graphics are required.
  3. Determine the required resolution.
  4. Determine the required color capability.
  5. Determine the interface.
  6. Determine the supply voltage.
  7. Determine backlight requirements.
  8. Check controller compatibility.
  9. Check viewing angle.
  10. Check mounting dimensions.
  11. Check operating temperature.
  12. Check availability of documentation.

LCD Applications

  • Digital instruments
  • Multimeters
  • Oscilloscopes
  • Power supplies
  • Audio equipment
  • Radios
  • Industrial control panels
  • Medical equipment
  • Automotive dashboards
  • Printers
  • Home appliances
  • Embedded systems
  • Portable electronics
  • Computers

LCD vs LED Display

LCD and LED are sometimes confused because modern LCD panels commonly use LED backlights.

An LCD is the display technology that controls the image, while an LED backlight provides the illumination behind the panel.

LCD vs OLED

Feature LCD OLED
Pixel light source Requires backlight or ambient light Pixels emit their own light
Backlight Normally required Not required
Black level Depends on panel technology Can be very deep
Burn-in risk Generally low Possible depending on use and technology
Common applications Instruments, monitors and displays Phones, displays and portable devices

LCD Design Considerations

When designing a product around an LCD, consider:

  • Power supply
  • Interface speed
  • Controller compatibility
  • Backlight power
  • Mechanical mounting
  • Viewing angle
  • Operating temperature
  • Electrical noise
  • Firmware support
  • Long-term availability

Common LCD Design Mistakes

  • Applying the wrong supply voltage
  • Using the wrong pinout
  • Incorrect contrast connection
  • Incorrect initialization
  • Incorrect communication protocol
  • Exceeding backlight current
  • Ignoring controller compatibility
  • Poor grounding
  • Insufficient power decoupling
  • Ignoring mechanical dimensions

Advantages of LCD Displays

  • Low power compared with many older display technologies
  • Available in many sizes
  • Available in monochrome and color
  • Many interface options
  • High-resolution versions are widely available
  • Suitable for embedded applications
  • Large range of controller options

Limitations of LCD Displays

  • Requires backlight in many applications
  • Viewing angle depends on technology
  • Response time can be slower than some alternatives
  • Contrast depends on panel design and viewing conditions
  • Controller compatibility must be considered
  • Backlight can consume significant power

Key Points

  • LCD stands for Liquid Crystal Display.
  • LCDs control light using liquid-crystal material and optical layers.
  • Character LCDs are designed primarily for text.
  • Graphic LCDs can control individual pixels.
  • TFT LCDs are widely used for color graphics.
  • LCDs may use parallel, I2C, SPI or other interfaces.
  • Character LCDs commonly provide 4-bit and 8-bit interfaces.
  • Contrast is important for character LCD readability.
  • Backlight requirements must be checked carefully.
  • The LCD controller determines important communication characteristics.
  • LCD troubleshooting should begin with power, wiring and contrast.
  • Replacement LCDs must be checked for pinout, controller, voltage and dimensions.

Continue Learning About LCD Displays

The next pages can cover LCD types, character LCDs, graphic LCDs, TFT displays, LCD pinouts, controllers, wiring, I2C and SPI interfaces, backlights, testing, troubleshooting, replacement and selection.