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

PCB and software for driving an 8x8 matrix of common anode RGB LED's.
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.
PCB and software for driving an 8x8 matrix of RGB LED's.
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.
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.
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.
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.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 8 | 2R2 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R9, R10, R11, R12, R13, R14, R15, R16 |
| 8 | 33R | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1, R2, R3, R4, R5, R6, R7, R8 |
| 8 | 91R | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R17, R18, R19, R20, R21, R22, R23, R24 |
| 4 | 0.1u | Capacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mm | C1, C2, C3, C4 |
| 4 | 74HC595 | Package_DIP:DIP-16_W7.62mm | U1, U2, U3, U4 |
| 2 | Conn_01x16_Socket | Connector_PinSocket_2.54mm:PinSocket_1x16_P2.54mm_Vertical | J1, J2 |
| 1 | Conn_01x05 | Connector_JST:JST_PH_S5B-PH-K_1x05_P2.00mm_Horizontal | J3 |
| 1 | LOGO | LOGO | G*** |

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

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

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.

electroniceel/protoboard
Advanced protoboard layout with 1.27mm pitch for smd parts

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



It measures 81.3 × 76.2 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask 1-max-1 before reusing the design.