Skip to content
Merged
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/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
uses: actions/checkout@v7
with:
repository: stackup-eda/stackup
ref: v0.2.0
ref: v0.3.0
path: stackup-tool

- name: Install Rust 1.96
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ via `git log --oneline` or `gh pr view <branch> --json state`, then `git branch
The electrical design is Stackup KDL — `PCB/stackup/board.kdl` and `PCB/stackup/parts.kdl` — not
KiCad schematics (there are none). Hardware work follows the `pcb-design` skill.

- Check the design with `stackup check PCB/stackup/board.kdl --locked` (CLI 0.2.0; the Cargo-locked
- Check the design with `stackup check PCB/stackup/board.kdl --locked` (CLI 0.3.0; the Cargo-locked
copy in `ci/stackup/` is the reference version). The parts library is pinned by commit in
`manifest.kdl`.
- After any change to the KDL, sync `PCB/DroidPowerSense.kicad_pcb` from it with the Stackup KiCad
Expand Down
195 changes: 180 additions & 15 deletions PCB/DroidPowerSense.kicad_pcb
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,19 @@
)
)
)
(property "Stackup Hand Excluded" "exclude_from_bom exclude_from_pos_files"
(at 0 2 0)
(layer "F.SilkS")
(hide yes)
(uuid "09da608d-36bb-456c-bd54-0087740ed7a5")
(effects
(font
(size 1.27 1.27)
)
)
)
(path "/21a166bb-2a69-53e9-a60a-c91706f33716")
(attr through_hole)
(attr through_hole exclude_from_pos_files exclude_from_bom)
(duplicate_pad_numbers_are_jumpers no)
(fp_line
(start -1.38 -1.38)
Expand Down Expand Up @@ -1944,8 +1955,19 @@
)
)
)
(property "Stackup Hand Excluded" "exclude_from_bom exclude_from_pos_files"
(at 0 2 0)
(layer "F.SilkS")
(hide yes)
(uuid "fec63783-3fa5-4c7e-9e3e-b062f17c2eef")
(effects
(font
(size 1.27 1.27)
)
)
)
(path "/fc26e93a-2fca-5b6b-b7f6-8278b36bf3f6")
(attr through_hole)
(attr through_hole exclude_from_pos_files exclude_from_bom)
(duplicate_pad_numbers_are_jumpers no)
(fp_line
(start -1.38 -1.38)
Expand Down Expand Up @@ -2247,8 +2269,19 @@
)
)
)
(property "Stackup Hand Excluded" "exclude_from_bom exclude_from_pos_files"
(at 0 2 0)
(layer "F.SilkS")
(hide yes)
(uuid "c98d284e-f6bd-4166-93b8-a1b0b34de4d3")
(effects
(font
(size 1.27 1.27)
)
)
)
(path "/c5594c1d-5a19-5fcb-b3ee-4804b19037b2")
(attr through_hole allow_missing_courtyard)
(attr through_hole exclude_from_pos_files exclude_from_bom allow_missing_courtyard)
(duplicate_pad_numbers_are_jumpers no)
(fp_rect
(start -1.27 -11.43)
Expand Down Expand Up @@ -2413,8 +2446,19 @@
)
)
)
(property "Stackup Hand Excluded" "exclude_from_bom exclude_from_pos_files"
(at -2 0 0)
(layer "F.SilkS")
(hide yes)
(uuid "33de596a-8e68-49b0-9589-cf9ddd8426a7")
(effects
(font
(size 1.27 1.27)
)
)
)
(path "/5e34f78f-89f4-5f25-ba0a-18258dc99e26")
(attr through_hole)
(attr through_hole exclude_from_pos_files exclude_from_bom)
(duplicate_pad_numbers_are_jumpers no)
(fp_line
(start 11.46 -16.46)
Expand Down Expand Up @@ -3046,8 +3090,19 @@
)
)
)
(property "Stackup Hand Excluded" "exclude_from_bom exclude_from_pos_files"
(at 2 0 0)
(layer "F.SilkS")
(hide yes)
(uuid "c78a439b-a025-47c7-bf91-3daa696ad84a")
(effects
(font
(size 1.27 1.27)
)
)
)
(path "/ac45b62d-9ca7-51ff-b51a-67526993dc6a")
(attr through_hole)
(attr through_hole exclude_from_pos_files exclude_from_bom)
(duplicate_pad_numbers_are_jumpers no)
(fp_line
(start -6.05 1.96)
Expand Down Expand Up @@ -5163,8 +5218,19 @@
)
)
)
(property "Stackup Hand Excluded" "exclude_from_bom"
(at 0 2 0)
(layer "F.SilkS")
(hide yes)
(uuid "767beed4-5feb-4ebe-9e17-3fe859c5f165")
(effects
(font
(size 1.27 1.27)
)
)
)
(path "/41357c63-ca57-5dfe-9554-fa9134ea25fd")
(attr exclude_from_pos_files allow_missing_courtyard)
(attr exclude_from_pos_files exclude_from_bom allow_missing_courtyard)
(duplicate_pad_numbers_are_jumpers no)
(fp_rect
(start -1.25 -2.5)
Expand Down Expand Up @@ -8300,8 +8366,19 @@
)
)
)
(property "Stackup Hand Excluded" "exclude_from_bom exclude_from_pos_files"
(at -2 0 0)
(layer "F.SilkS")
(hide yes)
(uuid "639cf713-7c53-4ec1-b498-a5875dce88e0")
(effects
(font
(size 1.27 1.27)
)
)
)
(path "/a4f50d0e-7926-5aa7-96e6-a413c63a081e")
(attr through_hole)
(attr through_hole exclude_from_pos_files exclude_from_bom)
(duplicate_pad_numbers_are_jumpers no)
(fp_line
(start -1.6 -2.75)
Expand Down Expand Up @@ -9806,8 +9883,19 @@
)
)
)
(property "Stackup Hand Excluded" "exclude_from_bom"
(at 0 2 0)
(layer "F.SilkS")
(hide yes)
(uuid "68bf5833-c06d-4a38-89ec-e3ab95c38bfd")
(effects
(font
(size 1.27 1.27)
)
)
)
(path "/7fd0ac6a-03c8-54ce-8fec-eab0df5bc05a")
(attr exclude_from_pos_files allow_missing_courtyard)
(attr exclude_from_pos_files exclude_from_bom allow_missing_courtyard)
(duplicate_pad_numbers_are_jumpers no)
(fp_rect
(start -1.25 -2.5)
Expand Down Expand Up @@ -10179,8 +10267,19 @@
)
)
)
(property "Stackup Hand Excluded" "exclude_from_bom exclude_from_pos_files"
(at 0 2 0)
(layer "F.SilkS")
(hide yes)
(uuid "a693ad66-abaa-4e06-bb25-420a5ff65d56")
(effects
(font
(size 1.27 1.27)
)
)
)
(path "/74a76e6d-68dd-53b1-8d4f-1fdd90a2ee86")
(attr through_hole)
(attr through_hole exclude_from_pos_files exclude_from_bom)
(duplicate_pad_numbers_are_jumpers no)
(fp_line
(start -9 -14)
Expand Down Expand Up @@ -15911,8 +16010,19 @@
)
)
)
(property "Stackup Hand Excluded" "exclude_from_bom exclude_from_pos_files"
(at -2 0 0)
(layer "F.SilkS")
(hide yes)
(uuid "fdf6ea74-5433-42db-afb3-c1dee132333d")
(effects
(font
(size 1.27 1.27)
)
)
)
(path "/b297c981-c182-57af-8d39-df87caabe335")
(attr through_hole)
(attr through_hole exclude_from_pos_files exclude_from_bom)
(duplicate_pad_numbers_are_jumpers no)
(fp_line
(start -1.38 -1.38)
Expand Down Expand Up @@ -16446,8 +16556,19 @@
)
)
)
(property "Stackup Hand Excluded" "exclude_from_bom exclude_from_pos_files"
(at 0 2 0)
(layer "F.SilkS")
(hide yes)
(uuid "5e428029-db33-4d63-966b-42b2b86ff0c8")
(effects
(font
(size 1.27 1.27)
)
)
)
(path "/ea1eed0c-955f-5ba8-9369-5e33a0bda853")
(attr through_hole allow_missing_courtyard)
(attr through_hole exclude_from_pos_files exclude_from_bom allow_missing_courtyard)
(duplicate_pad_numbers_are_jumpers no)
(fp_rect
(start -1.27 -11.43)
Expand Down Expand Up @@ -16620,8 +16741,19 @@
)
)
)
(property "Stackup Hand Excluded" "exclude_from_bom exclude_from_pos_files"
(at 2 0 0)
(layer "F.SilkS")
(hide yes)
(uuid "d6e52023-c1a7-4fd5-8a7a-95a68d46cd01")
(effects
(font
(size 1.27 1.27)
)
)
)
(path "/a189ce4e-51f3-5dc4-9e70-0ce8eeabc6b6")
(attr through_hole)
(attr through_hole exclude_from_pos_files exclude_from_bom)
(duplicate_pad_numbers_are_jumpers no)
(fp_line
(start -1.8 2.75)
Expand Down Expand Up @@ -21995,8 +22127,19 @@
)
)
)
(property "Stackup Hand Excluded" "exclude_from_bom"
(at 0 2 0)
(layer "F.SilkS")
(hide yes)
(uuid "18d13561-4e12-4a3d-b07a-ce9e9413b50e")
(effects
(font
(size 1.27 1.27)
)
)
)
(path "/b8e34c76-3c3d-5fa5-8f97-cbcd997aba63")
(attr exclude_from_pos_files allow_missing_courtyard)
(attr exclude_from_pos_files exclude_from_bom allow_missing_courtyard)
(duplicate_pad_numbers_are_jumpers no)
(fp_rect
(start -1.25 -2.5)
Expand Down Expand Up @@ -22893,8 +23036,19 @@
)
)
)
(property "Stackup Hand Excluded" "exclude_from_bom exclude_from_pos_files"
(at -2 0 0)
(layer "F.SilkS")
(hide yes)
(uuid "ceb6178b-aaaf-429e-83a4-1d5ff9659b3f")
(effects
(font
(size 1.27 1.27)
)
)
)
(path "/7046010d-63f8-5271-801e-33c9b58835ad")
(attr through_hole)
(attr through_hole exclude_from_pos_files exclude_from_bom)
(duplicate_pad_numbers_are_jumpers no)
(fp_line
(start -1.6 -2.75)
Expand Down Expand Up @@ -23486,8 +23640,19 @@
)
)
)
(property "Stackup Hand Excluded" "exclude_from_bom exclude_from_pos_files"
(at 0 2 0)
(layer "F.SilkS")
(hide yes)
(uuid "24d2a3b2-fe38-4804-81c7-332f6afd8e19")
(effects
(font
(size 1.27 1.27)
)
)
)
(path "/d23af4a5-6171-5f13-bfd6-236f9ca50276")
(attr through_hole)
(attr through_hole exclude_from_pos_files exclude_from_bom)
(duplicate_pad_numbers_are_jumpers no)
(fp_line
(start -2.85 -2.75)
Expand Down
10 changes: 5 additions & 5 deletions PCB/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Net classes (Board Setup → Net Classes, assigned by net-name pattern in `Droid
| CAN | 0.35 mm | 0.2 mm | 0.6 / 0.3 | CANH, CANL, Net-(J7-A) |
| Default | 0.25 mm | 0.2 mm | 0.6 / 0.3 | all other signals |

Stackup 0.2.0 doesn't derive net classes, so these are plain KiCad classes (no `stackup:` prefix)
Stackup 0.3.0 doesn't derive net classes, so these are plain KiCad classes (no `stackup:` prefix)
and the sync leaves them alone. Expected exceptions when routing: the HighCurrent nets' thin
branches (Kelvin sense to U2, VBAT_IN sense to R3, the VSW_MID spur to the reverse clamp; all carry
mA or less) and neck-downs where Power tracks meet the 0.5 mm-pitch pins of U1 and U2.
Expand All @@ -202,7 +202,9 @@ pair and INA_ALERT were re-routed from 0.18 mm); confirm the fab's 2 oz outer-la
**Fab files** are in [`production/`](production/): Gerbers + job file (6 layers, 1.6 mm) and PTH/NPTH
drills with maps in `production/gerbers/`; the purchasing BOM (`stackup bom`) and the placement file in
`production/bom/`. The placement file lists only assembler-placed parts (67): the BOM's hand-soldered
parts (connectors, module, sockets, loose jumper shunts) are left out to match its DNP column.
parts (connectors, module, sockets, loose jumper shunts) are left out to match its DNP column. The
sync marks every `hand=#true` footprint *Exclude from position files* and *Exclude from BOM*, so
`kicad-cli` and the PCBWay plugin leave them out on their own.
Regenerate both after any board change. **Refill and save the pours first:** the exporters plot the
fills stored in the board file, and a script or sync that edits copper without refilling leaves stale
fills that would go to the fab (this happened once; the fix was this refill).
Expand All @@ -212,12 +214,10 @@ K=/Applications/KiCad/KiCad.app/Contents/MacOS/kicad-cli; B=PCB/DroidPowerSense.
$K pcb drc --refill-zones --save-board --severity-all -o /tmp/drc.rpt $B # refill, save, and check
$K pcb export gerbers --board-plot-params -o PCB/production/gerbers/ $B
$K pcb export drill --excellon-separate-th --generate-map --map-format gerberx2 -o PCB/production/gerbers/ $B
$K pcb export pos --format csv --units mm --side both --exclude-dnp -o PCB/production/bom/DroidPowerSense-pos.csv $B
$K pcb export pos --format csv --units mm --side both -o PCB/production/bom/DroidPowerSense-pos.csv $B
stackup bom PCB/stackup/board.kdl --locked -o PCB/production/bom/DroidPowerSense-bom.csv
```

(then drop the BOM's hand-soldered references from the placement file.)

## Verification

- `scripts/spice/power_switch_sim.py`: switch open (no drain), turn-on across 9-32 V and V_GS(th)
Expand Down
Loading
Loading