The Adafruit 0.56 inch 7-segment LED Backpack Blue is a user-friendly module designed to drive 7-segment LED displays with minimal effort and maximum efficiency. This component is ideal for projects requiring numerical output, such as clocks, counters, and readouts for sensors. The onboard controller chip handles all the complex multiplexing, allowing for simple serial communication with any microcontroller, such as an Arduino UNO.
Pin | Function | Description |
---|---|---|
GND | Ground | Connect to system ground |
VCC | Power | Connect to 5V power supply |
SDA | Data | I2C data line |
SCL | Clock | I2C clock line |
GND
pin to the ground of your power supply.VCC
pin to a 5V output from your power supply.SDA
and SCL
pins to the corresponding I2C pins on your microcontroller (e.g., A4 and A5 on an Arduino UNO).#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LEDBackpack.h>
Adafruit_7segment matrix = Adafruit_7segment();
void setup() {
matrix.begin(0x70); // Initialize the display with its I2C address
}
void loop() {
matrix.print(1234, DEC); // Display the number 1234
matrix.writeDisplay(); // Refresh the display with new data
delay(500); // Wait for half a second
}
i2cdetect
utility or similar to confirm the device's address on the I2C bus.Q: Can I use this display with a 3.3V system? A: While the display is designed for 5V, it may work at 3.3V with reduced brightness. However, this is not officially supported, and level shifting for I2C lines may be necessary.
Q: How do I change the I2C address? A: Solder the address jumpers on the back of the PCB to configure the address between 0x70 and 0x77.
Q: Can I control multiple displays with one microcontroller? A: Yes, you can control up to 8 displays by setting a unique I2C address for each one.
Q: Is it possible to display letters as well as numbers? A: The 7-segment display is primarily designed for numbers, but some letters can be approximated. Refer to the Adafruit GFX library for custom character support.
For further assistance, consult the Adafruit support forums or the product's FAQ page.