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

How to Use Blue 16x2 Character Slim OLED Module: Examples, Pinouts, and Specs

Image of Blue 16x2 Character Slim OLED Module
Cirkit Designer LogoDesign with Blue 16x2 Character Slim OLED Module in Cirkit Designer

Introduction

The Blue 16x2 Character Slim OLED Module (Manufacturer Part ID: NHD-0216CW-AB3) by Newhaven Display is a compact and efficient display module designed for embedded systems. It features a 16x2 character layout, utilizing OLED technology to deliver high contrast, wide viewing angles, and low power consumption. This module is ideal for applications requiring clear text display in a compact form factor, such as industrial control panels, consumer electronics, and IoT devices.

Explore Projects Built with Blue 16x2 Character Slim OLED Module

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 Wi-Fi Enabled OLED Display with RYLR896 Communication Module
Image of Smart Irrigation system Rx Side: A project utilizing Blue 16x2 Character Slim OLED Module in a practical application
This circuit features an ESP8266 NodeMCU microcontroller connected to a 0.96" OLED display and an RYLR896 LoRa module. The ESP8266 communicates with the OLED via I2C protocol and interfaces with the LoRa module using UART, enabling wireless data transmission and display capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
I2C-Controlled OLED Display with External EEPROM and Interactive Pushbuttons
Image of godmode: A project utilizing Blue 16x2 Character Slim OLED Module 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
Wi-Fi Controlled RGB LED and OLED Display with ESP8266
Image of ESP thermometer reciever: A project utilizing Blue 16x2 Character Slim OLED Module in a practical application
This circuit features an ESP8266 microcontroller interfaced with a 128x64 OLED display via I2C for visual output and an RGB LED controlled through current-limiting resistors. The ESP8266 provides power and control signals to both the display and the LED, enabling visual feedback and status indication.
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 Blue 16x2 Character Slim OLED Module 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

Explore Projects Built with Blue 16x2 Character Slim OLED Module

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 Smart Irrigation system Rx Side: A project utilizing Blue 16x2 Character Slim OLED Module in a practical application
ESP8266 NodeMCU Wi-Fi Enabled OLED Display with RYLR896 Communication Module
This circuit features an ESP8266 NodeMCU microcontroller connected to a 0.96" OLED display and an RYLR896 LoRa module. The ESP8266 communicates with the OLED via I2C protocol and interfaces with the LoRa module using UART, enabling wireless data transmission and display capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of godmode: A project utilizing Blue 16x2 Character Slim OLED Module 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 ESP thermometer reciever: A project utilizing Blue 16x2 Character Slim OLED Module in a practical application
Wi-Fi Controlled RGB LED and OLED Display with ESP8266
This circuit features an ESP8266 microcontroller interfaced with a 128x64 OLED display via I2C for visual output and an RGB LED controlled through current-limiting resistors. The ESP8266 provides power and control signals to both the display and the LED, enabling visual feedback and status indication.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of dgd: A project utilizing Blue 16x2 Character Slim OLED Module 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

Common Applications

  • Embedded systems and microcontroller projects
  • Industrial control panels
  • Consumer electronics (e.g., home appliances)
  • IoT devices and smart home systems
  • Portable devices requiring low-power displays

Technical Specifications

Below are the key technical details and pin configuration for the NHD-0216CW-AB3 module:

Key Technical Details

Parameter Specification
Display Type OLED (Organic Light Emitting Diode)
Character Layout 16x2 (16 characters per row, 2 rows)
Display Color Blue characters on a black background
Interface I²C or SPI
Operating Voltage 3.3V
Operating Temperature -40°C to +80°C
Dimensions (L x W x H) 80.0mm x 36.0mm x 10.0mm
Viewing Angle >160°
Power Consumption Low (OLED technology)

Pin Configuration

The module has a 14-pin interface. The pin configuration is as follows:

Pin No. Pin Name Description
1 GND Ground
2 VCC Power supply (3.3V)
3 SCL Serial Clock Line (I²C)
4 SDA Serial Data Line (I²C)
5 RES Reset (Active Low)
6 DC Data/Command Control
7 CS Chip Select (Active Low, SPI mode only)
8 NC Not Connected
9-14 Reserved Reserved for future use

Usage Instructions

How to Use the Component in a Circuit

  1. Power Supply: Connect the VCC pin to a 3.3V power source and the GND pin to ground.
  2. Interface Selection: The module supports both I²C and SPI communication. For I²C:
    • Connect the SCL pin to the microcontroller's clock line.
    • Connect the SDA pin to the microcontroller's data line.
    • Leave the CS pin unconnected.
  3. Reset: Connect the RES pin to a GPIO pin on the microcontroller for resetting the display.
  4. Data/Command Control: Use the DC pin to toggle between data and command modes.
  5. Pull-Up Resistors: For I²C communication, ensure pull-up resistors (typically 4.7kΩ) are connected to the SCL and SDA lines.

Important Considerations and Best Practices

  • Voltage Levels: Ensure the module operates at 3.3V. Using 5V may damage the display.
  • Initialization: Properly initialize the display using the manufacturer's recommended sequence.
  • Viewing Angle: The OLED display offers a wide viewing angle, but ensure it is mounted securely for optimal readability.
  • ESD Protection: Handle the module with care to avoid electrostatic discharge damage.

Example Code for Arduino UNO

Below is an example of how to interface the NHD-0216CW-AB3 module with an Arduino UNO using the I²C protocol:

#include <Wire.h> // Include the Wire library for I²C communication

#define OLED_I2C_ADDRESS 0x3C // Default I²C address for the display

void setup() {
  Wire.begin(); // Initialize I²C communication
  initializeOLED(); // Call the function to initialize the display
}

void loop() {
  displayText("Hello, World!"); // Display text on the OLED
  delay(2000); // Wait for 2 seconds
  displayText("16x2 OLED Module"); // Update the text
  delay(2000); // Wait for 2 seconds
}

void initializeOLED() {
  Wire.beginTransmission(OLED_I2C_ADDRESS);
  Wire.write(0x00); // Command mode
  // Send initialization commands (refer to the datasheet for details)
  Wire.write(0xAE); // Display OFF
  Wire.write(0xA8); // Set multiplex ratio
  Wire.write(0x1F); // Multiplex ratio value
  Wire.write(0xD3); // Set display offset
  Wire.write(0x00); // Offset value
  Wire.write(0xAF); // Display ON
  Wire.endTransmission();
}

void displayText(const char* text) {
  Wire.beginTransmission(OLED_I2C_ADDRESS);
  Wire.write(0x40); // Data mode
  while (*text) {
    Wire.write(*text++); // Send each character
  }
  Wire.endTransmission();
}

Notes:

  • Replace the initialization commands in initializeOLED() with the exact sequence provided in the datasheet for the NHD-0216CW-AB3.
  • Ensure the I²C address (0x3C) matches the module's configuration.

Troubleshooting and FAQs

Common Issues and Solutions

  1. Display Not Turning On:

    • Verify the power supply voltage (3.3V) and connections.
    • Check the RES pin to ensure the module is not stuck in reset mode.
  2. No Text Displayed:

    • Ensure the initialization sequence is correct.
    • Verify the I²C address and connections to the SCL and SDA pins.
  3. Flickering or Unstable Display:

    • Check for loose connections or poor soldering.
    • Ensure proper pull-up resistors are used on the I²C lines.
  4. Incorrect Characters Displayed:

    • Verify the data being sent to the display.
    • Ensure the microcontroller's logic levels are compatible with the module.

FAQs

Q: Can this module be powered with 5V?
A: No, the module operates at 3.3V. Using 5V may damage the display.

Q: Does the module support custom characters?
A: Yes, the module supports custom characters. Refer to the datasheet for instructions on creating and displaying custom characters.

Q: Can I use this module with SPI instead of I²C?
A: Yes, the module supports SPI communication. Refer to the datasheet for the required pin connections and initialization sequence.

Q: What is the typical lifespan of the OLED display?
A: The OLED display has a typical lifespan of 50,000 hours under normal operating conditions.