Skip to the content
4 layers20.3 × 99.1 mmProton, the printed circuit board in 3D

Chromatone is an embedded audio visualizer running on the Raspberry Pi RP2350. It samples audio through the ADC, performs a real-time FFT, detects musical notes, and drives an RGB LED output based on the results.

Size
20.3 × 99.1 mm
Copper layers
4
Thickness
1.6 mm
Parts
119
Nets
155
Pads
539
Tracks, vias
1,215, 142
Pours
12
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
24 Oct 2025
Updated
17 Aug 2026

Overview

Proton is an open-source printed circuit board by ewyrick-mark-1, from the ewyrick-mark-1/Chromatone repository on GitHub. It is a 4-layer board of 20.3 × 99.1 mm with 119 parts on 155 nets, routed with 1,215 tracks and 142 vias.

It is built around the RP2040, SN74AUP1T17DCKR-TP and W25Q128JVSIQ, with the USBLC6-2P6, AP2112K-3.3 and ABM8-272-T3 among its other parts. Its parts include 42 capacitors, 35 resistors, 10 ICs, 7 connectors and 5 diodes. It belongs with the RP2040 and RP2350 boards of this library.

Main components

7

README

README.md

Chromatone

Author: Elliot Wyrick

Overview

Chromatone is an embedded audio visualizer running on the Raspberry Pi RP2350. It samples audio through the ADC, performs a real-time FFT, detects musical notes, and drives an RGB LED output based on the results.

Demo video:

Watch the demo

Hardware

  • MCU: Raspberry Pi RP2350 (overclocked to 300 MHz)
  • Input: Analog microphone on ADC channel 0 (GPIO 40)
  • Output: RGB LED via PWM on GPIO 37–39
  • Schematics/PCB: KiCad project files located in KiCad/

How It Works

Audio is captured at 20 kHz using DMA ping-pong buffers. Each buffer triggers a 16384 point FFT with 50% overlap and a Hanning window applied. Detected frequency peaks are mapped to MIDI notes (A0–C8), and the corresponding hue is output to the RGB LED.

Two display modes are available (toggled via display_mode in main.c):

  • Mode 0: Logarithmic frequency spectrum
  • Mode 1: Musical note detection

Color Math

Each of the 12 chromatic notes is assigned a fixed hue evenly spaced around the color wheel (360° / 12 = 30° per note), with C at 0° (red) through B at 330° (pink).

Detected peaks are converted to a note index using the standard MIDI formula:

text
n = 12 × log₂(f / 440) + 69

When multiple notes are detected simultaneously, their hues are blended using a circular weighted average- each hue is converted to a unit vector on the color wheel, weighted by FFT magnitude, and the vectors are summed:

text
x = Σ( cos(hue_i) × weight_i )
y = Σ( sin(hue_i) × weight_i )
blended_hue = atan2(y, x)

This handles wraparound correctly (e.g. blending 10° and 350° yields 0°, not 180°).

The blended hue is then smoothed over time using an exponential moving average on the shortest angular path (15% per frame) to avoid jarring color jumps between notes.

Finally, the smoothed hue is converted from HSV (full saturation and brightness) to RGB via the standard piecewise HSV→RGB formula and output as an 8-bit PWM duty cycle on each channel.

Build & Flash

This project uses PlatformIO with the Proton board target.

text
pio run
pio run --target upload

Serial monitor at 115200 baud:

text
pio device monitor

Alternativly, and what I used during development, the platform IO extension works well. It provides gui upload and monitor buttons.

Parts

119
QtyValueFootprintReferences
26100nCapacitor_SMD:C_0402_1005MetricC3, C11, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, C23, C28, C29, C30 +10
91kResistor_SMD:R_0402_1005MetricR3, R4, R7, R8, R12, R14, R15, R17, R20
6100Resistor_SMD:R_0402_1005MetricR24, R25, R26, R27, R28, R29
55.1kResistor_SMD:R_0402_1005MetricR1, R2, R6, R18, R19
410uCapacitor_SMD:C_0805_2012MetricC4, C7, C12, C26
415pCapacitor_SMD:C_0402_1005MetricC1, C2, C24, C25
427Resistor_SMD:R_0402_1005MetricR9, R10, R21, R22
32kResistor_SMD:R_0402_1005MetricR13, R30, R32
3470Resistor_SMD:R_0402_1005MetricR23, R31, R33
3LOGOLOGOG***, G***, G***
210kResistor_SMD:R_0402_1005MetricR34, R35
210uCapacitor_SMD:C_0603_1608MetricC27, C32
21uCapacitor_SMD:C_0402_1005MetricC31, C34
24.7uCapacitor_SMD:C_0402_1005MetricC9, C10
24.7uRP2350_80QFN_minimal:C_0402_1005Metric_small_padsC5, C6
2ABM8-272-T3Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1, Y2
2BAT60JFILMBAT60JFILM:CR_60JFILM_STMCR1, CR2
2Conn_01x28_PinConnector_PinHeader_2.54mm:PinHeader_1x28_P2.54mm_VerticalJ2, J4
2GREENDiode_SMD:D_0402_1005MetricD2, D4
2GREENLED_SMD:LED_0805_2012MetricPD2, UD3
2REDLED_SMD:LED_0805_2012MetricPD1, UD1
2SN74AUP1T17DCKRSN74AUP1T17DCKR:DCK5U7, U8
2USBLC6-2P6Package_TO_SOT_SMD:SOT-666U9, U10
2USB_C_Receptacle_USB2.0_14PConnector_USB:USB_C_Receptacle_G-Switch_GT-USB-7010ASVJ1, J5
2YELLOWDiode_SMD:D_0402_1005MetricD3, D5
13.3uRP2350_80QFN_minimal:L_pol_2016L1
133Resistor_SMD:R_0402_1005MetricR5
13kResistor_SMD:R_0402_1005MetricR11
1510Resistor_SMD:R_0402_1005MetricR16
1AP2112K-3.3Package_TO_SOT_SMD:SOT-23-5U5
1BLUELED_SMD:LED_0805_2012MetricUD4
1BOOTSELButton_Switch_SMD:SW_SPST_PTS647_Sx38SW1
1Conn_02x03_Top_BottomConnector_PinSocket_2.54mm:PinSocket_2x03_P2.54mm_VerticalJ6
1DebugnBootConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1LEFTButton_Switch_SMD:SW_SPST_PTS647_Sx38SW3
1LOGOlogos:purdue-smallG***
1LOGOlogos:362-smallG***
1NCP1117-3.3_SOT223Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1REDDiode_SMD:D_0402_1005MetricD1
1RESETButton_Switch_SMD:SW_SPST_PTS647_Sx38SW2
1RIGHTButton_Switch_SMD:SW_SPST_PTS647_Sx38SW4
1RP2040DebugProbe:RP2040-QFN-56U6
1RP2350_80QFNRP2350_80QFN_minimal:RP2350-QFN-80-1EP_10x10_P0.4mm_EP3.4x3.4mm_ThermalViasU3
1UART-PINSConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ7
1W25Q128JVSPackage_SO:SOIC-8_5.23x5.23mm_P1.27mmU1
1W25Q16JVUXIQ TRW25Q16JVUXIQ:USON-8_UX_2x3x0p6_WINU4
1YELLOWLED_SMD:LED_0805_2012MetricUD2

Similar boards

  • 4 layers81.7 × 100.6 mmFinal Project PCB, the printed circuit board in 3D

    Final Project PCB

    ndesserich/ECE-36200-Final-Project-PCB

    A PCB that integrates an RP2350 and various peripherals to play games.

    80 parts1
  • 2 layers77.5 × 85.5 mmBT Audio Player PCB, the printed circuit board in 3D

    BT Audio Player PCB

    MAGG4444/BT_Audio_Player_PCB

    Bluetooth-enabled audio player PCB for wireless audio playback and easy device integration.

    69 parts
  • 4 layers92.8 × 57.2 mmProton, the printed circuit board in 3D

    Proton

    PurdueECE-362-SSTV-Project/SSTV-Hardware

    This repo contains the SCHEM and PCB files for the SSTV Receiver.

    105 parts
  • 4 layers85.1 × 100.5 mmOnboard pcb, the printed circuit board in 3D

    Onboard pcb

    rober708/BIRD-E

    The Bounded Infrared Recording Drone Ecosystem (BIRD-E) is a tethered quadcopter with an attached infrared camera, with livestream functionality and XBOX ground control. Senior design capstone at Purdue ECE.

    103 parts
  • 6 layers76.8 × 160.6 mmScopefun v3, the printed circuit board in 3D

    Scopefun v3

    J1DDERY/data_sampling

    405 parts
  • 2 layers149 × 224 mmGDEK, the printed circuit board in 3D

    GDEK

    GilDev/GDEK

    Low-profile, compact, beginner-friendly, assembly-friendly 4×6 with 5-keys thumb cluster ergonomic keyboard with universal keyswitch support, per-key RGB LED, encoder and RP2040 controller. Phew, that’s a lot!

    324 parts3CERN-OHL-S-2.0
  • 2 layers52 × 42 mmSisyphus, the printed circuit board in 3D

    Sisyphus

    Plajta/sisyphus

    A soundboard giving voice to those who don't have it

    68 parts1
  • 4 layers70 × 72 mmSPINC AA Charger, the printed circuit board in 3D

    SPINC AA Charger

    CoretechR/SPINC

    DIY Automatic Battery Charger Using RP2040

    101 parts467GPL-3.0

Questions

How big is the Proton PCB?

It measures 20.3 × 99.1 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Proton use?

119 parts, built around the RP2040, SN74AUP1T17DCKR-TP, W25Q128JVSIQ and USBLC6-2P6. 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 Proton KiCad files?

From the ewyrick-mark-1/Chromatone repository on GitHub, at the commit this page was made from: the board is KiCad/4% possibilities/Proton-KiCAD/Proton.kicad_pcb and its schematic KiCad/4% possibilities/Proton-KiCAD/DebugProbe.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Proton design in my own project?

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