From a46b5914ff034d36ab766d7df1fc7a157f8c2697 Mon Sep 17 00:00:00 2001 From: Jessica Janiuk Date: Thu, 5 Nov 2026 23:06:26 -0800 Subject: [PATCH] Rename the project to DroidCANBridge The board translates between CAN and UART, so "bridge" describes it better than "adapter". Renamed: - KiCad project files (DroidCANBridge.kicad_pcb/.kicad_pro/.stackup_sch), the project footprint library (DroidCANBridge.pretty) and the board render in PCB/assets. - Footprint library references in parts.kdl and fp-lib-table, the Cargo package (droidcanbridge-stackup-check) and the CI paths. - Silkscreen: the credit line now reads "CAN to UART Bridge V1.0 by @thePunderWoman" with github.com/thePunderWoman/DroidCANBridge, and the back legend's title is DroidCANBridge. - README, CLAUDE.md, PCB README and script docs. "Adapter" now means only FTDI/USB serial adapters. The Stackup design keeps its identifier, droidcanadapter: Stackup derives every footprint's UUID from the design name, so renaming it would make the KiCad sync delete and re-place every part. A comment in board.kdl says so. The board was re-synced for the shifted source-line fields only; no footprint moved and no copper changed. DRC: 0 violations, 0 unconnected; the sync check is clean. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 6 +-- CLAUDE.md | 10 ++-- ...ter.kicad_pcb => DroidCANBridge.kicad_pcb} | 46 +++++++++--------- ...ter.kicad_pro => DroidCANBridge.kicad_pro} | 6 +-- ...stackup_sch => DroidCANBridge.stackup_sch} | 0 PCB/README.md | 18 +++---- ...DroidCANAdapter.png => DroidCANBridge.png} | Bin PCB/fp-lib-table | 2 +- PCB/libraries/3dmodels/README.md | 6 +-- .../WAGO_2601-1102_Horizontal.kicad_mod | 0 .../XKB_TS-1187A-B-A-B.kicad_mod | 0 PCB/stackup/board.kdl | 5 +- PCB/stackup/parts.kdl | 4 +- README.md | 8 +-- ci/stackup/Cargo.lock | 2 +- ci/stackup/Cargo.toml | 2 +- scripts/pcb/place.py | 4 +- 17 files changed, 61 insertions(+), 58 deletions(-) rename PCB/{DroidCANAdapter.kicad_pcb => DroidCANBridge.kicad_pcb} (99%) rename PCB/{DroidCANAdapter.kicad_pro => DroidCANBridge.kicad_pro} (98%) rename PCB/{DroidCANAdapter.stackup_sch => DroidCANBridge.stackup_sch} (100%) rename PCB/assets/{DroidCANAdapter.png => DroidCANBridge.png} (100%) rename PCB/libraries/{DroidCANAdapter.pretty => DroidCANBridge.pretty}/WAGO_2601-1102_Horizontal.kicad_mod (100%) rename PCB/libraries/{DroidCANAdapter.pretty => DroidCANBridge.pretty}/XKB_TS-1187A-B-A-B.kicad_mod (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13220ef..6e65579 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: # schematics. This checks it with the Cargo-locked Stackup CLI (ci/stackup, # pinned with the parts library in manifest.kdl), then fails if syncing the # committed PCB from the design would change it, so the KDL and - # PCB/DroidCANAdapter.kicad_pcb can't drift apart. The sync check applies + # PCB/DroidCANBridge.kicad_pcb can't drift apart. The sync check applies # the Stackup KiCad plugin to the board in memory with KiCad 10's Python and # never saves. stackup: @@ -67,8 +67,8 @@ jobs: - name: Check PCB sync run: | - /usr/bin/python3 ci/check_pcb_sync.py PCB/DroidCANAdapter.kicad_pcb \ - --stackup ci/stackup/target/debug/droidcanadapter-stackup-check \ + /usr/bin/python3 ci/check_pcb_sync.py PCB/DroidCANBridge.kicad_pcb \ + --stackup ci/stackup/target/debug/droidcanbridge-stackup-check \ --plugin-dir stackup-tool/kicad-plugin # ── Single required check ───────────────────────────────────────────────── diff --git a/CLAUDE.md b/CLAUDE.md index fb955aa..d50fad5 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,9 +1,9 @@ -# Droid CANBus Adapter — Claude Notes +# DroidCANBridge — Claude Notes ## Design principles -This device makes CANBus much easier for droid builders: a very small, cheap adapter board that gives a -device without CAN support its own CANBus endpoint, bridging CAN to a plain UART and back. +This device makes CANBus much easier for droid builders: a very small, cheap CAN-to-UART bridge that gives a +device without CAN support its own CANBus endpoint, translating CAN to a plain UART and back. Requirements and the decisions behind them are recorded in [PCB/README.md](PCB/README.md). Read it before changing the hardware, and add to it rather than re-deciding something already settled there. @@ -12,7 +12,7 @@ before changing the hardware, and add to it rather than re-deciding something al - `PCB/` — hardware. `PCB/stackup/` holds the Stackup design, `PCB/datasheets/` the manufacturer datasheets (fetched with the `pcb-design` skill's `datasheet.py`), and the KiCad project - (`DroidCANAdapter.*`) lives beside them. + (`DroidCANBridge.*`) lives beside them. - `ci/` — the Cargo-locked Stackup CLI (`ci/stackup/`) and the PCB sync check (`check_pcb_sync.py`). - `src/`, `include/`, `test/` — firmware (PlatformIO, STM32C092). Not started yet. @@ -32,7 +32,7 @@ KiCad schematics (there are none). Hardware work follows the `pcb-design` skill. - Check the design with `stackup check PCB/stackup/board.kdl --locked` (CLI 0.2.0; the Cargo-locked copy in `ci/stackup/` is the reference version). The parts library is pinned by commit in `manifest.kdl`. -- After any change to the KDL, sync `PCB/DroidCANAdapter.kicad_pcb` from it with the Stackup KiCad +- After any change to the KDL, sync `PCB/DroidCANBridge.kicad_pcb` from it with the Stackup KiCad plugin (never edit footprint nets by hand) and commit the PCB with the KDL. Footprints record their `board.kdl` line, so even reordering lines needs a resync. - Mounting holes and logos are KiCad `board_only` footprints; the sync leaves them alone. diff --git a/PCB/DroidCANAdapter.kicad_pcb b/PCB/DroidCANBridge.kicad_pcb similarity index 99% rename from PCB/DroidCANAdapter.kicad_pcb rename to PCB/DroidCANBridge.kicad_pcb index b80fbb3..33856e6 100644 --- a/PCB/DroidCANAdapter.kicad_pcb +++ b/PCB/DroidCANBridge.kicad_pcb @@ -676,7 +676,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:180" + (property "Stackup Source" "PCB/stackup/board.kdl:183" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -1443,7 +1443,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:154" + (property "Stackup Source" "PCB/stackup/board.kdl:157" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -1884,7 +1884,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:107" + (property "Stackup Source" "PCB/stackup/board.kdl:110" (at 0 2 180) (layer "F.SilkS") (hide yes) @@ -2558,7 +2558,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:83" + (property "Stackup Source" "PCB/stackup/board.kdl:86" (at 0 2 90) (layer "F.SilkS") (hide yes) @@ -3114,7 +3114,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:111" + (property "Stackup Source" "PCB/stackup/board.kdl:114" (at 0 2 180) (layer "F.SilkS") (hide yes) @@ -3531,7 +3531,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:129" + (property "Stackup Source" "PCB/stackup/board.kdl:132" (at 0 2 90) (layer "F.SilkS") (hide yes) @@ -3973,7 +3973,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:173" + (property "Stackup Source" "PCB/stackup/board.kdl:176" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -4414,7 +4414,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:171" + (property "Stackup Source" "PCB/stackup/board.kdl:174" (at 0 2 90) (layer "F.SilkS") (hide yes) @@ -4635,7 +4635,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:123" + (property "Stackup Source" "PCB/stackup/board.kdl:126" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -4983,7 +4983,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:131" + (property "Stackup Source" "PCB/stackup/board.kdl:134" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -5273,7 +5273,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:139" + (property "Stackup Source" "PCB/stackup/board.kdl:142" (at 0 2 90) (layer "F.SilkS") (hide yes) @@ -5572,7 +5572,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:163" + (property "Stackup Source" "PCB/stackup/board.kdl:166" (at 0 2 90) (layer "F.SilkS") (hide yes) @@ -5898,7 +5898,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:124" + (property "Stackup Source" "PCB/stackup/board.kdl:127" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -6238,7 +6238,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:90" + (property "Stackup Source" "PCB/stackup/board.kdl:93" (at 0 2 180) (layer "F.SilkS") (hide yes) @@ -6776,7 +6776,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:89" + (property "Stackup Source" "PCB/stackup/board.kdl:92" (at 0 2 180) (layer "F.SilkS") (hide yes) @@ -7077,7 +7077,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:187" + (property "Stackup Source" "PCB/stackup/board.kdl:190" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -7246,7 +7246,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:147" + (property "Stackup Source" "PCB/stackup/board.kdl:150" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -7455,7 +7455,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:136" + (property "Stackup Source" "PCB/stackup/board.kdl:139" (at 2 0 0) (layer "F.SilkS") (hide yes) @@ -7815,7 +7815,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:103" + (property "Stackup Source" "PCB/stackup/board.kdl:106" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -8456,7 +8456,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:188" + (property "Stackup Source" "PCB/stackup/board.kdl:191" (at 0 2 0) (layer "F.SilkS") (hide yes) @@ -8625,7 +8625,7 @@ ) ) ) - (property "Stackup Source" "PCB/stackup/board.kdl:82" + (property "Stackup Source" "PCB/stackup/board.kdl:85" (at 0 2 270) (layer "F.SilkS") (hide yes) @@ -9123,7 +9123,7 @@ ) ) ) - (gr_text "CAN bus to UART Adapter V1.0 by @thePunderWoman\ngithub.com/thePunderWoman/DroidCANAdapter" + (gr_text "CAN to UART Bridge V1.0 by @thePunderWoman\ngithub.com/thePunderWoman/DroidCANBridge" (at 122.6 135.6 0) (layer "F.SilkS") (uuid "0c49e927-0a57-4a2e-89b7-26832f0ffc87") @@ -9365,7 +9365,7 @@ ) ) ) - (gr_text "DroidCANAdapter" + (gr_text "DroidCANBridge" (at 122 110.5 0) (layer "B.SilkS") (uuid "c38b1919-d1d4-4341-933c-f8a30f2abf79") diff --git a/PCB/DroidCANAdapter.kicad_pro b/PCB/DroidCANBridge.kicad_pro similarity index 98% rename from PCB/DroidCANAdapter.kicad_pro rename to PCB/DroidCANBridge.kicad_pro index 66e1350..7869cd3 100644 --- a/PCB/DroidCANAdapter.kicad_pro +++ b/PCB/DroidCANBridge.kicad_pro @@ -279,7 +279,7 @@ "pinned_symbol_libs": [] }, "meta": { - "filename": "DroidCANAdapter.kicad_pro", + "filename": "DroidCANBridge.kicad_pro", "version": 3 }, "net_settings": { @@ -411,8 +411,8 @@ "legacy_lib_list": [], "top_level_sheets": [ { - "filename": "DroidCANAdapter.kicad_sch", - "name": "DroidCANAdapter", + "filename": "DroidCANBridge.kicad_sch", + "name": "DroidCANBridge", "uuid": "00000000-0000-0000-0000-000000000000" } ] diff --git a/PCB/DroidCANAdapter.stackup_sch b/PCB/DroidCANBridge.stackup_sch similarity index 100% rename from PCB/DroidCANAdapter.stackup_sch rename to PCB/DroidCANBridge.stackup_sch diff --git a/PCB/README.md b/PCB/README.md index 43baacd..3ed5c98 100644 --- a/PCB/README.md +++ b/PCB/README.md @@ -1,8 +1,8 @@ -# DroidCANAdapter hardware +# DroidCANBridge hardware The electrical design is Stackup KDL in [`stackup/`](stackup/) (`board.kdl`, plus the local parts in -`parts.kdl`). The KiCad board `DroidCANAdapter.kicad_pcb` is synced from it through -`DroidCANAdapter.stackup_sch`. Manufacturer datasheets are in [`datasheets/`](datasheets/), with +`parts.kdl`). The KiCad board `DroidCANBridge.kicad_pcb` is synced from it through +`DroidCANBridge.stackup_sch`. Manufacturer datasheets are in [`datasheets/`](datasheets/), with their source URLs and hashes in `datasheets/manifest.json`. ```sh @@ -14,7 +14,7 @@ the board closed: ```sh /Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/bin/python3 \ - /kicad-plugin/sync_headless.py PCB/DroidCANAdapter.kicad_pcb + /kicad-plugin/sync_headless.py PCB/DroidCANBridge.kicad_pcb ``` Commit the synced PCB with the KDL. CI fails if syncing would change the committed PCB. @@ -108,7 +108,7 @@ firmware must leave the unused ones in their reset (analog) state. ## DC operating points -Supply states: WAGO only, FTDI only, both, and adapter unpowered with the UART device powered. +Supply states: WAGO only, FTDI only, both, and the bridge unpowered with the UART device powered. | Node | Value | Limit (source) | OK | |---|---|---|---| @@ -123,7 +123,7 @@ Supply states: WAGO only, FTDI only, both, and adapter unpowered with the UART d | Q_RX on (device TX low ≤ 0.8 V) | VGS ≥ 3.25 - 0.8 = 2.45 V | BSS138 VGS(th) max 1.5 V (onsemi, electrical characteristics) | ✓ | | UART_RX_3V3, device low | ≤ 0.8 V + 3.3 mA × RDS(on) (≤ 6 Ω at 4.5 V; more at 2.45 V) ≈ 0.85 V | VIL 0.3 × VDD = 0.98 V (Table 50) | ✓ (assumes device VOL ≤ 0.8 V; typical ≤ 0.4 V) | | UART_RX_3V3, device high | 3.25 V via R_RXPU | VIH 0.7 × VDD = 2.31 V | ✓ | -| UART_RX_3V3, adapter unpowered | ≈ 0 V (FET off, body diode reverse-biased) | FT pin max 4.0 V with VDD = 0 (Table 21) | ✓ | +| UART_RX_3V3, bridge unpowered | ≈ 0 V (FET off, body diode reverse-biased) | FT pin max 4.0 V with VDD = 0 (Table 21) | ✓ | | BOOT0 at rest / pressed | 0 V / 3.3 V (0.33 mA) | VIL 0.98 V / VIH 2.31 V | ✓ | | NRST on DTR fall, 3.3 V cable | 3.3 - 3.3 × 1 µF/1.1 µF = 0.3 V, below VIL for 7-16 ms (τ = 1.1 µF × RPU 25-55 kΩ) | VIL(NRST) 0.3 × VDD = 0.98 V; filter 70 ns (Table 53) | ✓ | | NRST on DTR fall, 5 V cable | clamped by BAT54S to -0.35 to -0.52 V, below VIL for 12-27 ms (SPICE) | MCU negative injection ≤ 5 mA (Table 22): simulated ≤ 0.25 mA; without the BAT54S, 26 mA | ✓ | @@ -167,7 +167,7 @@ Supply states: WAGO only, FTDI only, both, and adapter unpowered with the UART d rate. But a strictly classic controller (e.g. MCP2515) answers FD frames with error frames. The STM32 FDCAN can run in classic mode and ignore FD frames (protocol exception handling), so this board stays safe on a mixed bus and can move to FD in firmware later. Messages addressed to the - adapter must be sent as classic frames while it runs in classic mode. + bridge must be sent as classic frames while it runs in classic mode. - **TCAN334G, 3.3 V transceiver.** Running everything from 3.3 V lets the power path use plain Schottky diodes for OR-ing and reverse protection: a 5 V-only transceiver (MCP2562FD, VDD ≥ 4.5 V) would not tolerate the diode drop. This replaced the P-MOSFET reverse protection discussed earlier: @@ -177,7 +177,7 @@ Supply states: WAGO only, FTDI only, both, and adapter unpowered with the UART d `STM32C0xx/C092ECY_C092F(B-C)P`, so a small custom board JSON is enough. FDCAN is used through the bundled HAL; STM32duino has no CAN library. - **UART level shifting.** TX: open-drain with a pull-up to the J_VIO rail, no extra parts. RX: a - BSS138, because the FT pin's limit drops to 4.0 V with the adapter unpowered and positive injection + BSS138, because the FT pin's limit drops to 4.0 V with the bridge unpowered and positive injection is not allowed (DS14720 Tables 21-22), so a series resistor can't protect it from a separately powered 5 V device. - **JST-XH** for CAN and UART (the community's preferred connector), **2-pin with no ground**: every @@ -260,5 +260,5 @@ Accepted findings: terminated). Exchange classic frames with a known node; confirm no error frames when an FD node transmits FD frames. 7. UART: loopback at 3.3 V and 5 V settings; scope TX rise time at the target baud rate; with the - adapter unpowered and a powered 5 V device on J_UART, confirm PB7 stays ≈ 0 V. + bridge unpowered and a powered 5 V device on J_UART, confirm PB7 stays ≈ 0 V. 8. LDO temperature with the CAN bus heavily loaded. diff --git a/PCB/assets/DroidCANAdapter.png b/PCB/assets/DroidCANBridge.png similarity index 100% rename from PCB/assets/DroidCANAdapter.png rename to PCB/assets/DroidCANBridge.png diff --git a/PCB/fp-lib-table b/PCB/fp-lib-table index 908fe10..6abc92e 100644 --- a/PCB/fp-lib-table +++ b/PCB/fp-lib-table @@ -1,4 +1,4 @@ (fp_lib_table (version 7) - (lib (name "DroidCANAdapter") (type "KiCad") (uri "${KIPRJMOD}/libraries/DroidCANAdapter.pretty") (options "") (descr "Project footprints")) + (lib (name "DroidCANBridge") (type "KiCad") (uri "${KIPRJMOD}/libraries/DroidCANBridge.pretty") (options "") (descr "Project footprints")) ) diff --git a/PCB/libraries/3dmodels/README.md b/PCB/libraries/3dmodels/README.md index 289b242..27a8073 100644 --- a/PCB/libraries/3dmodels/README.md +++ b/PCB/libraries/3dmodels/README.md @@ -1,6 +1,6 @@ # 3D models -Models for parts whose stock KiCad model is missing. Footprints in `../DroidCANAdapter.pretty` +Models for parts whose stock KiCad model is missing. Footprints in `../DroidCANBridge.pretty` reference them as `${KIPRJMOD}/libraries/3dmodels/...`. Some manufacturer models can't be committed: their terms of use forbid redistributing them. Those are @@ -9,8 +9,8 @@ that part; the board, DRC and fab outputs are unaffected. | File | Part | Source | In git | Alignment notes | |---|---|---|---|---| -| `TS-1187A-B-A-B.step` | XKB TS-1187A-B-A-B (SW_BOOT) | SnapEDA (SnapMagic), STEP AP214 exported from SolidWorks | No: SnapEDA's terms allow use in your designs but not redistributing the models | Used by `DroidCANAdapter:XKB_TS-1187A-B-A-B` (KiCad's footprint, renamed so the Stackup sync picks it up). Rotate (90, 0, 0), no offset. The model is Y-up with its base on y = 0; body 0-1.55 mm, terminals at x = ±3.25 mm over pads at ±3.0 mm | -| `WAGO_2601-1102.stp` | WAGO 2601-1102 (J_PWR_IN, J_PWR_OUT) | WAGO via CADENAS PARTcommunity / 3Dfindit, STEP AP214 | No: [CADENAS terms](https://www.cadenas.de/terms-of-use-3d-cad-models) §8 bar passing models to third parties or making them public | Used by `DroidCANAdapter:WAGO_2601-1102_Horizontal` (copied from PowerBoards, pads identical to KiCad's stock footprint). Rotate (270, 0, 90), offset X +4.56 mm. The model is Y-up with its origin at an entry-side pin; this puts its pins on pads 1 and 2 | +| `TS-1187A-B-A-B.step` | XKB TS-1187A-B-A-B (SW_BOOT) | SnapEDA (SnapMagic), STEP AP214 exported from SolidWorks | No: SnapEDA's terms allow use in your designs but not redistributing the models | Used by `DroidCANBridge:XKB_TS-1187A-B-A-B` (KiCad's footprint, renamed so the Stackup sync picks it up). Rotate (90, 0, 0), no offset. The model is Y-up with its base on y = 0; body 0-1.55 mm, terminals at x = ±3.25 mm over pads at ±3.0 mm | +| `WAGO_2601-1102.stp` | WAGO 2601-1102 (J_PWR_IN, J_PWR_OUT) | WAGO via CADENAS PARTcommunity / 3Dfindit, STEP AP214 | No: [CADENAS terms](https://www.cadenas.de/terms-of-use-3d-cad-models) §8 bar passing models to third parties or making them public | Used by `DroidCANBridge:WAGO_2601-1102_Horizontal` (copied from PowerBoards, pads identical to KiCad's stock footprint). Rotate (270, 0, 90), offset X +4.56 mm. The model is Y-up with its origin at an entry-side pin; this puts its pins on pads 1 and 2 | ## Getting the WAGO 2601-1102 model diff --git a/PCB/libraries/DroidCANAdapter.pretty/WAGO_2601-1102_Horizontal.kicad_mod b/PCB/libraries/DroidCANBridge.pretty/WAGO_2601-1102_Horizontal.kicad_mod similarity index 100% rename from PCB/libraries/DroidCANAdapter.pretty/WAGO_2601-1102_Horizontal.kicad_mod rename to PCB/libraries/DroidCANBridge.pretty/WAGO_2601-1102_Horizontal.kicad_mod diff --git a/PCB/libraries/DroidCANAdapter.pretty/XKB_TS-1187A-B-A-B.kicad_mod b/PCB/libraries/DroidCANBridge.pretty/XKB_TS-1187A-B-A-B.kicad_mod similarity index 100% rename from PCB/libraries/DroidCANAdapter.pretty/XKB_TS-1187A-B-A-B.kicad_mod rename to PCB/libraries/DroidCANBridge.pretty/XKB_TS-1187A-B-A-B.kicad_mod diff --git a/PCB/stackup/board.kdl b/PCB/stackup/board.kdl index 484632d..8968762 100644 --- a/PCB/stackup/board.kdl +++ b/PCB/stackup/board.kdl @@ -1,4 +1,4 @@ -// DroidCANAdapter electrical design: a CAN FD <-> UART bridge for droid builders. +// DroidCANBridge electrical design: a CAN FD <-> UART bridge for droid builders. // // STM32C092 (TSSOP-20) with a TCAN334G 3.3 V CAN FD transceiver; two 2-pin JST-XH CAN connectors // wired in parallel for daisy-chaining, with a jumper for the 120 Ω terminator; a 2-pin JST-XH UART @@ -37,6 +37,9 @@ mpn "0805W8F1200T5E" manufacturer="UNI-ROYAL" kind=resistor value="120Ω" { catalog lcsc="C17437" } +// The design keeps its original identifier. Stackup derives every footprint's UUID from the design +// name and the part's path, so renaming it would make the KiCad sync delete and re-place every part +// on the routed board. The project itself is DroidCANBridge. design droidcanadapter { stock { packages imperial="0603" } diff --git a/PCB/stackup/parts.kdl b/PCB/stackup/parts.kdl index 1838e83..8323514 100644 --- a/PCB/stackup/parts.kdl +++ b/PCB/stackup/parts.kdl @@ -172,7 +172,7 @@ part wago-2601-1102 { pin 1 passive pin 2 passive - package horizontal footprint="DroidCANAdapter:WAGO_2601-1102_Horizontal" { + package horizontal footprint="DroidCANBridge:WAGO_2601-1102_Horizontal" { pad 1 1 pad 2 2 } @@ -196,7 +196,7 @@ part ts-1187a { port a pin=1 port b pin=2 - package smd footprint="DroidCANAdapter:XKB_TS-1187A-B-A-B" { + package smd footprint="DroidCANBridge:XKB_TS-1187A-B-A-B" { pad 1 1 pad 2 2 } diff --git a/README.md b/README.md index a4d11e8..33abb67 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# Droid CANBus Adapter +# DroidCANBridge -![DroidCANAdapter PCB render](PCB/assets/DroidCANAdapter.png) +![DroidCANBridge PCB render](PCB/assets/DroidCANBridge.png) -A very small, inexpensive adapter board that bridges CANBus to a standard UART and back, so droid -components without CAN support can join a CAN network. +A very small, inexpensive CAN-to-UART bridge for droid builders: it translates CAN bus frames to a +standard UART and back, so droid components without CAN support can join a CAN network. - **MCU:** STM32C092 (TSSOP-20), with a built-in CAN FD controller - **CAN:** CAN FD-capable transceiver; two 2-pin JST-XH connectors (CANL, CANH) for daisy-chaining and a jumper for the diff --git a/ci/stackup/Cargo.lock b/ci/stackup/Cargo.lock index b36fe71..b2616c4 100644 --- a/ci/stackup/Cargo.lock +++ b/ci/stackup/Cargo.lock @@ -3,7 +3,7 @@ version = 4 [[package]] -name = "droidcanadapter-stackup-check" +name = "droidcanbridge-stackup-check" version = "0.0.0" dependencies = [ "stackup-eda", diff --git a/ci/stackup/Cargo.toml b/ci/stackup/Cargo.toml index 23ba542..c28aa0d 100644 --- a/ci/stackup/Cargo.toml +++ b/ci/stackup/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "droidcanadapter-stackup-check" +name = "droidcanbridge-stackup-check" version = "0.0.0" edition = "2024" publish = false diff --git a/scripts/pcb/place.py b/scripts/pcb/place.py index 590b8a5..087cbb8 100644 --- a/scripts/pcb/place.py +++ b/scripts/pcb/place.py @@ -1,9 +1,9 @@ -"""Proposed starting placement for PCB/DroidCANAdapter.kicad_pcb. +"""Proposed starting placement for PCB/DroidCANBridge.kicad_pcb. Run with KiCad's bundled Python, with the board closed in KiCad: /Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/bin/python3 \ - scripts/pcb/place.py PCB/DroidCANAdapter.kicad_pcb + scripts/pcb/place.py PCB/DroidCANBridge.kicad_pcb It moves footprints and redraws the Edge.Cuts outline; it never touches nets (those come from the Stackup sync). Positions are the centre of each footprint's courtyard, in mm from the board's