diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b45edf6..d644bea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: uses: actions/checkout@v4 with: repository: stackup-eda/stackup - ref: v0.2.0 + ref: v0.3.0 path: stackup-tool - name: Install Rust 1.96 diff --git a/CLAUDE.md b/CLAUDE.md index e46a912..fcf2dd4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -33,7 +33,10 @@ Keep `value=` human-readable; specify exact purchasing choices with `manufacture in the purchasing BOM and is marked `DNP` for outsourced assembly. - V2 is a separate board in `PCB/v2.x/snips`, with its optional XBee carrier in `PCB/v2.x/xbee-carrier`. Both have the same layout of files and the same commands; CI checks all three boards. -- The circuit source is `PCB/v1.x/stackup/board.kdl` and `PCB/v1.x/stackup/parts.kdl`. Run +- Parts come from the Stackup library pinned in `manifest.kdl` (`stackup-eda/library`). A part + that isn't specific to Snips belongs there, not in a board's `parts.kdl`; only Snips-specific + parts (the V2 XBee carrier pads and its mating edge) stay local. +- The circuit source is `PCB/v1.x/stackup/board.kdl`. Run `stackup check PCB/v1.x/stackup/board.kdl`, then sync the PCB with the Stackup KiCad plugin. - The BOM scripts read Stackup's CSV through the Cargo-locked CLI, including defaults from library parts. CI checks the export and PCB sync. diff --git a/PCB/v1.x/GPIO_table.md b/PCB/v1.x/GPIO_table.md index c52f040..758689a 100644 --- a/PCB/v1.x/GPIO_table.md +++ b/PCB/v1.x/GPIO_table.md @@ -1,7 +1,7 @@ # Snips Controller — ESP32-S3-WROOM-1 GPIO Table > The current circuit and footprint choices are in `PCB/v1.x/stackup/board.kdl` -> and `PCB/v1.x/stackup/parts.kdl`. References to the older YAML and KiCad schematic +> and the parts it imports from the Stackup library. References to the older YAML and KiCad schematic > below describe the design history; use Stackup for changes. > **MCU:** ESP32-S3-WROOM-1 module (pre-certified, integrated flash + diff --git a/PCB/v1.x/README.md b/PCB/v1.x/README.md index dfa3183..376d2ff 100644 --- a/PCB/v1.x/README.md +++ b/PCB/v1.x/README.md @@ -3,7 +3,7 @@ A wireless handheld controller for R2-D2 droid operation, designed for use at public events and conventions. Communicates with the droid via XBee3 Zigbee radio in a packetized state-report architecture. The electrical design is in [Stackup KDL](stackup/board.kdl), using the pinned -Stackup library plus a [local thumbstick model](stackup/parts.kdl). The existing [KiCad PCB](snips_controller.kicad_pcb) is linked +Stackup library. The existing [KiCad PCB](snips_controller.kicad_pcb) is linked through `snips_controller.stackup_sch`; sync it with the Stackup KiCad plugin. Run `stackup check PCB/v1.x/stackup/board.kdl` from the repository root before syncing. diff --git a/PCB/v1.x/snips_controller.kicad_pcb b/PCB/v1.x/snips_controller.kicad_pcb index f19ff48..1e0cc9e 100644 --- a/PCB/v1.x/snips_controller.kicad_pcb +++ b/PCB/v1.x/snips_controller.kicad_pcb @@ -377,7 +377,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:107" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:111" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -413,6 +413,17 @@ ) ) ) + (property "Stackup Hand Excluded" "exclude_from_pos_files" + (at 2 0 0) + (layer "F.SilkS") + (hide yes) + (uuid "3a3add08-32fc-47c7-8707-a051fe6ccbfb") + (effects + (font + (size 1.27 1.27) + ) + ) + ) (path "/39a73dc3-af09-5c61-8628-ae011dd3549c") (units (unit @@ -422,7 +433,7 @@ ) ) ) - (attr through_hole exclude_from_bom) + (attr through_hole exclude_from_pos_files exclude_from_bom) (duplicate_pad_numbers_are_jumpers no) (fp_line (start -1.19 19.914) @@ -988,7 +999,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:87" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:91" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -1512,7 +1523,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:98" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:102" (at 0 -2 0) (layer "F.SilkS") (hide yes) @@ -1955,7 +1966,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:90" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:94" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -2475,7 +2486,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:84" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:88" (at 0 -2 0) (layer "F.SilkS") (hide yes) @@ -2683,7 +2694,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:42" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:46" (at 0 -2 0) (layer "F.SilkS") (hide yes) @@ -3027,7 +3038,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:91" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:95" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -3547,7 +3558,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:36" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:40" (at -2 0 0) (layer "F.SilkS") (hide yes) @@ -3759,7 +3770,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:88" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:92" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -4279,7 +4290,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:43" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:47" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -4487,7 +4498,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:83" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:87" (at 0 -2 0) (layer "F.SilkS") (hide yes) @@ -4695,7 +4706,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:77" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:81" (at -2 0 0) (layer "F.SilkS") (hide yes) @@ -5014,7 +5025,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:95" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:99" (at 0 -2 0) (layer "F.SilkS") (hide yes) @@ -5566,7 +5577,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:64" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:68" (at 2 0 90) (layer "F.SilkS") (hide yes) @@ -5774,7 +5785,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:105" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:109" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -6620,7 +6631,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:94" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:98" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -7061,7 +7072,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:50" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:54" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -7287,7 +7298,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:106" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:110" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -7768,7 +7779,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:63" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:67" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -7976,7 +7987,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:46" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:50" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -8184,7 +8195,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:35" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:39" (at 0 -2 0) (layer "F.SilkS") (hide yes) @@ -8396,7 +8407,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:85" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:89" (at -2 0 0) (layer "F.SilkS") (hide yes) @@ -8809,7 +8820,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:99" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:103" (at -2 0 0) (layer "F.SilkS") (hide yes) @@ -9258,7 +9269,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:89" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:93" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -9782,7 +9793,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:55" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:59" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -10282,7 +10293,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:44" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:48" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -10457,7 +10468,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:54" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:58" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -10493,6 +10504,17 @@ ) ) ) + (property "Stackup Hand Excluded" "exclude_from_pos_files" + (at 0 2 0) + (layer "F.SilkS") + (hide yes) + (uuid "021ef993-0156-41b4-9759-dc4e14583c8f") + (effects + (font + (size 1.27 1.27) + ) + ) + ) (path "/43319c6c-a25e-5ed1-b08a-2fd013ecdd04") (units (unit @@ -10500,7 +10522,7 @@ (pins "2'" "2" "a" "1" "3" "1'" "3'" "c") ) ) - (attr through_hole exclude_from_bom) + (attr through_hole exclude_from_pos_files exclude_from_bom) (duplicate_pad_numbers_are_jumpers no) (fp_circle (center 0 0) @@ -10803,7 +10825,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:28" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:32" (at -2 0 0) (layer "F.SilkS") (hide yes) @@ -11011,7 +11033,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:73" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:77" (at -2 0 0) (layer "F.SilkS") (hide yes) @@ -11326,7 +11348,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:62" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:66" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -11534,7 +11556,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:23" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:27" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -11874,7 +11896,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:22" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:26" (at -2 0 90) (layer "F.SilkS") (hide yes) @@ -12083,7 +12105,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:80" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:84" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -12291,7 +12313,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:78" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:82" (at -2 0 0) (layer "F.SilkS") (hide yes) @@ -12503,7 +12525,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:93" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:97" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -12948,7 +12970,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:45" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:49" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -13160,7 +13182,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:100" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:104" (at -2 0 0) (layer "F.SilkS") (hide yes) @@ -13605,7 +13627,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:34" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:38" (at 0 -2 0) (layer "F.SilkS") (hide yes) @@ -13817,7 +13839,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:86" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:90" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -14338,7 +14360,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:81" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:85" (at 0 -2 0) (layer "F.SilkS") (hide yes) @@ -14678,7 +14700,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:37" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:41" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -14898,7 +14920,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:82" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:86" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -15110,7 +15132,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:92" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:96" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -15567,7 +15589,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:24" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:28" (at -2 0 90) (layer "F.SilkS") (hide yes) @@ -15775,7 +15797,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:60" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:64" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -15990,7 +16012,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:61" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:65" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -16206,7 +16228,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:38" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:42" (at 0 2 0) (layer "B.SilkS") (hide yes) @@ -16422,7 +16444,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:59" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:63" (at 0 2 0) (layer "B.SilkS") (hide yes) @@ -16865,7 +16887,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:53" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:57" (at 2 0 0) (layer "B.SilkS") (hide yes) @@ -17211,7 +17233,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:21" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:25" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -17703,7 +17725,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:41" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:45" (at 2 0 0) (layer "B.SilkS") (hide yes) @@ -17919,7 +17941,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:40" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:44" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -18135,7 +18157,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:27" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:31" (at 2 0 0) (layer "B.SilkS") (hide yes) @@ -18364,7 +18386,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:47" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:51" (at 2 0 0) (layer "B.SilkS") (hide yes) @@ -18815,7 +18837,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:48" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:52" (at 2 0 0) (layer "B.SilkS") (hide yes) @@ -19184,7 +19206,7 @@ ) ) ) - (property "Stackup Source" "@stackup/passives.kdl:126" + (property "Stackup Source" "@stackup/passives.kdl:132" (at -2 0 0) (layer "B.SilkS") (hide yes) @@ -20427,7 +20449,7 @@ (justify mirror) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:104" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:108" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -20803,7 +20825,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:26" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:30" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -21032,7 +21054,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:33" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:37" (at 2 0 0) (layer "B.SilkS") (hide yes) @@ -21248,7 +21270,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:32" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:36" (at 0 -2 90) (layer "B.SilkS") (hide yes) @@ -21477,7 +21499,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:68" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:72" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -21706,7 +21728,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:69" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:73" (at -2 0 0) (layer "B.SilkS") (hide yes) @@ -21922,7 +21944,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:67" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:71" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -22138,7 +22160,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:58" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:62" (at 0 2 0) (layer "B.SilkS") (hide yes) @@ -22577,7 +22599,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:39" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:43" (at 2 0 0) (layer "B.SilkS") (hide yes) @@ -22942,7 +22964,7 @@ (justify mirror) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:30" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:34" (at 0 -2 270) (layer "B.SilkS") (hide yes) @@ -23339,7 +23361,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:25" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:29" (at 0 2 0) (layer "B.SilkS") (hide yes) @@ -23735,7 +23757,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:102" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:106" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -24538,7 +24560,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:75" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:79" (at 0 2 0) (layer "B.SilkS") (hide yes) @@ -24924,7 +24946,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:49" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:53" (at -2 0 0) (layer "B.SilkS") (hide yes) @@ -25528,7 +25550,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:71" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:75" (at -2 0 0) (layer "B.SilkS") (hide yes) @@ -25744,7 +25766,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:66" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:70" (at 2 0 0) (layer "B.SilkS") (hide yes) @@ -25960,7 +25982,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:79" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:83" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -26187,7 +26209,7 @@ (justify mirror) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:31" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:35" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -26395,7 +26417,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:74" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:78" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -26611,7 +26633,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:70" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:74" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -26827,7 +26849,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:65" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:69" (at -2 0 0) (layer "B.SilkS") (hide yes) @@ -27043,7 +27065,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:101" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:105" (at -2 0 0) (layer "B.SilkS") (hide yes) @@ -27514,7 +27536,7 @@ (justify mirror) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:29" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:33" (at 0 -2 270) (layer "B.SilkS") (hide yes) @@ -27726,7 +27748,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:56" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:60" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -28067,7 +28089,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:103" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:107" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -28535,7 +28557,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:57" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:61" (at 0 2 0) (layer "B.SilkS") (hide yes) @@ -28974,7 +28996,7 @@ ) ) ) - (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:76" + (property "Stackup Source" "PCB/v1.x/stackup/board.kdl:80" (at 0 -2 0) (layer "B.SilkS") (hide yes) diff --git a/PCB/v1.x/snips_controller.kicad_pro b/PCB/v1.x/snips_controller.kicad_pro index aa47fad..e2ba08d 100644 --- a/PCB/v1.x/snips_controller.kicad_pro +++ b/PCB/v1.x/snips_controller.kicad_pro @@ -178,6 +178,7 @@ { "td_allow_use_two_tracks": true, "td_curve_segcount": 0, + "td_enabled": false, "td_height_ratio": 1.0, "td_length_ratio": 0.5, "td_maxheight": 2.0, @@ -189,6 +190,7 @@ { "td_allow_use_two_tracks": true, "td_curve_segcount": 0, + "td_enabled": false, "td_height_ratio": 1.0, "td_length_ratio": 0.5, "td_maxheight": 2.0, @@ -200,6 +202,7 @@ { "td_allow_use_two_tracks": true, "td_curve_segcount": 0, + "td_enabled": false, "td_height_ratio": 1.0, "td_length_ratio": 0.5, "td_maxheight": 2.0, @@ -537,7 +540,7 @@ "net_colors": { "VSYS": "rgb(125, 255, 92)" }, - "netclass_assignments": null, + "netclass_assignments": {}, "netclass_patterns": [] }, "pcbnew": { diff --git a/PCB/v1.x/stackup/README.md b/PCB/v1.x/stackup/README.md index 1ea298a..19512f7 100644 --- a/PCB/v1.x/stackup/README.md +++ b/PCB/v1.x/stackup/README.md @@ -1,11 +1,11 @@ # Snips Controller Stackup design `board.kdl` defines the electrical design and imports parts from the library -pinned in the repository's `manifest.kdl`. `parts.kdl` defines the Snips-specific -thumbstick. `purchasing.kdl` declares the selected manufacturer parts and -supplier numbers. The match rules in `board.kdl` choose those parts by the -resolved value and footprint. The resulting BOM matches the previous factory -order in `../production/bom/snips_controller-bom.csv`. +pinned in the repository's `manifest.kdl`. `purchasing.kdl` declares the +selected manufacturer parts and supplier numbers. The match rules in `board.kdl` +choose those parts by the resolved value and footprint. The resulting BOM +matches the previous factory order in +`../production/bom/snips_controller-bom.csv`. The board layout is in `../snips_controller.kicad_pcb`. To check the design, run `stackup check PCB/v1.x/stackup/board.kdl` from the repository root. To update the diff --git a/PCB/v1.x/stackup/board.kdl b/PCB/v1.x/stackup/board.kdl index 03557d7..8b6985a 100644 --- a/PCB/v1.x/stackup/board.kdl +++ b/PCB/v1.x/stackup/board.kdl @@ -8,13 +8,17 @@ use "@stackup/discrete/diode/diode" use "@stackup/discrete/diode/tvs" use "@stackup/discrete/fet/ao3400a" use "@stackup/discrete/fet/ao3401a" +use "@stackup/discrete/led/sk6812mini-hs" use "@stackup/micro/esp32s3" use "@stackup/passives" use "@stackup/power/buck/tlv62569" use "@stackup/power/charger/bq25185" use "@stackup/radio/xbee3" +use "@stackup/sensor/accel/icm42670p" +use "@stackup/sensor/hall/drv5055" use "@stackup/switch/push-button" -use "./parts.kdl"; use "./purchasing.kdl" +use "@stackup/switch/rkjxv" +use "./purchasing.kdl" design snips_controller { // Components @@ -51,7 +55,7 @@ design snips_controller { ignore "vdd.net.voltage" reason="run at 3.3V like the MINI-E it replaces" // Datasheet minimum: 3.7 V; this board supplies 3.3 V. } place tvs "D_VBUS_TVS1" designator="D_VBUS_TVS1" footprint="Diode_SMD:D_SOD-323" value="TPPESD5V0S1BA" - place component_J_STICK1 "J_STICK1" designator="J_STICK1" footprint="SnipsControllers_Custom:GuliKit_HallStick" value="GuliKit_Thumbstick" hand=#true + place gulikit-hall-stick "J_STICK1" designator="J_STICK1" footprint="SnipsControllers_Custom:GuliKit_HallStick" value="GuliKit_Thumbstick" hand=#true place usb-c-receptacle "J_USB1" designator="J_USB1" footprint="Connector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12" package="hro" value="USB-C" place inductor "L_BUCK1" designator="L_BUCK1" footprint="Inductor_SMD:L_Bourns-SRN4018" value="2.2µH" place mmbt3904 "Q_INV1" designator="Q_INV1" footprint="Package_TO_SOT_SMD:SOT-23" value="MMBT3904(RANGE:100-300)" @@ -100,7 +104,7 @@ design snips_controller { place push-button "SW_VOL_UP1" designator="SW_VOL_UP1" footprint="Button_Switch_SMD:SW_Push_1P1T-MP_NO_Horizontal_Alps_SKRTLAE010" package="alps" value="SKRTLAE010" place tlv62569 "U_BUCK1" designator="U_BUCK1" footprint="Package_TO_SOT_SMD:SOT-23-5" value="TLV62569DBVR" place bq25185 "U_CHG1" designator="U_CHG1" footprint="BQ25185DLHR:IC_BQ25185DLHR" value="BQ25185DLHR" { without program; without always-enabled; without ts-fixed; without thermal; without supply } - place drv5055a2-sot23 "U_HALL1" designator="U_HALL1" footprint="Package_TO_SOT_SMD:SOT-23" value="DRV5055A2QDBZR" + place drv5055a2 "U_HALL1" package=sot23 designator="U_HALL1" footprint="Package_TO_SOT_SMD:SOT-23" value="DRV5055A2QDBZR" { without supply; } place icm42670p "U_IMU1" designator="U_IMU1" footprint="Package_LGA:LGA-14_3x2.5mm_P0.5mm_LayoutBorder3x4y" value="ICM-42670-P" place esp32-s3-wroom-1 "U_MCU1" designator="U_MCU1" footprint="Espressif:ESP32-S3-WROOM-1" package="n8" value="ESP32-S3-WROOM-1-N8" { without supply; without enable; without boot } place qwiic "U_OLED1" designator="U_OLED1" footprint="Connector_JST:JST_SH_SM04B-SRSS-TB_1x04-1MP_P1.00mm_Horizontal" value="Qwiic connector" { without tab } @@ -121,7 +125,7 @@ design snips_controller { circuit "SW_VOL_DN1.1" "U_MCU1.IO39" name="/Buttons_Direct/BTN_VOL_DN" circuit "SW_VOL_UP1.1" "U_MCU1.IO40" name="/Buttons_Direct/BTN_VOL_UP" circuit "U_HALL1.OUT" "U_MCU1.IO4" name="/Hall_Trigger/TRIG_ANALOG" - circuit "J_STICK1.p_a" "U_MCU1.IO21" name="/MCU_Core/BTN_STICK" + circuit "J_STICK1.SW_1" "U_MCU1.IO21" name="/MCU_Core/BTN_STICK" circuit "R_BOOT_PU1.A" "SW_BOOT1.2" "U_MCU1.IO0" name="/MCU_Core/MCU_BOOT" circuit "R_EN_PU1.A" "U_MCU1.EN" name="/MCU_Core/MCU_EN" circuit "C_DBNC1.A" "D_INV_ISO1.K" "R_BTN_PU1.B" "SW_PWR1.1" "U_MCU1.IO2" name="/MCU_Core/PWR_BTN_SENSE" @@ -132,8 +136,8 @@ design snips_controller { circuit "U_MCU1.IO10" "U_XBEE1.SPI_CLK" name="/MCU_Core/SPI_SCK" circuit "R_STAT1.A" "U_CHG1.STAT1" "U_MCU1.IO1" name="/MCU_Core/STAT1" circuit "R_STAT2.A" "U_CHG1.STAT2" "U_MCU1.IO41" name="/MCU_Core/STAT2" - circuit "J_STICK1.p_2" "U_MCU1.IO5" name="/MCU_Core/STICK_X" - circuit "J_STICK1.p_2_" "U_MCU1.IO6" name="/MCU_Core/STICK_Y" + circuit "J_STICK1.VR2_OUT" "U_MCU1.IO5" name="/MCU_Core/STICK_X" + circuit "J_STICK1.VR1_OUT" "U_MCU1.IO6" name="/MCU_Core/STICK_Y" circuit "J_USB1.D-" "R_USB_DM1.A" name="/MCU_Core/USB_DM" circuit "R_USB_DM1.B" "U_MCU1.USB_D-" name="/MCU_Core/USB_DM_MCU" circuit "J_USB1.D+" "R_USB_DP1.A" name="/MCU_Core/USB_DP" @@ -157,10 +161,10 @@ design snips_controller { circuit "R_XBEE_RC1.B" "U_XBEE1.RESET" name="/XBee/XBEE_RESET" circuit "C_XBEE_RC1.A" "R_XBEE_RC1.A" "R_XBEE_RST1.B" name="/XBee/XBEE_RST_PU" circuit "R_XBEE_ATTN_PU1.B" "U_MCU1.IO15" "U_XBEE1.SPI_ATTN" name="/XBee/XBEE_SPI_ATTN" - circuit "C_3V3_1.A" "C_3V3_2.A" "C_3V3_3.A" "C_BUCK_OUT1.A" "C_HALL1.A" "C_IMU_1.A" "C_IMU_2.A" "C_IMU_3.A" "C_OLED_1.A" "C_OLED_2.A" "C_RGB1.A" "C_STICK1.A" "C_XBEE_VCC1.A" "C_XBEE_VCC2.A" "C_XBEE_VCC3.A" "C_XBEE_VCC4.A" "D_RGB1.VDD" "J_STICK1.p_3" "J_STICK1.p_3_" "L_BUCK1.B" "R_BOOT_PU1.B" "R_BTN_PU1.A" "R_EN_PU1.B" "R_FB1.B" "R_STAT1.B" "R_STAT2.B" "R_XBEE_ATTN_PU1.A" "R_XBEE_RST1.A" "U_HALL1.VCC" "U_IMU1.AP_CS" "U_IMU1.VDD" "U_IMU1.VDDIO" "U_MCU1.3V3" "U_OLED1.2" "U_XBEE1.VCC" name="3V3" + circuit "C_3V3_1.A" "C_3V3_2.A" "C_3V3_3.A" "C_BUCK_OUT1.A" "C_HALL1.A" "C_IMU_1.A" "C_IMU_2.A" "C_IMU_3.A" "C_OLED_1.A" "C_OLED_2.A" "C_RGB1.A" "C_STICK1.A" "C_XBEE_VCC1.A" "C_XBEE_VCC2.A" "C_XBEE_VCC3.A" "C_XBEE_VCC4.A" "D_RGB1.VDD" "J_STICK1.VR2_VCC" "J_STICK1.VR1_VCC" "L_BUCK1.B" "R_BOOT_PU1.B" "R_BTN_PU1.A" "R_EN_PU1.B" "R_FB1.B" "R_STAT1.B" "R_STAT2.B" "R_XBEE_ATTN_PU1.A" "R_XBEE_RST1.A" "U_HALL1.VCC" "U_IMU1.AP_CS" "U_IMU1.VDD" "U_IMU1.VDDIO" "U_MCU1.3V3" "U_OLED1.2" "U_XBEE1.VCC" name="3V3" set "C_BUCK_OUT1.A" net.voltage "3.3V" circuit "U_IMU1.INT1" "U_MCU1.IO46" name="ACCEL_INT1" - circuit "BT1.2" "C_3V3_1.B" "C_3V3_2.B" "C_3V3_3.B" "C_BAT1.B" "C_BUCK_IN1.B" "C_BUCK_OUT1.B" "C_DBNC1.B" "C_HALL1.B" "C_IMU_1.B" "C_IMU_2.B" "C_IMU_3.B" "C_LATCH_G1.A" "C_OLED_1.B" "C_OLED_2.B" "C_RGB1.B" "C_STICK1.B" "C_SYS_1.B" "C_SYS_2.B" "C_VIN_1.B" "C_VIN_2.B" "C_XBEE_RC1.B" "C_XBEE_VCC1.B" "C_XBEE_VCC2.B" "C_XBEE_VCC3.B" "C_XBEE_VCC4.B" "D_RGB1.GND" "D_VBUS_TVS1.A2" "J_STICK1.p_1" "J_STICK1.p_1_" "J_STICK1.p_c" "J_USB1.GND" "J_USB1.SHIELD" "Q_INV1.EMITTER" "Q_LATCH1.SOURCE" "R_CC1.B" "R_CC2.B" "R_FB2.B" "R_ISET1.B" "R_LATCH_G1.A" "R_PWR_EN_PD1.rail.gnd" "R_TS1.B" "R_VSET1.B" "R_VSYS2.B" "SW_BOOT1.1" "SW_MACRO1.2" "SW_MACRO2.2" "SW_MACRO3.2" "SW_MACRO4.2" "SW_MACRO5.2" "SW_MACRO6.2" "SW_PWR1.2" "SW_THR_DN1.2" "SW_THR_UP1.2" "SW_TRIG_DIG1.2" "SW_TRIG_DIG2.2" "SW_VOL_DN1.2" "SW_VOL_UP1.2" "U_BUCK1.GND" "U_CHG1.PAD" "U_CHG1.CE" "U_CHG1.GND" "U_HALL1.GND" "U_IMU1.AP_AD0" "U_IMU1.FSYNC" "U_IMU1.GND" "U_IMU1.RESV2" "U_IMU1.RESV3" "U_IMU1.RESV10" "U_IMU1.RESV11" "U_MCU1.GND" "U_OLED1.1" "U_XBEE1.GND" name="GND" + circuit "BT1.2" "C_3V3_1.B" "C_3V3_2.B" "C_3V3_3.B" "C_BAT1.B" "C_BUCK_IN1.B" "C_BUCK_OUT1.B" "C_DBNC1.B" "C_HALL1.B" "C_IMU_1.B" "C_IMU_2.B" "C_IMU_3.B" "C_LATCH_G1.A" "C_OLED_1.B" "C_OLED_2.B" "C_RGB1.B" "C_STICK1.B" "C_SYS_1.B" "C_SYS_2.B" "C_VIN_1.B" "C_VIN_2.B" "C_XBEE_RC1.B" "C_XBEE_VCC1.B" "C_XBEE_VCC2.B" "C_XBEE_VCC3.B" "C_XBEE_VCC4.B" "D_RGB1.GND" "D_VBUS_TVS1.A2" "J_STICK1.VR2_GND" "J_STICK1.VR1_GND" "J_STICK1.SW_2" "J_USB1.GND" "J_USB1.SHIELD" "Q_INV1.EMITTER" "Q_LATCH1.SOURCE" "R_CC1.B" "R_CC2.B" "R_FB2.B" "R_ISET1.B" "R_LATCH_G1.A" "R_PWR_EN_PD1.rail.gnd" "R_TS1.B" "R_VSET1.B" "R_VSYS2.B" "SW_BOOT1.1" "SW_MACRO1.2" "SW_MACRO2.2" "SW_MACRO3.2" "SW_MACRO4.2" "SW_MACRO5.2" "SW_MACRO6.2" "SW_PWR1.2" "SW_THR_DN1.2" "SW_THR_UP1.2" "SW_TRIG_DIG1.2" "SW_TRIG_DIG2.2" "SW_VOL_DN1.2" "SW_VOL_UP1.2" "U_BUCK1.GND" "U_CHG1.PAD" "U_CHG1.CE" "U_CHG1.GND" "U_HALL1.GND" "U_IMU1.AP_AD0" "U_IMU1.FSYNC" "U_IMU1.GND" "U_IMU1.RESV2" "U_IMU1.RESV3" "U_IMU1.RESV10" "U_IMU1.RESV11" "U_MCU1.GND" "U_OLED1.1" "U_XBEE1.GND" name="GND" circuit "BT1.1" "C_BAT1.A" "U_CHG1.BAT" name="VBAT" circuit "C_VIN_1.A" "C_VIN_2.A" "D_VBUS_TVS1.A1" "J_USB1.VBUS" "U_CHG1.IN" name="VBUS" circuit "C_BUCK_IN1.A" "C_SYS_1.A" "C_SYS_2.A" "Q_PWR1.SOURCE" "R_GATE1.A" "R_INV_BASE1.A" "R_INV_PU1.A" "R_VSYS1.A" "U_BUCK1.VIN" "U_CHG1.SYS" name="VSYS" diff --git a/PCB/v1.x/stackup/parts.kdl b/PCB/v1.x/stackup/parts.kdl deleted file mode 100644 index 9829ea2..0000000 --- a/PCB/v1.x/stackup/parts.kdl +++ /dev/null @@ -1,178 +0,0 @@ -// Snips-specific GuliKit thumbstick assembly. - -part component_J_STICK1 { - reference "J" - symbol "SnipsControllers_Custom:GuliKit_HallStick" - value "GuliKit_Thumbstick" - description "OEM-replacement-style hall/TMR analog thumbstick with center-push switch (ALPS RKJXV1224 / C&K THB001P footprint family). 2-axis potentiometer-emulation interface, not a simple VCC/GND/X/Y/SW breakout: pins 1/2/3 are the X axis low/wiper/high, pins 1'/2'/3' are the Y axis low/wiper/high, pins a/c are the switch (b/d are mechanically-redundant duplicate switch legs, intentionally unconnected). Drive 1 and 1' to GND, 3 and 3' to 3V3; read wipers 2 (X) and 2' (Y) on ADC pins; wire switch a to a GPIO and c to GND. Adapted from dbenoy/thumbstick-breakout (CC-BY-SA 4.0, Copyright (c) Daniel Benoy)." - pin p_1 passive - pin p_2 output - pin p_3 passive - pin p_1_ passive - pin p_2_ output - pin p_3_ passive - pin p_a passive - pin p_b passive - pin p_c passive - pin p_d passive - package pcb footprint="SnipsControllers_Custom:GuliKit_HallStick" { - pad p_1 "1" - pad p_2 "2" - pad p_3 "3" - pad p_1_ "1'" - pad p_2_ "2'" - pad p_3_ "3'" - pad p_a "a" - pad p_b "b" - pad p_c "c" - pad p_d "d" - } -} - -// OPSCO SK6812MINI-HS-012 addressable RGB LED, top-mount 3.5 x 3.5 mm PLCC4, lens up, using the -// single-wire WS2812 protocol. Replaces the reverse-mount SK6812MINI-E, whose bottom-view land -// pattern was mirrored for a lens-up part and had no body cutout. Datasheet: SK6812MINI-HS-012 -// Rev B/0 (PCB/v1.x/datasheets/SK6812MINI-HS-012.pdf). Pin numbers are the datasheet's (section 5), -// and the footprint's pads carry the same numbers. Supply range is 3.7-5.5 V (section 7); input -// thresholds are 0.7 / 0.3 x VDD (section 9). -part sk6812mini-hs { - reference "D" - symbol "LED:SK6812" - value "SK6812MINI-HS-012" - datasheet "https://datasheet.lcsc.com/datasheet/pdf/d15550987339dcd676f3ed17cb498c41.pdf?productCode=C2922787" - description "Addressable RGB LED with integrated driver, top-mount 3.5x3.5mm PLCC4, lens up" - manufacturer "OPSCO Optoelectronics" - order mpn="SK6812MINI-HS" lcsc=C2922787 - - pin GND power_in - pin DIN input - pin VDD power_in - pin DOUT output - - package mini-hs footprint="SnipsControllers_Custom:SK6812MINI-HS-012" { - pad GND 1 - pad DIN 2 - pad VDD 3 - pad DOUT 4 - } - - // Estimated full-brightness current: the datasheet gives 12 mA per colour (section 9). - port vdd type=power { - require net.voltage min="3.7V" max="5.5V" - add net.draw "36mA" - line rail pin=VDD - line gnd pin=GND - } - - port din type=output pin=DIN - port dout type=output pin=DOUT -} - -// TDK InvenSense ICM-42670-P 6-axis IMU (3-axis gyroscope + 3-axis accelerometer), 2.5 x 3.0 x -// 0.76 mm LGA-14. Datasheet: DS-000451 Rev 1.1. Pin numbers and names are the datasheet's -// (section 4.1, Table 9 and Figure 4). The stock KiCad LGA-14 footprint matches the package -// drawing (section 10.2): pad centers at +/-1.1625 mm and +/-0.9125 mm, pin 1 top-left, numbered -// counter-clockwise. VDD and VDDIO are each 1.71-3.6 V (Table 3). In I2C mode AP_CS is tied to -// VDDIO, FSYNC to GND when unused, and the RESV pins may be left open or tied to GND or VDDIO -// (Figure 5 and Table 9). AP_AD0 sets the I2C address LSB: 0x68 low, 0x69 high (p. 32). -// INT1 resets to open-drain, active-low (INT_CONFIG = 0x00, p. 51), so it doesn't drive -// its line until firmware configures it. -part icm42670p { - reference "U" - symbol "SnipsControllers_Custom:ICM-42670-P" - value "ICM-42670-P" - datasheet "https://invensense.tdk.com/download-pdf/icm-42670-p-datasheet/" - description "6-axis IMU (gyroscope + accelerometer), I2C/SPI/I3C, wake-on-motion interrupt, LGA-14 2.5x3mm" - manufacturer "TDK InvenSense" - order mpn="ICM-42670-P" lcsc=C3288646 - - pin AP_AD0 input required - pin RESV2 passive - pin RESV3 passive - pin INT1 output - pin VDDIO power_in - pin GND power_in - pin FSYNC input required - pin VDD power_in - pin INT2 output - pin RESV10 passive - pin RESV11 passive - pin AP_CS input required - pin AP_SCL input - pin AP_SDA bidirectional - - package lga14 footprint="Package_LGA:LGA-14_3x2.5mm_P0.5mm_LayoutBorder3x4y" { - pad AP_AD0 1 - pad RESV2 2 - pad RESV3 3 - pad INT1 4 - pad VDDIO 5 - pad GND 6 - pad FSYNC 7 - pad VDD 8 - pad INT2 9 - pad RESV10 10 - pad RESV11 11 - pad AP_CS 12 - pad AP_SCL 13 - pad AP_SDA 14 - } - - // Accelerometer + gyroscope in low-noise mode: 0.55 mA typical (Table 3). - port vdd type=power { - require net.voltage min="1.71V" max="3.6V" - add net.draw "0.55mA" - line rail pin=VDD - line gnd pin=GND - } - - port vddio type=power { - require net.voltage min="1.71V" max="3.6V" - line rail pin=VDDIO - } - - // AP_AD0 is tied to GND on this board. - port i2c type=i2c { - claim signal.address 0x68 - line sda pin=AP_SDA - line scl pin=AP_SCL - } - - port int1 pin=INT1 - port int2 pin=INT2 -} - -// TI DRV5055A2 in SOT-23 (DBZ). The @stackup/sensor/hall/drv5055 library part has only the TO-92 -// package, and the SOT-23 pin order differs (DS SBAS639E, Table 4-1). It is mounted on the bottom -// of the board under the trigger magnet and reads the field perpendicular to the board (§6.3.1). -part drv5055a2-sot23 { - symbol "Sensor_Magnetic:DRV5055A2xDBZxQ1" - reference U - value "DRV5055A2QDBZR" - datasheet "https://www.ti.com/lit/ds/symlink/drv5055.pdf" - description "Ratiometric linear Hall effect sensor, 50mV/mT, 3.3V/5V, SOT-23" - manufacturer "Texas Instruments" - order mpn=DRV5055A2QDBZR lcsc=C266131 - - pin VCC power_in - pin GND power_in - pin OUT output - - package sot23 footprint="Package_TO_SOT_SMD:SOT-23" { - pad VCC 1 - pad OUT 2 - pad GND 3 - } - - // Maximum supply current: 10 mA. The datasheet's 3.0–3.63 V and 4.5–5.5 V ranges are checked - // only at the outer limits, as in the library part. - port vcc type=power { - require net.voltage min="3.0V" max="5.5V" - add net.draw "10mA" - line rail pin=VCC - line gnd pin=GND - } - - // Analog output proportional to the supply voltage, for an ADC input. - port out type=analog pin=OUT -} diff --git a/PCB/v2.x/snips/GPIO_table.md b/PCB/v2.x/snips/GPIO_table.md index d942e95..bcf0ffb 100644 --- a/PCB/v2.x/snips/GPIO_table.md +++ b/PCB/v2.x/snips/GPIO_table.md @@ -1,7 +1,7 @@ # Snips Controller V2 — ESP32-S3-MINI-1U pin table -> The wiring source is `PCB/v2.x/snips/stackup/board.kdl`, and the module is modeled in -> `PCB/v2.x/snips/stackup/parts.kdl`. Pin data is from Espressif's ESP32-S3-MINI-1 & MINI-1U datasheet +> The wiring source is `PCB/v2.x/snips/stackup/board.kdl`, and the module is the Stackup +> library's `esp32-s3-mini-1u` (`@stackup/micro/esp32s3`). Pin data is from Espressif's ESP32-S3-MINI-1 & MINI-1U datasheet > v1.7, in `datasheets/`. The module is on the top side. The ESP32-S3-MINI-1U-N8 runs the firmware. The XBee 3 is optional: it sits on a castellated daughter board on the underside, and the ESP32's own Bluetooth and ESP-NOW work without it. diff --git a/PCB/v2.x/snips/README.md b/PCB/v2.x/snips/README.md index 10eb6b7..1f1b131 100644 --- a/PCB/v2.x/snips/README.md +++ b/PCB/v2.x/snips/README.md @@ -3,7 +3,7 @@ A wireless handheld controller for R2-D2 droid operation, designed for use at public events and conventions. Communicates with the droid over Zigbee, in a packetized state-report architecture. The electrical design is in [Stackup KDL](stackup/board.kdl), using the pinned -Stackup library plus a [local thumbstick model](stackup/parts.kdl). The existing [KiCad PCB](snips_controller.kicad_pcb) is linked +Stackup library. The existing [KiCad PCB](snips_controller.kicad_pcb) is linked through `snips_controller.stackup_sch`; sync it with the Stackup KiCad plugin. Run `stackup check PCB/v2.x/snips/stackup/board.kdl` from the repository root before syncing. diff --git a/PCB/v2.x/snips/snips_controller.kicad_pcb b/PCB/v2.x/snips/snips_controller.kicad_pcb index 5b357be..806f0ac 100644 --- a/PCB/v2.x/snips/snips_controller.kicad_pcb +++ b/PCB/v2.x/snips/snips_controller.kicad_pcb @@ -257,7 +257,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:87" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:92" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -649,7 +649,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:23" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:28" (at 0 2 90) (layer "F.SilkS") (hide yes) @@ -861,7 +861,7 @@ (justify mirror) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:34" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:39" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -1082,7 +1082,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:60" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:65" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -1281,7 +1281,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:36" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:41" (at -2 0 0) (layer "F.SilkS") (hide yes) @@ -1502,7 +1502,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:83" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:88" (at -2 0 0) (layer "F.SilkS") (hide yes) @@ -1882,7 +1882,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:113" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:118" (at 0 2 90) (layer "F.SilkS") (hide yes) @@ -2158,7 +2158,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:85" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:90" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -2538,7 +2538,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:27" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:32" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -2758,7 +2758,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:78" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:83" (at 0 2 90) (layer "F.SilkS") (hide yes) @@ -2961,7 +2961,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:92" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:97" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -3407,7 +3407,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:89" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:94" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -3779,7 +3779,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:86" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:91" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -4151,7 +4151,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:84" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:89" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -4519,7 +4519,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:46" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:51" (at 0 2 90) (layer "F.SilkS") (hide yes) @@ -4852,7 +4852,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:116" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:121" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -5504,7 +5504,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:35" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:40" (at 0 -2 0) (layer "F.SilkS") (hide yes) @@ -5725,7 +5725,7 @@ (justify mirror) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:105" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:110" (at 0 -2 90) (layer "F.SilkS") (hide yes) @@ -6589,7 +6589,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:94" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:99" (at -2 0 0) (layer "F.SilkS") (hide yes) @@ -7055,7 +7055,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:22" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:27" (at 0 2 90) (layer "F.SilkS") (hide yes) @@ -7258,7 +7258,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:51" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:56" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -7725,7 +7725,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:50" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:55" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -8071,7 +8071,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:28" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:33" (at -2 0 90) (layer "F.SilkS") (hide yes) @@ -8291,7 +8291,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:74" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:79" (at -2 0 0) (layer "F.SilkS") (hide yes) @@ -8607,7 +8607,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:81" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:86" (at 0 2 90) (layer "F.SilkS") (hide yes) @@ -8824,7 +8824,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:110" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:115" (at 0 2 90) (layer "F.SilkS") (hide yes) @@ -9027,7 +9027,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:91" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:96" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -9493,7 +9493,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:21" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:26" (at 0 2 90) (layer "F.SilkS") (hide yes) @@ -9700,7 +9700,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:40" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:45" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -9920,7 +9920,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:109" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:114" (at 0 2 90) (layer "F.SilkS") (hide yes) @@ -10123,7 +10123,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:95" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:100" (at -2 0 0) (layer "F.SilkS") (hide yes) @@ -10633,7 +10633,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:82" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:87" (at 0 -2 0) (layer "F.SilkS") (hide yes) @@ -10845,7 +10845,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:90" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:95" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -11406,7 +11406,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:79" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:84" (at 0 2 90) (layer "F.SilkS") (hide yes) @@ -11606,7 +11606,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:88" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:93" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -11977,7 +11977,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:56" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:61" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -12192,7 +12192,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:57" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:62" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -12408,7 +12408,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:38" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:43" (at 0 2 180) (layer "B.SilkS") (hide yes) @@ -12636,7 +12636,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:55" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:60" (at 0 2 270) (layer "B.SilkS") (hide yes) @@ -13079,7 +13079,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:49" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:54" (at 2 0 90) (layer "B.SilkS") (hide yes) @@ -13425,7 +13425,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:20" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:25" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -13983,7 +13983,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:42" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:47" (at 2 0 180) (layer "B.SilkS") (hide yes) @@ -14211,7 +14211,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:41" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:46" (at 0 -2 180) (layer "B.SilkS") (hide yes) @@ -14505,7 +14505,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:26" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:31" (at 2 0 180) (layer "B.SilkS") (hide yes) @@ -14746,7 +14746,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:43" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:48" (at 2 0 0) (layer "B.SilkS") (hide yes) @@ -15197,7 +15197,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:44" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:49" (at 2 0 270) (layer "B.SilkS") (hide yes) @@ -15566,7 +15566,7 @@ ) ) ) - (property "Stackup Source" "@stackup/passives.kdl:126" + (property "Stackup Source" "@stackup/passives.kdl:132" (at -2 0 270) (layer "B.SilkS") (hide yes) @@ -18497,7 +18497,7 @@ (justify mirror) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:115" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:120" (at 0 -2 90) (layer "B.SilkS") (hide yes) @@ -18873,7 +18873,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:25" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:30" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -19114,7 +19114,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:33" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:38" (at 2 0 270) (layer "B.SilkS") (hide yes) @@ -19342,7 +19342,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:32" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:37" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -19583,7 +19583,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:69" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:74" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -19804,7 +19804,7 @@ (justify mirror) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:93" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:98" (at 0 2 0) (layer "B.SilkS") (hide yes) @@ -20271,7 +20271,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:70" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:75" (at -2 0 0) (layer "B.SilkS") (hide yes) @@ -20487,7 +20487,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:63" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:68" (at 0 -2 270) (layer "B.SilkS") (hide yes) @@ -20703,7 +20703,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:54" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:59" (at 0 2 270) (layer "B.SilkS") (hide yes) @@ -21142,7 +21142,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:39" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:44" (at 2 0 180) (layer "B.SilkS") (hide yes) @@ -21381,7 +21381,7 @@ (justify mirror) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:30" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:35" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -21774,7 +21774,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:24" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:29" (at 0 2 180) (layer "B.SilkS") (hide yes) @@ -22182,7 +22182,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:97" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:102" (at 0 -2 180) (layer "B.SilkS") (hide yes) @@ -22985,7 +22985,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:76" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:81" (at 0 2 180) (layer "B.SilkS") (hide yes) @@ -23202,7 +23202,7 @@ (justify mirror) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:59" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:64" (at 0 -2 180) (layer "B.SilkS") (hide yes) @@ -23451,7 +23451,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:45" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:50" (at -2 0 270) (layer "B.SilkS") (hide yes) @@ -24055,7 +24055,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:72" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:77" (at -2 0 270) (layer "B.SilkS") (hide yes) @@ -24271,7 +24271,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:62" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:67" (at 2 0 0) (layer "B.SilkS") (hide yes) @@ -24487,7 +24487,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:80" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:85" (at 0 -2 180) (layer "B.SilkS") (hide yes) @@ -24714,7 +24714,7 @@ (justify mirror) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:31" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:36" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -24934,7 +24934,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:75" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:80" (at 0 -2 180) (layer "B.SilkS") (hide yes) @@ -25150,7 +25150,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:71" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:76" (at 0 -2 180) (layer "B.SilkS") (hide yes) @@ -25367,7 +25367,7 @@ (justify mirror) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:58" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:63" (at 2 0 90) (layer "B.SilkS") (hide yes) @@ -25584,7 +25584,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:61" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:66" (at -2 0 270) (layer "B.SilkS") (hide yes) @@ -25785,7 +25785,7 @@ (justify mirror) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:108" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:113" (at 0 -2 180) (layer "B.SilkS") (hide yes) @@ -26206,7 +26206,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:96" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:101" (at -2 0 180) (layer "B.SilkS") (hide yes) @@ -26677,7 +26677,7 @@ (justify mirror) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:29" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:34" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -26901,7 +26901,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:52" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:57" (at 0 -2 180) (layer "B.SilkS") (hide yes) @@ -27236,7 +27236,7 @@ (justify mirror) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:37" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:42" (at 2 0 0) (layer "B.SilkS") (hide yes) @@ -27472,7 +27472,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:114" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:119" (at 0 -2 180) (layer "B.SilkS") (hide yes) @@ -27923,7 +27923,7 @@ (justify mirror) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:68" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:73" (at 0 -2 0) (layer "B.SilkS") (hide yes) @@ -28172,7 +28172,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:53" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:58" (at 0 2 0) (layer "B.SilkS") (hide yes) @@ -28622,7 +28622,7 @@ (justify mirror) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:112" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:117" (at 0 -2 270) (layer "B.SilkS") (hide yes) @@ -28830,7 +28830,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:77" + (property "Stackup Source" "PCB/v2.x/snips/stackup/board.kdl:82" (at 0 -2 180) (layer "B.SilkS") (hide yes) diff --git a/PCB/v2.x/snips/snips_controller.kicad_pro b/PCB/v2.x/snips/snips_controller.kicad_pro index f5de472..8341f0c 100644 --- a/PCB/v2.x/snips/snips_controller.kicad_pro +++ b/PCB/v2.x/snips/snips_controller.kicad_pro @@ -178,6 +178,7 @@ { "td_allow_use_two_tracks": true, "td_curve_segcount": 0, + "td_enabled": false, "td_height_ratio": 1.0, "td_length_ratio": 0.5, "td_maxheight": 2.0, @@ -189,6 +190,7 @@ { "td_allow_use_two_tracks": true, "td_curve_segcount": 0, + "td_enabled": false, "td_height_ratio": 1.0, "td_length_ratio": 0.5, "td_maxheight": 2.0, @@ -200,6 +202,7 @@ { "td_allow_use_two_tracks": true, "td_curve_segcount": 0, + "td_enabled": false, "td_height_ratio": 1.0, "td_length_ratio": 0.5, "td_maxheight": 2.0, @@ -556,7 +559,7 @@ "net_colors": { "VSYS": "rgb(125, 255, 92)" }, - "netclass_assignments": null, + "netclass_assignments": {}, "netclass_patterns": [ { "netclass": "Power", diff --git a/PCB/v2.x/snips/stackup/README.md b/PCB/v2.x/snips/stackup/README.md index bc90d87..bb778f0 100644 --- a/PCB/v2.x/snips/stackup/README.md +++ b/PCB/v2.x/snips/stackup/README.md @@ -1,11 +1,12 @@ # Snips Controller Stackup design `board.kdl` defines the electrical design and imports parts from the library -pinned in the repository's `manifest.kdl`. `parts.kdl` defines the Snips-specific -thumbstick. `purchasing.kdl` declares the selected manufacturer parts and -supplier numbers. The match rules in `board.kdl` choose those parts by the -resolved value and footprint. The resulting BOM matches the previous factory -order in `../production/bom/snips_controller-bom.csv`. +pinned in the repository's `manifest.kdl`. `parts.kdl` defines the pads for the +XBee carrier daughter board, the one Snips-specific part. `purchasing.kdl` +declares the selected manufacturer parts and supplier numbers. The match rules +in `board.kdl` choose those parts by the resolved value and footprint. The +resulting BOM matches the previous factory order in +`../production/bom/snips_controller-bom.csv`. The board layout is in `../snips_controller.kicad_pcb`. To check the design, run `stackup check PCB/v2.x/snips/stackup/board.kdl` from the repository root. To update the diff --git a/PCB/v2.x/snips/stackup/board.kdl b/PCB/v2.x/snips/stackup/board.kdl index 50d139f..9e94056 100644 --- a/PCB/v2.x/snips/stackup/board.kdl +++ b/PCB/v2.x/snips/stackup/board.kdl @@ -8,11 +8,16 @@ use "@stackup/discrete/diode/diode" use "@stackup/discrete/diode/tvs" use "@stackup/discrete/fet/ao3400a" use "@stackup/discrete/fet/ao3401a" +use "@stackup/discrete/led/sk6812mini-hs" use "@stackup/mechanical" +use "@stackup/micro/esp32s3" use "@stackup/passives" use "@stackup/power/buck/tlv62569" use "@stackup/power/charger/bq25185" +use "@stackup/sensor/accel/icm42670p" +use "@stackup/sensor/hall/drv5055" use "@stackup/switch/push-button" +use "@stackup/switch/rkjxv" use "./parts.kdl"; use "./purchasing.kdl" design snips_controller { @@ -47,7 +52,7 @@ design snips_controller { ignore "vdd.net.voltage" reason="run at 3.3V like the MINI-E it replaces" // Datasheet minimum: 3.7 V; this board supplies 3.3 V. } place tvs "D_VBUS_TVS1" designator="D_VBUS_TVS1" footprint="Diode_SMD:D_SOD-323" value="TPPESD5V0S1BA" bom_value="TVS diode 5V bidirectional | TPPESD5V0S1BA | TECH PUBLIC | SOD-323" - place component_J_STICK1 "J_STICK1" designator="J_STICK1" footprint="SnipsControllers_Custom:GuliKit_HallStick" value="GuliKit_Thumbstick" bom_value="Hall thumbstick | GuliKit_Thumbstick | GuliKit | Through-hole | DNP - hand-fitted - do not assemble" hand=#true + place gulikit-hall-stick "J_STICK1" designator="J_STICK1" footprint="SnipsControllers_Custom:GuliKit_HallStick" value="GuliKit_Thumbstick" bom_value="Hall thumbstick | GuliKit_Thumbstick | GuliKit | Through-hole | DNP - hand-fitted - do not assemble" hand=#true place usb-c-receptacle "J_USB1" designator="J_USB1" footprint="Connector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12" package="hro" value="USB-C" bom_value="USB-C receptacle 16-pin | TYPE-C-31-M-12 | Hroparts Elec | SMD with through-hole shell tabs | right-angle" place inductor "L_BUCK1" designator="L_BUCK1" footprint="Inductor_SMD:L_Bourns-SRN4018" value="2.2µH" bom_value="2.2µH ±20% 2.9A 44mΩ power inductor | SRN4018-2R2M | Bourns | SMD 4x4mm" place mmbt3904 "Q_INV1" designator="Q_INV1" footprint="Package_TO_SOT_SMD:SOT-23" value="MMBT3904(RANGE:100-300)" bom_value="NPN transistor 40V 200mA hFE 100-300 | MMBT3904(RANGE:100-300) | JCET | SOT-23" @@ -80,13 +85,13 @@ design snips_controller { place resistor "R_VSET1" designator="R_VSET1" footprint="Resistor_SMD:R_0402_1005Metric" value="18kΩ" bom_value="18kΩ ±1% 62.5mW | RC0402FR-0718KL | Yageo | 0402" place resistor "R_VSYS1" designator="R_VSYS1" footprint="Resistor_SMD:R_0402_1005Metric" value="200kΩ" bom_value="200kΩ ±1% 62.5mW | 0402WGF2003TCE | UNI-ROYAL | 0402" place resistor "R_VSYS2" designator="R_VSYS2" footprint="Resistor_SMD:R_0402_1005Metric" value="100kΩ" bom_value="100kΩ ±1% 62.5mW | 0402WGF1003TCE | UNI-ROYAL | 0402" - place skrp-button "SW_BOOT1" designator="SW_BOOT1" footprint="SnipsControllers_Custom:SW_Alps_SKRP" value="SKRPABE010" bom_value="Tact switch 1.6N 100k cycles | SKRPABE010 | Alps | SMD 4.2x3.2x2.5mm | top actuated" - place skrp-button "SW_MACRO1" designator="SW_MACRO1" footprint="SnipsControllers_Custom:SW_Alps_SKRP" value="SKRPABE010" bom_value="Tact switch 1.6N 100k cycles | SKRPABE010 | Alps | SMD 4.2x3.2x2.5mm | top actuated" - place skrp-button "SW_MACRO2" designator="SW_MACRO2" footprint="SnipsControllers_Custom:SW_Alps_SKRP" value="SKRPABE010" bom_value="Tact switch 1.6N 100k cycles | SKRPABE010 | Alps | SMD 4.2x3.2x2.5mm | top actuated" - place skrp-button "SW_MACRO3" designator="SW_MACRO3" footprint="SnipsControllers_Custom:SW_Alps_SKRP" value="SKRPABE010" bom_value="Tact switch 1.6N 100k cycles | SKRPABE010 | Alps | SMD 4.2x3.2x2.5mm | top actuated" - place skrp-button "SW_MACRO4" designator="SW_MACRO4" footprint="SnipsControllers_Custom:SW_Alps_SKRP" value="SKRPABE010" bom_value="Tact switch 1.6N 100k cycles | SKRPABE010 | Alps | SMD 4.2x3.2x2.5mm | top actuated" - place skrp-button "SW_MACRO5" designator="SW_MACRO5" footprint="SnipsControllers_Custom:SW_Alps_SKRP" value="SKRPABE010" bom_value="Tact switch 1.6N 100k cycles | SKRPABE010 | Alps | SMD 4.2x3.2x2.5mm | top actuated" - place skrp-button "SW_MACRO6" designator="SW_MACRO6" footprint="SnipsControllers_Custom:SW_Alps_SKRP" value="SKRPABE010" bom_value="Tact switch 1.6N 100k cycles | SKRPABE010 | Alps | SMD 4.2x3.2x2.5mm | top actuated" + place push-button "SW_BOOT1" package=skrp designator="SW_BOOT1" footprint="SnipsControllers_Custom:SW_Alps_SKRP" value="SKRPABE010" bom_value="Tact switch 1.6N 100k cycles | SKRPABE010 | Alps | SMD 4.2x3.2x2.5mm | top actuated" + place push-button "SW_MACRO1" package=skrp designator="SW_MACRO1" footprint="SnipsControllers_Custom:SW_Alps_SKRP" value="SKRPABE010" bom_value="Tact switch 1.6N 100k cycles | SKRPABE010 | Alps | SMD 4.2x3.2x2.5mm | top actuated" + place push-button "SW_MACRO2" package=skrp designator="SW_MACRO2" footprint="SnipsControllers_Custom:SW_Alps_SKRP" value="SKRPABE010" bom_value="Tact switch 1.6N 100k cycles | SKRPABE010 | Alps | SMD 4.2x3.2x2.5mm | top actuated" + place push-button "SW_MACRO3" package=skrp designator="SW_MACRO3" footprint="SnipsControllers_Custom:SW_Alps_SKRP" value="SKRPABE010" bom_value="Tact switch 1.6N 100k cycles | SKRPABE010 | Alps | SMD 4.2x3.2x2.5mm | top actuated" + place push-button "SW_MACRO4" package=skrp designator="SW_MACRO4" footprint="SnipsControllers_Custom:SW_Alps_SKRP" value="SKRPABE010" bom_value="Tact switch 1.6N 100k cycles | SKRPABE010 | Alps | SMD 4.2x3.2x2.5mm | top actuated" + place push-button "SW_MACRO5" package=skrp designator="SW_MACRO5" footprint="SnipsControllers_Custom:SW_Alps_SKRP" value="SKRPABE010" bom_value="Tact switch 1.6N 100k cycles | SKRPABE010 | Alps | SMD 4.2x3.2x2.5mm | top actuated" + place push-button "SW_MACRO6" package=skrp designator="SW_MACRO6" footprint="SnipsControllers_Custom:SW_Alps_SKRP" value="SKRPABE010" bom_value="Tact switch 1.6N 100k cycles | SKRPABE010 | Alps | SMD 4.2x3.2x2.5mm | top actuated" place push-button "SW_PWR1" designator="SW_PWR1" footprint="Button_Switch_SMD:SW_Push_1P1T-MP_NO_Horizontal_Alps_SKRTLAE010" package="alps" value="SKRTLAE010" bom_value="Side-push tact switch 1.6N 100k cycles | SKRTLAE010 | Alps | SMD 4.5x3.4x3.3mm | right-angle" place push-button "SW_THR_DN1" designator="SW_THR_DN1" footprint="Button_Switch_SMD:SW_Push_1P1T-MP_NO_Horizontal_Alps_SKRTLAE010" package="alps" value="SKRTLAE010" bom_value="Side-push tact switch 1.6N 100k cycles | SKRTLAE010 | Alps | SMD 4.5x3.4x3.3mm | right-angle" place push-button "SW_THR_UP1" designator="SW_THR_UP1" footprint="Button_Switch_SMD:SW_Push_1P1T-MP_NO_Horizontal_Alps_SKRTLAE010" package="alps" value="SKRTLAE010" bom_value="Side-push tact switch 1.6N 100k cycles | SKRTLAE010 | Alps | SMD 4.5x3.4x3.3mm | right-angle" @@ -111,7 +116,7 @@ design snips_controller { // Low-pass for the trigger, with C_TRIG1 at the ADC pin. The DRV5055 must not see a capacitor on OUT without a resistor. place resistor "R_TRIG1" designator="R_TRIG1" footprint="Resistor_SMD:R_0402_1005Metric" value="1kΩ" bom_value="1kΩ ±1% 62.5mW | 0402WGF1001TCE | UNI-ROYAL | 0402" place capacitor "C_TRIG1" designator="C_TRIG1" footprint="Capacitor_SMD:C_0402_1005Metric" value="100nF" bom_value="100nF 16V X7R ±10% | CL05B104KO5NNNC | Samsung | 0402" - place drv5055a2-sot23 "U_HALL1" designator="U_HALL1" footprint="Package_TO_SOT_SMD:SOT-23" value="DRV5055A2QDBZR" bom_value="Linear hall sensor A2 ±42mT | DRV5055A2QDBZR | TI | SOT-23" + place drv5055a2 "U_HALL1" package=sot23 designator="U_HALL1" footprint="Package_TO_SOT_SMD:SOT-23" value="DRV5055A2QDBZR" bom_value="Linear hall sensor A2 ±42mT | DRV5055A2QDBZR | TI | SOT-23" { without supply; } place icm42670p "U_IMU1" designator="U_IMU1" footprint="Package_LGA:LGA-14_3x2.5mm_P0.5mm_LayoutBorder3x4y" value="ICM-42670-P" bom_value="6-axis IMU | ICM-42670-P | TDK InvenSense | LGA-14 2.5x3mm" place qwiic "U_OLED1" designator="U_OLED1" footprint="Connector_JST:JST_SH_SM04B-SRSS-TB_1x04-1MP_P1.00mm_Horizontal" value="Qwiic connector" bom_value="JST SH 4-pin 1mm Qwiic | SM04B-SRSS-TB(LF)(SN) | JST | SMD | side entry right-angle" { without tab } @@ -136,15 +141,15 @@ design snips_controller { circuit "SW_VOL_UP1.1" "U_MCU1.IO38" name="/Buttons_Direct/BTN_VOL_UP" circuit "R_TRIG1.A" "U_HALL1.OUT" name="/Hall_Trigger/TRIG_ANALOG" circuit "C_TRIG1.A" "R_TRIG1.B" "U_MCU1.IO9" name="/Hall_Trigger/TRIG_ADC" - circuit "J_STICK1.p_a" "U_MCU1.IO17" name="/MCU_Core/BTN_STICK" + circuit "J_STICK1.SW_1" "U_MCU1.IO17" name="/MCU_Core/BTN_STICK" circuit "R_BOOT_PU1.A" "SW_BOOT1.2" "U_MCU1.IO0" name="/MCU_Core/MCU_BOOT" circuit "C_DBNC1.A" "D_INV_ISO1.K" "R_BTN_PU1.B" "SW_PWR1.1" "U_MCU1.IO21" name="/MCU_Core/PWR_BTN_SENSE" circuit "D_OR2.A" "U_MCU1.RXD0" name="/MCU_Core/PWR_HOLD" circuit "R_RGB1.B" "U_MCU1.IO48" name="/MCU_Core/RGB_DIN" circuit "R_STAT1.A" "U_CHG1.STAT1" "U_MCU1.IO15" name="/MCU_Core/STAT1" circuit "R_STAT2.A" "U_CHG1.STAT2" "U_MCU1.IO14" name="/MCU_Core/STAT2" - circuit "J_STICK1.p_2" "U_MCU1.IO7" name="/MCU_Core/STICK_X" - circuit "J_STICK1.p_2_" "U_MCU1.IO6" name="/MCU_Core/STICK_Y" + circuit "J_STICK1.VR2_OUT" "U_MCU1.IO7" name="/MCU_Core/STICK_X" + circuit "J_STICK1.VR1_OUT" "U_MCU1.IO6" name="/MCU_Core/STICK_Y" circuit "C_VSYS1.A" "R_VSYS1.B" "R_VSYS2.A" "U_MCU1.IO10" name="/MCU_Core/VSYS_SENSE" // XBee UART in API mode, with flow control. RTS and DTR also allow serial firmware recovery through the ESP32. circuit "U_MCU1.IO34" "U_XBEE1.CTS" name="/XBee/XBEE_CTS" @@ -167,10 +172,10 @@ design snips_controller { circuit "D_RGB1.DIN" "R_RGB1.A" name="/RGB_LED/RGB_DIN_R" circuit "J_USB1.CC1" "R_CC1.A" name="/USB_C/USB_CC1" circuit "J_USB1.CC2" "R_CC2.A" name="/USB_C/USB_CC2" - circuit "C_MCU_1.A" "C_MCU_2.A" "C_MCU_3.A" "C_HALL1.A" "C_STICK1.A" "J_STICK1.p_3" "J_STICK1.p_3_" "R_EN_PU1.B" "U_HALL1.VCC" "U_MCU1.3V3" "U_XBEE1.VCC" "C_BUCK_OUT1.A" "C_IMU_1.A" "C_IMU_2.A" "C_IMU_3.A" "C_OLED_1.A" "C_OLED_2.A" "C_RGB1.A" "D_RGB1.VDD" "L_BUCK1.B" "R_BOOT_PU1.B" "R_BTN_PU1.A" "R_FB1.B" "R_STAT1.B" "R_STAT2.B" "U_IMU1.AP_CS" "U_IMU1.VDD" "U_IMU1.VDDIO" "R_I2C_SCL1.A" "R_I2C_SDA1.A" "U_OLED1.2" name="3V3" + circuit "C_MCU_1.A" "C_MCU_2.A" "C_MCU_3.A" "C_HALL1.A" "C_STICK1.A" "J_STICK1.VR2_VCC" "J_STICK1.VR1_VCC" "R_EN_PU1.B" "U_HALL1.VCC" "U_MCU1.3V3" "U_XBEE1.VCC" "C_BUCK_OUT1.A" "C_IMU_1.A" "C_IMU_2.A" "C_IMU_3.A" "C_OLED_1.A" "C_OLED_2.A" "C_RGB1.A" "D_RGB1.VDD" "L_BUCK1.B" "R_BOOT_PU1.B" "R_BTN_PU1.A" "R_FB1.B" "R_STAT1.B" "R_STAT2.B" "U_IMU1.AP_CS" "U_IMU1.VDD" "U_IMU1.VDDIO" "R_I2C_SCL1.A" "R_I2C_SDA1.A" "U_OLED1.2" name="3V3" set "C_BUCK_OUT1.A" net.voltage "3.3V" circuit "U_IMU1.INT1" "U_MCU1.IO37" name="ACCEL_INT1" - circuit "BT1.2" "C_MCU_1.B" "C_MCU_2.B" "C_MCU_3.B" "C_EN1.B" "C_BAT1.B" "C_BUCK_IN1.B" "C_BUCK_OUT1.B" "C_DBNC1.B" "C_HALL1.B" "C_IMU_1.B" "C_IMU_2.B" "C_IMU_3.B" "C_LATCH_G1.A" "C_OLED_1.B" "C_OLED_2.B" "C_RGB1.B" "C_STICK1.B" "C_SYS_1.B" "C_TRIG1.B" "C_SYS_2.B" "C_VSYS1.B" "C_VIN_1.B" "C_VIN_2.B" "D_RGB1.GND" "D_VBUS_TVS1.A2" "J_STICK1.p_1" "J_STICK1.p_1_" "J_STICK1.p_c" "J_USB1.GND" "J_USB1.SHIELD" "Q_INV1.EMITTER" "Q_LATCH1.SOURCE" "R_CC1.B" "R_CC2.B" "R_FB2.B" "R_ISET1.B" "R_LATCH_G1.A" "R_PWR_EN_PD1.rail.gnd" "R_TS1.B" "R_VSET1.B" "R_VSYS2.B" "SW_BOOT1.1" "SW_MACRO1.2" "SW_MACRO2.2" "SW_MACRO3.2" "SW_MACRO4.2" "SW_MACRO5.2" "SW_MACRO6.2" "SW_PWR1.2" "SW_THR_DN1.2" "SW_THR_UP1.2" "SW_TRIG_DIG1.2" "SW_VOL_DN1.2" "SW_VOL_UP1.2" "U_BUCK1.GND" "U_CHG1.PAD" "U_CHG1.CE" "U_CHG1.GND" "U_HALL1.GND" "U_IMU1.AP_AD0" "U_IMU1.FSYNC" "U_IMU1.GND" "U_IMU1.RESV2" "U_IMU1.RESV3" "U_IMU1.RESV10" "U_IMU1.RESV11" "U_MCU1.GND" "U_XBEE1.GND" "U_OLED1.1" name="GND" + circuit "BT1.2" "C_MCU_1.B" "C_MCU_2.B" "C_MCU_3.B" "C_EN1.B" "C_BAT1.B" "C_BUCK_IN1.B" "C_BUCK_OUT1.B" "C_DBNC1.B" "C_HALL1.B" "C_IMU_1.B" "C_IMU_2.B" "C_IMU_3.B" "C_LATCH_G1.A" "C_OLED_1.B" "C_OLED_2.B" "C_RGB1.B" "C_STICK1.B" "C_SYS_1.B" "C_TRIG1.B" "C_SYS_2.B" "C_VSYS1.B" "C_VIN_1.B" "C_VIN_2.B" "D_RGB1.GND" "D_VBUS_TVS1.A2" "J_STICK1.VR2_GND" "J_STICK1.VR1_GND" "J_STICK1.SW_2" "J_USB1.GND" "J_USB1.SHIELD" "Q_INV1.EMITTER" "Q_LATCH1.SOURCE" "R_CC1.B" "R_CC2.B" "R_FB2.B" "R_ISET1.B" "R_LATCH_G1.A" "R_PWR_EN_PD1.rail.gnd" "R_TS1.B" "R_VSET1.B" "R_VSYS2.B" "SW_BOOT1.1" "SW_MACRO1.2" "SW_MACRO2.2" "SW_MACRO3.2" "SW_MACRO4.2" "SW_MACRO5.2" "SW_MACRO6.2" "SW_PWR1.2" "SW_THR_DN1.2" "SW_THR_UP1.2" "SW_TRIG_DIG1.2" "SW_VOL_DN1.2" "SW_VOL_UP1.2" "U_BUCK1.GND" "U_CHG1.PAD" "U_CHG1.CE" "U_CHG1.GND" "U_HALL1.GND" "U_IMU1.AP_AD0" "U_IMU1.FSYNC" "U_IMU1.GND" "U_IMU1.RESV2" "U_IMU1.RESV3" "U_IMU1.RESV10" "U_IMU1.RESV11" "U_MCU1.GND" "U_XBEE1.GND" "U_OLED1.1" name="GND" circuit "BT1.1" "C_BAT1.A" "U_CHG1.BAT" name="VBAT" circuit "C_VIN_1.A" "C_VIN_2.A" "D_VBUS_TVS1.A1" "J_USB1.VBUS" "U_CHG1.IN" name="VBUS" circuit "C_BUCK_IN1.A" "C_SYS_1.A" "C_SYS_2.A" "Q_PWR1.SOURCE" "R_GATE1.A" "R_INV_BASE1.A" "R_INV_PU1.A" "R_VSYS1.A" "U_BUCK1.VIN" "U_CHG1.SYS" name="VSYS" diff --git a/PCB/v2.x/snips/stackup/parts.kdl b/PCB/v2.x/snips/stackup/parts.kdl index de0dd78..f40be09 100644 --- a/PCB/v2.x/snips/stackup/parts.kdl +++ b/PCB/v2.x/snips/stackup/parts.kdl @@ -1,449 +1,4 @@ -// Snips-specific GuliKit thumbstick assembly. - -part component_J_STICK1 { - reference "J" - symbol "SnipsControllers_Custom:GuliKit_HallStick" - value "GuliKit_Thumbstick" - description "OEM-replacement-style hall/TMR analog thumbstick with center-push switch (ALPS RKJXV1224 / C&K THB001P footprint family). 2-axis potentiometer-emulation interface, not a simple VCC/GND/X/Y/SW breakout: pins 1/2/3 are the X axis low/wiper/high, pins 1'/2'/3' are the Y axis low/wiper/high, pins a/c are the switch (b/d are mechanically-redundant duplicate switch legs, intentionally unconnected). Drive 1 and 1' to GND, 3 and 3' to 3V3; read wipers 2 (X) and 2' (Y) on ADC pins; wire switch a to a GPIO and c to GND. Adapted from dbenoy/thumbstick-breakout (CC-BY-SA 4.0, Copyright (c) Daniel Benoy)." - pin p_1 passive - pin p_2 output - pin p_3 passive - pin p_1_ passive - pin p_2_ output - pin p_3_ passive - pin p_a passive - pin p_b passive - pin p_c passive - pin p_d passive - package pcb footprint="SnipsControllers_Custom:GuliKit_HallStick" { - pad p_1 "1" - pad p_2 "2" - pad p_3 "3" - pad p_1_ "1'" - pad p_2_ "2'" - pad p_3_ "3'" - pad p_a "a" - pad p_b "b" - pad p_c "c" - pad p_d "d" - } -} - -// OPSCO SK6812MINI-HS-012 addressable RGB LED, top-mount 3.5 x 3.5 mm PLCC4, lens up, using the -// single-wire WS2812 protocol. Replaces the reverse-mount SK6812MINI-E, whose bottom-view land -// pattern was mirrored for a lens-up part and had no body cutout. Datasheet: SK6812MINI-HS-012 -// Rev B/0 (PCB/v2.x/snips/datasheets/SK6812MINI-HS-012.pdf). Pin numbers are the datasheet's (section 5), -// and the footprint's pads carry the same numbers. Supply range is 3.7-5.5 V (section 7); input -// thresholds are 0.7 / 0.3 x VDD (section 9). -part sk6812mini-hs { - reference "D" - symbol "LED:SK6812" - value "SK6812MINI-HS-012" - datasheet "https://datasheet.lcsc.com/datasheet/pdf/d15550987339dcd676f3ed17cb498c41.pdf?productCode=C2922787" - description "Addressable RGB LED with integrated driver, top-mount 3.5x3.5mm PLCC4, lens up" - manufacturer "OPSCO Optoelectronics" - order mpn="SK6812MINI-HS" lcsc=C2922787 - - pin GND power_in - pin DIN input - pin VDD power_in - pin DOUT output - - package mini-hs footprint="SnipsControllers_Custom:SK6812MINI-HS-012" { - pad GND 1 - pad DIN 2 - pad VDD 3 - pad DOUT 4 - } - - // Estimated full-brightness current: the datasheet gives 12 mA per colour (section 9). - port vdd type=power { - require net.voltage min="3.7V" max="5.5V" - add net.draw "36mA" - line rail pin=VDD - line gnd pin=GND - } - - port din type=output pin=DIN - port dout type=output pin=DOUT -} - -// TDK InvenSense ICM-42670-P 6-axis IMU (3-axis gyroscope + 3-axis accelerometer), 2.5 x 3.0 x -// 0.76 mm LGA-14. Datasheet: DS-000451 Rev 1.1. Pin numbers and names are the datasheet's -// (section 4.1, Table 9 and Figure 4). The stock KiCad LGA-14 footprint matches the package -// drawing (section 10.2): pad centers at +/-1.1625 mm and +/-0.9125 mm, pin 1 top-left, numbered -// counter-clockwise. VDD and VDDIO are each 1.71-3.6 V (Table 3). In I2C mode AP_CS is tied to -// VDDIO, FSYNC to GND when unused, and the RESV pins may be left open or tied to GND or VDDIO -// (Figure 5 and Table 9). AP_AD0 sets the I2C address LSB: 0x68 low, 0x69 high (p. 32). -// INT1 resets to open-drain, active-low (INT_CONFIG = 0x00, p. 51), so it doesn't drive -// its line until firmware configures it. -part icm42670p { - reference "U" - symbol "SnipsControllers_Custom:ICM-42670-P" - value "ICM-42670-P" - datasheet "https://invensense.tdk.com/download-pdf/icm-42670-p-datasheet/" - description "6-axis IMU (gyroscope + accelerometer), I2C/SPI/I3C, wake-on-motion interrupt, LGA-14 2.5x3mm" - manufacturer "TDK InvenSense" - order mpn="ICM-42670-P" lcsc=C3288646 - - pin AP_AD0 input required - pin RESV2 passive - pin RESV3 passive - pin INT1 output - pin VDDIO power_in - pin GND power_in - pin FSYNC input required - pin VDD power_in - pin INT2 output - pin RESV10 passive - pin RESV11 passive - pin AP_CS input required - pin AP_SCL input - pin AP_SDA bidirectional - - package lga14 footprint="Package_LGA:LGA-14_3x2.5mm_P0.5mm_LayoutBorder3x4y" { - pad AP_AD0 1 - pad RESV2 2 - pad RESV3 3 - pad INT1 4 - pad VDDIO 5 - pad GND 6 - pad FSYNC 7 - pad VDD 8 - pad INT2 9 - pad RESV10 10 - pad RESV11 11 - pad AP_CS 12 - pad AP_SCL 13 - pad AP_SDA 14 - } - - // Accelerometer + gyroscope in low-noise mode: 0.55 mA typical (Table 3). - port vdd type=power { - require net.voltage min="1.71V" max="3.6V" - add net.draw "0.55mA" - line rail pin=VDD - line gnd pin=GND - } - - port vddio type=power { - require net.voltage min="1.71V" max="3.6V" - line rail pin=VDDIO - } - - // AP_AD0 is tied to GND on this board. - port i2c type=i2c { - claim signal.address 0x68 - line sda pin=AP_SDA - line scl pin=AP_SCL - } - - port int1 pin=INT1 - port int2 pin=INT2 -} - -// TI DRV5055A2 in SOT-23 (DBZ). The @stackup/sensor/hall/drv5055 library part has only the TO-92 -// package, and the SOT-23 pin order differs (DS SBAS639E, Table 4-1). It is mounted on the bottom -// of the board under the trigger magnet and reads the field perpendicular to the board (§6.3.1). -part drv5055a2-sot23 { - symbol "Sensor_Magnetic:DRV5055A2xDBZxQ1" - reference U - value "DRV5055A2QDBZR" - datasheet "https://www.ti.com/lit/ds/symlink/drv5055.pdf" - description "Ratiometric linear Hall effect sensor, 50mV/mT, 3.3V/5V, SOT-23" - manufacturer "Texas Instruments" - order mpn=DRV5055A2QDBZR lcsc=C266131 - - pin VCC power_in - pin GND power_in - pin OUT output - - package sot23 footprint="Package_TO_SOT_SMD:SOT-23" { - pad VCC 1 - pad OUT 2 - pad GND 3 - } - - // Maximum supply current: 10 mA. The datasheet's 3.0–3.63 V and 4.5–5.5 V ranges are checked - // only at the outer limits, as in the library part. - port vcc type=power { - require net.voltage min="3.0V" max="5.5V" - add net.draw "10mA" - line rail pin=VCC - line gnd pin=GND - } - - // Analog output proportional to the supply voltage, for an ADC input. - port out type=analog pin=OUT -} - -// Digi XBee 3 PRO Zigbee 3.0 Micro, U.FL antenna. The @stackup/radio/xbee3 library part has only the -// through-hole package. The Micro's pin numbers differ, so this model takes them from Digi 90001543 -// pp.42-44; it keeps the library part's pin names so the board's nets read the same. The -J parts -// are the +8 dBm non-PRO modules. The reserved pads (17-20, 22) stay open, as Digi requires. -part xbee3-micro { - symbol "Xbee3:XB3-24Z8UM" - reference U - value "XBee3 PRO Micro" - datasheet "https://docs.digi.com/resources/documentation/digidocs/pdfs/90001543.pdf" - description "XBee 3 PRO Zigbee 3.0 module, +19 dBm, 2.4 GHz, U.FL antenna, Micro 13.54x19.30mm castellated" - manufacturer "Digi International" - order mpn="XB3-24Z8UM" lcsc=C5833776 - - pin GND power_in - pin VCC power_in - pin DOUT output symbol="DOUT/DIO13" - pin DIN input symbol="DIN/~{CONFIG}/DIO14" - pin DIO12 bidirectional - pin RESET input symbol="~{RESET}" - pin RSSI_PWM output symbol="RSSI_PWM/DIO10" - pin PWM1 output symbol="PWM1/DIO11" - pin DTR input symbol="~{DTR}/SLEEP_RQ/DIO8" - pin SPI_ATTN output symbol="SPI_~{ATTN}/~{BOOTMODE}/DIO19" { - role strap sampled=reset pull=none \ - note="BOOTMODE: must not be low at reset (90001543); the module's data-ready line afterwards" - require net.rest high - } - pin SPI_CLK input symbol="SPI_CLK/DIO18" - pin SPI_SSEL input symbol="SPI_~{SSEL}/DIO17" - pin SPI_MOSI input symbol="SPI_MOSI/DIO16" - pin SPI_MISO output symbol="SPI_MISO/DIO15" - pin DIO4 bidirectional - pin CTS output symbol="~{CTS}/DIO7" - pin ON_SLEEP output symbol="ON/~{SLEEP}/DIO9" - pin ASSOCIATE output symbol="ASSOCIATE/DIO5" - pin RTS input symbol="~{RTS}/DIO6" - pin AD3 bidirectional symbol="AD3/DIO3" - pin AD2 bidirectional symbol="AD2/DIO2" - pin AD1 bidirectional symbol="AD1/DIO1" - pin AD0 bidirectional symbol="AD0/DIO0" - pin RF passive - - package micro footprint="Xbee3:XB3-24Z8UM" { - pad GND 1 - pad VCC 2 - pad DOUT 3 - pad DIN 4 - pad DIO12 5 - pad RESET 6 - pad RSSI_PWM 7 - pad PWM1 8 - pad DTR 9 - pad GND 10 - pad SPI_ATTN 11 - pad GND 12 - pad SPI_CLK 13 - pad SPI_SSEL 14 - pad SPI_MOSI 15 - pad SPI_MISO 16 - pad GND 21 - pad DIO4 23 - pad CTS 24 - pad ON_SLEEP 25 - pad ASSOCIATE 26 - pad RTS 27 - pad AD3 28 - pad AD2 29 - pad AD1 30 - pad AD0 31 - pad GND 32 - pad RF 33 - pad GND 34 - } - - // 2.1-3.6 V supply; 140 mA transmitting at +19 dBm (90001543, electrical specifications). - port vcc type=power { - require net.voltage min="2.1V" max="3.6V" - add net.draw "140mA" - line rail pin=VCC - line gnd pin=GND - } - - port spi type=spi { - line sck pin=SPI_CLK - line mosi pin=SPI_MOSI - line miso pin=SPI_MISO - } - port cs type=output pin=SPI_SSEL - port sleep-rq type=output pin=DTR - port attn pin=SPI_ATTN - port on-sleep pin=ON_SLEEP - port reset pin=RESET -} - -// Alps SKRP top-actuated tact switch, 4.2 x 3.2 x 2.5 mm, for the macro and boot buttons. The -B- part is the -// 1.57 N, 100,000-cycle version. SKRPANE010 is the same force and footprint, rated for 1,000,000 cycles. -part skrp-button { - symbol "Switch:SW_Push" - reference SW - value "SKRPABE010" - description "Alps SKRP tact switch, 1.6N, 4.2x3.2x2.5mm, SMD" - manufacturer "Alps Alpine" - order mpn=SKRPABE010 lcsc=C115360 - - pin 1 passive - pin 2 passive - - port a pin=1 - port b pin=2 - - package skrp footprint="SnipsControllers_Custom:SW_Alps_SKRP" { - pad 1 1 - pad 2 2 - } -} - -// Espressif ESP32-S3-MINI-1U-N8: 15.4 x 15.4 x 2.4 mm, 8 MB flash, no PSRAM, external antenna connector. The -// @stackup/micro/esp32s3 library part is the WROOM-1 only. Pin data is from the MINI-1 and MINI-1U datasheet v1.7, -// Table 3-1, with straps from Table 4-1, and the footprint is Espressif's, which matches Figure 11-2. On the N8, -// IO26 and IO33-37 are free GPIOs; the N4R2 takes IO26 for PSRAM, so do not substitute it. -part esp32-s3-mini-1u { - symbol "Espressif:ESP32-S3-MINI-1" - reference U - value "ESP32-S3-MINI-1U-N8" - datasheet "https://documentation.espressif.com/esp32-s3-mini-1_mini-1u_datasheet_en.pdf" - description "ESP32-S3 Wi-Fi + Bluetooth LE module, 8 MB flash, no PSRAM, external antenna connector, 15.4x15.4x2.4mm" - manufacturer "Espressif Systems" - order mpn=ESP32-S3-MINI-1U-N8 lcsc=C2980299 - - pin "3V3" power_in - pin GND power_in - - // The external supply must deliver at least 0.5 A (Table 6-2), which covers radio transmit bursts. - port v3v3 type=power { - require net.voltage min="3.0V" max="3.6V" - add net.draw "500mA" - line rail pin="3V3" - line gnd pin=GND - } - - pin EN input required { - role reset active=low pull=none - require net.rest not=low - } - pin IO0 bidirectional once { - role strap sampled=reset pull=internal-up \ - note="boot mode: high is SPI boot, low is download; a GPIO afterwards" - require net.rest high - } - pin IO3 bidirectional once { - role strap sampled=reset pull=none \ - note="JTAG source: low selects external pins, high selects USB Serial/JTAG" - } - pin IO45 bidirectional once { - role strap sampled=reset pull=internal-down \ - note="VDD_SPI: must stay low, since high selects 1.8 V and this flash is 3.3 V" - require net.rest not=high - } - pin IO46 bidirectional once { - role strap sampled=reset pull=internal-down \ - note="ROM message control: high with IO0 low is an invalid boot combination" - require net.rest not=high - } - pin IO1 bidirectional once - pin IO2 bidirectional once - pin IO4 bidirectional once - pin IO5 bidirectional once - pin IO6 bidirectional once - pin IO7 bidirectional once - pin IO8 bidirectional once - pin IO9 bidirectional once - pin IO10 bidirectional once - pin IO11 bidirectional once - pin IO12 bidirectional once - pin IO13 bidirectional once - pin IO14 bidirectional once - pin IO15 bidirectional once - pin IO16 bidirectional once - pin IO17 bidirectional once - pin IO18 bidirectional once - pin "USB_D-" bidirectional once - pin "USB_D+" bidirectional once - pin IO21 bidirectional once - pin IO26 bidirectional once - pin IO47 bidirectional once - pin IO33 bidirectional once - pin IO34 bidirectional once - pin IO48 bidirectional once - pin IO35 bidirectional once - pin IO36 bidirectional once - pin IO37 bidirectional once - pin IO38 bidirectional once - pin IO39 bidirectional once - pin IO40 bidirectional once - pin IO41 bidirectional once - pin IO42 bidirectional once - pin TXD0 bidirectional once - pin RXD0 bidirectional once - - package module footprint="Espressif:ESP32-S3-MINI-1U" { - pad GND 1 - pad GND 2 - pad "3V3" 3 - pad IO0 4 - pad IO1 5 - pad IO2 6 - pad IO3 7 - pad IO4 8 - pad IO5 9 - pad IO6 10 - pad IO7 11 - pad IO8 12 - pad IO9 13 - pad IO10 14 - pad IO11 15 - pad IO12 16 - pad IO13 17 - pad IO14 18 - pad IO15 19 - pad IO16 20 - pad IO17 21 - pad IO18 22 - pad "USB_D-" 23 - pad "USB_D+" 24 - pad IO21 25 - pad IO26 26 - pad IO47 27 - pad IO33 28 - pad IO34 29 - pad IO48 30 - pad IO35 31 - pad IO36 32 - pad IO37 33 - pad IO38 34 - pad IO39 35 - pad IO40 36 - pad IO41 37 - pad IO42 38 - pad TXD0 39 - pad RXD0 40 - pad IO45 41 - pad GND 42 - pad GND 43 - pad IO46 44 - pad EN 45 - pad GND 46 - pad GND 47 - pad GND 48 - pad GND 49 - pad GND 50 - pad GND 51 - pad GND 52 - pad GND 53 - pad GND 54 - pad GND 55 - pad GND 56 - pad GND 57 - pad GND 58 - pad GND 59 - pad GND 60 - pad GND 61 - pad GND 62 - pad GND 63 - pad GND 64 - pad GND 65 - } -} +// Snips-specific parts: the XBee 3 carrier pads. Reusable parts come from the @stackup library. // Pads for the optional XBee 3 carrier, a separate 2-layer daughter board that sits flat on the underside and is // hand-soldered by its castellations. Pads run 1.7 mm past the board's 22 x 17 mm outline for the iron. The carrier diff --git a/PCB/v2.x/xbee-carrier/stackup/board.kdl b/PCB/v2.x/xbee-carrier/stackup/board.kdl index e707169..cc6cf87 100644 --- a/PCB/v2.x/xbee-carrier/stackup/board.kdl +++ b/PCB/v2.x/xbee-carrier/stackup/board.kdl @@ -1,6 +1,7 @@ // Snips XBee 3 carrier: a 2-layer castellated daughter board for the V2 controller's underside. // The XBee faces away from V2, so this board's top view matches XBee_Carrier_Castellated on V2 exactly. use "@stackup/passives" +use "@stackup/radio/xbee3" use "./parts.kdl"; use "./purchasing.kdl" design xbee_carrier { diff --git a/PCB/v2.x/xbee-carrier/stackup/parts.kdl b/PCB/v2.x/xbee-carrier/stackup/parts.kdl index ea116fd..09ea774 100644 --- a/PCB/v2.x/xbee-carrier/stackup/parts.kdl +++ b/PCB/v2.x/xbee-carrier/stackup/parts.kdl @@ -1,94 +1,3 @@ -// XBee 3 carrier parts. -part xbee3-micro { - symbol "Xbee3:XB3-24Z8UM" - reference U - value "XBee3 PRO Micro" - datasheet "https://docs.digi.com/resources/documentation/digidocs/pdfs/90001543.pdf" - description "XBee 3 PRO Zigbee 3.0 module, +19 dBm, 2.4 GHz, U.FL antenna, Micro 13.54x19.30mm castellated" - manufacturer "Digi International" - order mpn="XB3-24Z8UM" lcsc=C5833776 - - pin GND power_in - pin VCC power_in - pin DOUT output symbol="DOUT/DIO13" - pin DIN input symbol="DIN/~{CONFIG}/DIO14" - pin DIO12 bidirectional - pin RESET input symbol="~{RESET}" - pin RSSI_PWM output symbol="RSSI_PWM/DIO10" - pin PWM1 output symbol="PWM1/DIO11" - pin DTR input symbol="~{DTR}/SLEEP_RQ/DIO8" - pin SPI_ATTN output symbol="SPI_~{ATTN}/~{BOOTMODE}/DIO19" { - role strap sampled=reset pull=none \ - note="BOOTMODE: must not be low at reset (90001543); the module's data-ready line afterwards" - require net.rest high - } - pin SPI_CLK input symbol="SPI_CLK/DIO18" - pin SPI_SSEL input symbol="SPI_~{SSEL}/DIO17" - pin SPI_MOSI input symbol="SPI_MOSI/DIO16" - pin SPI_MISO output symbol="SPI_MISO/DIO15" - pin DIO4 bidirectional - pin CTS output symbol="~{CTS}/DIO7" - pin ON_SLEEP output symbol="ON/~{SLEEP}/DIO9" - pin ASSOCIATE output symbol="ASSOCIATE/DIO5" - pin RTS input symbol="~{RTS}/DIO6" - pin AD3 bidirectional symbol="AD3/DIO3" - pin AD2 bidirectional symbol="AD2/DIO2" - pin AD1 bidirectional symbol="AD1/DIO1" - pin AD0 bidirectional symbol="AD0/DIO0" - pin RF passive - - package micro footprint="Xbee3:XB3-24Z8UM" { - pad GND 1 - pad VCC 2 - pad DOUT 3 - pad DIN 4 - pad DIO12 5 - pad RESET 6 - pad RSSI_PWM 7 - pad PWM1 8 - pad DTR 9 - pad GND 10 - pad SPI_ATTN 11 - pad GND 12 - pad SPI_CLK 13 - pad SPI_SSEL 14 - pad SPI_MOSI 15 - pad SPI_MISO 16 - pad GND 21 - pad DIO4 23 - pad CTS 24 - pad ON_SLEEP 25 - pad ASSOCIATE 26 - pad RTS 27 - pad AD3 28 - pad AD2 29 - pad AD1 30 - pad AD0 31 - pad GND 32 - pad RF 33 - pad GND 34 - } - - // 2.1-3.6 V supply; 140 mA transmitting at +19 dBm (90001543, electrical specifications). - port vcc type=power { - require net.voltage min="2.1V" max="3.6V" - add net.draw "140mA" - line rail pin=VCC - line gnd pin=GND - } - - port spi type=spi { - line sck pin=SPI_CLK - line mosi pin=SPI_MOSI - line miso pin=SPI_MISO - } - port cs type=output pin=SPI_SSEL - port sleep-rq type=output pin=DTR - port attn pin=SPI_ATTN - port on-sleep pin=ON_SLEEP - port reset pin=RESET -} - // The carrier's castellated edge, the mate of xbee-carrier on the V2 board. Same pad numbers and coordinates. part carrier-edge { symbol "Connector_Generic:Conn_02x06_Odd_Even" diff --git a/PCB/v2.x/xbee-carrier/xbee_carrier.kicad_pcb b/PCB/v2.x/xbee-carrier/xbee_carrier.kicad_pcb index 96cf288..ed6740c 100644 --- a/PCB/v2.x/xbee-carrier/xbee_carrier.kicad_pcb +++ b/PCB/v2.x/xbee-carrier/xbee_carrier.kicad_pcb @@ -74,7 +74,6 @@ ) (copper_finish "None") (dielectric_constraints no) - (castellated_pads yes) ) (pad_to_mask_clearance 0) (allow_soldermask_bridges_in_footprints no) @@ -92,7 +91,6 @@ ) (capping no) (filling no) - (zone_defaults) (pcbplotparams (layerselection 0x00000000_00000000_55555555_5755f5ff) (plot_on_all_layers_selection 0x00000000_00000000_00000000_00000000) @@ -241,7 +239,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/xbee-carrier/stackup/board.kdl:13" + (property "Stackup Source" "PCB/v2.x/xbee-carrier/stackup/board.kdl:14" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -437,7 +435,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/xbee-carrier/stackup/board.kdl:8" + (property "Stackup Source" "PCB/v2.x/xbee-carrier/stackup/board.kdl:9" (at 0 2 270) (layer "F.SilkS") (hide yes) @@ -923,7 +921,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/xbee-carrier/stackup/board.kdl:20" + (property "Stackup Source" "PCB/v2.x/xbee-carrier/stackup/board.kdl:21" (at 0 2 180) (layer "F.SilkS") (hide yes) @@ -1108,7 +1106,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/xbee-carrier/stackup/board.kdl:9" + (property "Stackup Source" "PCB/v2.x/xbee-carrier/stackup/board.kdl:10" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -1406,7 +1404,7 @@ ) ) ) - (property "Stackup Source" "@stackup/passives.kdl:116" + (property "Stackup Source" "@stackup/passives.kdl:121" (at 0 2 180) (layer "F.SilkS") (hide yes) @@ -1626,7 +1624,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/xbee-carrier/stackup/board.kdl:21" + (property "Stackup Source" "PCB/v2.x/xbee-carrier/stackup/board.kdl:22" (at 0 2 270) (layer "F.SilkS") (hide yes) @@ -1846,7 +1844,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/xbee-carrier/stackup/board.kdl:14" + (property "Stackup Source" "PCB/v2.x/xbee-carrier/stackup/board.kdl:15" (at 0 2 180) (layer "F.SilkS") (hide yes) @@ -2066,7 +2064,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/xbee-carrier/stackup/board.kdl:15" + (property "Stackup Source" "PCB/v2.x/xbee-carrier/stackup/board.kdl:16" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -2274,7 +2272,7 @@ ) ) ) - (property "Stackup Source" "PCB/v2.x/xbee-carrier/stackup/board.kdl:19" + (property "Stackup Source" "PCB/v2.x/xbee-carrier/stackup/board.kdl:20" (at 0 2 90) (layer "F.SilkS") (hide yes) diff --git a/PCB/v2.x/xbee-carrier/xbee_carrier.kicad_pro b/PCB/v2.x/xbee-carrier/xbee_carrier.kicad_pro index e9822cb..6f666db 100644 --- a/PCB/v2.x/xbee-carrier/xbee_carrier.kicad_pro +++ b/PCB/v2.x/xbee-carrier/xbee_carrier.kicad_pro @@ -172,6 +172,7 @@ { "td_allow_use_two_tracks": true, "td_curve_segcount": 0, + "td_enabled": false, "td_height_ratio": 1.0, "td_length_ratio": 0.5, "td_maxheight": 2.0, @@ -183,6 +184,7 @@ { "td_allow_use_two_tracks": true, "td_curve_segcount": 0, + "td_enabled": false, "td_height_ratio": 1.0, "td_length_ratio": 0.5, "td_maxheight": 2.0, @@ -194,6 +196,7 @@ { "td_allow_use_two_tracks": true, "td_curve_segcount": 0, + "td_enabled": false, "td_height_ratio": 1.0, "td_length_ratio": 0.5, "td_maxheight": 2.0, @@ -292,8 +295,8 @@ "meta": { "version": 5 }, - "net_colors": null, - "netclass_assignments": null, + "net_colors": {}, + "netclass_assignments": {}, "netclass_patterns": [] }, "pcbnew": { diff --git a/ci/check_pcb_sync.py b/ci/check_pcb_sync.py index d480d56..6a1db7b 100644 --- a/ci/check_pcb_sync.py +++ b/ci/check_pcb_sync.py @@ -52,7 +52,9 @@ def main() -> int: return 1 board = pcbnew.LoadBoard(str(board_path)) - outcome = apply_module.apply(board, components, netlist.classes(result.stdout)) + outcome = apply_module.apply( + board, components, netlist.classes(result.stdout), netlist.shape_dirs(result.stdout) + ) print(outcome.summary()) if outcome.classed.problems: print("\n".join(outcome.classed.problems), file=sys.stderr) @@ -68,6 +70,8 @@ def main() -> int: outcome.recoppered, outcome.nets_removed, outcome.orphaned, + outcome.shipped, + outcome.found_bodies, outcome.classed.changed(), outcome.classed.problems, outcome.problems, diff --git a/ci/stackup/Cargo.lock b/ci/stackup/Cargo.lock index 9fffa9f..f5bdffd 100644 --- a/ci/stackup/Cargo.lock +++ b/ci/stackup/Cargo.lock @@ -243,9 +243,9 @@ checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" [[package]] name = "stackup-eda" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75a6b8652668d21b6683d266d22d10a0f5c975aab0d70e17aa447525e36d7172" +checksum = "b8ba42c75bb8c8f64b3b09200a9bf0c37471caa23adda7f2a6840842384e0d1d" dependencies = [ "miette", "stackup-eda-parser", @@ -253,9 +253,9 @@ dependencies = [ [[package]] name = "stackup-eda-parser" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c75b7ab62576796cf3c81ea908e232aaba1b72cd43430594f0bd449922ee0360" +checksum = "c89806694b8254286093635f029a3c20fd475e5d10d8c3cde5c4fac410d92562" dependencies = [ "kdl", "miette", diff --git a/ci/stackup/Cargo.toml b/ci/stackup/Cargo.toml index 45d8e28..76b5f86 100644 --- a/ci/stackup/Cargo.toml +++ b/ci/stackup/Cargo.toml @@ -5,4 +5,4 @@ edition = "2024" publish = false [dependencies] -stackup = { package = "stackup-eda", version = "=0.2.0" } +stackup = { package = "stackup-eda", version = "=0.3.0" } diff --git a/manifest.kdl b/manifest.kdl index f7b93df..adcd3fa 100644 --- a/manifest.kdl +++ b/manifest.kdl @@ -1,2 +1,2 @@ -stackup "0.2" -library stackup git="https://github.com/stackup-eda/library" rev="9cf54c63f7f95b711e30edf5992a9bd28932d78d" +stackup "0.3" +library stackup git="https://github.com/stackup-eda/library" rev="232519a5d51f96ae6cd0635fa491437434cca27f" diff --git a/scripts/spice/latch_sim.py b/scripts/spice/latch_sim.py index 0fe6a85..cdd568d 100755 --- a/scripts/spice/latch_sim.py +++ b/scripts/spice/latch_sim.py @@ -31,7 +31,7 @@ "libngspice.so", ] -# Component values, mirroring PCB/v1.x/stackup/parts.kdl (R_BTN_PU1 returns to 3V3, not VSYS). +# Component values, mirroring PCB/v1.x/stackup/board.kdl (R_BTN_PU1 returns to 3V3, not VSYS). R_BTN_PU1 = "100k" C_DBNC1 = "100n" R_INV_BASE1 = "100k"