Skip to the content
2 layers81.3 × 76.2 mmRgb matrix pcb, the printed circuit board in 3D

Rgb matrix pcb

1-max-1/rgb-matrix1

PCB and software for driving an 8x8 matrix of common anode RGB LED's.

Size
81.3 × 76.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
36
Nets
65
Pads
157
Tracks, vias
369, 7
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
25 Jun 2024
Updated
4 Jan 2025

Overview

Rgb matrix pcb is an open-source printed circuit board by 1-max-1, from the 1-max-1/rgb-matrix repository on GitHub. It is a 2-layer board of 81.3 × 76.2 mm with 36 parts on 65 nets, routed with 369 tracks and 7 vias.

It is built around the 74HC595. Its parts include 24 resistors, 4 capacitors, 4 ICs and 3 connectors. It belongs with the lEDs and displays boards and the ESP32 boards of this library.

Main components

1

README

README.md

RGB Matrix

PCB and software for driving an 8x8 matrix of RGB LED's.

top_view side_view

When digging through my pile of old electronics components I came across an LED matrix that I purchased many years ago. I was never able to get it working at the time, especially since I was using a breadboard and about a billion jumper cables (this matrix on a breadboard is an awful experience, would not recommend). I decided to try again now that I have acquired new skills and improved my old ones.

The software is a standard PlatformIO project, see the relevant folders for code. The PCB is a KiCAD project located in the rgb-matrix-pcb folder.

Electronics

The circuit consists of four 8-bit shift registers chained together (along with some decoupling capacitors and resistors for the LED's). The shift registers are driven through SPI. The SPI lines are routed to a JST connector, so the PCB can communicate with a microcontroller. The first 3 shift registers control the cathodes of the R, G and B LED's. Each pin is assigned to one row. The final shift register is connected to the common anode of the LED's, with each pin assigned to one column. The matrix can then be driven with multiplexing by scanning through each column and briefly illuminating the desired rows. Persistence of Vision will take care of the rest.

Note: There are far better ways to implement this idea. There are more modern and efficient IC's that are designed specifically for this task. However, I wanted to do it my way and use the four 74hc595 shift registers because they are the same ones I tried to use on my original attempt. I wanted to finally get them working, just because I can.

I did not want to solder the matrix directly to the PCB (this turned out to be a lifesaving desicion later on), instead there are 2 rows of header pins. The matrix connects to these and sits on top of the PCB like a shield.

The transistor board

I made a few mistakes. The biggest was that I completely overestimated the amount of current that the shift resgister pins could source and sink. For some reason I thought it would be enough to drive an entire row of LED's. I was wrong. Again, there are IC's like constant current shift registers that address this problem. Rather than redesign the PCB and wait for it to be manufactured again, I printed a little shelf with holes that fit 8 BJT's. I then did a little bit of hacky soldering so that the connection to the LED matrix is first routed to the transistors, which amplify the current before connecting back to the matrix.

Software

The software is intended to be run on ESP32, it is untested for other boards. It uses hardware SPI to communicate with the matrix board. It operates by turning on each column of the matrix, one at a time. The desired rows for each column are then enabled. The LED's are then turned off and the cycle repeats with the next row. If done fast enough, the human eye will percieve the LED's as being constantly illuminated. One of the ESP32 hardware timers is used to control the cycle speed. With this method, brightness control can be achieved by not illuminating a row for some number of scan cycles.

Some display patterns have been programmed in, the current pattern can be cycled by activating the touch sensor on GPIO 13.

Parts

36
QtyValueFootprintReferences
82R2Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR9, R10, R11, R12, R13, R14, R15, R16
833RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2, R3, R4, R5, R6, R7, R8
891RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR17, R18, R19, R20, R21, R22, R23, R24
40.1uCapacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mmC1, C2, C3, C4
474HC595Package_DIP:DIP-16_W7.62mmU1, U2, U3, U4
2Conn_01x16_SocketConnector_PinSocket_2.54mm:PinSocket_1x16_P2.54mm_VerticalJ1, J2
1Conn_01x05Connector_JST:JST_PH_S5B-PH-K_1x05_P2.00mm_HorizontalJ3
1LOGOLOGOG***

Similar boards

  • 2 layers45.7 × 31.8 mmLEDx16 board, the printed circuit board in 3D

    LEDx16 board

    tardate/LittleArduinoProjects

    a collection of "Little Electronic & Arduino Projects", most involving electronics or an Arduino in one way or another!

    36 parts803MIT
  • 2 layers228.6 × 100 mmMongus48, the printed circuit board in 3D

    Mongus48

    ChrisChrisLoLo/beyblock20

    The magnetic, modular, 20-key macropad that can join together to form an ortholinear board

    124 parts335GPL-3.0
  • 2 layers245.1 × 160 mm8-Bit CPU 32k, the printed circuit board in 3D

    8-Bit CPU 32k

    slu4coder/Minimal-64x4-Home-Computer

    My DIY TTL home computer with VGA and PS/2 and 4x the processing power of a Commodore C64 or Apple II.

    139 parts326
  • 2 layers100 × 95.1 mmProtoboard-6x4-breakout, the printed circuit board in 3D

    Protoboard-6x4-breakout

    electroniceel/protoboard

    Advanced protoboard layout with 1.27mm pitch for smd parts

    4,745 parts311CC-BY-4.0
  • 4 layers140 × 100 mmDc usv, the printed circuit board in 3D

    Dc usv

    TobleMiner/DC-UPS

    A small DC UPS, designed to keep small appliances like consumer network equipment running during power outages

    351 parts223CERN-OHL-P-2.0
  • 2 layers100.5 × 218.3 mmTraktorino, the printed circuit board in 3D

    Traktorino

    silveirago/traktorino

    The open-source DIY MIDI Controller for DJs.

    96 parts220
  • 2 layers287.8 × 126.7 mmNoName, the printed circuit board in 3D

    NoName

    AlaaSaadAbdo/battoota

    Keyboards

    267 parts188
  • 2 layers100 × 100 mmTommyPROM32-595, the printed circuit board in 3D

    TommyPROM32-595

    TomNisbet/TommyPROM

    Simple Arduino-based EEPROM programmer

    36 parts187

Questions

How big is the Rgb matrix pcb PCB?

It measures 81.3 × 76.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Rgb matrix pcb use?

36 parts, built around the 74HC595. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Rgb matrix pcb KiCad files?

From the 1-max-1/rgb-matrix repository on GitHub, at the commit this page was made from: the board is rgb-matrix-pcb/rgb-matrix-pcb.kicad_pcb and its schematic rgb-matrix-pcb/currentAmp.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Rgb matrix pcb design in my own project?

Its repository states no licence, so its author keeps all rights: ask 1-max-1 before reusing the design.