# miricip/gprino architecture

> Architecture diagram of the GitHub repository miricip/gprino, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/miricip/gprino
- Repository: https://github.com/miricip/gprino

## Overview

This repository is a low-cost ground-penetrating radar built around Arduino Mega firmware and custom analog hardware. The main workflow acquires radar samples, presents results onboard and streams data to a PC, where the Python client computes spectra, renders a radargram, and can save data for later processing. The README also describes SD-card transfer and custom antenna/PCB designs. Firmware and hardware internals were not sampled, so their connections are limited to documented capabilities; the Python client’s serial and processing steps are visible in its source.

Main entry points: [`GPR_wheel.ino`](https://github.com/miricip/gprino/blob/main/GPR_wheel.ino) (Wheel firmware), [`GPR_no_wheel.ino`](https://github.com/miricip/gprino/blob/main/GPR_no_wheel.ino) (No-wheel firmware), [`Hardware/OrCAD + GERBER`](https://github.com/miricip/gprino/tree/main/Hardware/OrCAD%20%2B%20GERBER) (Analog front end), [`Debug_version/GPR.py`](https://github.com/miricip/gprino/blob/main/Debug_version/GPR.py) (Serial link)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_acquisition["Radar acquisition"]
  node_wheel_fw["Wheel firmware<br/>[GPR_wheel.ino]"]
  node_no_wheel_fw["No-wheel firmware<br/>[GPR_no_wheel.ino]"]
  node_debug_wheel["Debug wheel firmware<br/>[GPR_wheel.ino]"]
  node_debug_no_wheel["Debug no-wheel firmware<br/>[GPR_no_wheel.ino]"]
  node_fft["Fixed-point FFT<br/>[fft.h]"]
  node_tft["Onboard display<br/>[GPRino_v2.vi]"]
  node_sd[("SD-card storage<br/>[GPRino_v2.vi]")]
end

subgraph group_hardware["Radar hardware"]
  node_antennas["Radar antennas"]
  node_analog["Analog front end"]
  node_boards["PCB designs"]
end

subgraph group_processing["Visualization and processing"]
  node_pc["PC client<br/>[GPR.py]"]
  node_serial["Serial link<br/>[GPR.py]"]
  node_spectrum["Spectrum processing<br/>[GPR.py]"]
  node_radargram["Radargram display<br/>[GPR.py]"]
  node_saved_data["Saved data<br/>[GPR.py]"]
end

node_operator(("Survey operator"))
node_target(("Ground target"))
node_postprocess(("PC post-processing"))

node_operator -.->|"controls survey"| node_wheel_fw
node_operator -.->|"controls survey"| node_no_wheel_fw
node_target -.->|"reflects signal"| node_antennas
node_antennas -.->|"feeds signal"| node_analog
node_analog -.->|"provides samples"| node_wheel_fw
node_analog -.->|"provides samples"| node_no_wheel_fw
node_boards -.->|"implements circuitry"| node_analog
node_wheel_fw -.->|"uses transform"| node_fft
node_no_wheel_fw -.->|"uses transform"| node_fft
node_wheel_fw -.->|"renders onboard"| node_tft
node_wheel_fw -.->|"stores data"| node_sd
node_no_wheel_fw -.->|"renders onboard"| node_tft
node_no_wheel_fw -.->|"stores data"| node_sd
node_operator -->|"starts capture"| node_pc
node_pc -->|"opens connection"| node_serial
node_serial -.->|"sends start command"| node_wheel_fw
node_wheel_fw -.->|"streams samples"| node_serial
node_serial -->|"provides samples"| node_spectrum
node_spectrum -->|"updates image"| node_radargram
node_spectrum -->|"appends spectra"| node_saved_data
node_operator -->|"enables saving"| node_saved_data
node_saved_data -.->|"exports for analysis"| node_postprocess

click node_antennas "https://github.com/miricip/gprino/tree/main/Hardware/Antennas_v2/Antennas"
click node_analog "https://github.com/miricip/gprino/tree/main/Hardware/OrCAD%20%2B%20GERBER"
click node_boards "https://github.com/miricip/gprino/tree/main/Hardware/PCB_Construction_Toner-Transfer_Method"
click node_wheel_fw "https://github.com/miricip/gprino/blob/main/GPR_wheel.ino"
click node_no_wheel_fw "https://github.com/miricip/gprino/blob/main/GPR_no_wheel.ino"
click node_debug_wheel "https://github.com/miricip/gprino/blob/main/Debug_version/GPR_wheel.ino"
click node_debug_no_wheel "https://github.com/miricip/gprino/blob/main/Debug_version/GPR_no_wheel.ino"
click node_fft "https://github.com/miricip/gprino/blob/main/fft.h"
click node_tft "https://github.com/miricip/gprino/blob/main/GPRino_v2.vi"
click node_sd "https://github.com/miricip/gprino/blob/main/GPRino_v2.vi"
click node_pc "https://github.com/miricip/gprino/blob/main/Debug_version/GPR.py"
click node_serial "https://github.com/miricip/gprino/blob/main/Debug_version/GPR.py"
click node_spectrum "https://github.com/miricip/gprino/blob/main/Debug_version/GPR.py"
click node_radargram "https://github.com/miricip/gprino/blob/main/Debug_version/GPR.py"
click node_saved_data "https://github.com/miricip/gprino/blob/main/Debug_version/GPR.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_wheel_fw,node_no_wheel_fw,node_debug_wheel,node_debug_no_wheel,node_fft,node_tft,node_sd toneBlue
class node_antennas,node_analog,node_boards toneAmber
class node_pc,node_serial,node_spectrum,node_radargram,node_saved_data toneMint
class node_operator,node_target,node_postprocess toneIndigo
```

## Components

### Radar acquisition

- [Wheel firmware](https://github.com/miricip/gprino/blob/main/GPR_wheel.ino): `GPR_wheel.ino`
- [No-wheel firmware](https://github.com/miricip/gprino/blob/main/GPR_no_wheel.ino): `GPR_no_wheel.ino`
- [Debug wheel firmware](https://github.com/miricip/gprino/blob/main/Debug_version/GPR_wheel.ino): `Debug_version/GPR_wheel.ino`
- [Debug no-wheel firmware](https://github.com/miricip/gprino/blob/main/Debug_version/GPR_no_wheel.ino): `Debug_version/GPR_no_wheel.ino`
- [Fixed-point FFT](https://github.com/miricip/gprino/blob/main/fft.h): `fft.h`
- [Onboard display](https://github.com/miricip/gprino/blob/main/GPRino_v2.vi): `GPRino_v2.vi`
- [SD-card storage](https://github.com/miricip/gprino/blob/main/GPRino_v2.vi): `GPRino_v2.vi`

### Radar hardware

- [Radar antennas](https://github.com/miricip/gprino/tree/main/Hardware/Antennas_v2/Antennas): `Hardware/Antennas_v2/Antennas`
- [Analog front end](https://github.com/miricip/gprino/tree/main/Hardware/OrCAD%20%2B%20GERBER): `Hardware/OrCAD + GERBER`
- [PCB designs](https://github.com/miricip/gprino/tree/main/Hardware/PCB_Construction_Toner-Transfer_Method): `Hardware/PCB_Construction_Toner-Transfer_Method`

### Visualization and processing

- [PC client](https://github.com/miricip/gprino/blob/main/Debug_version/GPR.py): `Debug_version/GPR.py`
- [Serial link](https://github.com/miricip/gprino/blob/main/Debug_version/GPR.py): `Debug_version/GPR.py`
- [Spectrum processing](https://github.com/miricip/gprino/blob/main/Debug_version/GPR.py): `Debug_version/GPR.py`
- [Radargram display](https://github.com/miricip/gprino/blob/main/Debug_version/GPR.py): `Debug_version/GPR.py`
- [Saved data](https://github.com/miricip/gprino/blob/main/Debug_version/GPR.py): `Debug_version/GPR.py`

### Other components

- **Survey operator**
- **Ground target**
- **PC post-processing**

## Connections

- Survey operator → Wheel firmware: controls survey
- Survey operator → No-wheel firmware: controls survey
- Ground target → Radar antennas: reflects signal
- Radar antennas → Analog front end: feeds signal
- Analog front end → Wheel firmware: provides samples
- Analog front end → No-wheel firmware: provides samples
- PCB designs → Analog front end: implements circuitry
- Wheel firmware → Fixed-point FFT: uses transform
- No-wheel firmware → Fixed-point FFT: uses transform
- Wheel firmware → Onboard display: renders onboard (evidence: `README.md`)
- Wheel firmware → SD-card storage: stores data (evidence: `README.md`)
- No-wheel firmware → Onboard display: renders onboard (evidence: `README.md`)
- No-wheel firmware → SD-card storage: stores data (evidence: `README.md`)
- Survey operator → PC client: starts capture (evidence: `Debug_version/GPR.py`)
- PC client → Serial link: opens connection (evidence: `Debug_version/GPR.py`)
- Serial link → Wheel firmware: sends start command
- Wheel firmware → Serial link: streams samples (evidence: `README.md`)
- Serial link → Spectrum processing: provides samples (evidence: `Debug_version/GPR.py`)
- Spectrum processing → Radargram display: updates image (evidence: `Debug_version/GPR.py`)
- Spectrum processing → Saved data: appends spectra (evidence: `Debug_version/GPR.py`)
- Survey operator → Saved data: enables saving (evidence: `Debug_version/GPR.py`)
- Saved data → PC post-processing: exports for analysis (evidence: `README.md`)
