The Adafruit Charlieplex 9x16 Warm White LED Matrix is a compact and versatile display component that consists of 144 individually controllable warm white LEDs. This LED matrix utilizes the charlieplexing technique to enable control over each LED with a minimal number of microcontroller pins. It is ideal for creating eye-catching displays, indicators, and animations in projects where space is at a premium and power consumption needs to be minimized.
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) |
Power Connections: Connect the VCC pin to your power supply (3.3V - 5V) and the GND pin to the ground.
I2C Connections: Connect the SDA and SCL pins to the corresponding I2C data and clock lines on your microcontroller, such as an Arduino UNO.
Address Selection: The ADDR pin can be connected to GND or VCC to select between two I2C addresses. This allows for two matrices to be used on the same I2C bus.
Programming: Use the provided library and example code to control the LEDs.
#include <Wire.h>
#include <Adafruit_IS31FL3731.h>
// Create the LED driver object
Adafruit_IS31FL3731 matrix = Adafruit_IS31FL3731();
void setup() {
Wire.begin(); // Start I2C
if (!matrix.begin()) { // Initialize the LED driver
Serial.println("IS31FL3731 not found");
while (1);
}
Serial.println("IS31FL3731 found!");
}
void loop() {
matrix.fillScreen(0); // Clear the display buffer
// Draw a diagonal line
for (int i = 0; i < 9; i++) {
matrix.drawPixel(i, i, 50); // Set brightness to 50 out of 255
}
matrix.writeDisplay(); // Update the display with the buffer content
delay(500);
}
Q: Can I use this matrix with a 3.3V microcontroller? A: Yes, the matrix can operate at 3.3V, but ensure that the I2C logic levels are compatible.
Q: How many of these matrices can I chain together? A: You can chain two matrices together on the same I2C bus by using different addresses set by the ADDR pin.
Q: What library should I use to control the matrix? A: The Adafruit_IS31FL3731 library is recommended for controlling the matrix with an Arduino.
Q: Can I control the brightness of individual LEDs? A: Yes, each LED's brightness can be controlled individually using the library's functions.