How nawfalmotii79/plfm_radar works
Purpose and Entry Points
AERIS-10 is an open hardware/software 10.5 GHz pulse-LFM phased-array radar, supporting a short-range patch-array variant and extended-range waveguide/PA variant. It is a multi-domain repository rather than a single deployable application. Primary operational entry points are STM32 firmware at 9_Firmware/9_1_Microcontroller/9_1_3_C_Cpp_Code/main.cpp, FPGA top-level variants such as 9_Firmware/9_2_FPGA/radar_system_top.v, and the active Python GUI path 9_Firmware/9_3_GUI/GUI_V7_PyQt.py.
Physical RF and Board Architecture
The hardware decomposes into power, frequency synthesis, main processing/RF, PA, and antenna boards. Source schematics/layouts define the buildable hardware boundary: 4_Schematics and Boards Layout/4_6_Schematics/MainBoard/RADAR_Main_Board.sch, 4_Schematics and Boards Layout/4_6_Schematics/FrequencySynthesizerBoard/Clocks_Freq_Synth_board.sch, and 4_Schematics and Boards Layout/4_6_Schematics/PowerAmplifierBoard/RF_PA.sch. Manufacturing handoff is separate in 4_Schematics and Boards Layout/4_7_Production Files/.
Waveform, RF, and Beamforming Flow
The transmit path creates LFM chirps through DAC/FPGA control, synthesizes and upconverts RF, applies ADAR1000 phase steering across 16 elements, and drives either integrated front ends or external PA boards. The return path is phase-controlled, downconverted, and sampled by the ADC. Firmware device managers own synthesizer and beamformer configuration: 9_Firmware/9_1_Microcontroller/9_1_1_C_Cpp_Libraries/adf4382a_manager.c and 9_Firmware/9_1_Microcontroller/9_1_1_C_Cpp_Libraries/ADAR1000_Manager.cpp. Antenna implementations are distinct hardware options: 4_Schematics and Boards Layout/4_6_Schematics/Antennas/Patch/8x16/Patch_Anetnna_16_8.sch and 4_Schematics and Boards Layout/4_6_Schematics/Antennas/Waveguide/DFSWA.dwg.
FPGA Signal-Processing Plane
The FPGA is the real-time data plane: ADC capture feeds digital downconversion, CIC/FIR filtering and decimation, FFT/matched filtering, Doppler/MTI, and CFAR detection. 9_Firmware/9_2_FPGA/radar_receiver_final.v integrates receive processing; core stages include 9_Firmware/9_2_FPGA/ddc_400m.v, 9_Firmware/9_2_FPGA/matched_filter_processing_chain.v, 9_Firmware/9_2_FPGA/doppler_processor.v, and 9_Firmware/9_2_FPGA/cfar_ca.v. Chirp/control generation is represented by 9_Firmware/9_2_FPGA/radar_transmitter.v and 9_Firmware/9_2_FPGA/plfm_chirp_controller.v.
Control, Safety, and Peripheral Plane
STM32F7 firmware sequences power, configures clocks/synthesizers/phase shifters, calibrates PA bias using ADC/DAC feedback, monitors thermal/current health, and manages GPS, IMU, motor, and USB-facing control. Persistent radar settings and USB protocol handling are centered in 9_Firmware/9_1_Microcontroller/9_1_1_C_Cpp_Libraries/RadarSettings.cpp and 9_Firmware/9_1_Microcontroller/9_1_1_C_Cpp_Libraries/USBHandler.cpp. This is the key safety boundary between host commands and high-power RF rails.
Host Interface and Visualization
FPGA output crosses a USB bridge interface (9_Firmware/9_2_FPGA/usb_data_interface_ft2232h.v) to the desktop GUI. V7 separates UI, hardware transport, processing/replay, and worker execution under 9_Firmware/9_3_GUI/v7/dashboard.py, 9_Firmware/9_3_GUI/v7/hardware.py, and 9_Firmware/9_3_GUI/v7/processing.py; 9_Firmware/9_3_GUI/radar_protocol.py is the host-side protocol boundary. The GUI combines detections with GPS/IMU context and map display.
Runtimes, Toolchains, and Verification
Target runtimes are STM32F7 bare-metal/no-OS C/C++, Xilinx Artix-7 FPGA Verilog, and Python 3.8+ desktop GUI/simulation tooling. FPGA builds use Vivado TCL flows, e.g. 9_Firmware/9_2_FPGA/scripts/50t/build_50t.tcl; board targets include 50T, 200T, and TE0712/TE0713 variants. Hardware validation is supported by electromagnetic/RF simulations under 5_Simulations/, while FPGA formal and regression assets reside in 9_Firmware/9_2_FPGA/formal/ and 9_Firmware/9_2_FPGA/run_regression.sh.
Main entry points: RADAR_Main_Board.sch Main RF board · hardware.py GUI transport layer · adf4382a_manager.c Synthesizer and beamformer control · radar_system_top.v FPGA top-level variants
Components 21
RF Hardware
Buildable board and antenna designs.
- Main RF board · Integrates processing and RF interfaces.
4_Schematics and Boards Layout/4_6_Schematics/MainBoard/RADAR_Main_Board.sch - Frequency synthesizer
4_Schematics and Boards Layout/4_6_Schematics/FrequencySynthesizerBoard/Clocks_Freq_Synth_board.sch - External PA board · Extended-range transmit option.
4_Schematics and Boards Layout/4_6_Schematics/PowerAmplifierBoard/RF_PA.sch - Patch array · Short-range antenna option.
4_Schematics and Boards Layout/4_6_Schematics/Antennas/Patch/8x16/Patch_Anetnna_16_8.sch - Waveguide array · Extended-range antenna option.
4_Schematics and Boards Layout/4_6_Schematics/Antennas/Waveguide/DFSWA.dwg - Manufacturing handoff
STM32 Control
Safety and peripheral control plane.
- STM32 firmware · Sequences power, calibration, safety, and peripherals.
9_Firmware/9_1_Microcontroller/9_1_3_C_Cpp_Code/main.cpp - Synthesizer and beamformer control · Configures ADF4382A and ADAR1000 devices.
9_Firmware/9_1_Microcontroller/9_1_1_C_Cpp_Libraries/adf4382a_manager.c - Settings and USB protocol · Gates host commands before RF control.
9_Firmware/9_1_Microcontroller/9_1_1_C_Cpp_Libraries/USBHandler.cpp
Artix-7 Data Plane
Real-time waveform and receive processing.
- FPGA top-level variants · Target-specific radar system integration.
9_Firmware/9_2_FPGA/radar_system_top.v - Chirp transmitter · Generates and controls pulse-LFM waveforms.
9_Firmware/9_2_FPGA/radar_transmitter.v - Receiver integration · Integrates capture through detection.
9_Firmware/9_2_FPGA/radar_receiver_final.v - DDC and decimation
9_Firmware/9_2_FPGA/ddc_400m.v - Matched filter and Doppler
9_Firmware/9_2_FPGA/matched_filter_processing_chain.v - CFAR detections
9_Firmware/9_2_FPGA/cfar_ca.v - FT2232H USB bridge
9_Firmware/9_2_FPGA/usb_data_interface_ft2232h.v - Vivado 50T build · One of several supported FPGA targets.
9_Firmware/9_2_FPGA/scripts/50t/build_50t.tcl
Desktop Host
Python control and visualization.
- PyQt radar GUI · Displays detections, map, and sensor context.
9_Firmware/9_3_GUI/GUI_V7_PyQt.py - Host radar protocol
9_Firmware/9_3_GUI/radar_protocol.py - GUI transport layer
9_Firmware/9_3_GUI/v7/hardware.py - GUI processing and replay
9_Firmware/9_3_GUI/v7/processing.py
Connections 24
- Manufacturing handoff → Main RF board: manufactures
- Main RF board → Frequency synthesizer: clocks and RF control
- Main RF board → External PA board: TX drive
- External PA board → Waveguide array: extended-range TX
- Main RF board → Patch array: short-range RF path
- STM32 firmware → Synthesizer and beamformer control: configures
- STM32 firmware → Settings and USB protocol: uses
- Synthesizer and beamformer control → Frequency synthesizer: configures synthesizer and steering
- Synthesizer and beamformer control → Main RF board: controls RF and PA bias
- Settings and USB protocol → Host radar protocol: control channel
- FPGA top-level variants → Chirp transmitter: instantiates
- FPGA top-level variants → Receiver integration: instantiates
- Chirp transmitter → Main RF board: DAC chirp control
- Main RF board → Receiver integration: ADC samples
- Receiver integration → DDC and decimation: captures IF
- DDC and decimation → Matched filter and Doppler: baseband samples
- Matched filter and Doppler → CFAR detections: range-Doppler data
- CFAR detections → FT2232H USB bridge: detections
- FT2232H USB bridge → GUI transport layer: USB data
- PyQt radar GUI → GUI transport layer: controls
- GUI transport layer → Host radar protocol: encodes commands
- GUI transport layer → GUI processing and replay: streams captures
- GUI processing and replay → PyQt radar GUI: detections and replay
- Vivado 50T build → FPGA top-level variants: builds