The Adafruit 14-Segment LED Alphanumeric Backpack is a versatile and easy-to-use display module capable of showing alphanumeric characters with high visibility thanks to its pure green LEDs. This module is ideal for adding a readable interface to any microcontroller project, including clocks, counters, and message displays. The I2C interface simplifies connectivity, allowing multiple displays to be controlled with just two pins.
Pin | Description |
---|---|
GND | Ground connection |
VCC | Power supply (2.3V to 5.5V) |
SDA | I2C data line |
SCL | I2C clock line |
GND
pin to the ground of your microcontroller.VCC
pin to a 2.3V to 5.5V power supply.SDA
and SCL
pins to the I2C data and clock lines on your microcontroller.#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_LEDBackpack.h>
Adafruit_AlphaNum4 alpha4 = Adafruit_AlphaNum4();
void setup() {
alpha4.begin(0x70); // Initialize the display with the I2C address 0x70
}
void loop() {
alpha4.writeDigitAscii(0, 'A'); // Display 'A' on the first digit
alpha4.writeDigitAscii(1, 'd'); // Display 'd' on the second digit
alpha4.writeDigitAscii(2, 'a'); // Display 'a' on the third digit
alpha4.writeDigitAscii(3, 'F'); // Display 'F' on the fourth digit
alpha4.writeDisplay(); // Send the data to the display
delay(1000); // Wait for a second
}
i2cdetect
utility or similar tools to confirm that the display is detected on the I2C bus.Q: Can I use this display with a 3.3V system? A: Yes, the display operates from 2.3V to 5.5V, making it compatible with both 3.3V and 5V systems.
Q: How many of these displays can I chain together? A: You can chain up to eight displays together, each with a unique I2C address set by the solder jumpers.
Q: Do I need to install any libraries to use this display with an Arduino?
A: Yes, you will need to install the Adafruit_GFX
and Adafruit_LEDBackpack
libraries, which are available through the Arduino Library Manager.
Q: Can I display special characters or symbols? A: The 14-segment display can show a wide range of characters and symbols. Check the library documentation for supported characters.