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

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 PiDesign 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!
Image of Raspberry Pi 4B-Based Current Monitoring System with I2C OLED Display: 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.

Open Project in Cirkit Designer
Image of Raspberry Pi 4B with I2C Current Sensing and OLED Display: 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.

Open Project in Cirkit Designer
Image of Raspberry Pi 4B-based Current Monitoring System with OLED Display: A project utilizing Adafruit 2.23in Monochrome OLED Bonnet for Raspberry Pi in a practical application
Raspberry Pi 4B-based Current Monitoring System with OLED Display

This circuit features a Raspberry Pi 4B as the central processing unit, interfaced with an ADS1115 analog-to-digital converter (ADC) and a 0.96" OLED display via I2C communication (using GPIO2 and GPIO3 for SDA and SCL, respectively). The ADS1115 is connected to two current sensors: a generic current sensor and an ACS712, to measure current and report values to the Raspberry Pi, which can display the data on the OLED. Power is distributed from the Raspberry Pi's 5V pin to the other components, and all components share a common ground.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

Key Technical Details

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

Troubleshooting and FAQs

Common Issues Users Might Face

Solutions and Tips for Troubleshooting

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.