Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use OLED 3``: Examples, Pinouts, and Specs

Image of OLED 3``
Cirkit Designer LogoDesign with OLED 3`` in Cirkit Designer

Introduction

The OLED 3" is a 3-inch Organic Light Emitting Diode display that delivers high-quality color output with excellent contrast and brightness. This display technology is known for its self-emissive pixels, which eliminate the need for a backlight, resulting in thinner, more energy-efficient displays. The OLED 3" is widely used in applications such as smartphones, wearables, embedded systems, and other devices requiring vibrant and sharp visual output.

Common applications include:

  • Portable devices like smartwatches and fitness trackers
  • Embedded systems for graphical user interfaces (GUIs)
  • Consumer electronics such as smartphones and media players
  • Industrial control panels and instrumentation displays

Explore Projects Built with OLED 3``

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
IoT Board with 0.96" OLED Display for Real-Time Data Visualization
Image of dgd: A project utilizing OLED 3`` in a practical application
This circuit connects a 0.96" OLED display to an IoT board. The OLED display is powered by the 3.3V and GND pins of the IoT board, and communicates with the board via I2C using the SDA and SCL pins.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32 Devkit V1 and OLED Display Bitmap Viewer
Image of Esp32_monochromeimage: A project utilizing OLED 3`` in a practical application
This circuit consists of an ESP32 Devkit V1 microcontroller connected to a 1.3" OLED display via I2C communication. The ESP32 initializes the OLED display and renders a predefined bitmap image on it.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino 101 OLED Display Animation Project
Image of wokwi animater test: A project utilizing OLED 3`` in a practical application
This circuit consists of an Arduino 101 microcontroller connected to a 0.96" OLED display via I2C communication. The Arduino runs a program that initializes the OLED and continuously displays an animated sequence of frames on the screen.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO OLED Display Interface for Real-Time Data Visualization
Image of a2: A project utilizing OLED 3`` in a practical application
This circuit consists of an Arduino UNO microcontroller connected to a 1.3" OLED display. The Arduino provides power and communicates with the OLED display via I2C protocol, utilizing the SCL and SDA pins for data transmission.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with OLED 3``

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of dgd: A project utilizing OLED 3`` in a practical application
IoT Board with 0.96" OLED Display for Real-Time Data Visualization
This circuit connects a 0.96" OLED display to an IoT board. The OLED display is powered by the 3.3V and GND pins of the IoT board, and communicates with the board via I2C using the SDA and SCL pins.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Esp32_monochromeimage: A project utilizing OLED 3`` in a practical application
ESP32 Devkit V1 and OLED Display Bitmap Viewer
This circuit consists of an ESP32 Devkit V1 microcontroller connected to a 1.3" OLED display via I2C communication. The ESP32 initializes the OLED display and renders a predefined bitmap image on it.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of wokwi animater test: A project utilizing OLED 3`` in a practical application
Arduino 101 OLED Display Animation Project
This circuit consists of an Arduino 101 microcontroller connected to a 0.96" OLED display via I2C communication. The Arduino runs a program that initializes the OLED and continuously displays an animated sequence of frames on the screen.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of a2: A project utilizing OLED 3`` in a practical application
Arduino UNO OLED Display Interface for Real-Time Data Visualization
This circuit consists of an Arduino UNO microcontroller connected to a 1.3" OLED display. The Arduino provides power and communicates with the OLED display via I2C protocol, utilizing the SCL and SDA pins for data transmission.
Cirkit Designer LogoOpen Project in Cirkit Designer

Technical Specifications

The OLED 3" display is designed to provide high performance and flexibility for various applications. Below are its key technical details:

General Specifications

Parameter Value
Display Type OLED (Organic Light Emitting Diode)
Screen Size 3 inches
Resolution 128 x 64 pixels
Color Depth 16-bit (65,536 colors)
Interface SPI/I2C
Operating Voltage 3.3V - 5V
Power Consumption ~0.06W (typical)
Viewing Angle >160°
Operating Temperature -40°C to +85°C

Pin Configuration

The OLED 3" display typically comes with a 7-pin interface. Below is the pinout description:

Pin Number Pin Name Description
1 GND Ground (0V reference)
2 VCC Power supply (3.3V or 5V)
3 SCL Serial Clock Line (SPI/I2C clock input)
4 SDA Serial Data Line (SPI/I2C data input/output)
5 RES Reset pin (active low)
6 DC Data/Command control pin
7 CS Chip Select (active low)

Usage Instructions

To use the OLED 3" display in a circuit, follow these steps:

  1. Power Supply: Connect the VCC pin to a 3.3V or 5V power source and the GND pin to ground.
  2. Communication Interface: Choose between SPI or I2C communication. For SPI, connect SCL, SDA, DC, RES, and CS to the appropriate microcontroller pins. For I2C, connect only SCL and SDA.
  3. Initialization: Use a compatible library (e.g., Adafruit SSD1306 or U8g2) to initialize the display. Ensure the library settings match the communication protocol and resolution.
  4. Display Content: Use library functions to draw text, shapes, or images on the screen.

Example: Connecting OLED 3" to Arduino UNO (SPI Mode)

Below is an example of how to connect and program the OLED 3" display with an Arduino UNO using the Adafruit SSD1306 library.

Wiring Diagram

OLED Pin Arduino Pin
GND GND
VCC 5V
SCL D13
SDA D11
RES D9
DC D8
CS D10

Arduino Code

#include <Adafruit_GFX.h>      // Core graphics library
#include <Adafruit_SSD1306.h> // OLED driver library

#define SCREEN_WIDTH 128       // OLED display width, in pixels
#define SCREEN_HEIGHT 64       // OLED display height, in pixels

// Declaration for an SSD1306 display connected via SPI
#define OLED_MOSI   11         // Data pin (SDA)
#define OLED_CLK    13         // Clock pin (SCL)
#define OLED_DC     8          // Data/Command pin
#define OLED_CS     10         // Chip Select pin
#define OLED_RESET  9          // Reset pin
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, 
                         OLED_MOSI, OLED_CLK, OLED_DC, 
                         OLED_RESET, OLED_CS);

void setup() {
  // Initialize the display
  if (!display.begin(SSD1306_I2C_ADDRESS, OLED_RESET)) {
    Serial.println(F("SSD1306 allocation failed"));
    for (;;); // Don't proceed, loop forever
  }

  display.clearDisplay(); // Clear the buffer
  display.setTextSize(1); // Set text size to 1
  display.setTextColor(SSD1306_WHITE); // Set text color to white
  display.setCursor(0, 0); // Set cursor to top-left corner
  display.println(F("Hello, OLED 3\"!")); // Print text
  display.display(); // Display the text
}

void loop() {
  // Add any additional functionality here
}

Important Considerations

  • Voltage Levels: Ensure the power supply voltage matches the display's requirements (3.3V or 5V).
  • Library Compatibility: Use a library compatible with the OLED controller (e.g., SSD1306 or SH1106).
  • ESD Precautions: Handle the display carefully to avoid electrostatic discharge damage.

Troubleshooting and FAQs

Common Issues

  1. Display Not Turning On:

    • Verify the power supply connections (VCC and GND).
    • Check if the reset pin (RES) is properly connected.
  2. No Output on the Screen:

    • Ensure the correct communication protocol (SPI/I2C) is selected in the code.
    • Double-check the wiring and pin assignments in the code.
  3. Flickering or Distorted Display:

    • Verify the power supply is stable and within the specified voltage range.
    • Check for loose or faulty connections.
  4. Library Initialization Fails:

    • Confirm the correct library is installed and configured for the OLED controller.
    • Ensure the resolution (128x64) matches the display's specifications.

FAQs

Q: Can I use the OLED 3" with a 3.3V microcontroller?
A: Yes, the OLED 3" is compatible with both 3.3V and 5V systems.

Q: How do I switch between SPI and I2C modes?
A: Refer to the display's datasheet for instructions on configuring the communication mode. Typically, this involves setting specific pins or jumpers.

Q: Is the OLED 3" sunlight-readable?
A: While the OLED 3" offers excellent brightness and contrast, it may not be fully readable in direct sunlight.

Q: Can I display images on the OLED 3"?
A: Yes, you can display images by converting them into a compatible bitmap format and using library functions to render them.

By following this documentation, you can effectively integrate and use the OLED 3" display in your projects.