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

Reactive LED matrix music visualizer: Arduino + 74HC595 multiplexed display driven in real time by laptop-side MP3 audio analysis over serial
Spectrum analyzer is an open-source printed circuit board by VinayBhagavath, from the VinayBhagavath/LEDMusicVisualizer repository on GitHub. It is a 2-layer board of 61.5 × 50.3 mm with 16 parts on 23 nets, routed with 124 tracks and 0 vias.
It is built around the 74HC595. Its parts include 6 diodes, 5 resistors, 2 transistors, 1 capacitor and 1 IC. It belongs with the lEDs and displays and audio and music boards and the AVR (ATmega, ATtiny) boards of this library.
A 6-LED (2 row × 3 column) matrix driven by an Arduino Uno R3, reacting live to an MP3 played from a laptop — no microphone involved. The laptop analyzes the actual audio data as it plays and streams a volume level to the Arduino over serial, which displays it as a bar graph across the matrix.
Originally built and verified on a breadboard, then redesigned as a custom 2-layer PCB in KiCad for a permanent build. Both versions use identical Arduino pin connections and the exact same code.
| Signal | Arduino Pin | Notes |
|---|---|---|
| 74HC595 RCLK (latch) | D11 | ST_CP / chip pin 12 |
| 74HC595 SRCLK (clock) | D12 | SH_CP / chip pin 11 |
| 74HC595 SER (data) | D10 | DS / chip pin 14 |
| Row 1 transistor base | D2 | via 1kΩ resistor |
| Row 2 transistor base | D3 | via 1kΩ resistor |
| Column | 74HC595 output |
|---|---|
| Column 1 | Q1 (bit 1) |
| Column 2 | Q2 (bit 2) |
| Column 3 | Q3 (bit 3) |
Q0 is unused — not a problem, just means that output pin isn't wired to anything.
The display uses multiplexing: since the shift register can only hold one
column pattern at a time, each row is lit for a couple of milliseconds and
cycled fast enough (~250Hz) that persistence of vision makes both rows look
lit simultaneously. This logic lives in refreshDisplay() in the Arduino
sketch and doesn't change regardless of what's driving the pattern — hardcoded
test frames, or live audio, both just write into the same grid[][] array.
Pipeline:
play_and_visualize.py loads an MP3, plays it through your speakers, and
in ~50ms chunks computes the volume (RMS) of the audio as it plays.music_visualizer.ino reads that byte and lights that many LEDs as a
left-to-right bar (both rows per column), using the existing multiplexed
display loop.music_visualizer.ino — Arduino sketch. Upload this to the board.play_and_visualize.py — Laptop script. Plays the audio and sends
levels over serial.spectrum_analyzer.kicad_sch / .kicad_pcb / .kicad_pro — KiCad
project files for the PCB (schematic, board layout, project).spectrum_analyzer.csv — Bill of materials exported from KiCad.gerber/ — Manufacturing files (Gerbers + drill files) submitted to
JLCPCB for fabrication.music_visualizer.ino via the Arduino IDE. pip install pydub numpy pyaudio pyserial brew install ffmpeg # macOSThis can take 10–20+ minutes on a first install since it pulls in a long
chain of codec dependencies — that's normal, not a hang. If a fresh
terminal still can't find ffmpeg/ffprobe after install, run
source ~/.zshrc (or your shell's config file) to refresh your PATH.
3. In play_and_visualize.py, set:
MP3_PATH to your audio fileSERIAL_PORT to your Arduino's port (find it via ls /dev/tty.* on
macOS/Linux, or Device Manager on Windows, while the board is plugged in) python play_and_visualize.pyThese were used to confirm the hardware before wiring up audio, and are worth re-running if something stops working:
CHUNK_MS in the Python script controls responsiveness: smaller values
react faster but look jumpier, larger values look smoother but laggier.The breadboard circuit was redesigned as a 2-layer through-hole PCB in KiCad and ordered from JLCPCB, keeping the circuit itself unchanged — same components, same values, same Arduino pins — just moved onto a fixed board instead of a breadboard. The only addition is a 100nF bypass capacitor across the 74HC595's power pins, standard practice for a permanent board that wasn't strictly necessary on the breadboard version.
Back of the populated board, showing solder joints:

Full setup — Arduino wired to the PCB via J1:

| J1 pin | Signal | Arduino Pin |
|---|---|---|
| 1 | Row 1 transistor base | D2 |
| 2 | Row 2 transistor base | D3 |
| 3 | 74HC595 SER (data) | D10 |
| 4 | 74HC595 RCLK (latch) | D11 |
| 5 | 74HC595 SRCLK (clock) | D12 |
| 6 | +5V | 5V |
| 7 | GND | GND |
Music-reactive LEDs running on the finished PCB:
https://github.com/user-attachments/assets/d333de99-bf11-4e3e-b501-384f226c006d
| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | LED | LED_THT:LED_D5.0mm | LED1, LED2, LED3, LED4, LED5, LED6 |
| 3 | 220 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical | R1, R2, R3 |
| 2 | 1k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P5.08mm_Vertical | R4, R5 |
| 2 | 2N2222 | Package_TO_SOT_THT:TO-92_Inline | Q1, Q2 |
| 1 | 100n | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mm | C1 |
| 1 | 74HC595 | Package_DIP:DIP-16_W7.62mm | U1 |
| 1 | Arduino_Uno | Connector_PinHeader_2.54mm:PinHeader_1x07_P2.54mm_Vertical | J1 |

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 61.5 × 50.3 mm and has 2 copper layers, 1.6 mm thick.
16 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 VinayBhagavath/LEDMusicVisualizer repository on GitHub, at the commit this page was made from: the board is spectrum_analyzer.kicad_pcb and its schematic spectrum_analyzer.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 VinayBhagavath before reusing the design.