The LED backpack displays are wonderfully easy to connect to the Pi. Each module type is connected the same way. The following types are covered for wiring and example code in this guide.
- 8x8 matrix
- 4-character 7-segment
- 4-character 14 segment (alphanumeric)
- bicolor matrix
- bicolor24 bar
Two digital pins for I2C (SDA and SCL) and two power pins (VCC and GND), as follows.
If you're using a red, yellow or green backpack, you can power the backpack from 3.3V which will keep the I2C levels at 3.3V. If you have a blue or white backpack, the LEDs will be dim if powered from 3.3V.
If you want them a little brighter, connect the VCC pin of the backpack to 5V. There are 10K pullups on the backpack to 5V. As long as the backpack is the only i2c device on the i2c bus with pullups to 5V this is perfectly safe for the Pi. If you have 2 or more 5V i2c devices, the 5V pullups may 'overpower' the Pi's strong 3.3v pullups, in this case you'll want to use a proper level shifter: https://www.adafruit.com/products/757
Wire up the LED backpack display to the BeagleBone Black as follows (note the image below shows a matrix display, however the wiring is the same for any backpack):
- Connect display + (power) to BeagleBone Black 3.3V or 5V power (red wire). 5V is brighter but if you have other devices on the I2C bus its better to go with 3.3V
- Connect display - (ground) to BeagleBone Black ground (black wire).
- Connect display D (data/SDA) to BeagleBone Black I2C2_SDA pin P9_20 (orange wire).
- Connect display C (clock/SCL) to BeagleBone Black I2C2_SCL pin P9_19 (purple wire).
- If there's a Vi2c or IO pin, connect that to 3.3V as well
Note that the BeagleBone Black has two I2C interfaces and this wiring will use the/dev/i2c-1 interface. Make sure there aren't any device tree overlays loaded which use these I2C pins for other purposes. The default BeagleBone Black device tree configuration with no overlays loaded will expose the necessary I2C interface for the wiring above.
Page last edited March 08, 2024
Text editor powered by tinymce.