Adding a new board

Options do deploy an inspection job onto OpenPnP

1. Automated CI-based workflow

Note

If you use an automated CI-based workflow, please use the steps below, otherwise proceed with: 2.Add a board manually.

  1. Open the .job.xml file in OpenPnP

  2. Enable the board with the -inspection suffix

  3. Disable all other boards

2. Add a board manually

Important

Components with the Exclude from bill of materials property set will have null assigned in the report.

  1. Open your KiCad board in PCB Editor, select File -> Fabrication Outputs -> Generate Placement Files, and Format as Plain Text.

Alternatively, the kicad-make tool can be used to generate .pos files:

kmake loclib
kmake gerber
kmake aux-origin -s bl
kmake pnp -to --dnp

Important

Next steps will be performed in OpenPnP, please clean the board before scanning.

  1. Create a new board in the Boards panel. Make sure the board’s name is the same as the project’s name (this name will be saved to report.json).

How to add a new board

  1. Press the created Board and go down to Import placements from CAD files

How to add new placements to a board

  1. In the new pop-up, add your generated .pos files from step 1.. Then select Assign Parts and Create Missing Parts. Selecting Use only Value as PartId will cause the Value field from KiCad to be used, without adding a package.

What Options to select for new placements

  1. Go to Job tab and add an existing board.

How to add board to job

  1. Set the board origin by moving the camera to the bottom-left corner of the PCB outline, where the leftmost and bottommost edges intersect. Click the blue square button to set the origin.

How to set origin

  1. Optional: set board dimensions in OpenPnP if you want an image of the whole board to be taken.

How to set dimensions

  1. Optional: add a placement with a QR* designator and assign its location to a QR code if you want to automatically assign a serial number.

  2. Optional: set fiducials as type: Fiducial and assign them corresponding parts.

  3. Perform a calibration using placements or fiducials (see step 9.)

How to calibrate

  1. In machine setup, set Settle Time to about 300 ms. You can also change brightness and contrast in the Device Settings. Note that the speed set in Machine Controls affects the speed of scanning.

How to set settle time

  1. Run perform_inspection.py from Scripts

How to run perform_inspection.py

  1. If prompted, input a custom scan location, comment about board assembly, input a serial number in the pop-up window, then set your location and add *-BOM-ALL-ReferenceNotGrouped.csv

Note

BOMs in csv format can be generated using kmake bom: kmake bom --all -g

  1. After the scan is finished, the images are saved to the configured custom location. If no custom location is set, they are saved to $XDG_DATA_HOME/pnvision or ~/.local/share/pnvision.

  2. It is recommended to scan one side of every board first.


Last update: 2026-11-24