forked from INTI-CMNB/kibot_variants_arduprog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathardu_prog.kibot.yaml
245 lines (225 loc) · 5.59 KB
/
ardu_prog.kibot.yaml
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
# Example KiBot config file for ardu_prog.pro
kibot:
version: 1
globals:
# Filters for KiBot warnings
filters:
- filter: Ignore PcbDraw missing components
number: 103
- filter: Ignore missing KiCad config, not in docker images
number: 8
- filter: Ignore missing KiCad 3D models, not in docker images
number: 10
- filter: Ignore missing KiCad config from KiAuto, not in docker images
number: 58
regex: kicad_common.json
# This will undo the `set_text_variables` when we run it locally
restore_project: true
# We will use a value externally formatted
time_reformat: false
preflight:
check_zone_fills: true
run_erc: true
run_drc: true
# Filters for ERC/DRC errors/warnings
filters:
- filter: 'We know some connectors extend outside the board'
error: 'silk_over_copper'
regex: 'clipped by solder mask'
set_text_variables:
# The revision will be the short git hash
# We use ${git_hash} for the REV field in the worksheet (frame)
- name: 'git_hash'
command: 'git log -1 --format="%h" $KIBOT_PCB_NAME'
before: 'Git:'
# Coherent date and time for the schematic and PCB
# This will be the time stamp of the files generation, not the commit times
# We use `${date}` for the time field in the worksheet (frame)
- name: 'date'
command: 'date --iso-8601=minutes'
variants:
- name: 'default'
comment: 'Minimal PCB no USB'
type: kibom
- name: 'USB'
comment: 'Full board'
type: kibom
file_id: _USB
variant: USB
- name: 'XTAL'
comment: 'No USB, but crystal included'
type: kibom
file_id: _XTAL
variant: XTAL
outputs:
- name: 'bom_xlsx'
comment: "Spreadsheet for the Bill of Materials"
type: bom
dir: BoM
options: &bom_options
xlsx:
datasheet_as_link: MFP
title: 'KiBot variants example'
max_col_width: 40
highlight_empty: false
columns:
- Row
- References
- Quantity Per PCB
- field: Value
join: ['voltage', 'current', 'power', 'tolerance']
- field: MFN
name: Manufacturer
- field: MFP
name: Manf. Part
- Footprint
normalize_values: true
- name: 'bom_html'
comment: "HTML for the Bill of Materials"
type: bom
dir: BoM
options:
<<: *bom_options
format: HTML
html:
datasheet_as_link: MFP
title: 'KiBot variants example'
highlight_empty: false
- name: ibom
comment: 'Prototype mounting guide'
type: ibom
dir: BoM
options:
layer_view: F
- name: 'print_sch'
comment: "Schematic PDF"
type: pdf_sch_print
dir: Schematic
options:
# Append the variant to the title
title: "+ (%V variant)"
- name: gerbers
comment: Gerbers
type: gerber
dir: Gerbers
layers:
- copper
- Edge.Cuts
- F.SilkS
- B.SilkS
- F.Mask
- B.Mask
- F.Paste
- F.Adhes
- F.Fab
- F.CrtYd
- Dwgs.User
- name: drill
comment: Drill files
type: excellon
dir: Drill
options:
map:
type: pdf
pth_and_npth_single_file: false
- name: position
comment: Pick & Place
type: position
dir: Position
options:
separate_files_for_front_and_back: false
- name: print_pdf
comment: "PDF for the PCB"
type: pcb_print
dir: PCB
options:
force_edge_cuts: true
keep_temporal_files: true
# Append the variant to the title
title: "+ (%V variant)"
# This is the worksheet we selected in the project, no need to specify it again
# sheet_reference_layout: pcb_print.kicad_wks
scaling: 2.0
pages:
- layers: [ F.Paste, F.Adhes, Dwgs.User, F.Fab ]
sheet: 'Fabrication layers'
- layers:
- layer: F.Cu
- layer: F.Mask
color: '#14332440'
- layer: F.SilkS
- layer: Dwgs.User
sheet: 'Top layer'
- layers: [ GND.Cu, Dwgs.User ]
sheet: 'GND plane'
- layers: [ Power.Cu, Dwgs.User ]
sheet: 'Power plane'
- layers:
- layer: B.Cu
- layer: B.Mask
color: '#14332440'
- layer: B.SilkS
- layer: Dwgs.User
sheet: 'Bottom layer'
mirror: true
- name: board_top
comment: "Top layer view"
type: pcbdraw
dir: PCB
options:
format: jpg
dpi: 300
- name: board_top_filled
comment: "Top layer view with components"
type: pcbdraw
dir: PCB
output_id: '-filled'
options:
format: jpg
dpi: 300
show_components: all
- name: board_bottom
comment: "Bottom layer view"
type: pcbdraw
dir: PCB
options:
format: jpg
dpi: 300
bottom: true
- name: board_bottom_filled
comment: "Bottom layer view with components"
type: pcbdraw
dir: PCB
output_id: '-filled'
options:
format: jpg
dpi: 300
bottom: true
show_components: all
- name: 3D
comment: "STEP 3D model"
type: step
dir: 3D
- name: 3D_top_view
comment: "3D render from top"
type: render_3d
dir: 3D
options:
zoom: 4
rotate_x: 3
rotate_z: 3
ray_tracing: true
- name: 3D_top_view_HQ
comment: "3D render from top (High Quality)"
type: blender_export
dir: 3D
options:
render_options:
transparent_background: true
samples: 20
point_of_view:
rotate_x: 30
rotate_z: -20
outputs:
- type: blender
- type: render