Stufin
Home Quick Cart Profile

0.96 Inch Blue OLED Display Module SPI/I2C - 4pin

Buy Now on Stufin

Component Description

0.96 Inch Blue OLED Display Module SPI/I2C - 4pin

Overview

The 0.96 Inch Blue OLED Display Module SPI/I2C - 4pin is a compact, high-contrast organic light-emitting diode (OLED) display module designed for a wide range of applications in the Internet of Things (IoT) domain. This module features a 0.96-inch diagonal active area, with a resolution of 128x64 pixels, and supports both SPI (Serial Peripheral Interface) and I2C (Inter-Integrated Circuit) communication protocols.

Functionality

The primary function of this display module is to provide a high-quality, low-power visual interface for various IoT devices, such as sensor nodes, wearable devices, and handheld instruments. The module can display text, graphics, and icons with high contrast and a wide viewing angle, making it suitable for a variety of applications.

Key Features

  • Display Specifications:

Diagonal active area

0.96 inches

Resolution

128x64 pixels

Pixel density

163 ppi

Display type

Organic Light-Emitting Diode (OLED)

Color

Blue

  • Communication Interfaces:

SPI (Serial Peripheral Interface) protocol

I2C (Inter-Integrated Circuit) protocol

4-pin interface (VCC, GND, SCL, SDA)

  • Power Management:

Operating voltage

3.3V to 5V

Low power consumption

typically <20mA

  • Mechanical Characteristics:

Module size

27.5mm x 27.5mm x 1.5mm

Weight

approximately 5g

Mounting type

Surface Mount (SMD)

  • Additional Features:
  • High contrast ratio (typically >10001)

    Wide viewing angle (typically >160)

    Low power consumption during normal operation

    Support for various graphics and fonts

    Applications

    • Wearable devices: Smartwatches, fitness trackers, and health monitors.
    • Sensor nodes: Environmental monitoring, industrial automation, and agricultural monitoring.
    • Handheld instruments: Multimeters, oscilloscopes, and data loggers.
    • IoT gateways: Visualization of sensor data, system status, and network information.
    • Prototyping and development: Ideal for proof-of-concept, prototyping, and testing of IoT projects.
    The 0.96 Inch Blue OLED Display Module SPI/I2C - 4pin is suitable for a wide range of IoT applications, including

    Ordering Information

    When ordering, please specify the following

Part number

[insert part number]

Quantity

[insert quantity]

Package type

[insert package type, e.g., reel, tray, or tube]

Resources

For more information, please refer to the following resources

Datasheet

[insert datasheet link]

User manual

[insert user manual link]

Application notes

[insert application notes link]

Warranty and Support

The 0.96 Inch Blue OLED Display Module SPI/I2C - 4pin is warranted to be free from defects in materials and workmanship for a period of [insert warranty period]. Technical support is available through [insert support channels, e.g., email, phone, or online forum].

Pin Configuration

  • Component Documentation: 0.96 Inch Blue OLED Display Module SPI/I2C - 4pin
  • The 0.96 Inch Blue OLED Display Module is a compact and versatile display solution for IoT projects, offering a high-contrast blue OLED display with a resolution of 128x64 pixels. This module features a 4-pin interface, allowing for easy integration with microcontrollers and other devices. In this documentation, we will explore the pins of the module and provide a step-by-step guide on how to connect them.
  • Pin Description:
  • The 0.96 Inch Blue OLED Display Module has four pins, each with a specific function:
  • 1. VCC:
  • Pin Function: Power Supply
  • Description: This pin is used to provide power to the display module. Typically, a voltage range of 3.3V to 5V is recommended.
  • 2. GND:
  • Pin Function: Ground
  • Description: This pin is connected to the ground of the power supply and provides a reference point for the module's operation.
  • 3. SCL/SDA:
  • Pin Function: Serial Clock/Serial Data
  • Description: This pin serves as both the serial clock (SCL) and serial data (SDA) line for I2C communication. When using SPI communication, this pin acts as the SPI clock (SCK) line.
  • 4. D/C:
  • Pin Function: Data/Command
  • Description: This pin is used to select between data and command modes. When set high, the module is in data mode, and when set low, it is in command mode.
  • Connection Guide:
  • To connect the 0.96 Inch Blue OLED Display Module to your microcontroller or other devices, follow these steps:
  • SPI Connection:
  • Connect VCC to the power supply (3.3V or 5V) of your microcontroller.
  • Connect GND to the ground of the power supply.
  • Connect SCL/SDA to the SPI clock (SCK) pin of your microcontroller.
  • Connect D/C to a digital pin of your microcontroller (e.g., GPIO 5).
  • I2C Connection:
  • Connect VCC to the power supply (3.3V or 5V) of your microcontroller.
  • Connect GND to the ground of the power supply.
  • Connect SCL/SDA to the I2C clock (SCL) pin of your microcontroller.
  • Connect D/C to the I2C data (SDA) pin of your microcontroller.
  • Important Notes:
  • Ensure that the power supply voltage (VCC) is within the recommended range to avoid damaging the module.
  • Use a breadboard or PCB to connect the module to your microcontroller, keeping in mind the pinout and spacing to prevent electrical shorts.
  • When using I2C communication, ensure that the I2C address is set correctly, as specified in the module's datasheet.
  • Consult the module's datasheet and your microcontroller's documentation for specific pinouts and configuration requirements.
  • By following these connection guidelines, you can successfully integrate the 0.96 Inch Blue OLED Display Module into your IoT project and take advantage of its high-contrast blue OLED display.

Code Examples

0.96 Inch Blue OLED Display Module SPI/I2C - 4pin Documentation
Overview
The 0.96 Inch Blue OLED Display Module is a compact, low-power display module featuring a 0.96-inch blue OLED display with a resolution of 128x64 pixels. It communicates with a microcontroller using either SPI or I2C interface, making it an ideal component for a wide range of IoT projects. This module is suitable for use in applications such as wearable devices, smart home systems, and industrial control systems.
Pinout
The module has a 4-pin interface:
VCC: Power supply pin (typically 3.3V or 5V)
 GND: Ground pin
 SCL/CLK: Clock pin for I2C/SPI interface
 SDA/MOSI: Data pin for I2C/SPI interface
Communication Interfaces
The module supports both SPI and I2C communication interfaces.
### SPI Interface
To use the module with the SPI interface, connect the pins as follows:
VCC to VCC on the microcontroller
 GND to GND on the microcontroller
 SCL/CLK to SCK on the microcontroller
 SDA/MOSI to MOSI on the microcontroller
Example Code (Arduino):
```c++
#include <SPI.h>
#define OLED_CS 5 // Chip select pin
#define OLED_CLK 13 // Clock pin
#define OLED_MOSI 11 // MOSI pin
void setup() {
  SPI.begin();
  pinMode(OLED_CS, OUTPUT);
  digitalWrite(OLED_CS, HIGH);
}
void loop() {
  digitalWrite(OLED_CS, LOW);
  SPI.transfer(0x00); // Command mode
  SPI.transfer(0x06); // Function set (horizontal addressing)
  SPI.transfer(0x0A); // Display on
  digitalWrite(OLED_CS, HIGH);
  delay(1000);
// Display a string on the OLED
  digitalWrite(OLED_CS, LOW);
  SPI.transfer(0x00); // Command mode
  SPI.transfer(0x80); // Set column address
  SPI.transfer(0x00); // Set page address
  SPI.transfer("Hello, World!"); // Send string data
  digitalWrite(OLED_CS, HIGH);
  delay(1000);
}
```
### I2C Interface
To use the module with the I2C interface, connect the pins as follows:
VCC to VCC on the microcontroller
 GND to GND on the microcontroller
 SCL/CLK to SCL on the microcontroller
 SDA/MOSI to SDA on the microcontroller
Example Code (Raspberry Pi, Python):
```python
import smbus
# I2C bus address of the OLED module
oled_addr = 0x3C
# Initialize the I2C bus
bus = smbus.SMBus(1)
# Set the display on
bus.write_byte(oled_addr, 0x0A)
# Set the column address
bus.write_byte(oled_addr, 0x80)
# Set the page address
bus.write_byte(oled_addr, 0x00)
# Send a string to the OLED
bus.write_i2c_block_data(oled_addr, 0x40, "Hello, World!")
# Wait for 1 second
time.sleep(1)
```
Note: The above examples are for illustration purposes only and may require modifications to work with your specific microcontroller or development board. Consult the datasheet and relevant documentation for your microcontroller for more information on using the SPI and I2C interfaces.