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

How to Use DisplaySmall: Examples, Pinouts, and Specs

Image of DisplaySmall
Cirkit Designer LogoDesign with DisplaySmall in Cirkit Designer

Introduction

The DisplaySmall is a compact display module designed for applications requiring a small form factor. It is ideal for portable devices, embedded systems, and projects where space is limited but visual output is essential. This module is versatile and can display text, numbers, and simple graphics, making it a popular choice for hobbyists and professionals alike.

Explore Projects Built with DisplaySmall

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 OLED Display: Wi-Fi Enabled Hello World Project
Image of oled: A project utilizing DisplaySmall 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
I2C-Controlled OLED Display with External EEPROM and Interactive Pushbuttons
Image of godmode: A project utilizing DisplaySmall in a practical application
This is a microcontroller-based interactive device featuring a Wemos D1 Mini, an OLED display, external EEPROM, and an I/O expander. It includes user input buttons and status LEDs, with potential MIDI interface capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-C6 and ST7735S Display: Wi-Fi Controlled TFT Display Module
Image of ESP32-C6sm-ST7735: A project utilizing DisplaySmall in a practical application
This circuit features an ESP32-C6 microcontroller interfaced with a China ST7735S 160x128 TFT display. The ESP32-C6 controls the display via SPI communication, providing power, ground, and control signals to render graphics and text on the screen.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32C3 Supermini-Based Smart Environment Monitor and Lighting Control System
Image of Bedside RGB and Lamp: A project utilizing DisplaySmall in a practical application
This is a smart control system featuring an ESP32C3 Supermini microcontroller for interfacing with various sensors and actuators. It includes temperature and humidity sensing, RGB LED strip control, user input via a pushbutton and rotary encoder, and AC power control through a two-channel relay. The system is powered by an AC source converted to DC by the HLK-PM12 module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with DisplaySmall

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 DisplaySmall 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 godmode: A project utilizing DisplaySmall in a practical application
I2C-Controlled OLED Display with External EEPROM and Interactive Pushbuttons
This is a microcontroller-based interactive device featuring a Wemos D1 Mini, an OLED display, external EEPROM, and an I/O expander. It includes user input buttons and status LEDs, with potential MIDI interface capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ESP32-C6sm-ST7735: A project utilizing DisplaySmall in a practical application
ESP32-C6 and ST7735S Display: Wi-Fi Controlled TFT Display Module
This circuit features an ESP32-C6 microcontroller interfaced with a China ST7735S 160x128 TFT display. The ESP32-C6 controls the display via SPI communication, providing power, ground, and control signals to render graphics and text on the screen.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Bedside RGB and Lamp: A project utilizing DisplaySmall in a practical application
ESP32C3 Supermini-Based Smart Environment Monitor and Lighting Control System
This is a smart control system featuring an ESP32C3 Supermini microcontroller for interfacing with various sensors and actuators. It includes temperature and humidity sensing, RGB LED strip control, user input via a pushbutton and rotary encoder, and AC power control through a two-channel relay. The system is powered by an AC source converted to DC by the HLK-PM12 module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Portable electronic devices
  • Wearable technology
  • IoT (Internet of Things) projects
  • Embedded systems
  • Prototyping and DIY electronics
  • Arduino and microcontroller-based projects

Technical Specifications

Below are the key technical details for the DisplaySmall module:

Parameter Value
Display Type OLED/Monochrome
Resolution 128x64 pixels
Interface I2C (Inter-Integrated Circuit)
Operating Voltage 3.3V - 5V
Current Consumption ~20mA (typical)
Dimensions 25mm x 15mm x 3mm
Viewing Angle >160°
Operating Temperature -40°C to +85°C

Pin Configuration and Descriptions

The DisplaySmall module has a 4-pin interface for easy integration with microcontrollers. Below is the pinout:

Pin Name Description
1 GND Ground pin. Connect to the ground of the power supply.
2 VCC Power supply pin. Connect to 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 Component in a Circuit

  1. Power Connection: Connect the VCC pin to a 3.3V or 5V power source and the GND pin to the ground.
  2. I2C Communication: Connect the SCL and SDA pins to the corresponding I2C pins on your microcontroller. For an Arduino UNO:
    • SCL connects to A5.
    • SDA connects to A4.
  3. Pull-Up Resistors: Ensure that the I2C lines (SCL and SDA) have pull-up resistors (typically 4.7kΩ to 10kΩ) if not already included on the module.

Important Considerations and Best Practices

  • Voltage Compatibility: Verify that your microcontroller operates at a compatible voltage (3.3V or 5V).
  • I2C Address: The default I2C address for the module is typically 0x3C. Check the datasheet or test if the address differs.
  • Initialization: Use a compatible library (e.g., Adafruit SSD1306 or U8g2) to initialize and control the display.
  • Avoid Overheating: Operate the module within the specified temperature range to prevent damage.

Example Code for Arduino UNO

Below is an example of how to use the DisplaySmall module with an Arduino UNO using the Adafruit SSD1306 library:

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

// Define the screen width and height
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64

// Create an instance of the display object
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);

void setup() {
  // Initialize serial communication for debugging
  Serial.begin(9600);

  // Initialize the display
  if (!display.begin(SSD1306_I2C_ADDRESS, 0x3C)) {
    Serial.println(F("Display initialization failed!"));
    while (true); // Halt execution if initialization fails
  }

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

  // Display a welcome message
  display.setTextSize(1); // Set text size
  display.setTextColor(SSD1306_WHITE); // Set text color
  display.setCursor(0, 0); // Set cursor position
  display.println(F("Hello, DisplaySmall!"));
  display.display(); // Render the text on the screen
}

void loop() {
  // Add your main code here
}

Troubleshooting and FAQs

Common Issues Users Might Face

  1. Display Not Turning On:

    • Ensure the VCC and GND pins are correctly connected.
    • Verify the power supply voltage (3.3V or 5V).
  2. No Output on the Screen:

    • Check the I2C connections (SCL and SDA).
    • Confirm the I2C address matches the one in your code (default is 0x3C).
    • Ensure the pull-up resistors are in place if required.
  3. Flickering or Unstable Display:

    • Verify the power supply is stable and sufficient.
    • Check for loose connections on the I2C lines.
  4. Library Errors:

    • Ensure the Adafruit SSD1306 library is installed and up to date.
    • Verify that the correct screen dimensions (128x64) are defined in the code.

Solutions and Tips for Troubleshooting

  • Use a multimeter to check the voltage levels on the VCC and GND pins.
  • Test the I2C communication using an I2C scanner sketch to detect the module's address.
  • Double-check all wiring and connections for errors or loose contacts.
  • Refer to the library documentation for additional configuration options.

By following this documentation, you can successfully integrate and operate the DisplaySmall module in your projects.