Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate PCB assembly files (unverified) #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/electronics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: Export JLCPCB fabrication files [view_base]
run: |
./electronics/scripts/export_jlcpcb.py --release-prefix releases/view_base/ electronics/view_base/view_base.kicad_pcb
./electronics/scripts/export_jlcpcb.py --release-prefix releases/view_base/ --assembly-schematic electronics/view_base/view_base.sch electronics/view_base/view_base.kicad_pcb
cp -r electronics/build/view_base-jlc electronics/build/outputs

- name: Export PCB overview PDF [view_base]
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ Latest auto-generated (untested and likely broken!) artifacts⚠️:

[Gerbers](https://smartknob-artifacts.s3.us-west-1.amazonaws.com/master/electronics/view_base-jlc/gerbers.zip)

[BOM (for JLCPCB assembly](https://smartknob-artifacts.s3.us-west-1.amazonaws.com/master/electronics/view_base-jlc/bom.csv) (warning: completely untested!)

[CPL (for JLCPCB assembly)](https://smartknob-artifacts.s3.us-west-1.amazonaws.com/master/electronics/view_base-jlc/pos.csv) (warning: completely untested!)

⚠️ For tested/stable/recommended artifacts, use a [release](https://github.com/scottbez1/smartknob/releases) instead.

#### Screen PCB
Expand Down
2 changes: 1 addition & 1 deletion electronics/scripts/export_jlcpcb.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def export_jlcpcb(pcb, schematic, alt_fields, release_prefix):
parser = argparse.ArgumentParser()
parser.add_argument('pcb')
parser.add_argument('--assembly-schematic')
parser.add_argument('--alt-fields', nargs='+')
parser.add_argument('--alt-fields', nargs='+', default=[])
parser.add_argument('--release-prefix', type=str, required=True, help='Tag prefix to check if this is a tagged/versioned release. E.g. "releases/" for tags like "releases/v1.0"')
args = parser.parse_args()
export_jlcpcb(args.pcb, args.assembly_schematic, args.alt_fields, args.release_prefix)
8 changes: 5 additions & 3 deletions electronics/view_screen/view_screen.sch
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ F 2 "Resistor_SMD:R_0603_1608Metric" H 3750 3550 50 0001 C CNN
F 3 "~" H 3750 3550 50 0001 C CNN
F 4 "RMCF0603JT1M00CT-ND" H 3750 3550 50 0001 C CNN "Digikey"
F 5 "652-CR0603FX-1004ELF" H 3750 3550 50 0001 C CNN "Mouser"
F 6 "C105578" H 3750 3550 50 0001 C CNN "LCSC"
1 3750 3550
1 0 0 -1
$EndComp
Expand Down Expand Up @@ -236,11 +237,12 @@ L Device:R_Small R2
U 1 1 6209F498
P 5000 3250
F 0 "R2" H 5059 3296 50 0000 L CNN
F 1 "22R" H 5059 3205 50 0000 L CNN
F 1 "20R" H 5059 3205 50 0000 L CNN
F 2 "Resistor_SMD:R_0603_1608Metric" H 5000 3250 50 0001 C CNN
F 3 "~" H 5000 3250 50 0001 C CNN
F 4 "RMCF0603JT22R0CT-ND" H 5000 3250 50 0001 C CNN "Digikey"
F 5 "652-CR0603FX-22R0ELF" H 5000 3250 50 0001 C CNN "Mouser"
F 4 "RMCF0603JT20R0CT-ND" H 5000 3250 50 0001 C CNN "Digikey"
F 5 "652-CR0603FX-20R0ELF" H 5000 3250 50 0001 C CNN "Mouser"
F 6 "C125758" H 5000 3250 50 0001 C CNN "LCSC"
1 5000 3250
1 0 0 -1
$EndComp
Expand Down