AM/FM Receiver Molecule

A USB-powered AM/FM broadcast receiver on an Adom Molecule: the radio is discrete transistors and op-amps, and an STM32G0B1 tunes it, calibrates it, and streams the audio to a PC over the same USB-C cable that powers it and updates its firmware.

Circuit explorer

How the tuning works

This is a superhet: instead of building a filter that slides across the whole band, the radio shifts whichever station you want down to one fixed frequency, the intermediate frequency (IF), and does all its filtering and gain there. Tuning is just moving one oscillator.

1. Mix the station down to 10.7 MHz. A transistor mixer multiplies the antenna signal by a local oscillator (LO). The product contains the difference frequency, so if the LO sits exactly 10.695 MHz above the station, that station lands at 10.695 MHz and the 10.7 MHz ceramic filters pass it while rejecting its neighbours.

FM AM (medium wave)
Antenna band 87.5 to 108 MHz 530 to 1700 kHz
Before the mixer 70 MHz high-pass + 130 MHz low-pass, plus an RF amplifier whose tank tracks the station 2 MHz low-pass
Local oscillator 98.7 to 118.7 MHz (Colpitts, Q302) 11.23 to 12.4 MHz (Clapp, Q402)
First IF 10.695 MHz 10.695 MHz (AM is converted up)
Second LO 10.240 MHz crystal (Y501) the same crystal
Second IF 455 kHz 455 kHz
Detector limiter + pulse-count discriminator diode envelope detector with AGC

Example: to hear 101.1 MHz FM, the FM LO runs at 101.1 + 10.695 = 111.795 MHz; for 1010 kHz AM, the AM LO runs at 1.010 + 10.695 = 11.705 MHz. Both bands then share the same 10.7 MHz filters and the second conversion to 455 kHz (10.695 minus 10.240), where the AM filter and the FM limiter do the rest.

2. A voltage sets the oscillator frequency. Each LO resonates at f = 1 / (2π √(LC)), and part of its C is a BB910 varactor: a diode whose capacitance falls as its reverse voltage rises (35 to 45 pF at 0.5 V, 10 to 20 pF at 5 V). Raise the tuning voltage, the capacitance drops, the frequency goes up. The STM32's 12-bit DAC outputs 0 to 3.3 V, and a TLV9062 op-amp scales it by 1.45 to the 0 to 4.8 V tuning voltages VT_FM and VT_AM. On FM a third voltage, VT_RF (a filtered PWM), retunes the RF amplifier's own varactor tank to follow the station, which keeps the image 21.4 MHz above it out.

Tuning section: varactor drive op-amps, RF tracking and band switch
The tuning block: the TLV9062 varactor drivers (VTF, VTA), the RF-tracking filter (VTR) and the band switch.

3. The firmware calibrates itself. Varactors differ part to part and their curve is not linear, so the DAC code for a station is measured, not assumed. During cal the MCU puts a crystal-derived square wave (128 MHz divided by N) onto the antenna through 47 k and 100 pF; its harmonics are markers at exactly known frequencies. The firmware sweeps the DAC until the IF counter (TIM2 counting the 455 kHz IF) sees each marker, and builds a DAC to LO table from them. After every tune, AFC counts the IF for 10 ms against 455.000 kHz and trims the DAC code, so the station stays centred as the board warms up.

Top copper and silkscreen, 2DBottom copper and silkscreen, 2D, mirrored
Top copper (red) and silkscreen: one outlined block per circuit, signal flowing from the antenna (top right) to the MCU (left).Bottom copper (blue), seen from below. In1 is a ground plane and In2 carries +5VA and +3V3.
RF front endIF chain
Analog, RF: the SMA jack, the diplexer that splits AM from FM, and the FM RF amplifier, LO and mixer.Analog, IF: the 10.24 MHz crystal oscillator, the two 10.7 MHz filters, the second mixer and the 455 kHz AM filter (HCCF2).
Power sectionDigital section
Power: USB-C in, USBLC6 ESD protection, the OR-ing Schottky diodes and the polyfuse; the 3.3 V LDO sits lower in the same column.Digital: the STM32G0B1 with its 40 MHz crystal and the SWD, UART and BOOT contacts down the left edge.

Every marked part carries its part number and pin-1 dot (laser-etch artwork from its own wiki page), here and in the 3D view above; the Layers button in the 3D view switches the silkscreen, solder mask, copper, parts and part numbers.

Where the current and the heat go

Solved from the board file with Adom Fields at the radio's estimated operating point (about 85 mA from USB, FM band on; the spec is in docs/fields/spec.json). A small-signal board like this runs cool: the peak current density is 8.6 A/mm² (the screening limit is 60) and the warmest part, the OR-ing diode D105, rises 4.3 °C in still air.

Current density at the USB power entryHeat flow in the top copper
Current density, top copper, at the USB-C power entry: VBUS through the OR-ing diodes and the fuse to the +5 V rail.Heat flow in the top copper: the LDO U102, the MCU U103 and diode D105 are the only sources, each a few degrees above ambient.

Adom Fields is a DC solve (current and heat). It does not model RF or EMC behaviour, so the RF performance of the front ends is still hand-calculated (see Status). The STM32's exposed pad has nine 0.3 mm thermal vias as drilled pads in its footprint; Fields 0.6.2 counts board vias only, so they are not in its via tally.

Status

Designed and checked in KiCad 10 (ERC and DRC clean, netlist checked pin for pin against the generator), with JLCPCB fab files ready. Not built or tested yet. RF performance is hand-calculated; expect to trim tank capacitors at bring-up. The firmware is outlined below but not written yet.

Parts

All 88 BOM lines (312 parts JLC places, plus the 32 machine pins and contacts the Adom Electronics Prototyping Cloud Lab presses in) link to a wiki page with the symbol, footprint, 3D model, datasheet and the LCSC, Mouser and DigiKey numbers. Pages created for this board carry a verification log; check a page before reusing its part.

Part Qty References Value Wiki page LCSC
CL21A106KAYNNNE
CL21A106KAYNNNE
Samsung Electro-Mechanics
12 C101 C104 C212 C214 C402 C406 C503 C512 C603 C605 C701 C722 10u adom/samsung-cl21a-x5r-0805 C15850
CC0603KRX7R9BB104
CC0603KRX7R9BB104
YAGEO
35 C102 C105 C107 C110 C111 C115 C205 C209 C211 C213 C215 C311 C314 C401 C403 C404 C405 C407 C413 C504 C506 C510 C513 C604 C606 C607 C610 C615 C620 C702 C706 C709 C712 C721 C723 100n adom/cc0603-100nf C14663
CL10A105KB8NNNC
CL10A105KB8NNNC
Samsung Electro-Mechanics
13 C103 C108 C202 C204 C206 C207 C208 C210 C613 C614 C616 C716 C717 1u adom/cl10a105kb8nnnc C15849
CL21A226MAQNNNE
CL21A226MAQNNNE
Samsung Electro-Mechanics
1 C106 22u adom/samsung-cl21a-x5r-0805 C45783
0603B103K500NT
0603B103K500NT
FH (Guangdong Fenghua Advanced Tech)
14 C109 C322 C501 C505 C507 C508 C601 C602 C608 C609 C611 C705 C708 C711 10n adom/fenghua-0603-mlcc C57112
CL21A475KAQNNNE
CL21A475KAQNNNE
Samsung Electro-Mechanics
3 C114 C201 C203 4.7u adom/cl21a475kaqnnng (1) C1779
CL10C180JB8NNNC
CL10C180JB8NNNC
Samsung Electro-Mechanics
2 C116 C117 18p adom/cl10c180jb8nnnc C1647
GRM1885C1H272JA01D
GRM1885C1H272JA01D
Murata Electronics
2 C301 C302 2.7n adom/murata-grm18-gcm18-c0g-0603 C77034
CL10C470JB8NNNC
CL10C470JB8NNNC
Samsung Electro-Mechanics
5 C303 C304 C412 C707 C710 47p adom/samsung-cl10c-c0g-0603 C1671
CL10C220JB8NNNC
CL10C220JB8NNNC
Samsung Electro-Mechanics
7 C305 C306 C310 C320 C502 C509 C714 22p adom/samsung-cl10c-c0g-0603 C1653
CL10B102KB8NNNC
CL10B102KB8NNNC
Samsung Electro-Mechanics
8 C307 C308 C312 C315 C316 C619 C703 C720 1n adom/cl10b102kb8nnnc C1588
CC0603CRNPO9BN3R3
CC0603CRNPO9BN3R3
YAGEO
2 C309 C319 3.3p adom/yageo-cc0603-npo C282249
0603CG4R7C500NT
0603CG4R7C500NT
FH (Guangdong Fenghua Advanced Tech)
2 C313 C318 4.7p adom/fenghua-0603-mlcc C1669
CL10C150JB8NNNC
CL10C150JB8NNNC
Samsung Electro-Mechanics
3 C317 C410 C516 15p adom/samsung-cl10c-c0g-0603 C1644
0603CG2R2C500NT
0603CG2R2C500NT
FH (Guangdong Fenghua Advanced Tech)
1 C321 2.2p adom/fenghua-0603-mlcc C1651
CL10C101JB8NNNC
CL10C101JB8NNNC
Samsung Electro-Mechanics
4 C323 C511 C514 C713 100p adom/samsung-cl10c-c0g-0603 C14858
GCM1885C2A221JA16D
GCM1885C2A221JA16D
Murata Electronics
2 C408 C515 220p adom/murata-grm18-gcm18-c0g-0603 C388907
CC0603JRNPO9BN471
CC0603JRNPO9BN471
YAGEO
1 C409 470p adom/yageo-cc0603-npo C106211
CL10C330JB8NNNC
CL10C330JB8NNNC
Samsung Electro-Mechanics
1 C411 33p adom/samsung-cl10c-c0g-0603 C1663
0603N222J500CT
0603N222J500CT
Walsin Tech Corp
2 C612 C618 2.2n adom/0603n222j500ct C296055
CC0603JRNPO9BN472
CC0603JRNPO9BN472
YAGEO
1 C617 4.7n adom/yageo-cc0603-npo C576818
CC0603JRNPO9BN151
CC0603JRNPO9BN151
YAGEO
1 C704 150p adom/yageo-cc0603-npo C107038
CC0603JRNPO9BN152
CC0603JRNPO9BN152
YAGEO
2 C715 C718 1.5n adom/yageo-cc0603-npo C107039
CC0603JRNPO9BN681
CC0603JRNPO9BN681
YAGEO
1 C719 680p adom/yageo-cc0603-npo C107055
KT-0603R
KT-0603R
Hubei KENTO Elec
1 D104 RED barrett-land/kt-0603r C2286
B5819W SL
B5819W SL
Jiangsu Changjing Electronics Technology Co., Ltd.
2 D105 D106 B5819W adom/b5819w C8598
KT-0603G
KT-0603G
Hubei KENTO Elec
1 D201 GREEN (FM) adom/kt-0603g C12624
KT-0603Y
KT-0603Y
Hubei KENTO Elec
1 D202 YELLOW (AM) adom/kt-0603y C2287
KT-0603B
KT-0603B
Hubei KENTO Elec
1 D203 BLUE (USB/stereo) barrett-land/kt-0603b C2288
BB910
BB910
Shikues
3 D301 D302 D401 BB910 adom/bb910 C475628
BAT54WS-7-F
BAT54WS-7-F
Diodes Incorporated
2 D601 D701 BAT54WS adom/bat54ws-7-f C124205
BAT54S
BAT54S
MDD(Microdiode Semiconductor)
1 D702 BAT54S adom/bat54s (2) C408389
nSMD050-33V
nSMD050-33V
TECHFUSE
1 F101 500mA adom/nsmd050-33v C70077
GZ1608D601TF
GZ1608D601TF
Sunlord
2 FB101 FB102 600R@100MHz adom/gz1608d601tf C1002
HCCF3-10.700-LTCVS3L
HCCF3-10.700-LTCVS3L
HCI
2 FL501 FL502 HCCF3-10.700-LTCVS3L adom/hccf3-10-700-ltcvs3l C19191232
HCCF2-455.000-LTWCGL
HCCF2-455.000-LTWCGL
HCI
1 FL601 HCCF2-455.000-LTWCGL adom/hccf2-455-000-ltwcgl C19186014
TYPE-C-31-M-12
TYPE-C-31-M-12
Korean Hroparts Elec
1 J101 USB-C adom/type-c-31-m-12 C165948
BWSMA-KWE-Z001
BWSMA-KWE-Z001
BAT WIRELESS
1 J301 ANT (SMA) adom/bwsma-kwe-z001 C496551
NLV32T-2R2J-PF
NLV32T-2R2J-PF
TDK
2 L301 L303 2.2u adom/nlv32t-2r2j-pf C89016
YSCM322522-8R2J
YSCM322522-8R2J
YJYCOIN
2 L302 L401 8.2u adom/yscm322522-8r2j C52259800
LQW18AN56NG00D
LQW18AN56NG00D
Murata Electronics
1 L304 56n adom/murata-lqw18an C98079
LQW18ANR12G00D
LQW18ANR12G00D
Murata Electronics
1 L305 120n adom/murata-lqw18an C86138
LQW18ANR15G00D
LQW18ANR15G00D
Murata Electronics
1 L306 150n adom/murata-lqw18an C113131
LQW18ANR11G00D
LQW18ANR11G00D
Murata Electronics
1 L307 110n adom/murata-lqw18an C113130
MMBT3906 2A(RANGE:100-300)
MMBT3906 2A(RANGE:100-300)
Jiangsu Changjing Electronics Technology Co., Ltd.
2 Q201 Q202 MMBT3906 adom/mmbt3906 (3) C2143
MMBTH10
MMBTH10
UMW(Youtai Semiconductor Co., Ltd.)
3 Q301 Q302 Q303 MMBTH10 adom/mmbth10 C545531
MMBT3904(RANGE:100-300)
MMBT3904(RANGE:100-300)
Jiangsu Changjing Electronics Technology Co., Ltd.
12 Q401 Q402 Q403 Q501 Q502 Q503 Q602 Q604 Q605 Q701 Q702 Q703 MMBT3904 adom/mmbt3904 (4) C20526
BC847BS
BC847BS
FUXINSEMI
2 Q601 Q603 BC847BS adom/bc847bs C5380687
0603WAF5101T5E
0603WAF5101T5E
UNI-ROYAL(Uniroyal Elec)
2 R101 R102 5.1k adom/0603waf5101t5e C23186
0603WAF1002T5E
0603WAF1002T5E
UNI-ROYAL(Uniroyal Elec)
33 R103 R201 R203 R204 R205 R207 R208 R209 R210 R211 R214 R215 R217 R219 R310 R604 R605 R608 R609 R610 R614 R619 R622 R624 R625 R627 R628 R704 R708 R713 R717 R722 R723 10k adom/0603waf1002t5e C25804
0603WAF2201T5E
0603WAF2201T5E
UNI-ROYAL(Uniroyal Elec)
7 R107 R606 R611 R617 R702 R706 R710 2.2k adom/uniroyal-0603waf C4190
0603WAF2202T5E
0603WAF2202T5E
UNI-ROYAL(Uniroyal Elec)
9 R202 R206 R212 R314 R403 R409 R410 R413 R510 22k adom/0603waf2202t5e C31850
0603WAF1001T5E
0603WAF1001T5E
UNI-ROYAL(Uniroyal Elec)
7 R213 R218 R220 R225 R629 R715 R724 1k adom/0603waf1001t5e C21190
0603WAF1000T5E
0603WAF1000T5E
UNI-ROYAL(Uniroyal Elec)
1 R216 100 adom/0603waf1000t5e C22775
0603WAF2200T5E
0603WAF2200T5E
UNI-ROYAL(Uniroyal Elec)
3 R224 R226 R512 220 adom/uniroyal-0603waf C22962
0603WAF1003T5E
0603WAF1003T5E
UNI-ROYAL(Uniroyal Elec)
9 R301 R307 R313 R412 R620 R626 R712 R719 R721 100k adom/uniroyal-0603waf C25803
0603WAF560JT5E
0603WAF560JT5E
UNI-ROYAL(Uniroyal Elec)
2 R302 R406 56 adom/uniroyal-0603waf C25196
0603WAF4701T5E
0603WAF4701T5E
UNI-ROYAL(Uniroyal Elec)
5 R303 R311 R623 R714 R716 4.7k adom/0603waf4701t5e C23162
0603WAF1801T5E
0603WAF1801T5E
UNI-ROYAL(Uniroyal Elec)
1 R304 1.8k adom/uniroyal-0603waf C4177
0603WAF220JT5E
0603WAF220JT5E
UNI-ROYAL(Uniroyal Elec)
7 R305 R405 R502 R506 R514 R602 R701 22 adom/0603waf220jt5e C23345
0603WAF820JT5E
0603WAF820JT5E
UNI-ROYAL(Uniroyal Elec)
1 R306 82 adom/uniroyal-0603waf C23255
0603WAF470JT5E
0603WAF470JT5E
UNI-ROYAL(Uniroyal Elec)
5 R308 R309 R402 R408 R615 47 adom/0603waf470jt5e C23182
0603WAF3300T5E
0603WAF3300T5E
UNI-ROYAL(Uniroyal Elec)
6 R312 R501 R503 R508 R509 R616 330 adom/0603waf3300t5e C23138
0603WAF6801T5E
0603WAF6801T5E
UNI-ROYAL(Uniroyal Elec)
5 R315 R404 R414 R511 R603 6.8k adom/0603waf6801t5e C23212
0603WAF1500T5E
0603WAF1500T5E
UNI-ROYAL(Uniroyal Elec)
2 R316 R415 150 adom/uniroyal-0603waf C22808
0603WAF4702T5E
0603WAF4702T5E
UNI-ROYAL(Uniroyal Elec)
5 R317 R515 R516 R618 R711 47k adom/0603waf4702t5e C25819
0603WAF510JT5E
0603WAF510JT5E
UNI-ROYAL(Uniroyal Elec)
1 R401 51 adom/uniroyal-0603waf C23197
0603WAF4700T5E
0603WAF4700T5E
UNI-ROYAL(Uniroyal Elec)
3 R407 R705 R709 470 adom/0603waf4700t5e C23179
0603WAF1501T5E
0603WAF1501T5E
UNI-ROYAL(Uniroyal Elec)
3 R411 R513 R517 1.5k adom/uniroyal-0603waf C22843
0603WAF1502T5E
0603WAF1502T5E
UNI-ROYAL(Uniroyal Elec)
1 R504 15k adom/uniroyal-0603waf C22809
0603WAF5601T5E
0603WAF5601T5E
UNI-ROYAL(Uniroyal Elec)
1 R505 5.6k adom/uniroyal-0603waf C23189
0603WAF1200T5E
0603WAF1200T5E
UNI-ROYAL(Uniroyal Elec)
1 R507 120 adom/uniroyal-0603waf C22787
0603WAF2701T5E
0603WAF2701T5E
UNI-ROYAL(Uniroyal Elec)
1 R601 2.7k adom/uniroyal-0603waf C13167
0603WAF2001T5E
0603WAF2001T5E
UNI-ROYAL(Uniroyal Elec)
2 R607 R612 2k adom/uniroyal-0603waf C22975
0603WAF3302T5E
0603WAF3302T5E
UNI-ROYAL(Uniroyal Elec)
3 R613 R703 R707 33k adom/uniroyal-0603waf C4216
0603WAF3902T5E
0603WAF3902T5E
UNI-ROYAL(Uniroyal Elec)
1 R621 39k adom/uniroyal-0603waf C23153
0603WAF5102T5E
0603WAF5102T5E
UNI-ROYAL(Uniroyal Elec)
1 R718 51k adom/0603waf5102t5e C23196
0603WAF2003T5E
0603WAF2003T5E
UNI-ROYAL(Uniroyal Elec)
1 R720 200k adom/uniroyal-0603waf C25811
0603WAF1201T5E
0603WAF1201T5E
UNI-ROYAL(Uniroyal Elec)
1 R725 1.2k adom/uniroyal-0603waf C22765
0603WAF4301T5E
0603WAF4301T5E
UNI-ROYAL(Uniroyal Elec)
1 R726 4.3k adom/uniroyal-0603waf C23159
USBLC6-2SC6
USBLC6-2SC6
STMicroelectronics
1 U101 USBLC6-2SC6 ray/usblc6-2sc6 C7519
AP2112K-3.3TRG1
AP2112K-3.3TRG1
Diodes Incorporated
1 U102 AP2112K-3.3 adom/ap2112k-3-3trg1 C51118
STM32G0B1CCU7
STM32G0B1CCU7
STMicroelectronics
1 U103 STM32G0B1CCU7 adom/stm32g0b1ccu7 C29759424
TLV9062IDR
TLV9062IDR
Texas Instruments
4 U201 U202 U601 U701 TLV9062IDR adom/tlv9062idr C398355
SX32Y040000BC1T001
SX32Y040000BC1T001
TKD
1 Y101 40MHz adom/sx32y040000bc1t001 C337678
0132M4-10.240F12DZNG
0132M4-10.240F12DZNG
HCI
1 Y501 10.24MHz adom/0132m4-10-240f12dzng C51822681
MachineContactMedium
MachineContactMedium
Adom
28 MC1 MC2 MC3 MC4 MC5 MC6 MC7 MC8 MC9 MC10 MC11 MC12 MC13 MC14 MC15 MC16 MC17 MC18 MC19 MC20 MC21 MC22 MC23 MC24 MC25 MC26 MC27 MC28 MachineContactMedium adom/machinecontactmedium not on JLC (pressed in by the Adom Electronics Prototyping Cloud Lab)
MachinePinLargeStandard
MachinePinLargeStandard
Adom
4 MP1 MP2 MP3 MP4 MachinePinLargeStandard adom/machinepinlargestandard not on JLC (pressed in by the Adom Electronics Prototyping Cloud Lab)
  1. CL21A475KAQNNNE on adom/cl21a475kaqnnng: page is the CL21A475KAQNNNG reel variant; same part, different packaging suffix
  2. BAT54S on adom/bat54s: page is the Diodes Inc BAT54S; we order the MDD BAT54S (same SOT-23 pinout)
  3. MMBT3906 2A(RANGE:100-300) on adom/mmbt3906: page is the Diodes Inc MMBT3906; we order the CJ MMBT3906 (same SOT-23 pinout)
  4. MMBT3904(RANGE:100-300) on adom/mmbt3904: page is the Diodes Inc MMBT3904; we order the CJ MMBT3904 (same SOT-23 pinout)

Two parts to check in the JLC placement preview:

A KiCad 10 project for a USB-powered AM/FM broadcast receiver. The radio itself is built from discrete transistors (MMBTH10 / MMBT3904 / BC847BS) and TLV9062 op-amps.

An onboard STM32G0B1 does all the digital work:

Item Value
Bands FM 87.5 to 108 MHz, AM (MW) 530 to 1700 kHz
Architecture Dual-conversion superhet: 10.7 MHz first IF (both bands), 455 kHz second IF
Detectors AM: diode envelope detector with op-amp AGC. FM: diode-pump pulse-count discriminator
Tuning Varactor VCOs driven by the STM32 DACs (12-bit), digital AFC through an IF counter, and self-calibration against crystal-derived markers
Control & programming USB-C only: UAC audio, a CDC command port, and USB DFU (a blank chip boots into ROM DFU; updates need no jumper)
Interface USB-C (power, audio, control, firmware), SMA antenna, 4 LEDs. 4 grounded large Adom machine pins + 28 medium machine contacts (optional: VIN, USB, SWD/reset, UART, audio out, antenna, probes)
Debug 59 labelled test pads covering every supply rail, stage bias and signal node, plus 9 probe contacts
PCB Adom Molecule, 96 × 96 mm large-pin grid (102.5 × 102.5 mm outline), 4 layers (F.Cu signal / In1 GND / In2 +5VA & +3V3 / B.Cu signal), JLCPCB rules

Verification status (KiCad 10.0)

Board layout and silkscreen

The layout is floorplanned by function (tools/floorplan.py).

The silkscreen is kept clean:

Silkscreen group Section
USB-C / POWER IN Power & MCU
STM32 MCU Power & MCU
3.3 V LDO / RAILS Power & MCU
10.24 MHz XO 10.7 MHz IF
10.7 MHz IF AMP 10.7 MHz IF
2ND MIXER 10.7 MHz IF
10.7 MHz FILTER 10.7 MHz IF
455 kHz AM FILTER AM IF
AGC VGA AM IF
AGC / RSSI / AM AUDIO AM IF
IF AMP / AM DETECTOR AM IF
FM LIMITER FM IF
FM RSSI FM IF
SQUARER / IF COUNT FM IF
AFC / FM AUDIO FM IF
FM DISCRIMINATOR FM IF
FM MIXER FM front end
FM LO FM front end
FM RF AMP FM front end
ANT / DIPLEXER FM front end
AM MIXER AM front end
AM LO AM front end
AM RF AMP AM front end
VARACTOR DRIVE Tuning & UI
RF TRACKING / VREF Tuning & UI
BAND SWITCH Tuning & UI
ENCODER / LEDS / AUDIO Tuning & UI

Adom Molecule

This board follows Adom's Molecule Design Guide (white paper v1.0) and uses the official parts from adom/adom-machine-parts-library. The KiCad copies are in lib/AdomMachine.*, with STEP models from the component pages.

Rule This molecule
Machine pin in every corner (pincer grip) 4× MachinePinLargeStandard (Ø3.45 mm plated hole, 5.2 mm pad), all four on GND, 96 × 96 mm apart. That is 3 × 3 cells of the 32 mm large-class grid, so the molecule mounts directly on the base scaffold without a user scaffold. Large Standard is the only large pin Adom makes.
Contacts All 28 are MachineContactMedium, the smaller of Adom's two contact sizes: 0.78 mm drill, 1.3 mm pad, 24 AWG wire. None is closer than 6 mm to a large pin; the pins' 3 mm-radius courtyard is the pincer keep-out.
All pins/contacts on the 2 mm grid from the origin pin MP1 is the origin (KiCad drill/place and grid origin). Every machine contact is at an even-mm offset from MP1, and the probe contacts were snapped to that lattice by the placer.
Board outline 102.5 × 102.5 mm: 3.25 mm beyond the pin centres, with corner arcs centred on the pins (no wings). That is the large pin's 2.6 mm pad radius plus the 0.65 mm edge clearance Adom's example molecules use.
Connections via machine pins/contacts Power, USB, SWD/reset, UART, audio and antenna are on edge contacts, but none is required: USB-C alone runs the board. The only connectors are the USB-C (the pincers can plug USB) and the SMA jack.
Jumpers instead of buttons No buttons and no jumpers are needed. Firmware updates use USB DFU: a blank chip boots into it, and the firmware re-enters it on request. For recovery from a broken image, CLK(=BOOT0) + 3V3 and RST + GND are adjacent contact pairs a machine-pin jumper can bridge.
Self-contained The full radio, MCU, crystal timebase, regulators and decoupling are on board. Tuning, band, volume, calibration and updates are all controlled from the PC over USB-C, with no external controls.

Machine pin and contact map

Grid coordinates are mm from MP1; +x is right and +y is down, as seen in KiCad.

Ref Net Silk label Grid (x, y)
MP1 GND corner machine pin (large) (0, 0)
MP2 GND corner machine pin (large) (96, 0)
MP3 GND corner machine pin (large) (0, 96)
MP4 GND corner machine pin (large) (96, 96)
MC1 VIN 5V (0, 6)
MC2 GND GND (0, 8)
MC3 USB_DP D+ (0, 24)
MC4 USB_DM D- (0, 26)
MC5 GND GND (0, 28)
MC6 +3V3 3V3 (0, 34)
MC7 SWCLK CLK (0, 36)
MC8 NRST RST (0, 38)
MC9 GND GND (0, 40)
MC10 SWDIO DIO (0, 44)
MC11 GND GND (0, 46)
MC12 UART_TX TX (0, 52)
MC13 UART_RX RX (0, 54)
MC14 GND GND (0, 56)
MC15 AM_AUDIO AM (0, 84)
MC16 FM_AUDIO FM (0, 86)
MC17 GND GND (0, 88)
MC18 ANT ANT (96, 20)
MC19 GND GND (96, 22)

The probe contacts (for the Cloud Lab's probe needles) sit on the grid next to their circuits: MC20 CF2_OUT, MC21 IF2_OUT, MC22 AM_DET, MC23 FM_DEMOD, MC24 LIM_SQ, MC25 VT_FM, MC26 VT_AM, MC27 VT_RF, MC28 +5VA.

Debug test points

59 bare copper test pads, grouped by circuit. Each has its short name printed next to it on the silkscreen (the name is in brackets below).

Circuit Test pads
Power & MCU TP101 VBUS (VBUS), TP102 VIN (VIN), TP103 VIN_OR (VOR), TP104 +5V (5V), TP105 +3V3 (3V3), TP106 +3.3VA (3V3A), TP107 +5VA (5VA), TP108 GND (GND), TP109 GND (GND), TP110 CAL_MARK (CAL)
Tuning & band switch TP201 DAC_FM (DACF), TP202 DAC_AM (DACA), TP203 PWM_RF (PWM), TP204 VTF_OUT (VTF1), TP205 VTA_OUT (VTA1), TP206 VTR_OUT (VTR1), TP207 VREF_1V65 (VREF), TP208 +5V_FM (5VFM), TP209 +5V_AM (5VAM), TP210 GND (GND), TP211 GND (GND)
FM front end TP301 V_RF1 (VRF), TP302 V_LO1 (VLO), TP303 FMLO_E (FLO), TP304 IF_MIX (MIX), TP305 GND (GND)
AM front end TP401 V_AM1 (VAM1), TP402 V_AM2 (VAM2), TP403 AM_RFIN (AMIN), TP404 AMRF_C (ARF), TP405 AMLO_E (ALO), TP406 GND (GND)
10.7 MHz IF / 2nd mixer TP501 V_IF1 (VIF1), TP502 V_IF2 (VIF2), TP503 CF1_OUT (CF1), TP504 IF_C1 (IF1), TP505 XO_E (XO), TP506 GND (GND)
AM IF, AGC & detector TP601 V_IF3 (VIF3), TP602 VBIAS (VB), TP603 AMF_OUT (AMF), TP604 VGA1_OUT (VGA1), TP605 VGA2_OUT (VGA2), TP606 AM_IFOUT (AIF), TP607 V_AGC (AGC), TP608 RSSI_AM (RSA), TP609 AMA_OUT (AMA), TP610 GND (GND), TP611 GND (GND)
FM limiter & discriminator TP701 V_IF4 (VIF4), TP702 LIM1_C (LIM1), TP703 LIM2_C (LIM2), TP704 RSSI_FM (RSF), TP705 IF_CNT (CNT), TP706 VREF_FM (VRFM), TP707 FM_DC (FMDC), TP708 FMA_OUT (FMA), TP709 GND (GND), TP710 GND (GND)

On the RF side the pads sit on low-impedance nodes (oscillator emitters, mixer output, supply rails) rather than on the tank circuits, so a probe doesn't detune them.

Using it in the Adom Electronics Prototyping Cloud Lab

Signal chain and frequency plan

                    ┌─ 2 MHz LPF ─ AM preamp (Q401) ─ AM mixer (Q403) ◄─ AM VCO 11.23 to 12.4 MHz (Q402, Clapp)
 SMA ─ diplexer ────┤                                        │
                    └─ 70 MHz HPF + 130 MHz LPF ─ FM RF amp (Q301, varactor-tracked tank)
                                                  ─ FM mixer (Q303) ◄─ FM VCO 98.7 to 118.7 MHz (Q302, Colpitts)
                                                             │
                                            IF_MIX (10.7 MHz, 330 Ω)
                                                             │
       FL501 10.7 MHz ─ IF amp (Q501) ─ FL502 10.7 MHz ─ 2nd mixer (Q502) ◄─ 10.24 MHz XO (Q503)
                                                             │ 455 kHz
                        ┌────────────────────────────────────┴───────────────────────────┐
  AM: FL601 455 kHz ±4.5 kHz ─ VGA1/VGA2 (BC847BS pairs,        FM: RC LPF ─ limiter (Q701, Q702) ─ squarer (Q703)
      tail-current AGC) ─ post-amp (Q605) ─ BAT54 detector          ─ diode pump (C714 + BAT54S) ─ U701A integrator
      ─ U601A AGC integrator ─ U601B 5 kHz Sallen-Key               (75 µs de-emphasis) ─ U701B 15 kHz Sallen-Key
      ─► AM_AUDIO (PA0)   V_AGC ─► RSSI_AM (PA2)                    ─► FM_AUDIO (PA1)   FM_DC ─► PA3   LIM_SQ ─► IF_CNT (PA15)

Pulse-count FM detector

Each IF cycle the 0 to 4.6 V square wave (LIM_SQ) moves a fixed charge C714 · (Vpp − 2·Vf) into U701A's summing junction, so the average current is proportional to the IF frequency: 40 µA at 455 kHz and ±6.6 µA at ±75 kHz deviation.

AM AGC

Two BC847BS differential pairs act as variable-gain amplifiers. Their gain is proportional to the tail current, about 40 dB of range per stage.

STM32G0B1CCU7 pin map

The MCU is an STM32G0B1CCU7 (Cortex-M0+, 256 KB flash, 144 KB RAM, USB FS, dual 12-bit DAC).

It replaces the STM32F072 because of how a blank chip boots:

Pin Function Net
PA0 / PA1 ADC_IN0 / ADC_IN1 AM_AUDIO / FM_AUDIO (biased at 1.65 V)
PA2 ADC_IN2 RSSI_AM (AGC voltage / 2)
PA3 ADC_IN3 FM_DC (discriminator DC, AFC)
PA6 ADC_IN6 RSSI_FM (limiter stage-1 detector)
PA4 DAC1_OUT1 DAC_FM → ×1.45 → VT_FM (FM VCO)
PA5 DAC1_OUT2 DAC_AM → ×1.45 → VT_AM (AM VCO)
PB1 TIM3_CH4 PWM PWM_RF → 2-pole RC → ×1.45 → VT_RF (FM preselector)
PA15 TIM2_ETR IF_CNT (limited 455 kHz IF: AFC and self-calibration)
PA8 TIM1_CH1 CAL_MARK → 47 k + 100 pF → ANT (calibration markers; idles low)
PF0 / PF1 HSE 40 MHz crystal Y101. Its harmonics land at 80 and 120 MHz, clear of the FM band and the LO range.
PB8 / PB9 GPIO open-drain (5 V tolerant) FM_EN_N / AM_EN_N: low = band powered
PB13 / PB14 / PB15 GPIO LED_FM / LED_AM / LED_STAT
PA11 / PA12 USB FS D− / D+. USB runs on HSI48 + CRS, locked to the host's SOF.
PB6 / PB7 USART1 TX / RX UART_TX / UART_RX: optional debug console (MC12/MC13)
PA13 / PA14, PF2 SWD, NRST Optional debug contacts DIO / CLK / RST. PA14 = SWCLK is also BOOT0 (10 k pull-down).
VREF+ ADC / DAC reference +3.3VA (ferrite-filtered)

Programming and control over USB (firmware outline, not yet written)

Everything runs over the one USB-C cable: power, audio, control and firmware updates.

Programming

  1. First flash: a blank G0B1 enumerates as STM32 BOOTLOADER (USB DFU, VID 0483 / PID DF11). Flash it with dfu-util -a 0 -s 0x08000000:leave -D amfm.bin or STM32CubeProgrammer.
    • The empty-flash flag is only re-read at power-on. Use :leave, or power-cycle once after the first flash.
  2. Updates: the firmware exposes a USB DFU runtime interface, so dfu-util -e works.
    • On that request (or the CDC command dfu), it stores a magic word in RAM and resets.
    • Its startup code sees the word and jumps to the ROM bootloader at 0x1FFF0000.
    • dfu-util then writes the new image and leaves, with no jumper and no ST-Link.
  3. Recovery, only if a broken image never answers USB: bridge CLK↔3V3 (CLK is BOOT0), then RST↔GND or power-cycle. The chip comes up in ROM DFU.

Clocks

USB composite device

Command Action
band fm / band am Powers the chosen front end (FM_EN_N / AM_EN_N) and loads its tuning table.
freq 101.1 / freq 1010 Tunes in MHz (FM) or kHz (AM): DAC from the calibration table, then AFC.
seek up / seek down, scan Steps and stops on stations, found via RSSI plus the IF count.
mute, volume N, squelch N Digital, in the audio path.
deemph 50 / deemph 75 The analog chain is 75 µs; 50 µs regions get a first-order digital correction.
rssi?, status? Signal strength, AGC voltage, IF frequency, band, frequency.
cal Runs the self-calibration below and stores the tables in flash.
dfu Reboots into the ROM DFU bootloader.

Tuning

Self-calibration (cal: no signal generator, probe or SDR needed)

  1. Markers: TIM1 drives CAL_MARK with a square wave of 128 MHz / N.
    • Its harmonics reach the antenna input through 47 kΩ and 100 pF, at about −60 dBm each.
    • Example: N = 13 gives markers at 88.6, 98.5 and 108.3 MHz. AM uses the fundamental directly, for example 600 / 1000 / 1400 kHz.
  2. Find each marker: sweep the DAC until the IF counter sees it.
  3. Compute the LO: LO = f_marker + 10.240 MHz + f_IF2, where f_IF2 is the counted IF.
    • The MCU's crystal sets f_marker and the gate time. The ±20 ppm 10.24 MHz crystal sets the second LO.
  4. Build the table: a few markers per band give a DAC → LO table accurate to a few kHz.
    • It also checks that each VCO covers its band (98.7 to 118.7 MHz and 11.23 to 12.4 MHz) and reports if it doesn't.
  5. Preselector: with a marker in view, sweep the VT_RF PWM for maximum RSSI_FM to build the tracking table.
  6. Idle: the marker pin idles low, so nothing is injected during normal reception.

Bring-up and alignment

  1. Rails: power from USB and check the test pads VBUS, VOR, 5V, 3V3, 3V3A and 5VA. The board enumerates as STM32 BOOTLOADER; flash the firmware over USB.
    • Check each stage's bias rail too: VRF, VLO, VAM1, VAM2, VIF1-VIF4 and VB. Every block has a GND pad next to it.
  2. Band power: send band fm and check +5V_FM ≈ 4.9 V (pad 5VFM); then band am (pad 5VAM). The DAC outputs are at DACF/DACA and the op-amp outputs at VTF1/VTA1/VTR1.
  3. Self-calibration: run cal. The firmware reports each VCO's measured range and builds its tables. The CAL pad shows the marker square wave while it runs.
    • If a range misses the band, adjust C319 (FM) or C410 (AM) to shift it. Adjust C320 / C411 to change its width.
  4. Crystal oscillator: check 10.240 MHz at pad XO. With a marker tuned in, 455 kHz appears at probe contact 455K (MC21) and 10.7 MHz at 10M7 (MC20).
  5. FM detector: probe SQ (MC24) should show a clean square wave. FM_DEMOD (probe DEM, MC23) sits near 1.8 V with an unmodulated IF.
  6. AM chain: follow the signal through the pads AMF → VGA1 → VGA2 → AIF → DET (MC22) → AMA, with AGC showing the control voltage.

Ordering from JLCPCB

Every BOM line has an in-stock JLCPCB part (LCSC number), checked against JLCPCB's parts API on 2026-09-29: 86 line items, 312 placed parts. Of those lines, 46 are Basic, 4 Preferred Extended and 36 Extended. Parts cost about $11 per board, and each Extended line adds JLC's per-order Extended-part fee.

  1. PCB: upload fab/amfm_receiver_gerbers.zip (Gerbers + drill, origin at MP1, the top-left corner pin). Settings:
    • 4 layers, 102.5 × 102.5 mm, 1.6 mm. The corner pin holes are 3.45 mm plated through-holes.
    • Optionally, the impedance-controlled stackup JLC04161H-7628. The RF-netclass traces are 0.36 mm, about 50 Ω over the In1 ground plane.
  2. Assembly: top side only. Upload fab/amfm_receiver_BOM_JLCPCB.csv (Comment, Designator, Footprint, LCSC Part #) and fab/amfm_receiver_CPL_JLCPCB.csv (Designator, Mid X, Mid Y, Layer, Rotation).
    • The SMA jack (J301) is the only through-hole part JLC fits: choose Standard PCBA, or leave it out and hand-solder it.
    • The machine pins (MP1-MP4) and machine contacts (MC1-MC28) are not in the JLC files: JLC only drills their plated holes, and the Adom Electronics Prototyping Cloud Lab presses the pins and contacts in.
    • The 59 test pads (TP…) are bare copper and are not in the BOM or CPL either.
  3. Check the placement preview before paying. CPL rotations were converted from KiCad to JLC orientation with the JLCKicadTools correction table.
    • Confirm pin 1 or polarity on U103 (QFN-48), U101/U102, U201/U202/U601/U701 (SOIC-8), the SOT-23 and SOT-363 transistors, and the diodes/varactors (D301, D302, D401, D601, D701, D702). Also check the LEDs, the crystals Y101/Y501 and the three ceramic filters.
    • Any part the preview shows rotated can be fixed in the order page.

Parts that differ from a generic design

Regenerating (the generators are in tools/)

Everything is generated from tools/design.py, the single netlist source of truth:

cd tools
python3 make_lib.py      # project symbols/footprints (ceramic filters, Adom machine pin/contact)
python3 gen_sch.py       # hierarchical schematic (9 sheets incl. Molecule_IO)
python3 check_sch.py     # KiCad netlist == design.py, pin for pin
python3 gen_pcb.py place # board, stackup, rules, placement, planes, Specctra DSN
# route build/amfm_receiver.dsn with Freerouting -> build/amfm_receiver.ses
python3 gen_pcb.py finish
python3 gen_pcb.py repair # DRC-driven rip-up/re-route until kicad-cli DRC is clean
python3 make_bom.py      # grouped BOM with JLC type / stock / price
python3 make_jlc.py      # JLCPCB BOM + CPL
./make_fab.sh            # Gerbers, drill, placement, schematic PDF, BOMs

Files

Path What it is
kicad/ The KiCad 10 project: amfm_receiver.kicad_pro, the 10 schematic sheets, amfm_receiver.kicad_pcb, and the project libraries in kicad/lib/. The five LCSC 3D models are the logo-free STEPs from the part pages (3D only; copper and fab output are unchanged).
fab/ What goes to JLCPCB: amfm_receiver_gerbers.zip, amfm_receiver_BOM_JLCPCB.csv, amfm_receiver_CPL_JLCPCB.csv, plus the full BOM, the KiCad placement file and the schematic PDF.
amfm-receiver-molecule.glb The assembled board, Z-up in metres, anchored on the front-left machine pin (step2glb molecule mode), with _footprint.json / _symbol.json for placing the molecule in a layout.
tools/ The generators: design.py is the single netlist source; the others build the schematic, board, routing repairs, BOM and fab files (see Regenerating).
docs/screens/ The gallery and field images on this page; docs/parts/ holds the parts-table thumbnails, each rendered from the exact model the part has on the board.
docs/fields/ The Adom Fields spec (spec.json) and its result summary (fields.json).
Release amfm-receiver-molecule.step.gz The full board STEP (50 MB unzipped) on the Releases tab.
readme.html What the page shows: README.md as HTML with the circuit explorer in it (block diagram, netlist-checked schematics, the spectrum and waveform at every stage, the math), self-contained. Built by wiki_pages/readme_html.py from README.md and wiki_pages/explorer in the project.