Compare commits
7 Commits
0d73e5171d
...
200f8b179d
Author | SHA1 | Date |
---|---|---|
King Kévin | 200f8b179d | |
King Kévin | 07570f2911 | |
King Kévin | 0830600044 | |
King Kévin | 3933cbccf8 | |
King Kévin | 89b65b72de | |
King Kévin | 9e186892e5 | |
King Kévin | ddf9deb7fc |
|
@ -24,6 +24,7 @@ fp-info-cache
|
||||||
*.zip
|
*.zip
|
||||||
*.bom.csv
|
*.bom.csv
|
||||||
*.cpl.csv
|
*.cpl.csv
|
||||||
|
*.3d.step
|
||||||
*.versioned.*
|
*.versioned.*
|
||||||
fabrication
|
fabrication
|
||||||
|
|
||||||
|
|
16
Makefile
16
Makefile
|
@ -6,7 +6,7 @@ KICAD = kicad-cli
|
||||||
# path to qeda
|
# path to qeda
|
||||||
QEDA := qeda
|
QEDA := qeda
|
||||||
# path to KiBOM
|
# path to KiBOM
|
||||||
KIBOM := ./KiBOM_CLI.py
|
KIBOM := kibom
|
||||||
# path to InteractiveHtmlBom
|
# path to InteractiveHtmlBom
|
||||||
IBOMGEN := ~/.local/share/kicad/7.0/3rdparty/plugins/org_openscopeproject_InteractiveHtmlBom/generate_interactive_bom.py
|
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
|
FABRICATION_DIR := fabrication
|
||||||
IBOM := ${FABRICATION_DIR}/ibom.html
|
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}
|
fab: ${FABRICATION_DIR} ${IBOM}
|
||||||
|
|
||||||
# generate fabrication files (gerbers/drill/BoM/PnP)
|
# generate fabrication files (gerbers/drill/BoM/PnP)
|
||||||
${FABRICATION_DIR}: ${NAME}.versioned.kicad_sch ${NAME}.versioned.kicad_pcb
|
${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)
|
# generate fabrication files (gerbers/drill/uncorrected PnP)
|
||||||
#${FABRICATION_DIR}: ${NAME}.versioned.kicad_pcb
|
#${FABRICATION_DIR}: ${NAME}.versioned.kicad_pcb
|
||||||
|
@ -62,19 +62,23 @@ lib:
|
||||||
|
|
||||||
# generate render from layout (top side)
|
# generate render from layout (top side)
|
||||||
%.brd-top.png: %.versioned.kicad_pcb
|
%.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)
|
# generate render from layout (bottom side)
|
||||||
%.brd-bot.png: %.versioned.kicad_pcb
|
%.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)
|
# export Bill of Material (as CSV)
|
||||||
%.bom.xml: %.versioned.kicad_sch %.versioned.kicad_pro
|
%.bom.xml: %.versioned.kicad_sch %.versioned.kicad_pro
|
||||||
$(KICAD) sch export python-bom --output $@ $<
|
$(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)
|
# export Bill of Material (as CSV)
|
||||||
%.bom.csv: %.bom.xml
|
%.bom.csv: %.bom.xml
|
||||||
python $(KIBOM) $< $@
|
$(KIBOM) $< $@
|
||||||
|
|
||||||
# generate panel
|
# generate panel
|
||||||
PANEL_DIR := panel
|
PANEL_DIR := panel
|
||||||
|
|
6
bom.ini
6
bom.ini
|
@ -1,7 +1,7 @@
|
||||||
[BOM_OPTIONS]
|
[BOM_OPTIONS]
|
||||||
; General BoM options here
|
; 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
|
; 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)
|
; 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
|
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
|
; 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
|
Rating
|
||||||
|
|
||||||
[COLUMN_ORDER]
|
[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
|
; Titles are case-insensitive
|
||||||
References
|
References
|
||||||
Value
|
Value
|
||||||
|
@ -60,6 +60,8 @@ Part Lib
|
||||||
Footprint
|
Footprint
|
||||||
Footprint Lib
|
Footprint Lib
|
||||||
Build Quantity
|
Build Quantity
|
||||||
|
Manufacturer
|
||||||
|
MPN
|
||||||
DigiKey
|
DigiKey
|
||||||
LCSC
|
LCSC
|
||||||
JLCPCB
|
JLCPCB
|
||||||
|
|
2
library
2
library
|
@ -1 +1 @@
|
||||||
Subproject commit cad0c1be57cd0fd363213b16c048edd32f382979
|
Subproject commit 14de4004fd07568f99994e23ddb6fcbd6a4d2e5a
|
Loading…
Reference in New Issue