Site Tools


Sidebar

Work

Projects Travel Singapore Socials (External)

projects:electronics:kicad_and_jlcpcb

KiCad and JLCPCB

CPWG

A 50-ohm CPWG on JLC0216 with 0.1mm clearance between trace and ground pour: 0.3472mm trace.

Impedance Control Stackup

KiCad board stackup editor parameters for JLCPCB, with dielectric constants and thicknesses reverse-engineered from the SI9000 field solver inputs embedded in the JLCPCB impedance calculator.

JLCPCB JLC0216 (2-Layer, 1.6mm)

Id Type Material Thickness Color Epsilon R Loss Tan
F.Silkscreen Top Silk Screen Not specified Not specified
F.Paste Top Solder Paste
F.Mask Top Solder Mask Not specified 0.02032 mm Not specified 3.8 0
F.Cu Copper 0.03556 mm
Dielectric 1 Core FR4 1.48824 mm Not specified 4.05 0.02
B.Cu Copper 0.03556 mm
B.Mask Bottom Solder Mask Not specified 0.02032 mm Not specified 3.8 0
B.Paste Bottom Solder Paste
B.Silkscreen Bottom Silk Screen Not specified Not specified

Default KiCad project template

A KiCad 10 project template that helps you stay within the base pricing for 1.6mm 2L boards.

Install

  1. Open KICAD_USER_TEMPLATE_DIR (~/Documents/KiCad/10.0/template on macOS).
  2. Create JLCPCB-2L-1.6mm/ there.
  3. Add JLCPCB-2L-1.6mm.kicad_pro, .kicad_pcb, .kicad_dru, .kicad_sch and meta/info.html to it.
  4. Optional: to make it the default, use the default/ folder instead and name the files default.*.

Usage

  • New project: File → New Project from Template → User Templates, or File → New Project if installed as the default.
  • Existing board: Board Setup → Import Settings from Another Board, then copy in the .kicad_dru.

Custom rules

JLCPCB-2L-1.6mm.kicad_dru
(version 1)
 
# Free vias: 0.3/0.4 mm, or 0.2/0.45 mm
(rule "JLC: via hole under 0.3 mm needs 0.45 mm diameter"
	(condition "A.Type == 'Via' && A.Hole < 0.3mm")
	(constraint via_diameter (min 0.45mm)))
 
(rule "JLC: drill under 0.2 mm is surcharged"
	(constraint hole_size (min 0.2mm)))
 
(rule "JLC: non-plated hole minimum"
	(condition "A.Type == 'Pad' && A.Pad_Type == 'NPTH, mechanical'")
	(constraint hole_size (min 0.5mm)))
 
(rule "JLC: plated slot width"
	(condition "A.Type == 'Pad' && A.Pad_Type == 'Through-hole' && A.Hole_Size_X != A.Hole_Size_Y")
	(constraint hole_size (min 0.5mm)))
 
(rule "JLC: via hole to copper"
	(condition "A.Type == 'Via'")
	(constraint hole_clearance (min 0.2mm)))
 
(rule "JLC: plated pad hole to copper"
	(condition "A.Type == 'Pad' && A.Pad_Type == 'Through-hole'")
	(constraint hole_clearance (min 0.28mm)))
 
(rule "JLC: via hole to via hole"
	(condition "A.Type == 'Via' && B.Type == 'Via'")
	(constraint hole_to_hole (min 0.2mm)))
 
(rule "JLC: pad hole to pad hole"
	(condition "A.Type == 'Pad' && B.Type == 'Pad'")
	(constraint hole_to_hole (min 0.45mm)))
 
# Holes of 0.3 mm or less are thermal vias
(rule "JLC: plated pad annular ring"
	(condition "A.Type == 'Pad' && A.Pad_Type == 'Through-hole' && A.Hole_Size_X > 0.3mm")
	(constraint annular_width (min 0.18mm)))
 
(rule "JLC: silkscreen to pad"
	(layer outer)
	(condition "A.Type == 'Pad' || B.Type == 'Pad'")
	(constraint silk_clearance (min 0.15mm)))
 
(rule "JLC: copper to routed edge"
	(constraint edge_clearance (min 0.2mm)))

Constraints

Setting Value
Clearance, track width 0.1 mm
Via diameter / annular width 0.4 / 0.05 mm
Through hole 0.2 mm
Hole clearance, hole to hole 0.2 mm
Copper to edge 0.2 mm
Solder mask web 0.1 mm
Text height / thickness 1.0 / 0.15 mm

Default netclass: 0.1 mm track, 0.1 mm clearance, 0.45/0.3 mm via.

projects/electronics/kicad_and_jlcpcb.txt · Last modified: by Andrew Yong