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

How to Use 0.96" OLED Dual Colour I2C Display: Examples, Pinouts, and Specs

Image of 0.96" OLED Dual Colour I2C Display
Cirkit Designer LogoDesign with 0.96" OLED Dual Colour I2C Display in Cirkit Designer

Introduction

The 0.96" OLED Dual Colour I2C Display is a compact and versatile display module designed for embedded systems. It features a 128x64 pixel resolution and supports dual-color output, typically yellow for the top portion and blue for the bottom. This display uses OLED (Organic Light Emitting Diode) technology, which provides high contrast, wide viewing angles, and low power consumption. Communication is handled via the I2C interface, making it easy to integrate with microcontrollers such as Arduino, Raspberry Pi, and others.

Explore Projects Built with 0.96" OLED Dual Colour I2C Display

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 0.96" OLED Dual Colour I2C Display 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
Arduino 101 OLED Display Animation Project
Image of wokwi animater test: A project utilizing 0.96" OLED Dual Colour I2C Display 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
ESP32-Powered OLED Display Interface
Image of Display: A project utilizing 0.96" OLED Dual Colour I2C Display in a practical application
This circuit connects an ESP32 microcontroller to a 0.96" OLED display via I2C communication protocol. The ESP32's pins D22 and D21 are used as the serial clock (SCK) and serial data (SDA) lines, respectively, to interface with the OLED's corresponding SCK and SDA pins. The OLED is powered by the 3.3V output from the ESP32, and both devices share a common ground. The embedded code initializes the display and prints 'Hello, ESP32!' on the screen.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano and OLED Display for Real-Time Data Visualization
Image of OLED Display: A project utilizing 0.96" OLED Dual Colour I2C Display in a practical application
This circuit consists of an Arduino Nano microcontroller connected to a 0.96" OLED display. The Arduino Nano provides power to the OLED display and communicates with it using the I2C protocol via the A4 (SDA) and A5 (SCK) pins.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with 0.96" OLED Dual Colour I2C Display

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 0.96" OLED Dual Colour I2C Display 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 wokwi animater test: A project utilizing 0.96" OLED Dual Colour I2C Display 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 Display: A project utilizing 0.96" OLED Dual Colour I2C Display in a practical application
ESP32-Powered OLED Display Interface
This circuit connects an ESP32 microcontroller to a 0.96" OLED display via I2C communication protocol. The ESP32's pins D22 and D21 are used as the serial clock (SCK) and serial data (SDA) lines, respectively, to interface with the OLED's corresponding SCK and SDA pins. The OLED is powered by the 3.3V output from the ESP32, and both devices share a common ground. The embedded code initializes the display and prints 'Hello, ESP32!' on the screen.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of OLED Display: A project utilizing 0.96" OLED Dual Colour I2C Display in a practical application
Arduino Nano and OLED Display for Real-Time Data Visualization
This circuit consists of an Arduino Nano microcontroller connected to a 0.96" OLED display. The Arduino Nano provides power to the OLED display and communicates with it using the I2C protocol via the A4 (SDA) and A5 (SCK) pins.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Displaying text, graphics, or sensor data in embedded systems
  • Wearable devices and portable electronics
  • IoT (Internet of Things) projects
  • Industrial control panels
  • DIY electronics and hobbyist projects

Technical Specifications

Parameter Value
Display Type OLED
Screen Size 0.96 inches
Resolution 128x64 pixels
Color Output Dual color (Yellow and Blue)
Interface I2C
Operating Voltage 3.3V - 5V
Current Consumption ~20mA (varies with brightness)
Viewing Angle >160°
Operating Temperature -40°C to +85°C
Dimensions 27mm x 27mm x 4mm

Pin Configuration

Pin Name Description
1 GND Ground connection
2 VCC Power supply (3.3V or 5V)
3 SCL I2C Clock Line
4 SDA I2C Data Line

Usage Instructions

Connecting the Display to an Arduino UNO

To use the 0.96" OLED Dual Colour I2C Display with an Arduino UNO, follow these steps:

  1. Wiring:

    • Connect the GND pin of the display to the GND pin on the Arduino.
    • Connect the VCC pin of the display to the 5V pin on the Arduino.
    • Connect the SCL pin of the display to the A5 pin on the Arduino (I2C clock line).
    • Connect the SDA pin of the display to the A4 pin on the Arduino (I2C data line).
  2. Install Required Libraries:

    • Open the Arduino IDE.
    • Go to Sketch > Include Library > Manage Libraries.
    • Search for and install the following libraries:
      • Adafruit GFX Library
      • Adafruit SSD1306
  3. Upload Example Code: Use the following example code to display text on the OLED:

    // Include necessary libraries
    #include <Wire.h>
    #include <Adafruit_GFX.h>
    #include <Adafruit_SSD1306.h>
    
    // Define the OLED display width and height
    #define SCREEN_WIDTH 128
    #define SCREEN_HEIGHT 64
    
    // Create an SSD1306 display object
    Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);
    
    void setup() {
      // Initialize the display
      if (!display.begin(SSD1306_I2C_ADDRESS, 0x3C)) {
        // Display initialization failed
        Serial.println(F("SSD1306 allocation failed"));
        for (;;); // Halt execution
      }
    
      // Clear the display buffer
      display.clearDisplay();
    
      // Set text size and color
      display.setTextSize(1); // Small text size
      display.setTextColor(SSD1306_WHITE);
    
      // Display text
      display.setCursor(0, 0); // Set cursor to top-left corner
      display.println(F("Hello, OLED!"));
      display.println(F("Dual Color Display"));
      display.display(); // Render the text on the screen
    }
    
    void loop() {
      // Nothing to do here
    }
    

Important Considerations

  • I2C Address: The default I2C address for most 0.96" OLED displays is 0x3C. If the display does not work, check the address using an I2C scanner sketch.
  • Power Supply: Ensure the display is powered with the correct voltage (3.3V or 5V). Exceeding the voltage rating may damage the module.
  • Contrast and Brightness: Prolonged use at maximum brightness may reduce the lifespan of the OLED.

Troubleshooting and FAQs

Common Issues

  1. The display does not turn on:

    • Verify the wiring connections, especially GND and VCC.
    • Ensure the power supply voltage matches the display's requirements.
    • Check if the I2C address is correct in the code.
  2. Text or graphics are not displayed:

    • Confirm that the required libraries (Adafruit GFX and Adafruit SSD1306) are installed.
    • Ensure the I2C pins (SCL and SDA) are correctly connected to the Arduino.
  3. Flickering or unstable display:

    • Check for loose connections in the wiring.
    • Reduce the I2C clock speed in the Arduino code if necessary.

FAQs

  • Can I use this display with a 3.3V microcontroller? Yes, the display supports both 3.3V and 5V logic levels.

  • How do I change the I2C address? Some OLED modules have solder pads on the back to change the I2C address. Refer to the module's datasheet for details.

  • Can I display images or custom graphics? Yes, you can use the Adafruit GFX library to draw shapes, bitmaps, and custom graphics.

  • What is the lifespan of the OLED display? The typical lifespan is around 10,000 to 50,000 hours, depending on usage and brightness settings.

By following this documentation, you can effectively integrate and use the 0.96" OLED Dual Colour I2C Display in your projects.