Skip to content

Commit 91bc463

Browse files
authored
Merge pull request #36 from Neotron-Compute/bugfix/update_bom
Bugfix/update bom
2 parents 5a53e95 + 8f07637 commit 91bc463

File tree

12 files changed

+966
-387
lines changed

12 files changed

+966
-387
lines changed

.github/workflows/kicad-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ jobs:
4343
draft: false
4444
prerelease: false
4545
- name: Build gerbers zip file
46+
env:
47+
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
4648
run: |
47-
zip -r --junk-paths neotron-pico-gerbers.zip docs/gerbers/
49+
zip -r --junk-paths neotron-pico-gerbers-${SOURCE_TAG}.zip docs/gerbers/
4850
- name: Upload files to Release
4951
uses: softprops/action-gh-release@v1
5052
with:
5153
files: |
52-
neotron-pico-gerbers.zip
54+
neotron-pico-gerbers-*.zip
5355
docs/*
5456
env:
5557
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Kicad/audio.sch

Lines changed: 256 additions & 93 deletions
Large diffs are not rendered by default.

Kicad/bmc.sch

Lines changed: 127 additions & 25 deletions
Large diffs are not rendered by default.

Kicad/dac4.sch

Lines changed: 201 additions & 191 deletions
Large diffs are not rendered by default.

Kicad/docs.kibot.yaml

Lines changed: 90 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ filters:
1515
- column: 'LCSC Part#'
1616
regex: '^C\d+'
1717

18+
- name: only_fitted_parts
19+
comment: 'Only parts that are not DNF'
20+
type: generic
21+
include_only:
22+
- column: 'DNP'
23+
regex: '^0'
24+
1825
variants:
1926
- name: rotated
2027
comment: 'Just a place holder for the rotation filter'
@@ -31,14 +38,13 @@ preflight:
3138

3239
outputs:
3340
# For more information: https://github.com/INTI-CMNB/KiBoM
34-
- name: 'generic Schematic PDF'
41+
- name: 'generic_sch_pdf'
3542
comment: "Print the schematic as a PDF"
3643
type: pdf_sch_print
37-
dir: pdfs
3844
options:
3945
output: '%f-schematic-%r.%x'
4046

41-
- name: 'generate gerbers'
47+
- name: 'make_gerbers'
4248
comment: "Generate gerber files"
4349
type: gerber
4450
layers:
@@ -74,17 +80,17 @@ outputs:
7480
use_gerber_x2_attributes: true
7581
use_gerber_net_attributes: false
7682

77-
- name: 'generate drills'
83+
- name: 'make_drills'
7884
comment: "Generate drill files"
7985
type: excellon
8086
dir: gerbers
8187

82-
- name: 'ascii position'
88+
- name: 'make_ascii_position'
8389
comment: "Generate XY position files in ASCII"
8490
type: position
8591
dir: gerbers
8692

87-
- name: 'generate PCB DXF'
93+
- name: 'make_dxf'
8894
comment: "Generate 2D PCB CAD in DXF format"
8995
type: dxf
9096
layers:
@@ -104,29 +110,28 @@ outputs:
104110
exclude_edge_layer: false
105111
metric_units: true
106112

107-
- name: 'generate SVG'
113+
- name: 'make_svg'
108114
comment: "Generate 2D PCB image in SVG format"
109115
type: pcbdraw
110116
options:
111117
output: '%f-pcb-%r.%x'
112118

113-
- name: 'generate PNG'
119+
- name: 'make_png'
114120
comment: "Generate 2D PCB image in PNG format"
115121
type: pcbdraw
116122
options:
117123
output: '%f-pcb-%r.%x'
118124
format: png
119125

120-
- name: 'generate 3D model'
126+
- name: 'make_step'
121127
comment: "Generate 3D PCB model in STEP format"
122128
type: step
123129
options:
124130
output: '%f-3d-%r.%x'
125131

126-
- name: 'generate PCB PDF'
132+
- name: 'make_pcb_pdf'
127133
comment: "Generate 2D PCB CAD in PDF format"
128134
type: pdf_pcb_print
129-
dir: pdfs
130135
layers:
131136
- F.Cu
132137
- In1.Cu
@@ -144,22 +149,78 @@ outputs:
144149
separated: true
145150
monochrome: true
146151

147-
- name: 'generate BoM in CSV'
148-
comment: "Generate bill-of-material files"
149-
type: kibom
150-
dir: gerbers
152+
- name: 'make_bom_csv'
153+
comment: "Generate bill-of-material file as CSV"
154+
type: bom
151155
options:
156+
exclude_filter: 'only_fitted_parts'
157+
group_fields:
158+
- 'Part'
159+
- 'Part Lib'
160+
- 'Value'
161+
- 'Voltage'
162+
- 'Tolerance'
163+
- 'Footprint'
164+
- 'Footprint Lib'
165+
columns:
166+
- field: Manufacturer
167+
name: Part Number
168+
join: ['mpn']
169+
- Footprint
170+
- References
171+
- Quantity per PCB
172+
- field: Value
173+
join: ['voltage', 'current', 'power', 'tolerance']
174+
- Footprint
175+
- field: 'LCSC Part#'
176+
name: LCSC
177+
- Digikey
178+
- Mouser
179+
output: '%f-bom-%r.%x'
180+
181+
- name: 'make_bom_html'
182+
comment: "Generate bill-of-material files as HTML"
183+
type: bom
184+
options:
185+
format: HTML
186+
exclude_filter: 'only_fitted_parts'
187+
html:
188+
datasheet_as_link: "Datasheet"
189+
digikey_link: "Digikey"
190+
title: "Neotron Pico Bill of Materials"
191+
group_fields:
192+
- 'Part'
193+
- 'Part Lib'
194+
- 'Value'
195+
- 'Voltage'
196+
- 'Tolerance'
197+
- 'Footprint'
198+
- 'Footprint Lib'
199+
columns:
200+
- Row
201+
- field: Manufacturer
202+
name: Part Number
203+
join: ['mpn']
204+
- References
205+
- Quantity per PCB
206+
- field: Value
207+
join: ['voltage', 'current', 'power', 'tolerance']
208+
- field: 'LCSC Part#'
209+
name: LCSC
210+
- Digikey
211+
- Mouser
212+
- Footprint
152213
output: '%f-bom-%r.%x'
153214

154-
- name: 'generate BoM in HTML'
215+
- name: 'make_ibom'
155216
comment: "Generate assembly HTML page"
156217
type: ibom
157-
dir: ibom
158218
options:
159219
output: '%f-ibom-%r.%x'
220+
extra_fields: "Voltage,Tolerance,Manufacturer,MPN"
160221

161-
- name: 'jlc position'
162-
comment: "Pick and place file, JLC style"
222+
- name: 'make_jlc_position'
223+
comment: "Generate pick and place file, JLC style"
163224
type: position
164225
options:
165226
variant: rotated
@@ -182,10 +243,18 @@ outputs:
182243
- id: Side
183244
name: Layer
184245

185-
- name: 'jlc bom'
186-
comment: "BoM for JLC"
246+
- name: 'make_jlc_bom'
247+
comment: "Generate BoM, JLC style"
187248
type: bom
188249
options:
250+
group_fields:
251+
- 'Part'
252+
- 'Part Lib'
253+
- 'Value'
254+
- 'Voltage'
255+
- 'Tolerance'
256+
- 'Footprint'
257+
- 'Footprint Lib'
189258
output: '%f-bom-jlc-%r.%x'
190259
exclude_filter: 'only_jlc_parts'
191260
ref_separator: ','

Kicad/io_exp.sch

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ F 5 "MCP23S17T-E/SOCT-ND" H 4425 3050 50 0001 C CNN "Digikey"
2626
F 6 "MCP23S17T-E/SO" H 4425 3050 50 0001 C CNN "MPN"
2727
F 7 "Microchip" H 4425 3050 50 0001 C CNN "Manufacturer"
2828
F 8 "C145413" H 4425 3050 50 0001 C CNN "LCSC Part#"
29+
F 9 "~" H 4425 3050 50 0001 C CNN "Mouser"
30+
F 10 "~" H 4425 3050 50 0001 C CNN "Tolerance"
31+
F 11 "~" H 4425 3050 50 0001 C CNN "Voltage"
2932
1 4425 3050
3033
1 0 0 -1
3134
$EndComp
@@ -173,6 +176,9 @@ F 5 "296-8278-1-ND" H 6050 3650 50 0001 C CNN "Digikey"
173176
F 6 "SN74HC245NSR" H 6050 3650 50 0001 C CNN "MPN"
174177
F 7 "Texas Instruments" H 6050 3650 50 0001 C CNN "Manufacturer"
175178
F 8 "C5625" H 6050 3650 50 0001 C CNN "LCSC Part#"
179+
F 9 "595-SN74HC245NSR" H 6050 3650 50 0001 C CNN "Mouser"
180+
F 10 "~" H 6050 3650 50 0001 C CNN "Tolerance"
181+
F 11 "~" H 6050 3650 50 0001 C CNN "Voltage"
176182
1 6050 3650
177183
1 0 0 -1
178184
$EndComp
@@ -313,11 +319,13 @@ F 1 "100nF" H 8015 2455 50 0000 L CNN
313319
F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 7938 2350 50 0001 C CNN
314320
F 3 "~" H 7900 2500 50 0001 C CNN
315321
F 4 "0" H 7900 2500 50 0001 C CNN "DNP"
316-
F 5 "" H 7900 2500 50 0001 C CNN "Digikey"
322+
F 5 "~" H 7900 2500 50 0001 C CNN "Digikey"
317323
F 6 "CPL-CAP-X7R-0805-100NF-50V" H 7900 2500 50 0001 C CNN "MPN"
318324
F 7 "CPL" H 7900 2500 50 0001 C CNN "Manufacturer"
319-
F 8 "" H 7900 2500 50 0001 C CNN "Mouser"
325+
F 8 "~" H 7900 2500 50 0001 C CNN "Mouser"
320326
F 9 "C49678" H 7900 2500 50 0001 C CNN "LCSC Part#"
327+
F 10 "X5R" H 7900 2500 50 0001 C CNN "Tolerance"
328+
F 11 "10V" H 7900 2500 50 0001 C CNN "Voltage"
321329
1 7900 2500
322330
1 0 0 -1
323331
$EndComp
@@ -336,11 +344,13 @@ F 1 "100nF" H 8490 2455 50 0000 L CNN
336344
F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder" H 8413 2350 50 0001 C CNN
337345
F 3 "~" H 8375 2500 50 0001 C CNN
338346
F 4 "0" H 8375 2500 50 0001 C CNN "DNP"
339-
F 5 "" H 8375 2500 50 0001 C CNN "Digikey"
347+
F 5 "~" H 8375 2500 50 0001 C CNN "Digikey"
340348
F 6 "CPL-CAP-X7R-0805-100NF-50V" H 8375 2500 50 0001 C CNN "MPN"
341349
F 7 "CPL" H 8375 2500 50 0001 C CNN "Manufacturer"
342-
F 8 "" H 8375 2500 50 0001 C CNN "Mouser"
350+
F 8 "~" H 8375 2500 50 0001 C CNN "Mouser"
343351
F 9 "C49678" H 8375 2500 50 0001 C CNN "LCSC Part#"
352+
F 10 "X5R" H 8375 2500 50 0001 C CNN "Tolerance"
353+
F 11 "10V" H 8375 2500 50 0001 C CNN "Voltage"
344354
1 8375 2500
345355
1 0 0 -1
346356
$EndComp

Kicad/neotron-pico.dcm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@ D 16-bit I/O expander, SPI, interrupts, w pull-ups, SOIC-28
55
K SPI parallel port expander
66
F http://ww1.microchip.com/downloads/en/DeviceDoc/20001952C.pdf
77
$ENDCMP
8+
$CMP Raspberry_Pi_Pico
9+
D Processor Board with dual-core 133 MHz Cortex-M0+, 2 MiB Flash and 256 KiB SRAM
10+
K Processor Board
11+
F https://datasheets.raspberrypi.org/pico/pico-datasheet.pdf
12+
$ENDCMP
813
#
914
#End Doc Library

0 commit comments

Comments
 (0)