pulsarsync-core
motivation
Radio astronomy is one of those fields where the gap between the signal and the science is almost entirely software and signal processing. Pulsars emit in regular pulses that can drift by microseconds — detecting them requires careful timing and filtering. I wanted to implement a real detection pipeline on real hardware, not in Python on a laptop.
what it does
A real-time dual-core signal processing pipeline for pulsar detection running on the RP2040 Cortex-M0+ microcontroller. Core 0 handles signal acquisition and a Spectral Kurtosis RFI mitigation filter, core 1 runs the phase-folding and matched-filter detection pipeline. A host-side SDR-appliance mode ingests real VITA-49 UDP packet streams and serves a live web dashboard for verifying the pipeline without hardware; the on-target build is emulated via QEMU for CI.
technical detail
The RP2040's dual-core architecture without an OS requires explicit use of the SIO hardware spinlocks and FIFO for inter-core communication — core 0 pushes candidate pulse timestamps to the FIFO, core 1 reads them and runs the dispersion-measure correction. Measured on real hardware: 45 microsecond core-to-core handoff latency, a 220 microsecond fixed-point 512-point FFT, and zero ring-buffer overflow across the benchmark run — all tracked in the repo's metrics registry, not just claimed.