Compare commits

...

7 Commits

Author SHA1 Message Date
King Kévin 200f8b179d make: remove components from 2d rendering 2024-03-08 07:14:50 +01:00
King Kévin 07570f2911 make: update bom tool 2024-03-08 07:14:21 +01:00
King Kévin 0830600044 make: include DNF parts 2024-03-08 07:14:21 +01:00
King Kévin 3933cbccf8 make: export 3d model 2024-03-08 07:14:21 +01:00
King Kévin 89b65b72de make: add MPN in BoM 2024-03-08 07:13:47 +01:00
King Kévin 9e186892e5 make: ignore DRC 2024-03-08 07:12:31 +01:00
King Kévin ddf9deb7fc lib: update repo 2024-03-08 07:07:09 +01:00
4 changed files with 16 additions and 9 deletions

1
.gitignore vendored
View File

@ -24,6 +24,7 @@ fp-info-cache
*.zip
*.bom.csv
*.cpl.csv
*.3d.step
*.versioned.*
fabrication

View File

@ -6,7 +6,7 @@ KICAD = kicad-cli
# path to qeda
QEDA := qeda
# path to KiBOM
KIBOM := ./KiBOM_CLI.py
KIBOM := kibom
# path to InteractiveHtmlBom
IBOMGEN := ~/.local/share/kicad/7.0/3rdparty/plugins/org_openscopeproject_InteractiveHtmlBom/generate_interactive_bom.py
@ -33,13 +33,13 @@ VERSIONED_SHEET = $(foreach SHEET,$(NAME) $(SUBSHEET),$(SHEET).versioned.kicad_s
FABRICATION_DIR := fabrication
IBOM := ${FABRICATION_DIR}/ibom.html
all: $(VERSIONED_SHEET) ${NAME}.sch.pdf ${NAME}.brd-top.png ${NAME}.brd-bot.png ${NAME}.bom.csv fab
all: $(VERSIONED_SHEET) ${NAME}.sch.pdf ${NAME}.brd-top.png ${NAME}.brd-bot.png ${NAME}.bom.csv ${NAME}.3d.step fab
fab: ${FABRICATION_DIR} ${IBOM}
# generate fabrication files (gerbers/drill/BoM/PnP)
${FABRICATION_DIR}: ${NAME}.versioned.kicad_sch ${NAME}.versioned.kicad_pcb
kikit fab jlcpcb --assembly --field JLCPCB,LCSC --schematic $^ $@
kikit fab jlcpcb --no-drc --assembly --field JLCPCB,LCSC --schematic $^ $@
# generate fabrication files (gerbers/drill/uncorrected PnP)
#${FABRICATION_DIR}: ${NAME}.versioned.kicad_pcb
@ -62,19 +62,23 @@ lib:
# generate render from layout (top side)
%.brd-top.png: %.versioned.kicad_pcb
pcbdraw plot --silent $< --dpi 600 --side front $@
pcbdraw plot --silent --no-components --dpi 600 --side front $< $@
# generate render from layout (bottom side)
%.brd-bot.png: %.versioned.kicad_pcb
pcbdraw plot --silent $< --dpi 600 --side back $@
pcbdraw plot --silent --no-components --dpi 600 --side back $< $@
# export Bill of Material (as CSV)
%.bom.xml: %.versioned.kicad_sch %.versioned.kicad_pro
$(KICAD) sch export python-bom --output $@ $<
# export 3D model
%.3d.step: %.versioned.kicad_pcb
$(KICAD) pcb export step --output $@ $<
# export Bill of Material (as CSV)
%.bom.csv: %.bom.xml
python $(KIBOM) $< $@
$(KIBOM) $< $@
# generate panel
PANEL_DIR := panel

View File

@ -1,7 +1,7 @@
[BOM_OPTIONS]
; General BoM options here
; If 'ignore_dnf' option is set to 1, rows that are not to be fitted on the PCB will not be written to the BoM file
ignore_dnf = 1
ignore_dnf = 0
; If 'html_generate_dnf' option is set to 1, also generate a list of components not fitted on the PCB (HTML only)
html_generate_dnf = 1
; If 'use_alt' option is set to 1, grouped references will be printed in the alternate compressed style eg: R1-R7,R18
@ -49,7 +49,7 @@ JLCPCB_CORRECTION
Rating
[COLUMN_ORDER]
; Columns will apear in the order they are listed here
; Columns will appear in the order they are listed here
; Titles are case-insensitive
References
Value
@ -60,6 +60,8 @@ Part Lib
Footprint
Footprint Lib
Build Quantity
Manufacturer
MPN
DigiKey
LCSC
JLCPCB

@ -1 +1 @@
Subproject commit cad0c1be57cd0fd363213b16c048edd32f382979
Subproject commit 14de4004fd07568f99994e23ddb6fcbd6a4d2e5a