Adafruit RGB Matrix + Real Time Clock HAT for Raspberry Pi
Created by lady ada
Last updated on 2018-10-04 09:39:28 PM UTC
Guide Contents
Guide Contents
Overview
Pinouts
I2C / RTC pins
5V protection circuitry and backpower diode
Matrix Drive pins
Matrix Color Pins
Matrix Control pins
RGB Matrix Address pins
2
3
6
6
6
7
8
8
8
Assembly
Solder on Headers and Terminal Block
And Solder!
10
10
12
64x64 Matrices: Solder “E” Jumper
Driving Matrices
Step 1. Plug HAT/Bonnet into Raspberry Pi
Step 2. Connect Matrix Power cable to terminal block
Step 3. Connect RGB Matrix Data cable to IDC
Step 4. Power up your Pi via MicroUSB (optional but suggested)
Step 5. Plug in the 5V DC power for the Matrix
Check that the Matrix plugs are installed and in the right location
Step 6. Log into your Pi to install and run software
Testing the Examples
The demos kinda run, but I’m seeing weird rectangles and glitches.
22
24
24
25
27
29
29
30
31
33
34
Using the Python Library
Using the RTC
HELP!
I'm using a Raspberry Pi 2 and things are all not working right!
The matrix flashes on and off when in use
34
36
37
37
37
Downloads
Datasheets
Schematic
Fabrication Print
38
38
38
38
© Adafruit Industries
https://learn.adafruit.com/adafruit-rgb-matrix-plus-real-time-clock-hat-for-raspberry-pi
Page 2 of 39
Overview
You can now create a dazzling display with your Raspberry Pi with the Adafruit RGB Matrix HAT or Bonnet. These
boards plug into your Pi and makes it super easy to control RGB matrices such as those we stock in the
shop and create a colorful scrolling display or mini LED wall with ease.
The RGB Matrix HAT works on any Raspberry Pi with a 40-pin GPIO header — Zero, Zero W/WH, Model A+, B+, Pi 2
and Pi 3. It
does not work
with older 26-pin boards like the original Model A or B. Note with the Pi Zero you may need
to solder a header on the Pi board; it’s normally unpopulated on that model (except the “Zero WH”).
© Adafruit Industries
https://learn.adafruit.com/adafruit-rgb-matrix-plus-real-time-clock-hat-for-raspberry-pi
Page 3 of 39
This HAT is our finest to date, full of some really great circuitry. Let me break it down for you:
Simple design - plug in power, plug in IDC cable, run our Python code!
Power protection circuitry - you can plug a 5V 4A wall adapter into the HAT and it will automatically protect
against negative, over or under-voltages! Yay for no accidental destruction of your setup.
Onboard level shifters to convert the RasPi's 3.3V to 5.0V logic for clean and glitch free matrix driving
DS1307 Real Time Clock can keep track of time for the Pi even when it is rebooted or powered down, to make
for really nice time displays
© Adafruit Industries
https://learn.adafruit.com/adafruit-rgb-matrix-plus-real-time-clock-hat-for-raspberry-pi
Page 4 of 39
Works with any of our
16x32, 32x32 or 32x64 RGB LED Matrices with HUB75 connections
(https://adafru.it/emd).
The
latest “Rev C” HAT also supports 64x64 matrices by soldering a small jumper on the PCB. You can even chain multiple
matrices together for a longer display - we've only tested up to 32x128 but it works just fine. The bigger the display the
harder it is on the Pi, so keep that in mind if you're using a lower-powered Pi Zero.
Please note: this HAT is only for use with HUB75 type RGB Matrices. Not for use with NeoPixel, DotStar, or other
'addressable' LEDs.
Each order comes with a HAT PCB with all surface mount parts assembled, a 2x20 female socket connector, a 2 pin
terminal block, and a 2x8 IDC socket connector.
A CR1220 coin cell is not included to make air shipping easier, please
order one seperately
(https://adafru.it/em8)
if you do not have one and would like to use the real time clock.
RGB Matrix is not included, please check out our fine selection
(https://adafru.it/emd)!
A 5V power supply is also required, not included, for power the matrix itself, the Pi cannot do it, to calculate the
power, multiply the width of all the chained matrices * 0.12 Amps : A 32 pixel wide matrix can end up drawing 32*0.12 =
3.85A so
pick up a 5V 4A power supply
(https://adafru.it/e50).
Raspberry Pi not included
(but we have 'em in the shop so pick one up, Model A+, B+, Pi 2 or Pi
3)
(https://adafru.it/eme)
Some light soldering is required to attach the headers to your Pi. A soldering iron and solder are required, but it’s a
simple soldering job and most beginners can do it in about 15 minutes.
© Adafruit Industries
https://learn.adafruit.com/adafruit-rgb-matrix-plus-real-time-clock-hat-for-raspberry-pi
Page 5 of 39