

Apollo - DSP
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
2MCP602-I/P
PDIP-8-40℃~+85℃ 1pA 1pA 2 2.3V/us 2.5uV/℃ 2.7V~6V 2.8MHz 22mA 230uA 29nV/√Hz@1kHz 700uV 90dB Built-in compensation、ESD protection Rail-to-rail output PDIP-8 Operational Amplifier ROHSMicrochip TechnologyOperational AmplifierUSBLC6-2SC6
SOT-23-60.35pF、0.8pF 100nA 150W@8/20us 15V 2 5V 6A@8/20us 6V ESD SOT-23-6 ESD and Surge Protection (TVS/ESD) ROHSUMWESD And Surge Protection (TVS/ESD)
README
README.mdAPOLLO 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.

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
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
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
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.
| Command | Purpose |
|---|---|
help | Print command summary. |
status | Print sample count, channel, filter, demo, calibration, storage, and error counters. |
filter bypass | Disable 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 1 | Select ADC channel 0 or 1. |
demo off|sine|step|impulse | Use real ADC input or synthetic samples. |
telemetry on|off | Enable or disable periodic telemetry frames. |
calibrate clear | Restore 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:
T,timestamp_ms,sequence,channel,raw_adc,filtered,dac_code,filter,flagsExample:
T,1200,57,0,1820,1784.42,1784,lowpass,0x00000000Flags report clipping, demo source, filter errors, ADC errors, DAC errors, and SRAM logging errors.
Repository Layout
| Path | Purpose |
|---|---|
Apollo - DSP.kicad_pro | Main KiCad project. |
Apollo - DSP.kicad_sch, Analog.kicad_sch, DSP.kicad_sch | Hardware schematics. |
Apollo - DSP.kicad_pcb | PCB 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
- Open STM32CubeIDE.
- Import
Software/Apollo - DSP/as an existing STM32CubeIDE project. - Build the Debug or Release configuration.
- Flash/debug over the SWD header using an ST-LINK compatible probe.
- Open the USB CDC virtual COM port with a serial terminal.
- Send
help,status, ordemo sineto 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:
make -C tests/host testThe 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| Qty | Value | Footprint | References |
|---|---|---|---|
| 20 | 100n | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C4, C15, C16, C17, C18, C19, C21, C26, C29, C30, C31, C32, C34, C36, C37, C39 +4 |
| 9 | 10u | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C1, C2, C3, C5, C8, C13, C14, C20, C23 |
| 8 | 5k1 | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R4, R5, R9, R10, R16, R18, R19, R21 |
| 4 | 10k | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R6, R7, R22, R23 |
| 4 | 160R | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R13, R14, R17, R20 |
| 3 | 1M | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R11, R12, R15 |
| 3 | 1n | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C33, C35, C38 |
| 3 | Conn_01x04 | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J2, J3, J6 |
| 3 | TestPoint | TestPoint:TestPoint_Pad_D1.0mm | TP1, TP2, TP3 |
| 2 | 10p | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C24, C25 |
| 2 | 1k | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R1, R8 |
| 2 | 5.1k | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R2, R3 |
| 2 | MCP602 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U7, U8 |
| 1 | 1.5k | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R13 |
| 1 | 100R@100MHz | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | FB1 |
| 1 | 10R | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R24 |
| 1 | 16MHz | Crystal:Crystal_SMD_2520-4Pin_2.5x2.0mm | Y1 |
| 1 | 220u | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C7 |
| 1 | 23K256 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U5 |
| 1 | 500mA | Fuse:Fuse_0603_1608Metric_Pad1.05x0.95mm_HandSolder | F1 |
| 1 | 8u8 | Inductor_SMD:L_0603_1608Metric_Pad1.05x0.95mm_HandSolder | L1 |
| 1 | Conn_01x06 | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | J5 |
| 1 | Green | LED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolder | D2 |
| 1 | MCP4725xxx-xCH | Package_TO_SOT_SMD:SOT-23-6 | U6 |
| 1 | MEM2067-02-180-00-A_REVB | SnapEda:GCT_MEM2067-02-180-00-A_REVB | J4 |
| 1 | NCP115ASN330T2G | NCP115ASN330T2G:NCP115ASN330T2G | U1 |
| 1 | RST | Button_Switch_SMD:SW_SPST_TL3342 | RESET1 |
| 1 | Red | LED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolder | D1 |
| 1 | STM32F401RBTx | Package_QFP:LQFP-64_10x10mm_P0.5mm | U4 |
| 1 | USBLC6-2SC6 | Package_TO_SOT_SMD:SOT-23-6_Handsoldering | U3 |
| 1 | USB_C_Receptacle_USB2.0 | Connector_USB:USB_C_Receptacle_Palconn_UTC16-G | J1 |
Similar boards
- 2 layers101.8 × 52.5 mm

- 2 layers308.7 × 241.8 mm

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 mm

- 4 layers71.1 × 94 mm

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 mm

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 mm

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 mm

- 4 layers147.8 × 65 mm

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.