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

How to Use 0.96" OLED: Examples, Pinouts, and Specs

Image of 0.96" OLED
Cirkit Designer LogoDesign with 0.96" OLED in Cirkit Designer

Introduction

The 0.96" OLED display module is a compact and versatile screen suitable for adding a visual interface to your electronics projects. With its Organic Light-Emitting Diode (OLED) technology, it provides high contrast, vibrant colors, and wide viewing angles. This display is commonly used in wearable devices, small instruments, and any application where a small yet clear display is required.

Explore Projects Built with 0.96" OLED

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 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 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.96" OLED 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.96" OLED 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.96" OLED

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 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 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.96" OLED 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.96" OLED 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
  • Portable instruments
  • User interfaces for small-scale projects
  • Battery-powered applications due to low power consumption

Technical Specifications

Key Technical Details

  • Display Type: OLED (Organic Light-Emitting Diode)
  • Screen Size: 0.96 inches diagonally
  • Resolution: 128x64 pixels
  • Color Depth: Monochrome (typically blue or white)
  • Interface: I2C or SPI (varies by model)
  • Operating Voltage: 3.3V to 5V (check specific model)
  • Current Consumption: 10-20mA (typical)

Pin Configuration and Descriptions

Pin Number Pin Name Description
1 GND Ground
2 VCC Power supply (3.3V - 5V)
3 SCL Serial Clock Line (I2C) or SPI Clock (SPI)
4 SDA Serial Data Line (I2C) or SPI Data In (SPI)
5 RES Reset (optional for some models)
6 DC Data/Command (SPI only)
7 CS Chip Select (SPI only)

Usage Instructions

How to Use the Component in a Circuit

  1. Power Connections: Connect the VCC pin to a 3.3V or 5V power supply and the GND pin to the ground.
  2. Data Connections: For I2C, connect SCL to the I2C clock line and SDA to the I2C data line. For SPI, connect SCL, SDA, DC, and CS to the corresponding SPI pins on your microcontroller.
  3. Reset (Optional): The RES pin can be connected to a digital pin on your microcontroller to allow software reset of the display.

Important Considerations and Best Practices

  • Ensure that the power supply voltage matches the requirements of your specific OLED module.
  • Use pull-up resistors on the I2C lines if they are not included on the module.
  • Avoid exposing the display to direct sunlight for extended periods to prevent damage.
  • When using SPI, ensure that the correct data/command (DC) and chip select (CS) pins are used.

Example Code for Arduino UNO

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

// OLED display TWI address (usually 0x3C or 0x3D)
#define OLED_ADDR   0x3C
// Reset pin not used on 4-pin OLED module but required for library
#define OLED_RESET  -1
Adafruit_SSD1306 display(128, 64, &Wire, OLED_RESET);

void setup() {
  // Initialize with the I2C addr 0x3C (for the 128x64)
  if(!display.begin(SSD1306_SWITCHCAPVCC, OLED_ADDR)) {
    Serial.println(F("SSD1306 allocation failed"));
    for(;;); // Don't proceed, loop forever
  }
  display.display();
  delay(2000); // Pause for 2 seconds

  // Clear the buffer
  display.clearDisplay();

  // Draw a single pixel in white
  display.drawPixel(10, 10, WHITE);

  // Show the display buffer on the screen
  display.display();
}

void loop() {
  // Code to update the display continuously
}

Troubleshooting and FAQs

Common Issues Users Might Face

  • Display not powering on: Check the power connections and ensure the voltage is within the specified range.
  • No display or corrupted pixels: Verify the I2C/SPI connections and ensure that the correct communication protocol is selected.
  • Dim display: Adjust the contrast or check if the power supply is able to deliver sufficient current.

Solutions and Tips for Troubleshooting

  • Double-check wiring against the pin configuration table.
  • Use example code to test the display before integrating it into your project.
  • If using I2C, scan for the device address to ensure communication is established.
  • For SPI, ensure that the correct pins are defined in your code for DC and CS.

FAQs

Q: Can I use this display with a 5V microcontroller? A: Yes, most 0.96" OLED displays are 5V tolerant, but always check the specifications of your particular module.

Q: How do I know if my OLED is using I2C or SPI? A: Check the pinout and the documentation provided by the manufacturer. I2C modules typically have fewer pins.

Q: Can I display images on the OLED? A: Yes, you can display bitmap images, but they need to be converted to a monochrome format suitable for the display's resolution.

Q: Is it possible to use multiple OLED displays with an Arduino? A: Yes, with I2C you can use multiple displays with different addresses. With SPI, you can use multiple displays by selecting different CS pins for each one.