Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

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

Image of OLED 1.3"Design with OLED 1.3" in Cirkit Designer

Introduction

The OLED 1.3" display module by abc, part ID xyz, is a compact and high-contrast display unit that utilizes organic light-emitting diode technology. This technology allows for sharp and bright visuals even in low-light conditions. Common applications include wearable devices, small-screen consumer gadgets, and DIY projects with microcontrollers like the Arduino UNO.

Explore Projects Built with OLED 1.3"

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 ESP8266 NodeMCU Controlled OLED Display: A project utilizing OLED 1.3" 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.

Open Project in Cirkit Designer

Technical Specifications

General Features

Electrical Characteristics

Pin Configuration

Pin Number Pin Name Description
1 GND Ground connection
2 VCC Power supply (3.3V - 5V)
3 SCL Serial Clock Line for I2C interface
4 SDA Serial Data Line for I2C interface
5 RES Reset pin (optional, active low)
6 DC Data/Command control pin (optional)

Usage Instructions

Connecting to an Arduino UNO

  1. Power Connections:

    • Connect the VCC pin to the 3.3V or 5V output on the Arduino UNO.
    • Connect the GND pin to one of the GND pins on the Arduino UNO.
  2. Data Connections:

    • Connect the SCL pin to the A5 pin (SCL) on the Arduino UNO.
    • Connect the SDA pin to the A4 pin (SDA) on the Arduino UNO.
  3. Optional Pins:

    • If available, connect the RES pin to a digital pin on the Arduino for manual reset control.
    • The DC pin is used in SPI mode, which is not covered in this documentation.

Programming the Arduino UNO

To control the OLED display, you will need to include libraries that support the SSD1306 driver. The Adafruit SSD1306 library is a common choice.

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

#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels

// Declaration for an SSD1306 display connected to I2C (SCL, SDA pins)
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire);

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

  // Clear the buffer
  display.clearDisplay();

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

  // Display the image buffer on the screen
  display.display();
}

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

Important Considerations and Best Practices

Troubleshooting and FAQs

Common Issues

FAQs

Q: Can I use this display with a 5V system? A: Yes, the OLED display is typically 5V tolerant, but always check the datasheet for your specific module.

Q: How do I adjust the brightness of the display? A: Brightness can be controlled through software commands using the display library.

Q: What library should I use for the Arduino? A: The Adafruit SSD1306 library is recommended for its ease of use and compatibility with the Arduino.

For further assistance, consult the manufacturer's datasheet and technical forums for the specific OLED module you are using.