The Adafruit HT16K33 Breakout is a versatile LED matrix driver module designed to control a 16x8 matrix, totaling 128 LEDs. It utilizes the HT16K33 chip to manage individual LED states, offering an I2C interface for communication with microcontrollers such as Arduino, Raspberry Pi, and others. This breakout is ideal for creating digital signage, gaming displays, or any project requiring a bright, customizable LED array.
Pin Number | Name | Description |
---|---|---|
1 | GND | Ground connection |
2 | VCC | Power supply (4.5V to 5.5V) |
3 | SDA | I2C data line |
4 | SCL | I2C clock line |
5-12 | ADDR | Address selection pins (A0-A6) |
#include <Wire.h>
#include "Adafruit_LEDBackpack.h"
Adafruit_8x16matrix matrix = Adafruit_8x16matrix();
void setup() {
matrix.begin(0x70); // Initialize the matrix with the I2C address
matrix.setBrightness(10); // Set brightness level (0 is dim, 15 is bright)
}
void loop() {
matrix.clear(); // Clear the matrix display
matrix.setCursor(0, 0); // Set cursor at top-left corner
matrix.print("Hello"); // Print "Hello" on the matrix
matrix.writeDisplay(); // Update the display with the new data
delay(2000); // Wait for 2 seconds
}
Ensure that the Adafruit LED Backpack library is installed in your Arduino IDE before uploading this code to your Arduino UNO.
setBrightness()
or check the power supply voltage.begin()
function.i2cdetect
tool or similar to confirm the device's I2C address.Q: Can I chain multiple HT16K33 breakouts together? A: Yes, you can connect multiple devices on the same I2C bus with different addresses.
Q: How do I change the I2C address of the breakout? A: Solder the appropriate combination of ADDR jumpers to set the desired address.
Q: What is the maximum number of LEDs that can be controlled with one HT16K33 breakout? A: The breakout can control up to 128 LEDs arranged in a 16x8 matrix.
Q: Can the HT16K33 breakout be used with a 3.3V system? A: Yes, the logic level is 3.3V tolerant, but ensure that VCC is within the specified range.
For further assistance, consult the Adafruit HT16K33 Breakout forums or contact technical support.