Displays

OLED Displays

OLED, or Organic Light-Emitting Diode, displays are electronic displays whose pixels generate their own light. Unlike conventional LCDs, OLED displays do not require a separate backlight. They are widely used in mobile devices, instruments, embedded systems, smart displays and consumer electronics.

What Is an OLED?

OLED stands for Organic Light-Emitting Diode.

An OLED display uses organic light-emitting materials that produce light when electrical current passes through them.

Because the individual pixels can emit their own light, an OLED display does not require the conventional backlight used by an LCD.

How an OLED Works

An OLED pixel contains organic semiconductor layers positioned between electrodes.

When an appropriate voltage is applied, charge carriers move through the organic layers and light is produced.

Electrical current
        │
        ▼
┌─────────────────┐
│ Organic layers  │
│                 │
│ Light emission  │
└─────────────────┘
        │
        ▼
      Light

The amount of emitted light can be controlled by controlling the current through the OLED element.

OLED vs LCD

Feature OLED LCD
Light source Pixels emit their own light Normally requires a backlight
Backlight Not required Required
Black level Very deep black can be achieved Depends on LCD technology
Viewing angle Generally wide Depends on panel technology
Thickness Can be very thin Requires additional backlight structure
Power consumption Depends strongly on displayed content Backlight consumes power continuously

OLED Pixels

Each OLED pixel produces its own light.

A color OLED display normally uses red, green and blue components to produce different colors.

Pixel
 ┌───────────────┐
 │ Red   Green   │
 │               │
 │ Green Blue    │
 └───────────────┘

The exact pixel arrangement depends on the display technology.

Monochrome OLED

A monochrome OLED displays information using one primary emission color.

Common colors include:

  • White
  • Blue
  • Yellow
  • Green

Monochrome OLED modules are particularly popular in small embedded projects.

Color OLED

Color OLED displays can reproduce many colors by controlling the individual color components of each pixel.

They are used for:

  • Portable devices
  • Embedded displays
  • Instrumentation
  • Smart devices
  • Consumer electronics

PMOLED

PMOLED stands for Passive-Matrix OLED.

In a passive-matrix OLED display, pixels are addressed through rows and columns.

PMOLED technology is commonly found in smaller displays where the resolution and size requirements are relatively modest.

AMOLED

AMOLED stands for Active-Matrix OLED.

AMOLED displays use active switching elements to control individual pixels.

AMOLED technology is widely used in high-resolution displays such as smartphones and other portable electronics.

PMOLED vs AMOLED

Feature PMOLED AMOLED
Pixel control Passive matrix Active matrix
Typical size Small displays Small to large displays
Complexity Lower Higher
Typical applications Embedded displays Phones, tablets and high-resolution displays

OLED Resolution

Resolution describes the number of pixels in the display.

For example:

128 × 64

means that the display has 128 pixels horizontally and 64 pixels vertically.

Higher resolution allows more detailed graphics and more information to be displayed.

Common Small OLED Displays

Small monochrome OLED modules are commonly available in resolutions such as:

  • 128 × 32
  • 128 × 64
  • 64 × 48

The exact controller and interface depend on the particular module.

OLED Controllers

An OLED controller manages communication between the host processor and the display pixels.

Common controller families found in small OLED modules include devices such as the SSD1306 and SH1106.

Controller compatibility should always be checked before using a software library designed for a particular OLED module.

SSD1306 OLED

The SSD1306 is a widely used controller for small monochrome OLED displays.

It is commonly associated with displays having resolutions such as 128 × 64 and 128 × 32.

Depending on the module, communication may be provided through I2C or SPI.

SH1106 OLED

The SH1106 is another controller commonly found in small monochrome OLED modules.

Although it is similar to the SSD1306 in many applications, it is not identical.

Software configuration and memory addressing can differ between the two controllers.

OLED Interfaces

OLED modules can use several communication interfaces.

Common interfaces include:

  • I2C
  • SPI
  • Parallel interfaces
  • Other controller-specific interfaces

I2C OLED

I2C is one of the most common interfaces used by small OLED modules.

The basic connection normally requires:

  • VCC
  • GND
  • SDA
  • SCL
Microcontroller        OLED
      │                  │
      ├── VCC ──────────┤
      ├── GND ──────────┤
      ├── SDA ──────────┤
      └── SCL ──────────┘

The module's documentation should be checked to determine its exact voltage requirements and I2C address.

SPI OLED

SPI can provide faster communication than I2C and is commonly used with displays that require higher data-transfer rates.

Typical signals include:

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

The exact pin requirements depend on the controller and module.

OLED Wiring

Before connecting an OLED module, identify:

  • Supply voltage
  • Ground
  • Interface type
  • Pinout
  • I2C address if applicable
  • Controller
  • Reset requirements

Do not assume that two OLED modules with the same physical size have the same pinout.

OLED Supply Voltage

OLED modules may operate from different supply voltages.

Some modules contain onboard voltage regulation and level conversion, while others require the correct logic and supply voltage directly.

Always check the module's specifications before connecting it to a microcontroller.

OLED Logic Voltage

The logic voltage required by an OLED controller may differ from its overall module supply requirements.

When connecting an OLED to a microcontroller, verify the logic-level compatibility of the interface.

OLED I2C Address

I2C OLED modules normally have an address that identifies the device on the bus.

The address depends on the controller and module configuration.

If the microcontroller cannot find the OLED, an I2C scanner can help determine whether the device is responding and what address it uses.

OLED Initialization

An OLED controller normally requires an initialization sequence before the display can be used.

Initialization may configure:

  • Display resolution
  • Multiplex settings
  • Contrast
  • Charge-pump configuration
  • Display orientation
  • Addressing mode
  • Display enable state

The exact commands depend on the controller.

OLED Frame Buffer

Many graphic OLED applications use a frame buffer in the microcontroller's RAM.

The program modifies the frame buffer and then transfers it to the OLED.

Microcontroller RAM
       │
       │ Frame buffer
       ▼
OLED Controller
       │
       ▼
OLED Pixels

The amount of RAM required depends on the display resolution and the number of bits used per pixel.

OLED Graphics

A graphic OLED can display:

  • Text
  • Lines
  • Rectangles
  • Circles
  • Icons
  • Graphs
  • Menus
  • Images

This makes OLED modules useful for embedded user interfaces.

OLED Text Display

Text can be rendered using a character font stored in the microcontroller's program memory or another memory device.

Different font sizes can be used on graphic OLEDs.

This allows considerably more flexibility than a fixed character LCD.

OLED Brightness

OLED brightness is controlled by the electrical drive of the emitting pixels.

Unlike an LCD, there is no separate backlight whose brightness must be controlled.

The exact brightness-control mechanism depends on the OLED controller.

OLED Power Consumption

OLED power consumption depends strongly on the content being displayed.

Pixels that emit more light generally consume more current.

Therefore a mostly black display can consume significantly less power than a display containing many bright pixels, depending on the OLED technology.

OLED Contrast

OLED displays can produce very dark black areas because individual pixels can be turned off.

This provides strong contrast between illuminated and unilluminated pixels.

OLED Viewing Angle

OLED displays generally provide a wide viewing angle because the pixels generate their own light.

The exact viewing characteristics depend on the panel technology and construction.

OLED Response Time

OLED pixels can change their optical state quickly.

This makes OLED technology suitable for displays containing moving information and animation.

OLED Burn-In

OLED materials can experience uneven aging when the same pixels are repeatedly operated at high brightness.

This can result in image retention or permanent uneven wear commonly referred to as burn-in.

Applications with static elements should therefore consider brightness, operating time and display-management techniques.

OLED Lifetime

OLED lifetime depends on factors such as:

  • Pixel brightness
  • Operating temperature
  • Operating time
  • Display content
  • OLED material technology

Different OLED colors and technologies can have different aging characteristics.

OLED Applications

  • Digital instruments
  • Audio equipment
  • Internet radios
  • Embedded systems
  • Portable electronics
  • Smart watches
  • Control panels
  • Measurement equipment
  • Automotive displays
  • Consumer electronics
  • Industrial equipment

OLED and Microcontrollers

OLED displays are particularly useful with microcontrollers because many small modules require only a few interface connections.

Microcontroller
      │
      ├── I2C / SPI
      │
      ▼
 OLED Controller
      │
      ▼
 OLED Display

A microcontroller can update the display with measurements, status information, menus and other graphical information.

OLED with ESP32

OLED modules are commonly used with microcontrollers such as the ESP32.

The ESP32 can communicate with an OLED using I2C or SPI, depending on the display module.

Possible applications include:

  • Internet radio displays
  • Sensor monitors
  • Network devices
  • Audio equipment
  • Control panels
  • IoT devices

OLED Testing

If an OLED does not display anything, begin with the power supply and communication interface.

  1. Check VCC.
  2. Check GND.
  3. Check the interface wiring.
  4. Check the I2C address where applicable.
  5. Check the controller type.
  6. Check initialization.
  7. Check reset requirements.
  8. Check communication signals.
  9. Check the firmware.

OLED Not Detected on I2C

If an I2C OLED is not detected, check:

  • VCC
  • GND
  • SDA
  • SCL
  • Pull-up resistors
  • I2C address
  • Logic voltage
  • Microcontroller pin configuration

An I2C scanner can be useful for determining whether the controller is responding on the bus.

OLED Has Power but Remains Blank

Possible causes include:

  • Incorrect controller configuration
  • Incorrect initialization sequence
  • Wrong I2C address
  • Incorrect display resolution setting
  • Incorrect wiring
  • Reset problem
  • Incorrect software library configuration

OLED Shows Random Graphics

Random graphics can indicate communication or initialization problems.

Check:

  • Communication speed
  • Wiring
  • Controller selection
  • Display addressing
  • Power stability
  • Frame-buffer handling

OLED Flickering

OLED flickering may result from:

  • Unstable power
  • Incorrect initialization
  • Communication errors
  • Incorrect refresh handling
  • Electrical interference
  • Hardware damage

OLED Communication Testing

An oscilloscope or logic analyzer can be used to inspect communication signals.

For I2C, check:

  • SDA
  • SCL

For SPI, check:

  • Clock
  • MOSI
  • MISO where applicable
  • Chip select

The observed signals can be compared with the controller's datasheet.

OLED Replacement

An OLED module should not be replaced based only on physical dimensions.

Check:

  • Resolution
  • Controller
  • Interface
  • Pinout
  • Supply voltage
  • Logic voltage
  • I2C address
  • Active display area
  • Mounting dimensions

OLED Controller Compatibility

Two OLED displays can have the same resolution and physical size but use different controllers.

The software library and initialization commands may therefore need to be changed.

Always identify the controller before selecting a replacement.

OLED Selection

  1. Determine the required resolution.
  2. Determine monochrome or color operation.
  3. Determine the display size.
  4. Determine the interface.
  5. Determine the controller.
  6. Check supply voltage.
  7. Check logic voltage.
  8. Check power consumption.
  9. Check viewing angle.
  10. Check operating temperature.
  11. Check mechanical dimensions.
  12. Check software-library support.

OLED vs Character LCD

Feature OLED Character LCD
Backlight Not required Usually required for illumination
Graphics Usually flexible on graphic modules Limited on standard character modules
Black level Very good Depends on LCD construction
Contrast High Good but technology-dependent
Interface I2C, SPI and others Often parallel or I2C adapter
Typical use Compact graphical interfaces Simple text interfaces

Advantages of OLED Displays

  • No conventional backlight required
  • High contrast
  • Excellent black levels
  • Wide viewing angles
  • Fast pixel response
  • Very thin display construction
  • Small modules are widely available
  • Excellent for compact embedded interfaces

Limitations of OLED Displays

  • OLED materials age with use
  • Static images can cause uneven aging
  • Burn-in can occur under certain conditions
  • Different controllers require different software
  • Supply and logic voltage must be checked carefully
  • Brightness and lifetime depend on operating conditions

Common OLED Design Mistakes

  • Using the wrong supply voltage
  • Using the wrong I2C address
  • Confusing SSD1306 and SH1106 configuration
  • Using the wrong display resolution
  • Incorrect SDA/SCL wiring
  • Incorrect SPI wiring
  • Ignoring reset requirements
  • Using an incompatible software library
  • Insufficient power supply decoupling
  • Running static graphics at unnecessarily high brightness

Key Points

  • OLED stands for Organic Light-Emitting Diode.
  • OLED pixels generate their own light.
  • OLED displays do not require a conventional backlight.
  • PMOLED uses passive-matrix addressing.
  • AMOLED uses active-matrix pixel control.
  • Small OLED modules commonly use I2C or SPI.
  • SSD1306 and SH1106 are common controllers for small monochrome OLED modules.
  • OLED power consumption depends strongly on displayed content.
  • OLED displays can provide excellent contrast and black levels.
  • OLED pixels can experience uneven aging under prolonged use.
  • Burn-in is an important consideration for displays with static content.
  • Always verify controller, resolution, voltage and interface before replacement.

Continue Learning About OLED Displays

The next pages can cover OLED types, OLED controllers, SSD1306, SH1106, I2C OLEDs, SPI OLEDs, wiring, programming, testing, troubleshooting, replacement and selection.