The receiver had locked onto a digital station at 1 MHz. The speaker was still silent. Getting from lock=AFCSM to an audible tone turned out to be the most interesting part of building a radio out of a microcontroller.
DRM30 is Digital Radio Mondiale for the broadcast bands below 30 MHz. It fits digital audio into channels as narrow as 9 or 10 kHz and can carry xHE-AAC. This experiment puts it on medium wave, right in familiar AM territory. DRM Consortium
Where's the radio chip?
There isn't one. The small receiver design uses WCH's CH32H417WEU6, an 8 × 8 mm QFN with a 400 MHz QingKe V5F core and a 12-bit ADC. A few passives AC-couple the RF and bias it near mid-supply. The ADC takes it from there. A timer paces conversions, DMA moves the samples, and the V5F does the radio work. The signal chain is running on a CH32H417 bench board today. WCH datasheet
At 1.25 MS/s, the 1 MHz signal aliases to a 250 kHz image. The digital mixer selects the negative-frequency image and puts it at complex baseband, in the correct spectral orientation. That preserves both sides of the DRM channel. After decimation, the DREAM receiver handles OFDM synchronization, Wiener channel estimation and error correction. An embedded FFmpeg decoder turns the xHE-AAC into 48 kHz PCM. For listening, I²S and DMA feed a PCM5102A line-out DAC. PCM5102A datasheet
A station on the bench
We got local DRM30 transmission working on a HackRF One clone. DecDRM builds the centered DRM waveform, FDK-AAC handles xHE-AAC encoding in the test transmitter, and the HackRF sends it at 1 MHz. An attenuated coax connection gives us a repeatable signal for checking the receiver. DecDRM on the PC also serves as a reference decoder for the recorded I/Q. DecDRM
The receiver delivered an 80-second live USB audio capture with zero missing samples and zero I/Q or audio input overruns. That was a strong, cabled signal. Weak-signal sensitivity and CPU headroom are the next measurements I care about.
The $5 part
LCSC listed the CH32H417WEU6 at $3.35 and the bare PCM5102A at $1.57 each when I checked. The pair costs $4.92 in single quantities and $4.26 per receiver at ten of each, leaving about 74 cents for passives at that tier. The $5 figure is a target for the receiver electronics. PCB fabrication, shipping, antenna, speaker and bench gear are separate. MCU pricing at LCSC, DAC pricing at LCSC
Prototype details

Statistics
TX:
❯ ./scripts/tx-hackrf-am.sh
Finished `release` profile [optimized + debuginfo] target(s) in 0.25s
Running `target/release/decdrm tx /home/user/repos/DecDRM/examples/station-tx-hack-rf-am.toml`
mode B / 10 kHz (SO 3), MSC 16-QAM protection 0, SDC 4-QAM, long interleaving
MSC 582 bytes per frame (11.65 kbit/s), SDC 37 bytes per super frame
stream 0: 582 bytes (11.64 kbit/s) part B - service 0 "DecDRM Test": xHE-AAC mono, 48 kHz (12 kHz core), encoder 10.00 kbit/s
hackrf: 1.0000 MHz (LO 1.2500 MHz + IF -250 kHz), 2 Msps, TX gain 47 dB, resampler fast
hackrf: 1.0000 MHz (LO 1.2500 MHz, IF -250 kHz), 2 Msps, TX gain 47 dB, resampler fast
occupied band: 995.2..1004.8 kHz
[ 5.2s] output -15.0 dBFS rms, -3.1 dBFS peak, 0 clipped; SDC 27/37 bytes, time 2026-12-03 14:03 UTC
hackrf: 4.2 s transmitted, 1.0 s buffered
service 0 000042 "DecDRM Test" 11.64 kbit/s: xHE-AAC mono, 48 kHz (12 kHz core), input -15.0 dBFS
[ 10.0s] output -15.0 dBFS rms, -1.4 dBFS peak, 0 clipped; SDC 27/37 bytes, time 2026-12-03 14:03 UTC
hackrf: 9.0 s transmitted, 1.0 s buffered
service 0 000042 "DecDRM Test" 11.64 kbit/s: xHE-AAC mono, 48 kHz (12 kHz core), input -15.0 dBFS
[ 15.2s] output -15.0 dBFS rms, -2.7 dBFS peak, 0 clipped; SDC 27/37 bytes, time 2026-12-03 14:03 UTC
hackrf: 14.2 s transmitted, 1.0 s buffered
service 0 000042 "DecDRM Test" 11.64 kbit/s: xHE-AAC mono, 48 kHz (12 kHz core), input -15.0 dBFS
[ 20.0s] output -15.0 dBFS rms, -3.0 dBFS peak, 0 clipped; SDC 27/37 bytes, time 2026-12-03 14:03 UTC
hackrf: 19.0 s transmitted, 1.0 s buffered
service 0 000042 "DecDRM Test" 11.64 kbit/s: xHE-AAC mono, 48 kHz (12 kHz core), input -15.0 dBFS
[ 25.2s] output -15.0 dBFS rms, -3.0 dBFS peak, 0 clipped; SDC 27/37 bytes, time 2026-12-03 14:03 UTC
hackrf: 24.2 s transmitted, 1.0 s buffered
service 0 000042 "DecDRM Test" 11.64 kbit/s: xHE-AAC mono, 48 kHz (12 kHz core), input -15.0 dBFS
[ 30.0s] output -15.0 dBFS rms, -3.8 dBFS peak, 0 clipped; SDC 27/37 bytes, time 2026-12-03 14:03 UTC
hackrf: 29.0 s transmitted, 1.0 s buffered
RX:
PROFILE_HOST seconds=42117.060345712
PROFILE_META version=4 stages=30 core_hz=400000000 adc_blocks=116858 bank_samples=1000 sample_rate_hz=1250000
PROFILE stage=input calls=7006 kcycles=5573143 kavg=795 kmax=3241
PROFILE stage=input-resample calls=0 kcycles=0 kavg=0 kmax=0
PROFILE stage=frequency-sync calls=7006 kcycles=662921 kavg=94 kmax=5559
PROFILE stage=time-sync calls=7006 kcycles=532896 kavg=76 kmax=1358
PROFILE stage=ofdm-fft calls=7006 kcycles=1398121 kavg=199 kmax=4634
PROFILE stage=pilot-sync calls=7006 kcycles=268628 kavg=38 kmax=482
PROFILE stage=channel-estimate calls=7006 kcycles=6248950 kavg=891 kmax=7040
PROFILE stage=cell-demap calls=7006 kcycles=313984 kavg=44 kmax=651
PROFILE stage=fac-sdc-msc calls=7006 kcycles=3909942 kavg=558 kmax=32650
PROFILE stage=split calls=7006 kcycles=61583 kavg=8 kmax=378
PROFILE stage=utilize calls=7006 kcycles=7418350 kavg=1058 kmax=21810
PROFILE stage=audio-worker calls=0 kcycles=0 kavg=0 kmax=0
PROFILE stage=pcm-output calls=5207 kcycles=11045 kavg=2 kmax=318
PROFILE stage=fec-metric calls=732 kcycles=1176539 kavg=1607 kmax=3376
PROFILE stage=fec-deinterleave calls=732 kcycles=275567 kavg=376 kmax=562
PROFILE stage=fec-viterbi calls=732 kcycles=1533236 kavg=2094 kmax=4300
PROFILE stage=fec-reencode calls=328 kcycles=763270 kavg=2327 kmax=3145
PROFILE stage=chan-time-interpolate calls=2690 kcycles=2469886 kavg=918 kmax=5289
PROFILE stage=chan-time-track calls=2672 kcycles=907838 kavg=339 kmax=941
PROFILE stage=chan-freq-interpolate calls=2672 kcycles=1290755 kavg=483 kmax=1103
PROFILE stage=chan-equalize calls=2672 kcycles=1165460 kavg=436 kmax=980
PROFILE stage=chan-snr-stats calls=2672 kcycles=316436 kavg=118 kmax=497
PROFILE stage=audio-module calls=6218 kcycles=7287455 kavg=1171 kmax=21802
PROFILE stage=xhe-codec calls=777 kcycles=6677180 kavg=8593 kmax=16609
PROFILE stage=audio-post calls=0 kcycles=0 kavg=0 kmax=0
PROFILE stage=msc-interleave calls=0 kcycles=0 kavg=0 kmax=0
PROFILE stage=msc-demux calls=1321 kcycles=31000 kavg=23 kmax=245
PROFILE stage=graph-init calls=3 kcycles=2911 kavg=970 kmax=2521
PROFILE stage=rf-input-wait calls=40411 kcycles=10774064 kavg=266 kmax=320
PROFILE stage=pcm-wait calls=0 kcycles=0 kavg=0 kmax=0
DRM seq=437 boot=0 fault=0x00000000 first=0x00000000/0 iqr=0 iqwhy=idle/idle/0 afdef=0 fecdef=3967 acq=162/1/6000 rf=1000000 lock=AFCSM bw=9u fs=1250k snr=21.41 mer=19.79 wm=19.80 wf=20.66 msc=171/3/0/3/4/5/169/169/0/4656 aov=0 aud=169/166/777/772/6447616/0 svc=0 adc=116857000/116857/0 dm=0x00000000 ar=1250000 av=2033/2086/2064/0 iv=-312/128/-124/264 ddc=4487304/0/0/80176 dc=1/1035247572 ds=0/0/0 iq=4483840/4386/3010 iqq=3464 pcm=0/0/0/0/0/6480384 pc=0 pout=1/00000000 pa=0/0 pq=0/0 pmax=0/0 cpu=991/9 xhe=777/8593539/16609832 dh=272144/272704/30400/0/0 hfail=0/0/00000000 fh=0/0/0/0 stack=8464 wd=437/0 result=0 v3=0/0/0/0x00000000/0/0 io=0/1/1 us=105931/12/2/6 usb_drop=67 event_drop=0 cfifo=0/0 xhp=169/166/0/3/0/23908/582/4656 ucap=1/2993408/0
DRM seq=449 boot=0 fault=0x00000000 first=0x00000000/0 iqr=0 iqwhy=idle/idle/0 afdef=0 fecdef=4101 acq=162/1/6000 rf=1000000 lock=AFCSM bw=9u fs=1250k snr=21.38 mer=19.62 wm=19.62 wf=21.44 msc=177/3/0/3/4/5/175/175/0/4656 aov=0 aud=175/172/805/803/6701568/0 svc=0 adc=119810000/119810/0 dm=0x00000000 ar=1250000 av=2038/2091/2064/0 iv=-212/120/-180/132 ddc=4600700/0/0/80176 dc=1/1171095447 ds=0/0/0 iq=4597760/4386/3051 iqq=2940 pcm=0/0/0/0/0/6701568 pc=0 pout=1/00000000 pa=0/0 pq=0/0 pmax=0/0 cpu=982/18 xhe=804/8591360/16609832 dh=271616/272704/30400/0/0 hfail=0/0/00000000 fh=0/0/0/0 stack=8464 wd=449/0 result=0 v3=0/0/0/0x00000000/0/0 io=0/1/1 us=109858/12/2/6 usb_drop=67 event_drop=0 cfifo=0/0 xhp=175/172/0/3/0/23908/582/4656 ucap=1/3104768/0
DRM seq=465 boot=0 fault=0x00000000 first=0x00000000/0 iqr=0 iqwhy=idle/idle/0 afdef=0 fecdef=4299 acq=162/1/6000 rf=1000000 lock=AFCSM bw=9u fs=1250k snr=21.38 mer=19.63 wm=19.65 wf=19.93 msc=186/3/0/3/4/5/184/184/4656/4656 aov=0 aud=183/180/842/841/7012864/0 svc=0 adc=124055000/124055/0 dm=0x00000000 ar=1250000 av=2035/2085/2066/0 iv=-132/184/-108/224 ddc=4763708/0/0/80176 dc=1/1366328283 ds=0/0/0 iq=4761600/4386/3102 iqq=2108 pcm=0/0/0/0/0/7012864 pc=0 pout=1/00000000 pa=0/0 pq=0/0 pmax=0/0 cpu=726/274 xhe=842/8589289/16609832 dh=271472/272704/30400/0/0 hfail=0/0/00000000 fh=0/0/0/0 stack=8464 wd=465/0 result=0 v3=0/0/0/0x00000000/0/0 io=0/1/1 us=115342/12/2/6 usb_drop=67 event_drop=0 cfifo=0/0 xhp=183/180/0/3/0/19881/582/4656 ucap=1/3260416/0
Cheaper audio with Everest Semiconductor
The ES8311 is a mono codec for a single-speaker receiver. The ES8389 is the stereo option, with differential analog outputs. For either part, we can use just the playback side and feed it the existing 48 kHz PCM over I²S. The board needs the correct audio clocks and output circuit, and firmware sets up the codec over I²C. ES8311 datasheet, ES8389 datasheet
| Playback part | LCSC unit price | With one CH32H417WEU6 |
|---|---|---|
| ES8311 | $0.56 | $3.91 |
| ES8389 | $0.90 | $4.24 |
Totals use LCSC's unrounded single-unit prices. The bench build uses the PCM5102A. These two codecs are options for a cheaper board revision.