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

How to Use 0.91" I2C OLED display: Examples, Pinouts, and Specs

Image of 0.91" I2C OLED display
Cirkit Designer LogoDesign with 0.91" I2C OLED display in Cirkit Designer

Introduction

The 0.91" I2C OLED display, manufactured by HZWDONE, is a small, high-contrast display module that uses the I2C communication protocol. It is commonly used for displaying text, graphics, and other information in embedded systems and microcontroller projects. This display is particularly popular in applications where space is limited, and a clear, readable output is required.

Explore Projects Built with 0.91" I2C OLED 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.91" I2C OLED 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.91" I2C OLED 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
Arduino Nano and OLED Display for Real-Time Data Visualization
Image of OLED Display: A project utilizing 0.91" I2C OLED 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
ESP32-Powered OLED Display Interface
Image of Display: A project utilizing 0.91" I2C OLED 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

Explore Projects Built with 0.91" I2C OLED 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.91" I2C OLED 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.91" I2C OLED 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 OLED Display: A project utilizing 0.91" I2C OLED 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
Image of Display: A project utilizing 0.91" I2C OLED 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

Common Applications and Use Cases

  • Wearable Devices: Due to its compact size, it is ideal for smartwatches and fitness trackers.
  • IoT Projects: Useful for displaying sensor data and system status in Internet of Things devices.
  • Prototyping: Frequently used in development boards like Arduino for quick visual feedback.
  • Consumer Electronics: Suitable for small gadgets, remote controls, and other handheld devices.

Technical Specifications

Key Technical Details

Parameter Value
Display Type OLED
Screen Size 0.91 inches
Resolution 128 x 32 pixels
Communication I2C
Operating Voltage 3.3V - 5V
Operating Current 20mA (typical)
Viewing Angle >160 degrees
Operating Temperature -40°C to 85°C

Pin Configuration and Descriptions

Pin Number Pin Name Description
1 GND Ground
2 VCC Power Supply (3.3V - 5V)
3 SCL I2C Clock Line
4 SDA I2C Data Line

Usage Instructions

How to Use the Component in a Circuit

  1. Wiring the Display:

    • Connect the GND pin of the display to the ground (GND) of the microcontroller.
    • Connect the VCC pin of the display to the 3.3V or 5V power supply of the microcontroller.
    • Connect the SCL pin of the display to the I2C clock line (SCL) of the microcontroller.
    • Connect the SDA pin of the display to the I2C data line (SDA) of the microcontroller.
  2. Programming the Display:

    • Use an appropriate library to interface with the display. For Arduino, the Adafruit_SSD1306 and Adafruit_GFX libraries are commonly used.

Important Considerations and Best Practices

  • Power Supply: Ensure that the power supply voltage matches the display's operating voltage (3.3V - 5V).
  • I2C Address: The default I2C address for the display is usually 0x3C. Verify this in the datasheet or by using an I2C scanner.
  • Library Compatibility: Make sure to use compatible libraries for your microcontroller platform.
  • Initialization: Properly initialize the display in your code to avoid any display issues.

Example Code for Arduino UNO

#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>

// Define the screen dimensions
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 32

// Create an instance of the display
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);

void setup() {
  // Initialize the display
  if(!display.begin(SSD1306_I2C_ADDRESS, 0x3C)) {
    Serial.println(F("SSD1306 allocation failed"));
    for(;;);
  }
  
  // Clear the buffer
  display.clearDisplay();
  
  // Set text size and color
  display.setTextSize(1);
  display.setTextColor(SSD1306_WHITE);
  
  // Set cursor position
  display.setCursor(0, 0);
  
  // Display text
  display.println(F("Hello, World!"));
  
  // Update the display with the buffer content
  display.display();
}

void loop() {
  // Nothing to do here
}

Troubleshooting and FAQs

Common Issues Users Might Face

  1. Display Not Turning On:

    • Solution: Check the power connections and ensure the correct voltage is supplied.
  2. No Display Output:

    • Solution: Verify the I2C connections (SCL and SDA) and ensure the correct I2C address is used in the code.
  3. Flickering or Unstable Display:

    • Solution: Ensure stable power supply and proper initialization in the code.
  4. Library Compatibility Issues:

    • Solution: Make sure to use the latest versions of the Adafruit_SSD1306 and Adafruit_GFX libraries.

FAQs

Q1: What is the default I2C address of the display?

  • The default I2C address is usually 0x3C. However, it is recommended to verify this using an I2C scanner.

Q2: Can I use this display with a 3.3V microcontroller?

  • Yes, the display is compatible with both 3.3V and 5V microcontrollers.

Q3: How do I change the I2C address of the display?

  • The I2C address is typically fixed. Refer to the datasheet for any possible address change options.

Q4: What libraries are recommended for Arduino?

  • The Adafruit_SSD1306 and Adafruit_GFX libraries are highly recommended for interfacing with this display.

By following this documentation, users should be able to effectively integrate and utilize the 0.91" I2C OLED display in their projects.