Skip to the content
4 layers71.9 × 55 mmApollo - DSP, the printed circuit board in 3D

I designed and manufactured an STM32F4-based DSP, featuring a microSD card slot, 8 Mbit of external RAM, two 12-bit analog inputs, one 12-bit analog output, and a fully functional USB-C connector for communicating data to a host computer for Data Acquisition (DAQ) or further processing.

Size
71.9 × 55 mm
Copper layers
4
Thickness
1.61 mm
Parts
83
Nets
92
Pads
296
Tracks, vias
538, 259
Pours
24
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
27 Jan 2023
Updated
17 Oct 2026

Overview

Apollo - DSP is an open-source printed circuit board by Tommy270502, from the Tommy270502/APOLLO_digital-signal-processor repository on GitHub. It is a 4-layer board of 71.9 × 55 mm with 83 parts on 92 nets, routed with 538 tracks and 259 vias.

It is built around the MCP602-I/P and USBLC6-2SC6. Its parts include 35 capacitors, 25 resistors, 7 ICs, 6 connectors and 2 diodes. It belongs with the STM32 boards of this library.

Main components

2

README

README.md

APOLLO Digital Signal Processor

APOLLO is a USB-powered STM32F401 digital signal-processing board and firmware case study. The repository combines KiCad hardware design, STM32CubeIDE firmware, external analog and memory devices, host-side tests for reusable C logic, and validation notes for hardware-dependent behavior.

APOLLO front side APOLLO back side

What This Demonstrates

  • STM32F401 firmware architecture with CubeMX-generated code kept separate from hand-written application logic.
  • USB CDC command and telemetry interface for live DSP configuration.
  • Two-channel analog input support, external I2C DAC output, and SPI SRAM circular sample logging.
  • Embedded-friendly DSP filters with fixed buffers and parameter validation.
  • Clear distinction between implemented, host-tested, and hardware-validation required features.

System Overview

mermaid
flowchart LR
    Host["PC serial monitor"] <-- "USB CDC" --> USB["USB-C + ESD"]
    USB --> MCU["STM32F401RBTx\n84 MHz Cortex-M4F"]
    AIN["AIN0 / AIN1"] --> Analog["MCP602 analog conditioning"]
    Analog --> ADC["ADC1 CH0 / CH1"]
    ADC --> MCU
    MCU -- "I2C1 PB6/PB7" --> DAC["MCP4725-family\n12-bit I2C DAC"]
    DAC --> AOUT["Analog output"]
    MCU -- "SPI1 PA5/PA6/PA7" --> SRAM["23K256\n32 KiB SPI SRAM"]
    MCU -- "SPI1 + SD_nCS" --> SD["microSD socket\nfirmware unsupported"]
    MCU --> SWD["SWD debug"]
    MCU --> UART["USART1 header"]

Firmware Architecture

mermaid
flowchart TD
    Main["main.c\nHAL + CubeMX init"] --> App["app/apollo_app"]
    App --> ADC["platform/apollo_adc\nbounded polling"]
    App --> USB["platform/apollo_usb_cdc\nRX line buffer + TX wrapper"]
    App --> Chain["app/apollo_signal_chain"]
    Chain --> DSP["dsp/dsp_filters"]
    App --> DAC["drivers/dac_driver"]
    App --> Store["app/apollo_storage"]
    Store --> SRAM["drivers/sram_23k256"]
    App --> Tel["app/apollo_telemetry"]
    App --> Diag["app/apollo_diagnostics"]
    App --> CLI["app/apollo_cli"]

main.c now performs HAL initialization, CubeMX peripheral initialization, and then calls apollo_app_init() and apollo_app_task(). Application behavior is kept under Software/Apollo - DSP/Core/Inc/* and Software/Apollo - DSP/Core/Src/*.

Signal Pipeline

mermaid
flowchart LR
    Source{"Source"} -->|ADC CH0/CH1| Raw["raw ADC"]
    Source -->|demo mode| Raw
    Raw --> Cal["offset/gain calibration"]
    Cal --> Filter["runtime DSP filter"]
    Filter --> Clamp["DAC saturation handling"]
    Clamp --> DAC["I2C DAC write"]
    Filter --> Telemetry["USB CDC telemetry"]
    Clamp --> Log["SPI SRAM circular log"]
    Raw --> Diagnostics["min/max/mean/errors"]

Default firmware behavior preserves the original demo path: ADC channel 0 is sampled, a 1 kHz first-order low-pass filter is applied, the result is written to the external DAC, telemetry is streamed over USB CDC, and compact sample records are written to external SRAM when the SRAM self-test passes.

USB Commands

Commands are sent over the USB CDC virtual COM port with newline termination.

CommandPurpose
helpPrint command summary.
statusPrint sample count, channel, filter, demo, calibration, storage, and error counters.
filter bypassDisable filtering.
filter lowpass <hz>First-order low-pass IIR.
filter highpass <hz>First-order high-pass IIR.
filter ema <alpha>Exponential moving average, 0 < alpha <= 1.
filter average <n>Moving average, up to 16 samples.
filter median <n>Median filter, up to 9 samples.
input 0 / input 1Select ADC channel 0 or 1.
demo off|sine|step|impulseUse real ADC input or synthetic samples.
telemetry on|offEnable or disable periodic telemetry frames.
calibrate clearRestore unity ADC/DAC scaling.
calibrate adc <gain> <offset>Set ADC input calibration (gain 0.01-100, offset +/-4095).
calibrate dac <gain> <offset>Set DAC output calibration (gain 0.01-100, offset +/-4095).

Telemetry

Sample frames use this CSV format:

text
T,timestamp_ms,sequence,channel,raw_adc,filtered,dac_code,filter,flags

Example:

text
T,1200,57,0,1820,1784.42,1784,lowpass,0x00000000

Flags report clipping, demo source, filter errors, ADC errors, DAC errors, and SRAM logging errors.

Repository Layout

PathPurpose
Apollo - DSP.kicad_proMain KiCad project.
Apollo - DSP.kicad_sch, Analog.kicad_sch, DSP.kicad_schHardware schematics.
Apollo - DSP.kicad_pcbPCB layout.
Gerber/Fabrication outputs.
pictures/Board images.
datasheets/Local component datasheets.
Software/Apollo - DSP/STM32CubeIDE firmware project.
tests/host/Host-buildable tests for pure C logic.
docs/Technical documentation and validation notes.

See REPOSITORY_STRUCTURE.md for more detail.

Build And Flash

  1. Open STM32CubeIDE.
  2. Import Software/Apollo - DSP/ as an existing STM32CubeIDE project.
  3. Build the Debug or Release configuration.
  4. Flash/debug over the SWD header using an ST-LINK compatible probe.
  5. Open the USB CDC virtual COM port with a serial terminal.
  6. Send help, status, or demo sine to verify the command path.

Generated Debug/ and Release/ folders are intentionally not tracked. STM32CubeIDE regenerates them locally.

Host Tests

Host tests cover pure logic that does not require STM32 HAL or board hardware:

sh
make -C tests/host test

The tests exercise DSP filter behavior, command parsing, telemetry formatting, diagnostics, calibration/clipping math, and signal-chain demo paths.

Validation Status

  • Host tests pass on Windows 11 / MSYS2 / GCC 15.2.0 (2026-05-27).
  • Firmware Debug and Release builds pass with 0 errors (STM32CubeIDE 2.0.0, arm-none-eabi-gcc 14.3.1, 2026-05-27).
  • Hardware-dependent behavior requires board validation: ADC channel accuracy, DAC output voltage, SRAM SPI timing, and USB behavior under sustained traffic.
  • microSD hardware is present, but firmware support is explicitly unsupported until a real SPI block-device and filesystem implementation is added.

See docs/validation.md for the full validation checklist.

Engineering Highlights

  • CubeMX-generated code is preserved and hand-written application code is moved into reviewable modules.
  • Peripheral failures no longer force infinite retry loops in application code.
  • Runtime filter selection and demo sources make the board demonstrable without external analog equipment.
  • Documentation states validation limits instead of claiming untested hardware support.

Future Work

  • Move ADC acquisition to timer-triggered DMA with overrun accounting.
  • Add real microSD support using a validated SPI block-device layer and FatFs.
  • Add fixture-based hardware tests for DAC linearity, ADC channel calibration, SRAM retention, and USB throughput.
  • Add optional firmware CI if a reproducible STM32 toolchain image is adopted.

Parts

83
QtyValueFootprintReferences
20100nCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC4, C15, C16, C17, C18, C19, C21, C26, C29, C30, C31, C32, C34, C36, C37, C39 +4
910uCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC1, C2, C3, C5, C8, C13, C14, C20, C23
85k1Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR4, R5, R9, R10, R16, R18, R19, R21
410kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR6, R7, R22, R23
4160RResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR13, R14, R17, R20
31MResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR11, R12, R15
31nCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC33, C35, C38
3Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2, J3, J6
3TestPointTestPoint:TestPoint_Pad_D1.0mmTP1, TP2, TP3
210pCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC24, C25
21kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR1, R8
25.1kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR2, R3
2MCP602Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU7, U8
11.5kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR13
1100R@100MHzResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderFB1
110RResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR24
116MHzCrystal:Crystal_SMD_2520-4Pin_2.5x2.0mmY1
1220uCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC7
123K256Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU5
1500mAFuse:Fuse_0603_1608Metric_Pad1.05x0.95mm_HandSolderF1
18u8Inductor_SMD:L_0603_1608Metric_Pad1.05x0.95mm_HandSolderL1
1Conn_01x06Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ5
1GreenLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD2
1MCP4725xxx-xCHPackage_TO_SOT_SMD:SOT-23-6U6
1MEM2067-02-180-00-A_REVBSnapEda:GCT_MEM2067-02-180-00-A_REVBJ4
1NCP115ASN330T2GNCP115ASN330T2G:NCP115ASN330T2GU1
1RSTButton_Switch_SMD:SW_SPST_TL3342RESET1
1RedLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD1
1STM32F401RBTxPackage_QFP:LQFP-64_10x10mm_P0.5mmU4
1USBLC6-2SC6Package_TO_SOT_SMD:SOT-23-6_HandsolderingU3
1USB_C_Receptacle_USB2.0Connector_USB:USB_C_Receptacle_Palconn_UTC16-GJ1

Similar boards

  • 2 layers101.8 × 52.5 mmMax2-dac, the printed circuit board in 3D

    Max2-dac

    dilshan/max2-audio-dac

    24-bit Stereo Audio DAC for Raspberry Pi

    158 parts61MIT
  • 2 layers308.7 × 241.8 mmOTTOtact, the printed circuit board in 3D

    OTTOtact

    cester-ino/OTTO-hardware

    those specs refer to the tactile buttons version, but a led backlight button version is in the works too.

    229 parts49GPL-3.0
  • 2 layers89.3 × 55 mmAmpcontrol f103, the printed circuit board in 3D

    Ampcontrol f103

    WiseLord/ampcontrol-f103

    Ampcontrol port on STM32F103CBT6

    71 parts40
  • 4 layers71.1 × 94 mmIpotcas, the printed circuit board in 3D

    Ipotcas

    SuperTails/ipotcas

    IP over Tin Can and String - Connecting to the internet over two tin cans and a piece of string

    75 parts12
  • 2 layers187.3 × 109.5 mmZ80RP2350b, the printed circuit board in 3D

    Z80RP2350b

    kysilv/z80-rp2350b-zx-compatible

    Retrocomputer compatible with ZX Spectrum based on real Z80 + discrete RAM/ROM + rp2350b as ULA

    131 parts9GPL-3.0
  • 2 layers100 × 100 mmBLDC STM32 proto 1, the printed circuit board in 3D

    BLDC STM32 proto 1

    g-rahul/Sensored-3-P-BLDC-Closed-Loop-V1

    This Firmware was developed as an extension of Ti's Sensored close-loop BLDC motor control using MSP430. Ti's application firmware for MSP430 has been modified for STM32F103 Series MCU's.

    131 parts5
  • 2 layers245.6 × 85.9 mmMycelium pcb, the printed circuit board in 3D

    Mycelium pcb

    microresearch/mycelium

    134 parts5GPL-3.0
  • 4 layers147.8 × 65 mmPrius gen2, the printed circuit board in 3D

    Prius gen2

    ksmola/PriusG2

    Inverter control board for Toyota Prius Gen 2 (XW20) inverter. Some of the schematics are based on Johannes Huebner's work found here. Running openinverter firmware.

    149 parts3

Questions

How big is the Apollo - DSP PCB?

It measures 71.9 × 55 mm and has 4 copper layers, 1.61 mm thick.

What parts does the Apollo - DSP use?

83 parts, built around the MCP602-I/P and USBLC6-2SC6. 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 Apollo - DSP KiCad files?

From the Tommy270502/APOLLO_digital-signal-processor repository on GitHub, at the commit this page was made from: the board is Apollo - DSP.kicad_pcb and its schematic Analog.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Apollo - DSP design in my own project?

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