

Mini Spectrum Analyzer-
into your CubeIDE project: Core/Inc/adf4351.h Core/Src/adf4351.c Then copy the initialization from: Maine.c to main.c now, Set your actual reference Our PCB uses: Y1 = 10 MHz TCXO hz = 1000000UL ADF4351's reference/PFD…
- Size
- 50 × 70 mm
- Copper layers
- 4
- Thickness
- 1.6 mm
- Parts
- 61
- Nets
- 84
- Pads
- 280
- Tracks, vias
- 486, 57
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 12 Aug 2026
- Updated
- 10 Sep 2026
Overview
Mini Spectrum Analyzer- is an open-source printed circuit board by Dhruv2212-star, from the Dhruv2212-star/Mini-Spectrum-Analyzer- repository on GitHub. It is a 4-layer board of 50 × 70 mm with 61 parts on 84 nets, routed with 486 tracks and 57 vias.
It is built around the TPS62162DSG, ADF4351BCP and ADL5801, with the PESD5V0X1ULD among its other parts. Its parts include 25 capacitors, 18 resistors, 5 ICs, 4 connectors and 3 switches. It belongs with the sensors and measurement boards and the STM32 boards of this library.
Main components
4TPS62162DSG
SON83V-17V 1A Step-Down Converter, High Accuracy, with DCS-Control Output Voltage 3.3VTexas InstrumentsUncategorisedADF4351BCP
QFN32Wideband Synthesizer with Integrated VCOAnalog DevicesUncategorisedADL5801
UncategorisedADPESD5V0X1ULD
DFN1006-2(SOD-882)0.95pF 1 1.5A@8/20us 1nA 5.5V 5.8V 8V ESD IEC 61000-4-2 Unidirectional DFN1006-2(SOD-882) ESD and Surge Protection (TVS/ESD) ROHSNexperiaESD And Surge Protection (TVS/ESD)
README
README.mdAi ussage- used to help me find correct parts for the build for this project & debugging the firmware in some places ONLY.
Project Description- The Mini Spectrum Analyzer is an compact electronic device designed to detect and display radio frequency signals over selected frequency range.
It uses ADF4351 frequency synthesizer to generate programmable local oscillator and ADL5801 mixer to convert received RF signal into intermediate frequency.
Firmware Flashing Guide
Don't flash ZIP directly, ZIP contains the ADF4351 driver source, not ready-to-flash .bin
You first need an STM32 project that compiles it,so we need to create STM32 project in STM32CubeIDE,
create a project for: STM32G031K8T6
Then configure the pins to match our PCB
ADF4351 uses a 3-wire serial interface and accepts a programmable 35 MHz–4.4 GHz output range.
Now *Configure SPI1
In CubeMX the following:
SPI1 -> Master
8-bit
MSB first
CPOL = Low
CPHA = 1st Edge
Software NSS
Configure PA4, PA5 and PA7 for the SPI interface, with PA4 ultimately serving as the ADF4351 LE control
Add the driver. From the ZIP, copy: adf4351.h, adf4351.c
into your CubeIDE project:
Core/Inc/adf4351.h
Core/Src/adf4351.c
Then copy the initialization from: Maine.c to main.c
now, Set your actual reference
Our PCB uses:
Y1 = 10 MHz TCXO
hz = 1000000UL
ADF4351's reference/PFD configuration is important because it directly affects the generated frequency.
->Build the project
In CubeIDE:
Project -> Build Project
If it has:
0 errors
0 warnings related to the driver, ONLY then proceed
*Connect your ST-LIN
Use your J4 SWD header:
J4-1 > SWDIO
J4-2 > SWCLK
J4-3 > NRST
J4-4 > +3V3 / VTREF
J4-5 > GND
First test: don't test the spectrum analyzer yet
Connect ST-LINK to the PC and open STM32CubeProgrammer. ST officially supports programming STM32 devices through an SWD and CubeProgrammer can program and verify the MCU flash.
Click:
ST-LINK > SWD > Connect
If it detects your STM32G031, stop there and tell me that it connected successfully.
Then we'll flash it
Compile > generate .elf > flash > reset > verify ADF4351 lock > check RF output
so the driver is configured for:
| STM32 U5 | ADF4351 U3 |
|---|---|
| PA4 — pin 11 | LE — pin 3 |
| PA5 — pin 12 | CLK — pin 1 |
| PA7 — pin 14 | DATA — pin 2 |
| PB0 — pin 15 | CE — pin 4 |
| PA1 — pin 8 | LD — pin 25 |
lets learn a bit about the project :3
PCB component's Role in the circuit
Block 1 — USB-C Power Input & Protection
USB-C(J1): serves as the main power source.
Polyfuse(F1): protects the board from high currents.
TVS Diode(D1): protects the USB power against voltage spikes that could damage sensitive components.
R1&R2: 5.1 kΩ pulldown resistors for CC1 and CC2.
C1&C2: 10 µF and 100 nF reduces low frequency voltage ripple also provides energy during sudden load changes and filters high freequency noise on the incoming USB power line.
Block 2 — 5 V to 3.3 V Power Regulation
U1- 3.3v regulator, converts 5v into 3.3v
L1- ferrite bead- supresses high frequency noise btwn regulator and 3.3v rail.
C3- stabalises regulator input and output.
C4&C5- 100uF local decoupling capacitors capacitors.
Block 3 — RF Input & Signal Conditioning
Block 4 — RF Detector & Block 5 — Frequency Generation, Mixer & IF Stage
U2(AD8313)- Converts RF signal level into proportional DC voltage that MCU can measure.
C7-10- Decoupling capacitors.
U3(ADF4351)- Generates a programable local oscillator signal
U4(ADL5801)- Mixes the incoming RF signal with the local oscillator to make intermetiate frequency signal.
Y1(10MHz TCXO)- Provides stable clock for frequency generation.
T1(ADT4-1T+ transformer)- converts differential IF signal into required form while provideing impedance matching
R11–R15- PLL Resistors Set PLL operating conditions, bias RF outputs C11–C22- Coupling / Decoupling Capacitors, Provide AC coupling, supply filtering,
Block 6 — MCU, Display & Programming & Block 7 — User Interface
U5(STM32G031K8T6)- Our MCU which Controls the analyzer, programs the synthesizer, samples detector data, processes measurements, updates the display.
J3(ST7789 Display Module)- Displays the measured spectrum, menus etcc.
J4(SWD Header)- allows programing the MCU.
R16(10k ohms resistor) for MCU reset pin.
C24- 100pF capacitor for high frequency bypass for MCU suply.
C25- 4.7pF decoupling capacitor that stabilizes the MCU power during rapid current changes.
SW1,SW2&SW3- increase frequency, decrease frequency, select menu options and confirms user actions respectively.
R17,R18&R19- 10K ohms resistors for SW1,SW2 and SW3.
Parts
61| Qty | Value | Footprint | References |
|---|---|---|---|
| 7 | 100 nF | Capacitor_SMD:C_0603_1608Metric | C2, C5, C9, C10, C17, C20, C24 |
| 4 | 1 nF | Capacitor_SMD:C_0603_1608Metric | C11, C12, C13, C14 |
| 4 | 10 kΩ | Resistor_SMD:R_0603_1608Metric | R16, R17, R18, R19 |
| 3 | 10 Ω | Resistor_SMD:R_0603_1608Metric | R6, R7, R8 |
| 3 | 100 pF | Capacitor_SMD:C_0603_1608Metric | C6, C15, C16 |
| 3 | 5.1 kΩ | Resistor_SMD:R_0603_1608Metric | R1, R2, R13 |
| 3 | C | Capacitor_SMD:C_0603_1608Metric | C21, C22, C23 |
| 3 | SW_Push | Button_Switch_SMD:SW_SPST_SKQG_WithoutStem | SW1, SW2, SW3 |
| 2 | 100 kΩ | Resistor_SMD:R_0603_1608Metric | R3, R4 |
| 2 | 50 Ω | Resistor_SMD:R_0603_1608Metric | R11, R12 |
| 2 | 680 pF | Capacitor_SMD:C_0603_1608Metric | C7, C8 |
| 2 | R | Resistor_SMD:R_0603_1608Metric | R5, R15 |
| 2 | ~ | Capacitor_SMD:C_0603_1608Metric | C18, C19 |
| 1 | 0 Ω | Resistor_SMD:R_0603_1608Metric | R10 |
| 1 | 10 MHz TCXO | Oscillator:Oscillator_DIP-14 | Y1 |
| 1 | 10 µF | Capacitor_SMD:C_0805_2012Metric | C3 |
| 1 | 10 µF | Capacitor_SMD:C_1206_3216Metric | C1 |
| 1 | 142-0701-421 | 1420701421:CINCH_142-0701-421 | J2 |
| 1 | 2.2 µH | Inductor_SMD:L_1210_3225Metric | L1 |
| 1 | 22 µF | Capacitor_SMD:C_0805_2012Metric | C4 |
| 1 | 4.7 µF | Capacitor_SMD:C_0603_1608Metric | C25 |
| 1 | 53.6 Ω | Resistor_SMD:R_0603_1608Metric | R9 |
| 1 | AD8313xRM | Package_SO:MSOP-8_3x3mm_P0.65mm | U2 |
| 1 | ADF4351 | Package_CSP:LFCSP-32-1EP_5x5mm_P0.5mm_EP3.25x3.25mm | U3 |
| 1 | ADL5801 | Package_CSP:LFCSP-VQ-24-1EP_4x4mm_P0.5mm_EP2.642x2.642mm | U4 |
| 1 | ADT4-1T | RF_Mini-Circuits:Mini-Circuits_CD542_H2.84mm | TR2 |
| 1 | Conn_01x05 | Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Vertical | J4 |
| 1 | Conn_01x12 | Connector_PinHeader_2.54mm:PinHeader_1x12_P2.54mm_Vertical | J3 |
| 1 | D_TVS | Diode_SMD:D_SMB | D1 |
| 1 | PESD5V0X1UL | Diode_SMD:D_SOD-523 | D2 |
| 1 | Polyfuse | Fuse:Fuse_1206_3216Metric | F1 |
| 1 | STM32G031K8Tx | Package_QFP:LQFP-32_7x7mm_P0.8mm | U5 |
| 1 | TPS62162DSG | Package_SON:WSON-8-1EP_2x2mm_P0.5mm_EP0.9x1.6mm_ThermalVias | U1 |
| 1 | USB_C_Receptacle_USB2.0_16P | Connector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_Horizontal | J1 |
Similar boards
- 6 layers

- 6 layers122 × 98 mm

- 4 layers40.3 × 22.9 mm

- 4 layers52 × 57 mm

- 4 layers90.2 × 40 mm

Radar v2
ckflight/FMCW-RADAR
Frequency Modulated Continuous Wave Radar hardware and software design files with 26 dBm output power covering around 250 m.
270 parts59GPL-3.0 - 2 layers

FMCW Radar
Roshan-khatri78/Electronics-Projects-KiCad-
A collection of my KiCad projects and PCB designs. These projects reflect my learning journey in electronics and PCB design.
228 parts2 - 4 layers191.8 × 123 mm

Rdf kicad
megmem044/Portfolio
This repo consists the source code for the different projects listed on my resume
265 parts - 2 layers82.1 × 82.1 mm

Uncut Gem
QuantumVillage/UncutGem
A prototype Full Stack fully Open Source NV Center Diamond Magnetometer
207 parts210AGPL-3.0
Questions
How big is the Mini Spectrum Analyzer- PCB?
It measures 50 × 70 mm and has 4 copper layers, 1.6 mm thick.
What parts does the Mini Spectrum Analyzer- use?
61 parts, built around the TPS62162DSG, ADF4351BCP, ADL5801 and PESD5V0X1ULD. 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 Mini Spectrum Analyzer- KiCad files?
From the Dhruv2212-star/Mini-Spectrum-Analyzer- repository on GitHub, at the commit this page was made from: the board is PCB/Mini Spectrum Analyzer.kicad_pcb and its schematic PCB/Mini Spectrum Analyzer.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Mini Spectrum Analyzer- design in my own project?
Its repository states no licence, so its author keeps all rights: ask Dhruv2212-star before reusing the design.