Skip to main content

PCB holder and testing jig generator

Project description

PCB Jigify!

An example PCB, its outline, and an automatically generated jig based on the outline

Generate holding and testing jigs for your PCBs directly from your PCB files!

Additional features:

  • embed magnets in the jigs
  • include registration features
  • tight KiCad integration

Installation

Using pipx (installation instructions) is recommended:

pipx install pcb-jigify

Alternatively, if the above doesn't work for you (PyPi doesn't allow GitHub dependencies, so our CadQuery version is quite outdated), you can try installing directly from GitHub:

pipx install git+https://github.com/mmalecki/pcb-jigify.git

Usage

Holding jigs

This type of jig holds the PCB in place, for example for solder paste application.

KiCad

PCB Jigify integrates tightly with KiCad, but can also be used with other ECADs that are able to export DXF files.

Generate the jig

You can generate the most basic of jigs by passing in an input board, and output model file:

pcb-jigify holding --output holder.step pcb.kicad_pcb
Optional: place registration features

If you have any registration features (for example, pins, such as used in the eC-Registration system), you can generate a jig with them included.

For example, to use a mounting hole as a registration feature, edit the mounting hole footprint to include the paste and one of the user layers. We'll be using the User.Eco1 layer:

Default mounting hole KiCad footprint with both paste and User.Eco1 layers enabled

In manufacturing, this will cause the stencil to have the mounting hole etched through (because the paste layer indicates a stencil opening), the PCB drilled (as indicated by the drill point), and the holder to have a hole for press-fitting it (due to our very own User.Eco1 indicator).

Then, when generating the jig, pass the same registration layer, and how deep the registration features should be cut into the jig, for example"

pcb-jigify holding \
    --registration-layer User.Eco1 --registration-depth 2 \
    --output holder.step \
    pcb.kicad_pcb

to make a 2 mm cut into the jig using contents of User.Eco1 layer.

Note: the stencil, drilling and copper etching processes are separate parts of the manufacturing process. The quality of alignment of drilled holes in the PCB, etches in the stencil and the copper layer depends sorely on your manufacturer. In other words, know your limitations using this method.

DXF

DXF is a CAD file format many ECAD applications are able to output to.

Generate the jig

To generate a jig from DXF files, pass in the edge cuts file, and optionally the registration layer, for example:

pcb-jigify holding \
    [--registration-layer pcb-User_Eco1.dxf --registration-depth 2] \
    --output holder.step \
    pcb-Edge_Cuts.dxf

Testing jigs

Testing jigs utilizing pogo pins can be generated in a similar fashion.

In order to place testing features, pick a testing layer. We'll be using User.Eco2 in our examples.

Add a "copper" layer User.Eco2 to pads you want to target with test probes. They don't need to be test pads - you can add this layer to any pad, test probe will be placed at its center.

You will also need to pass in the test probe diameter and the holding length.
As an example, for a Mill-Max spring-loaded pin with solder cup termination (0955-0-15-20-71-14-11-0), the diameter would be 0.889 mm (0.035" in the datasheet), and the length 4.0894 mm (0.301" - 0.140" = 0.161" in the datasheet).

pcb-jigify testing \
    --testing-layer User.Eco2 --test-probe-diameter 0.889 --test-probe-length 4.0894 \
    --output tester.step \
    pcb.kicad_pcb

Registration layer is also supported here, if desired.

Note: due to small dimensions of most test probes, you may have to print the testing jigs on a resin printer.

Jig configuration

PCB Jigify allows for in-depth configuration of some of the features of the jigs.

Common

  • PCB fit - --pcb-fit - how much clearance should there be between the PCB and the holder (default: 0.1 mm)

Tips, tricks, notes

  • Registration pins can be made from anything, including gold header pins stripped of their plastic part or bolts with their heads cut off
  • Slicers may complain about open edges or other faults in generated files. As long as the file looks printable, this shouldn't cause any issues.
  • If the generation of the jig fails for any reason, don't hesitate to open an issue, preferably with a DXF export of the board outline layer included.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pcb_jigify-0.1.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pcb_jigify-0.1.1-py2.py3-none-any.whl (8.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pcb_jigify-0.1.1.tar.gz.

File metadata

  • Download URL: pcb_jigify-0.1.1.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.8 Linux/6.12.8-amd64

File hashes

Hashes for pcb_jigify-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c0132eec614b51685c8ca7095ba3dfdbcec2d58133b68c21c644bca09a654ced
MD5 c7783a79702f3ad5011639b9f604ba2b
BLAKE2b-256 bb229b2d2d190431ff20d33ae9b38a8735ff35e96e207f1f27f5449418f6b307

See more details on using hashes here.

File details

Details for the file pcb_jigify-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pcb_jigify-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.8 Linux/6.12.8-amd64

File hashes

Hashes for pcb_jigify-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2bff70a0dd86fb3145b2d779cf779963359af7a187cf7bf9aca4ceb155fc3f3a
MD5 0bd605b8b6e888be9a86337d844149fa
BLAKE2b-256 f9e8eb8d59461530ea8954bcf6a4fa1ff8974709b00c00441dde050f274840dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page