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

How to Use Adafruit Charlieplex 9x16 Cool White: Examples, Pinouts, and Specs

Image of Adafruit Charlieplex 9x16 Cool WhiteDesign with Adafruit Charlieplex 9x16 Cool White in Cirkit Designer

Introduction

The Adafruit Charlieplex 9x16 Cool White LED Matrix is a versatile and efficient electronic component designed for displaying patterns, animations, and text. With a total of 144 cool white LEDs arranged in a 9x16 grid, this LED matrix uses the charlieplexing technique to control individual LEDs with fewer I/O pins than would be possible with traditional multiplexing. This makes it an ideal choice for projects with limited GPIO availability, such as wearables, small handheld devices, and compact displays.

Explore Projects Built with Adafruit Charlieplex 9x16 Cool White

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 ESP32-Based Interactive LED Game with WS2812B LEDs and OLED Displays: A project utilizing Adafruit Charlieplex 9x16 Cool White in a practical application
ESP32-Based Interactive LED Game with WS2812B LEDs and OLED Displays

This circuit is a game system controlled by an ESP32 microcontroller, featuring 20 WS2812B LEDs, 10 arcade buttons, and two 128x64 OLED displays. The LEDs are used for visual feedback, the buttons for user input, and the displays for showing game information such as score and time. The system runs a game where players interact with the LEDs and buttons, with the ESP32 managing the game logic and user interface.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Name Description
1 GND Ground connection
2 VCC Power supply (3.3V - 5V)
3 SDA I2C Data line
4 SCL I2C Clock line
5 ADDR I2C Address selection (connect to GND or VCC)

Usage Instructions

How to Use the Component in a Circuit

  1. Power Connections: Connect the VCC pin to your power supply (3.3V - 5V) and the GND pin to the ground.
  2. I2C Connections: Connect the SDA and SCL pins to the corresponding I2C data and clock lines on your microcontroller (e.g., Arduino UNO).
  3. Address Selection: If using multiple matrices, set unique I2C addresses by connecting the ADDR pin to either GND or VCC.

Important Considerations and Best Practices

Example Code for Arduino UNO

#include <Wire.h>
#include <Adafruit_IS31FL3731.h>

// Initialize the Charlieplex matrix
Adafruit_IS31FL3731 matrix = Adafruit_IS31FL3731();

void setup() {
  Wire.begin(); // Start I2C
  matrix.begin(); // Initialize the LED matrix
}

void loop() {
  // Display a pattern on the matrix
  for (int i = 0; i < 144; i++) {
    matrix.drawPixel(i % 16, i / 16, 50); // Set brightness to 50 out of 255
    delay(100);
    matrix.drawPixel(i % 16, i / 16, 0); // Turn off the LED
  }
}

Ensure that the Adafruit_IS31FL3731 library is installed in your Arduino IDE before uploading this code to your Arduino UNO.

Troubleshooting and FAQs

Common Issues

Solutions and Tips for Troubleshooting

FAQs

Q: Can I use this matrix with a 3.3V system? A: Yes, the matrix can operate at 3.3V, but the LEDs may appear dimmer compared to a 5V supply.

Q: How many matrices can I chain together? A: You can chain multiple matrices as long as the total current does not exceed the power supply capacity and each matrix has a unique I2C address.

Q: Do I need external resistors for the LEDs? A: No, the matrix has built-in resistors for current limiting.

For further assistance, consult the Adafruit support forums or the product's official documentation.