The Adafruit Charlieplex 9x16 Green is a compact and versatile LED matrix driver board designed to control a 9x16 grid of green LEDs, totaling 144 individual LEDs. This board utilizes the Charlieplexing technique to enable control of many LEDs with a minimal number of microcontroller pins. It is ideal for creating dynamic displays, animations, and indicators for projects where space and pin count are at a premium.
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 | Address selection pin (connect to GND or VCC to change address) |
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 SDA and SCL pins on your microcontroller (e.g., Arduino UNO).
Address Selection: If using multiple Charlieplex boards, solder the ADDR pin to select different I2C addresses from 0x70 to 0x77.
Programming: Use the Adafruit LED Backpack library to control the LED matrix via the I2C interface.
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LEDBackpack.h>
Adafruit_9x16CharlieplexedMatrix matrix = Adafruit_9x16CharlieplexedMatrix();
void setup() {
matrix.begin(0x70); // Start the matrix with I2C address 0x70
}
void loop() {
matrix.clear(); // Clear the matrix display
matrix.drawPixel(0, 0, LED_ON); // Turn on the LED at (0,0)
matrix.writeDisplay(); // Update the display with the changes
delay(500);
matrix.drawPixel(0, 0, LED_OFF); // Turn off the LED at (0,0)
matrix.writeDisplay(); // Update the display with the changes
delay(500);
}
Ensure that the Adafruit LED Backpack library is installed in your Arduino IDE before uploading this code to your Arduino UNO.
Q: Can I use this board with a 3.3V system? A: Yes, the board is compatible with both 3.3V and 5V systems.
Q: How many of these boards can I chain together? A: You can chain up to 8 boards together, each with a unique I2C address.
Q: Do I need external resistors for the LEDs? A: No, the board has built-in resistors for current limiting.
Q: Can I control individual LED brightness? A: The board does not support individual LED brightness control, but you can achieve PWM-like effects through software by rapidly turning LEDs on and off.
For further assistance, consult the Adafruit support forums or the product's official documentation.