Skip to the content
2 layers40 × 30 mmBluetooth module, the printed circuit board in 3D

AI-assisted KiCad probe/test interface designer — automatically generates testpoints, maps probe pins to dev board connectors, and validates placement constraints

Size
40 × 30 mm
Copper layers
2
Thickness
1.6 mm
Parts
5
Nets
7
Pads
18
Tracks, vias
0, 0
Pours
1
Routed
Not yet
KiCad
KiCad 8 (file 20240108)
Created
6 Jun 2026
Updated
11 Jun 2026

Overview

Bluetooth module is an open-source printed circuit board by flash555588, from the flash555588/ai-probe-router repository on GitHub. It is a 2-layer board of 40 × 30 mm with 5 parts on 7 nets.

It is built around the HC-05. Its parts include 1 capacitor, 1 resistor, 1 IC, 1 diode and 1 connector. It belongs with the radio and wireless and sensors and measurement boards of this library.

Main components

1

README

README.md

ai-probe-router

AI-assisted KiCad probe/test interface designer. Automatically generates testpoints, maps probe pins to development board connectors, and validates placement against electrical, mechanical, and manufacturing constraints.

Features

  • KiCad S-expression parser — reads .kicad_sch and .kicad_pcb files, supports gr_rect, gr_line, gr_circle board outlines
  • Net classifier — rule-based classification into power, ground, debug, communication, analog, high-speed, clock, reset, GPIO
  • Constraint-aware placement — generates candidate positions scored by routing cost, board edge clearance, component collision avoidance, and probe spacing
  • Pin mapper — maps target nets to development board pins using capability matching, current ratings, and user preferences
  • Schematic + PCB generation — inserts testpoint symbols/footprints, connector symbols/footprints, protection circuits, fiducials, tooling holes, and keepout zones into KiCad files
  • Protection circuit generation — series resistors for debug/reset signals (33/100 ohm), ferrite beads for power lines
  • Three probe layout modes — distributed test pads, centralized pogo pad array, connector-based interface
  • Verification — constraint validation, ERC/DRC via kicad-cli, coverage reports, manufacturing readiness reports
  • Human review gates — flags high-speed, clock, analog, and high-current nets for mandatory review
  • Net class recommendations — suggests trace width and clearance per net role
  • DSN export — exports Specctra/Electra DSN for FreeRouting autorouter
  • Schema v2 module planning - describes higher-level hardware modules such as SWD debug, GPIO expansion, and power monitoring, then selects a valid implementation from module libraries

Installation

bash
# Clone
git clone https://github.com/flash555588/ai-probe-router.git
cd ai-probe-router

# Core CLI + development checks (requires Python 3.12+)
uv pip install -e ".[dev]"

# Plugin shell GUI
uv pip install -e ".[plugin]"

# Optional CP-SAT solver support
uv pip install -e ".[solver]"

# Everything Python-side
uv pip install -e ".[all]"

Capability Matrix

CapabilityPython extraSystem dependency
Core CLI, reports, tests.[dev]none
Plugin shell GUI.[plugin]desktop display environment
3D plugin preview.[plugin]vtk from the plugin extra
CP-SAT pin mapping.[solver]none
Native KiCad ERC/DRC/exportanykicad-cli
FreeRouting bridgeanyJava + FreeRouting

Quick Start

Inspect a PCB

bash
apr inspect examples/minimal_project/main.kicad_pcb

Generate testpoints

bash
apr generate examples/sample_config.yaml -d examples/minimal_project

Generate with dev board pin mapping

bash
apr generate examples/full_config.yaml -d examples/minimal_project

Validate existing testpoints

bash
apr validate path/to/board.kicad_pcb

Launch plugin shell (3D preview)

Requires uv pip install -e ".[plugin]".

bash
apr plugin-shell output/
apr plugin-shell output/ --step 3D_PCB1.step

Configuration

Define your probe requirements in a YAML file:

yaml
project:
  eda_tool: kicad
  board_file: main.kicad_pcb
  schematic_file: main.kicad_sch

probe_interface:
  type: test_pad          # test_pad | pogo_pad_array | connector
  side: top
  pad_diameter_mm: 1.5
  min_probe_spacing_mm: 2.54
  preferred_grid_mm: 2.54
  require_silkscreen_labels: true
  require_fiducials: true
  require_tooling_holes: true

nets_to_expose:
  - net: SWDIO
    role: debug
    required: true
    preferred_devboard_pins: [PA13]
  - net: GND
    role: ground
    required: true
    duplicate_probe_count: 4

Schema v2 Functional Modules

Schema v2 keeps the old nets_to_expose format compatible, and also adds module-level design intent:

yaml
schema_version: 2

project:
  eda_tool: kicad
  board_file: main.kicad_pcb
  schematic_file: main.kicad_sch

hardware_platform:
  target_voltage_domains:
    - name: VDD_3V3
      voltage: 3.3
      max_current_ma: 800

functional_modules:
  - name: scalable_gpio
    type: gpio_expansion
    channels: 16
    depends_on: [debug_access]
    budget_area_mm2: 250
    preferred_region: top
    ai_hints:
      - type: sensitive_route
    allowed_interfaces: [i2c, spi]
    require_level_shift: true

The module-planning pass is rule based. It writes selected implementations, module library preflight diagnostics, module graph diagnostics, bus/power reports, a per-module BOM, and routing feasibility corridors. It also reports module, implementation, chip, and footprint version metadata for compatibility and substitution review. Generated hierarchical sheet stubs are written under output/generated_modules/ when a schematic is available. AI hints are advisory only and are reported when ignored. The process-control pass covers electrical signoff gaps, power-integrity assumptions, DFM, fixture realism, library governance, waivers, incremental diffs, scalability thresholds, autorouter feedback, and reproducibility manifests.

Architecture

text
ai_probe_router/
├── ai/                  # Net classifier
├── eda_adapters/kicad/  # S-expression parser, PCB/schematic read/write
├── models/              # Board, Net, Probe, Constraints, DevBoard, Protection
├── solvers/             # Constraint checker, placement solver, pin mapper, routing cost
├── routing/             # DSN export for autorouter
└── verification/        # Coverage, pin mapping, manufacturing readiness reports

Design principle: AI assists with classification and suggestions; deterministic rules enforce correctness. The constraint engine validates every placement — the system never trusts AI-generated geometry without verification.

CLI Commands

CommandDescription
apr generate <config> [-d dir]Full pipeline: parse, place, generate, verify
apr inspect <pcb_file>List nets with roles and pad counts
apr inspect-sch <sch_file>List components, labels, wires
apr validate <pcb_file>Validate existing testpoint placement

Output Files

After running apr generate, the output/ directory contains:

Text reports, bom_report.csv, and generated module sheets include a deterministic APR-* run ID so outputs from the same planning run can be traced together.

FileDescription
*.kicad_pcbUpdated PCB with testpoints, connector, fiducials, tooling holes, keepouts
*.kicad_schUpdated schematic with testpoint symbols, connector, protection circuits
*.kicad_proKiCad project file carrying the configured design rules so native DRC validates against them
testpoint_report.txtCoverage report with net class recommendations and review gates
pin_mapping_report.txtDevelopment board pin assignment table
module_report.txtSchema v2 module selections, rejected alternatives, and review gates
module_library_preflight_report.txtModule library YAML structure, metadata, duplicate, and request coverage checks
module_graph_report.txtModule instances, dependencies, generated resources, graph diagnostics
module_compatibility_report.txtModule, implementation, chip, footprint, and alternate compatibility matrix
resource_allocation_report.jsonDeterministic bus and power allocation data for schema-v2 modules
resource_optimization_report.jsonAdvisory bus/rail optimization recommendations with no automatic mutation
bus_report.txtModule bus grouping, I2C address conflicts, pull-up coverage
power_report.txtModule voltage-domain and rail usage
routing_feasibility_report.txtCoarse module corridor, congestion, and sensitivity analysis
module_placement_report.txtModule regions, component placement scaffolds, probe/connector zones
module_instantiation_report.txtGenerated module sheet stubs and child schematic files
generated_modules/*.kicad_schGenerated hierarchical module child sheets
bom_report.csvPer-module generated component rows
manufacturing_report.txtManufacturing readiness summary
design_process_report.txtProcess gaps, waivers, signoff coverage, and next actions
readiness_report.txtTop-level PASS, PASS_WITH_REVIEW, or BLOCKED verdict
decision_manifest.jsonRun ID, tool versions, decisions, waivers, artifact hashes, and diff summary
routing.dsnSpecctra DSN for FreeRouting autorouter

Development

bash
# Run tests
pytest --tb=short -ra -q

# Lint
ruff check .

# Audit Python dependencies
pip-audit --progress-spinner off

License

MIT

Parts

5
QtyValueFootprintReferences
1100nCapacitor_SMD:C_0402_1005MetricC1
11kResistor_SMD:R_0402_1005MetricR1
1CONNConnector_PinHeader_1.00mm:PinHeader_1x06_P1.00mm_VerticalJ1
1HC-05RF_Module:Bluetooth_HC-05U1
1STATUS_LEDLED_SMD:LED_0603_1608MetricD1

More from flash555588/ai-probe-router

2
  • 2 layers60 × 40 mmBluetooth mic board, the printed circuit board in 3D

    Bluetooth mic board

    flash555588/ai-probe-router

    AI-assisted KiCad probe/test interface designer — automatically generates testpoints, maps probe pins to dev board connectors, and validates placement constraints

    22 parts
  • 2 layers80 × 50 mmCpu audio usb project, the printed circuit board in 3D

    Cpu audio usb project

    flash555588/ai-probe-router

    AI-assisted KiCad probe/test interface designer — automatically generates testpoints, maps probe pins to dev board connectors, and validates placement constraints

    3 parts

Similar boards

  • 4 layers126.6 × 37.7 mmGruzik2.0, the printed circuit board in 3D

    Gruzik2.0

    NYDEREK/LineFollower_GRUZIK2.0-light

    GRUZIK2.0 is simple light construction made for "line follower light" competition

    50 parts101MIT
  • 2 layers100 × 100 mmMain board V2, the printed circuit board in 3D

    Main board V2

    Resaj/cyclops-project

    Robot de carreras open source con cámara

    31 parts53
  • 2 layers90.9 × 38.4 mmSnaaur v1, the printed circuit board in 3D

    Snaaur v1

    duongngochoan/Self_balancing_robot_PID

    Used a PID control algorithm and MPU605 sensor to balance a two-wheeled robot.

    58 parts7
  • 2 layers56.8 × 68.6 mmEmg, the printed circuit board in 3D

    Emg

    leikoilja/muscle-imbalance-detection

    A device to assist patients with the rehabilitation of the knee joint after a knee surgery using EMG biofeedback. The device can reliably detect muscle activity and display it in an easy-to-use mobile application.

    84 parts6MIT
  • 2 layers135.8 × 56.1 mmPower board, the printed circuit board in 3D

    Power board

    xtarke/automated_buggy

    This shield connects microcontroller (MSP-EXP430FR2355) pins to the car's power board. Go to Power Board for more hardware information.

    87 parts5GPL-3.0
  • 2 layers33 × 58.8 mmFusion, the printed circuit board in 3D

    Fusion

    chungyu710/Fusion

    Capstone Design Project

    36 parts4
  • 4 layers160 × 117.5 mmDaveecu2, the printed circuit board in 3D

    Daveecu2

    miata-bot/daveecu2

    Speeduino Mainboard designed for NA Maita chassis

    249 parts3
  • 2 layersUltransonicHumidifier, the printed circuit board in 3D

    UltransonicHumidifier

    anuj-dangi/iot-and-automation

    Repo for IOT and automation projects

    19 parts2

Questions

How big is the Bluetooth module PCB?

It measures 40 × 30 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Bluetooth module use?

5 parts, built around the HC-05. 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 Bluetooth module KiCad files?

From the flash555588/ai-probe-router repository on GitHub, at the commit this page was made from: the board is examples/bluetooth_module/main.kicad_pcb and its schematic examples/audio_player_project/main.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Bluetooth module design in my own project?

Its repository states no licence, so its author keeps all rights: ask flash555588 before reusing the design.