Source code for jitxlib.jlcpcb.vias
from jitx.via import Via, ViaType
[docs]
class UnfilledVias:
"""The plated, unfilled vias JLCPCB will make on any board, Rogers included.
Neither is a via-in-pad via. The 2-layer RO4350B substrates offer only
these: JLCPCB neither fills nor caps vias on its Rogers boards."""
[docs]
class StdVia(Via):
"""Standard Via with minimum pad size"""
name = "Standard Via Aggressive - No Extra Cost"
start_layer = 0
stop_layer = -1
diameter = 0.4
hole_diameter = 0.3
type = ViaType.MechanicalDrill
via_in_pad = False
[docs]
class StdViaPreferred(Via):
"""Standard Via with preferred pad size (larger)
This via definition uses the preferred +0.15mm
for the pad diameter which JLC-PCB recommends
"""
name = "Standard Via - No Extra Cost"
start_layer = 0
stop_layer = -1
diameter = 0.45
hole_diameter = 0.3
type = ViaType.MechanicalDrill
via_in_pad = False
[docs]
class StandardVias(UnfilledVias):
"""The via definitions JLCPCB will make on its FR-4 boards.
The unfilled vias plus :py:class:`StdViaTentedFilled`. As of 10/23/2024
:py:class:`StdViaPreferred` and :py:class:`StdViaTentedFilled` have no
up-charge for processing."""
[docs]
class StdViaTentedFilled(Via):
"""Standard Tented and Filled Via
This via is suitable for via-in-pad applications
and use the preferred +0.15mm for the pad diameter
which JLC-PCB recommends
"""
name = "Tented/Filled Standard Via"
start_layer = 0
stop_layer = -1
diameter = 0.45
hole_diameter = 0.3
type = ViaType.MechanicalDrill
tented = True
filled = True
via_in_pad = True
[docs]
class MultiLayerVias:
"""The extra-cost via tiers JLCPCB offers on 6+ layer boards.
These are not orderable on a 4-layer board, so only substrates with six or
more layers mix this in. Every tier costs more than the standard vias; the
number in the name is which cost tier it falls in.
"""
[docs]
class MultiLayerVia1(Via):
"""Multi-layer (6+) via with extra cost + 1.
There are multiple levels of extra cost that
JLCPCB supports for smaller vias. This is the
first layer.
This via definitions uses the standard +0.1mm for the pad diameter
"""
name = "Multi-Layer Via Aggressive - Cost + 1"
start_layer = 0
stop_layer = -1
diameter = 0.35
hole_diameter = 0.25
type = ViaType.MechanicalDrill
via_in_pad = False
[docs]
class MultiLayerVia1Preferred(Via):
"""Multi-layer (6+) via with extra cost + 1.
There are multiple levels of extra cost that
JLCPCB supports for smaller vias. This is the
first layer.
This via definitions uses the preferred +0.15mm for the pad diameter
"""
name = "Multi-Layer Via - Cost + 1"
start_layer = 0
stop_layer = -1
diameter = 0.4
hole_diameter = 0.25
type = ViaType.MechanicalDrill
via_in_pad = False
[docs]
class MultiLayerVia2(Via):
"""Multi-layer (6+) via with extra cost + 2.
There are multiple levels of extra cost that
JLCPCB supports for smaller vias. This is the
second layer.
This via definitions uses the standard +0.1mm for the pad diameter
"""
name = "Multi-Layer Via Aggressive - Cost + 2"
start_layer = 0
stop_layer = -1
diameter = 0.3
hole_diameter = 0.2
type = ViaType.MechanicalDrill
via_in_pad = False
[docs]
class MultiLayerVia2Preferred(Via):
"""Multi-layer (6+) via with extra cost + 2.
There are multiple levels of extra cost that
JLCPCB supports for smaller vias. This is the
second layer.
This via definitions uses the preferred +0.15mm for the pad diameter
"""
name = "Multi-Layer Via - Cost + 2"
start_layer = 0
stop_layer = -1
diameter = 0.35
hole_diameter = 0.2
type = ViaType.MechanicalDrill
via_in_pad = False
[docs]
class MultiLayerVia3(Via):
"""Multi-layer (6+) via with extra cost + 3.
There are multiple levels of extra cost that
JLCPCB supports for smaller vias. This is the
third layer.
This via definitions uses the standard +0.1mm for the pad diameter
"""
name = "Multi-Layer Via Aggressive - Cost + 3"
start_layer = 0
stop_layer = -1
diameter = 0.25
hole_diameter = 0.15
type = ViaType.MechanicalDrill
via_in_pad = False
[docs]
class MultiLayerVia3Preferred(Via):
"""Multi-layer (6+) via with extra cost + 3.
There are multiple levels of extra cost that
JLCPCB supports for smaller vias. This is the
third layer.
This via definitions uses the preferred +0.15mm for the pad diameter
"""
name = "Multi-Layer Via - Cost + 3"
start_layer = 0
stop_layer = -1
diameter = 0.3
hole_diameter = 0.15
type = ViaType.MechanicalDrill
via_in_pad = False
[docs]
class JLCPCBVias(StandardVias, MultiLayerVias):
"""Every via JLCPCB offers for a 6+ layer board, standard and extra-cost
alike. Be aware that the extra-cost tiers are charged for.
Kept as the name substrates in this package used before the set was split
by layer count; a 4-layer substrate must use :py:class:`StandardVias`.
"""