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

How to Use 1.3 oled: Examples, Pinouts, and Specs

Image of 1.3 oled
Cirkit Designer LogoDesign with 1.3 oled in Cirkit Designer

Introduction

The 1.3-inch OLED display, manufactured by Arduino (Part ID: UNO), is a compact, high-resolution organic light-emitting diode display. It delivers vibrant colors, deep blacks, and excellent contrast, making it ideal for applications requiring clear and visually appealing output. This display is commonly used in small electronic devices, DIY projects, and embedded systems for displaying text, graphics, and animations.

Explore Projects Built with 1.3 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!
Arduino UNO OLED Display Interface for Real-Time Data Visualization
Image of a2: A project utilizing 1.3 oled in a practical application
This circuit consists of an Arduino UNO microcontroller connected to a 1.3" OLED display. The Arduino provides power and communicates with the OLED display via I2C protocol, utilizing the SCL and SDA pins for data transmission.
Cirkit Designer LogoOpen Project in Cirkit Designer
IoT Board with 0.96" OLED Display for Real-Time Data Visualization
Image of dgd: A project utilizing 1.3 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
ESP32 Devkit V1 and OLED Display Bitmap Viewer
Image of Esp32_monochromeimage: A project utilizing 1.3 oled in a practical application
This circuit consists of an ESP32 Devkit V1 microcontroller connected to a 1.3" OLED display via I2C communication. The ESP32 initializes the OLED display and renders a predefined bitmap image on it.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP8266 NodeMCU Controlled OLED Display
Image of OLED: A project utilizing 1.3 oled in a practical application
This circuit connects an ESP8266 NodeMCU microcontroller to a 1.3" OLED display. The ESP8266's D1 and D2 pins are used for the SCL and SDA I2C communication lines, respectively, to interface with the OLED. The circuit is designed to display information or graphics on the OLED screen, controlled by the ESP8266.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with 1.3 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 a2: A project utilizing 1.3 oled in a practical application
Arduino UNO OLED Display Interface for Real-Time Data Visualization
This circuit consists of an Arduino UNO microcontroller connected to a 1.3" OLED display. The Arduino provides power and communicates with the OLED display via I2C protocol, utilizing the SCL and SDA pins for data transmission.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of dgd: A project utilizing 1.3 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 Esp32_monochromeimage: A project utilizing 1.3 oled in a practical application
ESP32 Devkit V1 and OLED Display Bitmap Viewer
This circuit consists of an ESP32 Devkit V1 microcontroller connected to a 1.3" OLED display via I2C communication. The ESP32 initializes the OLED display and renders a predefined bitmap image on it.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of OLED: A project utilizing 1.3 oled in a practical application
ESP8266 NodeMCU Controlled OLED Display
This circuit connects an ESP8266 NodeMCU microcontroller to a 1.3" OLED display. The ESP8266's D1 and D2 pins are used for the SCL and SDA I2C communication lines, respectively, to interface with the OLED. The circuit is designed to display information or graphics on the OLED screen, controlled by the ESP8266.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Wearable devices and smart gadgets
  • IoT dashboards and data visualization
  • Portable electronic devices
  • DIY electronics and Arduino projects
  • Compact user interfaces for embedded systems

Technical Specifications

The following table outlines the key technical details of the 1.3-inch OLED display:

Parameter Specification
Display Type OLED (Organic Light-Emitting Diode)
Screen Size 1.3 inches
Resolution 128 x 64 pixels
Interface I2C (Inter-Integrated Circuit)
Operating Voltage 3.3V - 5V
Current Consumption ~20mA (typical)
Viewing Angle >160°
Operating Temperature -40°C to 85°C
Dimensions 35mm x 35mm x 4mm

Pin Configuration and Descriptions

The 1.3-inch OLED display typically has a 4-pin interface for I2C communication. The pin configuration is as follows:

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

Usage Instructions

How to Use the 1.3 OLED in a Circuit

  1. Connect the Pins:

    • Connect the GND pin of the OLED to the ground of your microcontroller.
    • Connect the VCC pin to a 3.3V or 5V power source, depending on your system.
    • Connect the SCL pin to the I2C clock pin of your microcontroller (e.g., A5 on Arduino UNO).
    • Connect the SDA pin to the I2C data pin of your microcontroller (e.g., A4 on Arduino UNO).
  2. Install Required Libraries:

    • Use the Arduino IDE to install the Adafruit_GFX and Adafruit_SSD1306 libraries. These libraries provide functions for controlling the OLED display.
  3. Upload Code:

    • Use the example code below to display text or graphics on the OLED.

Example Code for Arduino UNO

#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 instance of the SSD1306 display object
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);

void setup() {
  // Initialize the display
  if (!display.begin(SSD1306_I2C_ADDRESS, 0x3C)) {
    // If the display fails to initialize, print an error message
    Serial.println(F("SSD1306 allocation failed"));
    for (;;); // Halt the program
  }

  // Clear the display buffer
  display.clearDisplay();

  // Set text size and color
  display.setTextSize(1); // Text size multiplier
  display.setTextColor(SSD1306_WHITE);

  // Display a message
  display.setCursor(0, 0); // Set cursor position
  display.println(F("Hello, OLED!")); // Print text
  display.display(); // Update the display
}

void loop() {
  // No actions in the loop for this example
}

Important Considerations and Best Practices

  • Power Supply: Ensure the OLED is powered within its operating voltage range (3.3V - 5V).
  • I2C Address: The default I2C address for most 1.3-inch OLED displays is 0x3C. Verify this in the datasheet or by scanning I2C devices.
  • Library Compatibility: Use the latest versions of the Adafruit_GFX and Adafruit_SSD1306 libraries for optimal performance.
  • Avoid Static Damage: Handle the OLED module carefully to prevent damage from static electricity.

Troubleshooting and FAQs

Common Issues and Solutions

  1. Display Not Turning On:

    • Verify the power connections (GND and VCC).
    • Ensure the I2C address in the code matches the OLED's address.
  2. Flickering or Unstable Display:

    • Check for loose connections in the circuit.
    • Use shorter wires to reduce noise in the I2C lines.
  3. Text or Graphics Not Displaying:

    • Confirm that the Adafruit_GFX and Adafruit_SSD1306 libraries are installed.
    • Ensure the display.display() function is called after drawing operations.
  4. I2C Communication Errors:

    • Verify the SCL and SDA connections.
    • Use pull-up resistors (4.7kΩ - 10kΩ) on the SCL and SDA lines if necessary.

FAQs

Q: Can I use the 1.3 OLED with a 3.3V microcontroller?
A: Yes, the OLED is compatible with both 3.3V and 5V systems.

Q: How do I display custom graphics?
A: Use the Adafruit_GFX library to draw shapes, bitmaps, and custom graphics. Refer to the library documentation for examples.

Q: What is the maximum refresh rate of the display?
A: The refresh rate depends on the I2C communication speed, typically up to 400kHz.

Q: Can I use multiple OLEDs on the same I2C bus?
A: Yes, but each OLED must have a unique I2C address. Some modules allow address modification via solder jumpers.

By following this documentation, you can effectively integrate and use the 1.3-inch OLED display in your projects.