0.96 inch OLED Display Module, SPI / I2C Communication


Description

The 0.96 inch OLED display module features a 128×64 pixel resolution and supports both SPI and I2C communication protocols. This module is ideal for applications requiring a compact, high-contrast display.

Features

  • Display Size: 0.96 inch

  • Resolution: 128×64 pixels

  • Display Color: White

  • Communication Interface: SPI / I2C

  • Driver IC: SSD1306

  • Operating Voltage: 3.3V / 5V

  • Operating Temperature: -40°C to 85°C

  • Storage Temperature: -55°C to 125°C

  • Viewing Angle: >160°

  • Pixel Pitch: 0.15×0.15 mm

  • Active Area: 21.74×10.86 mm

Pinout

PinSymbolFunction

1

GND

Ground

2

VCC

Power Supply (3.3V / 5V)

3

SCL

Serial Clock Line (I2C) / SPI Clock Line (SCK)

4

SDA

Serial Data Line (I2C) / SPI Data Line (MOSI)

5

RES

Reset

6

DC

Data/Command Control

7

CS

Chip Select (SPI only)

Electrical Characteristics

ParameterSymbolMinTypMaxUnit

Supply Voltage

VCC

2.8

3.3

5.0

V

Operating Current

ICC

-

10

20

mA

Sleep Current

I_sleep

-

0.06

0.1

mA

Logic High Voltage

V_IH

0.8VCC

-

VCC

V

Logic Low Voltage

V_IL

0

-

0.2VCC

V

Communication Interfaces

  • SPI Interface: The SPI communication involves SCL (Serial Clock), SDA (Serial Data), RES (Reset), DC (Data/Command), and CS (Chip Select) pins.

  • I2C Interface: The I2C communication involves SCL (Serial Clock) and SDA (Serial Data) pins. The default I2C address is 0x3C.

Mechanical Dimensions

ParameterValue

Module Size

27.0×27.0×4.1 mm

Active Area

21.74×10.86 mm

Pixel Size

0.15×0.15 mm

Weight

2.5 g

Typical Applications

  • Wearable devices

  • Portable instruments

  • Smart home products

  • Industrial control displays

  • Consumer electronics

Usage Instructions

  1. Initialization: Ensure proper power supply (3.3V / 5V) is provided to the module.

  2. Interface Selection: Configure the display module for SPI or I2C communication as per your application needs.

  3. Data Transmission: Use the appropriate protocol (SPI or I2C) to transmit data to the display. Follow the SSD1306 controller datasheet for detailed command instructions.

Example Code

c复制代码#include <Wire.h> // Include Wire library for I2C
#include <Adafruit_GFX.h> // Include Adafruit graphics library
#include <Adafruit_SSD1306.h> // Include Adafruit SSD1306 library

#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
#define OLED_RESET -1 // Reset pin (or -1 if sharing Arduino reset pin)
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);

void setup() {
  Wire.begin();
  if(!display.begin(SSD1306_I2C_ADDRESS, OLED_RESET)) { 
    Serial.println(F("SSD1306 allocation failed"));
    for(;;);
  }
  display.display();
  delay(2000); // Pause for 2 seconds

  // Clear the buffer
  display.clearDisplay();

  // Display a message
  display.setTextSize(1);
  display.setTextColor(SSD1306_WHITE);
  display.setCursor(0,0);
  display.println(F("Hello, World!"));
  display.display(); 
}
void loop() {
}

Last updated