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

How to Use Adafruit 2.23in Monochrome OLED Bonnet for Raspberry Pi: Examples, Pinouts, and Specs

Image of Adafruit 2.23in Monochrome OLED Bonnet for Raspberry Pi
Cirkit Designer LogoDesign with Adafruit 2.23in Monochrome OLED Bonnet for Raspberry Pi in Cirkit Designer

Introduction

The Adafruit 2.23in Monochrome OLED Bonnet is an add-on board for the Raspberry Pi, designed to provide a high-contrast, high-resolution OLED display for your projects. This display is perfect for adding a small screen to your Raspberry Pi, with 128x32 pixels to display text, graphics, and animations. It's commonly used in wearable tech, small handheld devices, and status display for IoT projects.

Explore Projects Built with Adafruit 2.23in Monochrome OLED Bonnet for Raspberry Pi

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Raspberry Pi 4B-Based Current Monitoring System with I2C OLED Display
Image of Virtual Energy Monitoring Circuit: A project utilizing Adafruit 2.23in Monochrome OLED Bonnet for Raspberry Pi in a practical application
This circuit features a Raspberry Pi 4B as the central processing unit, interfaced with an Adafruit ADS1115 16-bit I2C ADC for analog-to-digital conversion and a 0.96" OLED display for visual output. The ADS1115 is connected to a current sensor for measuring electrical current, with the sensor's output and burden pins connected to the ADC's analog input channels. The Raspberry Pi communicates with both the ADC and the OLED display over the I2C bus, using its GPIO2 and GPIO3 pins for data (SDA) and clock (SCL) lines, respectively.
Cirkit Designer LogoOpen Project in Cirkit Designer
Raspberry Pi 4B with I2C Current Sensing and OLED Display
Image of iot task 2: A project utilizing Adafruit 2.23in Monochrome OLED Bonnet for Raspberry Pi in a practical application
This circuit features a Raspberry Pi 4B as the central processing unit, interfaced with an Adafruit ADS1115 16-bit I2C ADC for analog-to-digital conversion and a 0.96" OLED display for visual output. The ADC is connected to a current sensor for measuring electrical current, with the sensor's output connected to the ADC's AIN0 pin and the burden resistor connected to AIN1. The Raspberry Pi communicates with both the ADC and the OLED display over the I2C bus, using GPIO2 (SDA) and GPIO3 (SCL) for data exchange.
Cirkit Designer LogoOpen Project in Cirkit Designer
Raspberry Pi 3B with I2C Sensor Data Acquisition and OLED Display
Image of Power Meter IoT: A project utilizing Adafruit 2.23in Monochrome OLED Bonnet for Raspberry Pi in a practical application
This circuit features a Raspberry Pi 3B as the central processing unit, interfaced with an Adafruit ADS1115 16-bit ADC for analog-to-digital conversion and a 0.96" OLED display for visual output. The ADC is connected to a current sensor for measuring electrical current, and both the ADC and OLED communicate with the Raspberry Pi via the I2C protocol. The circuit is likely used for monitoring current and displaying the measurements in real-time on the OLED screen.
Cirkit Designer LogoOpen Project in Cirkit Designer
Raspberry Pi 5 Smart Sensor Hub with OLED Display and Camera
Image of dash cam: A project utilizing Adafruit 2.23in Monochrome OLED Bonnet for Raspberry Pi in a practical application
This circuit integrates a Raspberry Pi 5 with various peripherals including an OV7670 camera, a BMI160 accelerometer/gyro sensor, and a 2.42 inch OLED display. It also includes a red LED and a breadboard power supply module, enabling the Raspberry Pi to interface with the sensors and display for data acquisition and visualization.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Adafruit 2.23in Monochrome OLED Bonnet for Raspberry Pi

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 Virtual Energy Monitoring Circuit: A project utilizing Adafruit 2.23in Monochrome OLED Bonnet for Raspberry Pi in a practical application
Raspberry Pi 4B-Based Current Monitoring System with I2C OLED Display
This circuit features a Raspberry Pi 4B as the central processing unit, interfaced with an Adafruit ADS1115 16-bit I2C ADC for analog-to-digital conversion and a 0.96" OLED display for visual output. The ADS1115 is connected to a current sensor for measuring electrical current, with the sensor's output and burden pins connected to the ADC's analog input channels. The Raspberry Pi communicates with both the ADC and the OLED display over the I2C bus, using its GPIO2 and GPIO3 pins for data (SDA) and clock (SCL) lines, respectively.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of iot task 2: A project utilizing Adafruit 2.23in Monochrome OLED Bonnet for Raspberry Pi in a practical application
Raspberry Pi 4B with I2C Current Sensing and OLED Display
This circuit features a Raspberry Pi 4B as the central processing unit, interfaced with an Adafruit ADS1115 16-bit I2C ADC for analog-to-digital conversion and a 0.96" OLED display for visual output. The ADC is connected to a current sensor for measuring electrical current, with the sensor's output connected to the ADC's AIN0 pin and the burden resistor connected to AIN1. The Raspberry Pi communicates with both the ADC and the OLED display over the I2C bus, using GPIO2 (SDA) and GPIO3 (SCL) for data exchange.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Power Meter IoT: A project utilizing Adafruit 2.23in Monochrome OLED Bonnet for Raspberry Pi in a practical application
Raspberry Pi 3B with I2C Sensor Data Acquisition and OLED Display
This circuit features a Raspberry Pi 3B as the central processing unit, interfaced with an Adafruit ADS1115 16-bit ADC for analog-to-digital conversion and a 0.96" OLED display for visual output. The ADC is connected to a current sensor for measuring electrical current, and both the ADC and OLED communicate with the Raspberry Pi via the I2C protocol. The circuit is likely used for monitoring current and displaying the measurements in real-time on the OLED screen.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of dash cam: A project utilizing Adafruit 2.23in Monochrome OLED Bonnet for Raspberry Pi in a practical application
Raspberry Pi 5 Smart Sensor Hub with OLED Display and Camera
This circuit integrates a Raspberry Pi 5 with various peripherals including an OV7670 camera, a BMI160 accelerometer/gyro sensor, and a 2.42 inch OLED display. It also includes a red LED and a breadboard power supply module, enabling the Raspberry Pi to interface with the sensors and display for data acquisition and visualization.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Status display for servers or networking equipment
  • User interface for small-scale projects
  • Wearable electronic displays
  • Miniature game systems
  • Debugging tool for displaying system metrics

Technical Specifications

Key Technical Details

  • Display Type: Monochrome OLED
  • Resolution: 128x32 pixels
  • Interface: I2C
  • Operating Voltage: 3.3V (powered by Raspberry Pi)
  • Dimensions: 65mm x 30mm x 8.5mm

Pin Configuration and Descriptions

Pin Number Name Description
1 3V3 3.3V Power Supply
2 5V 5V Power Supply (Not used by OLED)
3 SDA I2C Data
4 5V 5V Power Supply (Not used by OLED)
5 SCL I2C Clock
6 GND Ground Connection

Usage Instructions

How to Use the Component in a Circuit

  1. Connecting the Bonnet: Attach the OLED Bonnet directly onto the GPIO header of the Raspberry Pi ensuring that the pins are aligned correctly.
  2. Software Setup: Install the necessary libraries and drivers to interface with the OLED display. Adafruit provides a Python library for easy integration.
  3. Programming the Display: Use the provided library functions to draw text, graphics, or animations on the display.

Important Considerations and Best Practices

  • Power Supply: Ensure that the Raspberry Pi's power supply is sufficient to power both the Pi and the OLED Bonnet.
  • I2C Address: The default I2C address for the display is usually 0x3C. Make sure that no other devices on the I2C bus have the same address.
  • Library Compatibility: Always use the latest version of the Adafruit library for the OLED Bonnet to ensure compatibility and access to the latest features.

Troubleshooting and FAQs

Common Issues Users Might Face

  • Display Not Lighting Up: Check the connection between the Bonnet and the Raspberry Pi. Ensure that the I2C interface is enabled in the Raspberry Pi's configuration settings.
  • Garbled or No Display: Verify that the correct I2C address is being used in your code. Also, check for any conflicting devices on the I2C bus.
  • Dim Display: Adjust the contrast settings in your code. If the issue persists, check the power supply for adequate voltage and current.

Solutions and Tips for Troubleshooting

  • Ensure Proper Installation: Double-check that the Bonnet is properly seated on the Raspberry Pi's GPIO header.
  • Check I2C Connection: Use i2cdetect command to verify that the Raspberry Pi is detecting the OLED Bonnet.
  • Update Libraries: Make sure you have the latest Adafruit Python libraries installed.

FAQs

Q: Can I use this display with other single-board computers?

A: While designed for the Raspberry Pi, it may be possible to use this display with other single-board computers that support I2C, provided you have the correct software drivers.

Q: How do I install the Adafruit Python library for the OLED Bonnet?

A: You can install the Adafruit Python library using the following commands:

sudo pip3 install adafruit-circuitpython-ssd1306

Q: Can I display images on the OLED Bonnet?

A: Yes, you can display bitmap images, but they need to be converted to a monochrome format suitable for the display's resolution.

Q: How do I control the brightness of the display?

A: The brightness (also known as contrast) can be controlled programmatically through the Adafruit library functions.

For further assistance, refer to the Adafruit forums or the community support channels for the Raspberry Pi.