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

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

Image of Duinotech 1.3" OLED Screen SPI
Cirkit Designer LogoDesign with Duinotech 1.3" OLED Screen SPI in Cirkit Designer

Introduction

The Duinotech 1.3" OLED Screen SPI is a compact and versatile display module designed for embedded systems. Featuring a 1.3-inch OLED screen with a resolution of 128x64 pixels, this module provides crisp and clear visuals for text, graphics, and animations. It uses the SPI (Serial Peripheral Interface) communication protocol, ensuring fast and reliable data transfer between the display and microcontrollers.

This OLED screen is ideal for a wide range of applications, including:

  • DIY electronics projects
  • IoT devices
  • Wearable technology
  • Data visualization for sensors
  • Compact user interfaces for embedded systems

Explore Projects Built with Duinotech 1.3" OLED Screen SPI

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP8266 NodeMCU Controlled OLED Display
Image of OLED: A project utilizing Duinotech 1.3" OLED Screen SPI 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
IoT Board with 0.96" OLED Display for Real-Time Data Visualization
Image of dgd: A project utilizing Duinotech 1.3" OLED Screen SPI 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
ESP8266 NodeMCU OLED Display: Wi-Fi Enabled Hello World Project
Image of oled: A project utilizing Duinotech 1.3" OLED Screen SPI in a practical application
This circuit features an ESP8266 NodeMCU microcontroller connected to a 1.3-inch OLED display via I2C communication. The microcontroller initializes the display and renders basic graphics and text, demonstrating a simple interface for visual output.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32 Devkit V1 and OLED Display Bitmap Viewer
Image of Esp32_monochromeimage: A project utilizing Duinotech 1.3" OLED Screen SPI 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

Explore Projects Built with Duinotech 1.3" OLED Screen SPI

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 OLED: A project utilizing Duinotech 1.3" OLED Screen SPI 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
Image of dgd: A project utilizing Duinotech 1.3" OLED Screen SPI 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 oled: A project utilizing Duinotech 1.3" OLED Screen SPI in a practical application
ESP8266 NodeMCU OLED Display: Wi-Fi Enabled Hello World Project
This circuit features an ESP8266 NodeMCU microcontroller connected to a 1.3-inch OLED display via I2C communication. The microcontroller initializes the display and renders basic graphics and text, demonstrating a simple interface for visual output.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Esp32_monochromeimage: A project utilizing Duinotech 1.3" OLED Screen SPI 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

Technical Specifications

Below are the key technical details of the Duinotech 1.3" OLED Screen SPI:

Specification Details
Display Type OLED
Screen Size 1.3 inches
Resolution 128x64 pixels
Communication Protocol SPI
Operating Voltage 3.3V to 5V
Current Consumption ~20mA (typical)
Driver IC SSD1306
Viewing Angle >160°
Operating Temperature -40°C to 85°C
Dimensions 35mm x 35mm x 4mm

Pin Configuration and Descriptions

The Duinotech 1.3" OLED Screen SPI has a 7-pin interface. Below is the pinout and description:

Pin Name Description
1 GND Ground connection
2 VCC Power supply (3.3V to 5V)
3 SCL Serial Clock Line (SPI clock input)
4 SDA Serial Data Line (SPI data input)
5 RES Reset pin (active low)
6 DC Data/Command control pin
7 CS Chip Select (active low, used to enable the display)

Usage Instructions

How to Use the Component in a Circuit

  1. Power Supply: Connect the VCC pin to a 3.3V or 5V power source and the GND pin to ground.
  2. SPI Connections: Connect the SCL (clock) and SDA (data) pins to the corresponding SPI pins on your microcontroller.
  3. Control Pins:
    • Connect the RES pin to a GPIO pin on your microcontroller for resetting the display.
    • Connect the DC pin to a GPIO pin to toggle between data and command modes.
    • Connect the CS pin to a GPIO pin to enable or disable the display.
  4. Pull-Up Resistors: Ensure that the SPI lines have appropriate pull-up resistors if required by your microcontroller.

Important Considerations and Best Practices

  • Voltage Compatibility: Ensure the microcontroller's logic level matches the display's voltage (3.3V or 5V).
  • Reset Timing: Hold the RES pin low for at least 10ms during initialization to reset the display.
  • SPI Speed: Use an SPI clock speed of up to 10MHz for optimal performance.
  • Library Support: Use an SSD1306-compatible library for easier integration with microcontrollers like Arduino.

Example Code for Arduino UNO

Below is an example of how to use the Duinotech 1.3" OLED Screen SPI with an Arduino UNO. This code uses the popular Adafruit_SSD1306 library.

#include <Adafruit_GFX.h>       // Graphics library for OLED
#include <Adafruit_SSD1306.h>  // SSD1306 driver library

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

// Declaration for SPI OLED display
#define OLED_MOSI   11          // Data pin (SDA)
#define OLED_CLK    13          // Clock pin (SCL)
#define OLED_DC     9           // Data/Command pin
#define OLED_CS     10          // Chip Select pin
#define OLED_RESET  8           // Reset pin

Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &SPI, OLED_DC, OLED_RESET, OLED_CS);

void setup() {
  // Initialize the display
  if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) {
    // 0x3C is the I2C address; not used in SPI but required for library
    Serial.println(F("SSD1306 allocation failed"));
    for (;;); // Loop forever if initialization fails
  }

  display.clearDisplay();        // Clear the buffer
  display.setTextSize(1);        // Set text size to 1
  display.setTextColor(SSD1306_WHITE); // Set text color to white
  display.setCursor(0, 0);       // Set cursor to top-left corner
  display.println(F("Hello, Duinotech!")); // Print text
  display.display();             // Display the text
}

void loop() {
  // Add your code here for dynamic updates
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Display Not Turning On:

    • Verify the power supply connections (VCC and GND).
    • Ensure the CS pin is correctly connected and set low during communication.
  2. No Output on the Screen:

    • Check the SPI connections (SCL and SDA) for loose or incorrect wiring.
    • Ensure the RES pin is properly toggled during initialization.
  3. Flickering or Corrupted Display:

    • Reduce the SPI clock speed to improve signal integrity.
    • Check for noise or interference on the SPI lines.
  4. Library Errors:

    • Ensure the Adafruit_SSD1306 and Adafruit_GFX libraries are installed in the Arduino IDE.
    • Verify that the correct pins are defined in the code.

FAQs

Q: Can I use this display with a 3.3V microcontroller?
A: Yes, the display is compatible with both 3.3V and 5V logic levels.

Q: What is the maximum SPI clock speed supported?
A: The display supports SPI clock speeds of up to 10MHz.

Q: Can I use this display with I2C instead of SPI?
A: No, this specific model is designed for SPI communication only.

Q: How do I display custom graphics?
A: Use the Adafruit_GFX library to draw shapes, bitmaps, and other graphics on the screen.

Q: Is the display sunlight-readable?
A: While the OLED screen is bright, it may not be easily readable in direct sunlight.

By following this documentation, you can effectively integrate the Duinotech 1.3" OLED Screen SPI into your projects and troubleshoot common issues.