-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStock-Ticker-Hardware.kicad_dru
More file actions
146 lines (121 loc) · 3.57 KB
/
Stock-Ticker-Hardware.kicad_dru
File metadata and controls
146 lines (121 loc) · 3.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
(version 1)
# Custom Design Rules (DRC) for KiCAD 8.0 (2 Layers PCB) (Stored in '<project>.kicad_dru' file).
#
# Matching JLCPCB capabilities: https://jlcpcb.com/capabilities/pcb-capabilities
#
# KiCad documentation: https://docs.kicad.org/master/id/pcbnew/pcbnew_advanced.html#custom_design_rules
#
# Last revision: 2025-01-04
(rule "Minimum Track Width"
(condition "A.Type == 'track'")
(constraint track_width (min 0.10mm))
)
(rule "Minimum Track Clearance"
(condition "A.Type == 'track' && B.Type == A.Type")
(constraint clearance (min 0.10mm))
)
# silkscreen
(rule "Minimum Silkscreen Text Size"
(layer "?.Silkscreen")
(condition "A.Type == 'Text' || A.Type == 'Text Box'")
(constraint text_thickness (min 0.15mm))
(constraint text_height (min 1mm))
)
(rule "Pad to Silkscreen Clearance"
(layer outer)
(condition "A.Type == 'pad' && B.Layer == '?.Silkscreen'")
(constraint silk_clearance (min 0.15mm))
)
# edge clearance
(rule "Track to Board Edge Clearance"
(condition "A.Type == 'track'")
(constraint edge_clearance (min 0.2mm))
)
# drill/hole size
(rule "Mechanical Drill Hole Size"
(constraint hole_size (min 0.15mm) (max 6.3mm))
)
(rule "Minimum Via Hole Size"
(condition "A.Type == 'via'")
(constraint hole_size (min 0.15mm))
)
(rule "Minimum Via Diameter"
(condition "A.Type == 'via'")
(constraint via_diameter (min 0.25mm))
)
(rule "PTH Hole Size"
(condition "A.isPlated()")
(constraint hole_size (min 0.15mm) (max 6.35mm))
)
(rule "NPTH Hole Size"
(layer outer)
(condition "!A.isPlated()")
(constraint hole_size (min 0.5mm))
)
(rule "Castellated Hole Size"
(layer outer)
(condition "A.Type == 'pad' && A.Fabrication_Property == 'Castellated pad'")
(constraint hole_size (min 0.6mm))
)
(rule "Annular Ring Width (PTH)"
(layer outer)
(condition "A.isPlated()")
(constraint annular_width (min 0.20mm))
)
(rule "Annular Ring Width (NPTH)"
(layer outer)
(condition "!A.isPlated()")
(constraint annular_width (min 0.45mm))
)
# clearance
(rule "Hole to Hole Clearance (diff. nets)"
(layer outer)
(condition "A.Net != B.Net")
(constraint hole_to_hole (min 0.45mm))
)
(rule "Hole to Hole Clearance (same net)"
(layer outer)
(condition "A.Net == B.Net")
(constraint hole_to_hole (min 0.2mm))
)
(rule "Via to Track Clearance"
(condition "A.Type == 'via' && B.Type == 'track'")
(constraint hole_clearance (min 0.2mm))
)
(rule "Via to Via Clearance (same net)"
(condition "A.Type == 'via' && B.Type == A.Type && A.Net == B.Net")
(constraint hole_to_hole (min 0.2mm))
)
(rule "Pad to Pad Clearance (with hole, diff. nets)"
(condition "A.Type == 'pad' && B.Type == A.Type && A.Net != B.Net")
(constraint hole_to_hole (min 0.45mm))
)
(rule "Pad to Pad Clearance (without hole, diff. nets)"
(condition "A.Type == 'pad' && B.Type == A.Type && A.Net != B.Net")
(constraint clearance (min 0.127mm))
)
(rule "NPTH to Track Clearance"
(condition "A.Pad_Type == 'NPTH, mechanical' && B.Type == 'track'")
(constraint hole_clearance (min 0.2mm))
)
(rule "PTH to Track Clearance"
(condition "A.isPlated() && B.Type == 'track'")
(constraint hole_clearance (min 0.28mm))
)
(rule "Pad to Track Clearance"
(condition "A.isPlated() && B.Type == 'track'")
(constraint clearance (min 0.1mm))
)
# additional rules
(rule "Copper to Board Edge Clearance"
(condition "A.Type == 'track' || A.Type == 'zone'")
(constraint edge_clearance (min 0.2mm))
)
(rule "Copper Pour to Copper Pour Clearance"
(condition "A.Type == 'zone'")
(constraint clearance (min 0.2mm))
)
(rule "Blind/Buried Vias (Not Supported)"
(condition "A.Type == 'via' && A.Layer != 'outer'")
(constraint hole_size (min 0.15mm))
)