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.
Open the .job.xml file in OpenPnP
Enable the board with the -inspection suffix
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.
Open your KiCad board in PCB Editor, select
File -> Fabrication Outputs -> Generate Placement Files, andFormatasPlain 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.
Create a new board in the
Boardspanel. Make sure the board’s name is the same as the project’s name (this name will be saved to report.json).

Press the created
Boardand go down toImport placements from CAD files

In the new pop-up, add your generated .pos files from step
1.. Then selectAssign PartsandCreate Missing Parts. SelectingUse only Value as PartIdwill cause theValuefield from KiCad to be used, without adding apackage.

Go to
Jobtab and add an existing board.

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.

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

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.Optional: set fiducials as type:
Fiducialand assign them corresponding parts.Perform a calibration using placements or fiducials (see step
9.)

In machine setup, set
Settle Timeto about 300 ms. You can also changebrightnessandcontrastin the Device Settings. Note that the speed set inMachine Controlsaffects the speed of scanning.

Run
perform_inspection.pyfromScripts

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
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/pnvisionor~/.local/share/pnvision.It is recommended to scan one side of every board first.