Repository navigation
Spa Bridge rev A: RJ45 pass-through board, layout and fab prep - #22
Merged
Merged
Conversation
The board previously had one RJ45, which meant taking the panel's place on the harness rather than sitting between it and the pack. Add J2 and carry all eight pins straight across, so the topside panel keeps working on its own while this board listens and injects presses in parallel — the property docs/wifi.md relies on when it argues a stuck opto is indistinguishable from a stuck membrane switch. Pins 5 and 6 (display data and clock) now also feed a divider each: 6.8k from the 5V line into 10k to ground puts 2.98V at the GPIO, above the ESP32's 2.475V V_IH with margin and well under the 3.6V the pin tolerates. Both dividers use the same values; asymmetric ones would silently push one signal below V_IH, and the clock drives the decode ISR on every edge, so that failure would look like frames never arriving rather than a wiring fault. R9 and R10 add 220R in series between each divider midpoint and the GPIO. GPIO34/35 are input-only and draw no DC, so this costs nothing in level and bounds fault current into the pin. Unchanged and still open: U1 takes 5V from RJ45 pin 1, so ESP32 ground is spa ground. The isolation fork in docs/wifi.md is not decided here.
…r fed from the hot tub
Measured on a new VL240: Warm 7, Cool 3, Light 2, Jets 8 (was 2/8/3/7). Relabel the optocoupler outputs in the schematic, update the PCB nets and the README wiring table. Firmware is unchanged; buttons keep their GPIOs. Also add a logic-analyzer troubleshooting doc for the display tap, which currently decodes no frames, and update the firmware README status.
J3 is a DNP 1x10 header mirroring RJ45 pins 1-8 plus DISP_CLK and
DISP_DATA, so a logic analyzer can plug in without an RJ45 breakout.
TP1-TP7 add GND loops and pads on +5V, the raw clock/data lines and the
divided GPIO34/35 side.
U1 moves to a project-local ESP32-DevKitC_Socket footprint: two 1x19
female socket strips at 25.4mm row spacing with 1.0mm holes (the
Espressif footprint's 0.8mm holes are too small for socket pins), plus
an antenna keep-out marking. fp-lib-table registers the library via
${KIPRJMOD}.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
~56x56mm board. RJ45 jacks stacked on the left edge next to the DevKitC's left pin row, where every used GPIO is. The divider resistors and button optocouplers sit between the socket strips under the module (it rides ~11mm up on 8.5mm sockets). J3 and the GND loops are on the right edge and the TP pads under the jacks, so both stay reachable with the module fitted. Four board-only M3 holes in the corners and a rule area keep copper and parts out from under the antenna. The DevKitC socket footprint's courtyard now covers only the socket strips, and its pin labels are replaced with a USB-end marker. TP3-TP7 use a project copy of TestPoint_Pad_D1.5mm with a larger silk circle to meet the 0.15mm silk-to-pad rule. Not routed yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
J1/J2 move from the vertical OST PJ012 to the right-angle, unshielded Amphenol 54602-908LF so the cables enter through the left board edge. Same pin and peg pattern, so the jacks stay where they were, shifted 0.6mm so the front face sits just inside the edge. KiCad ships no 3D model for this part. The footprint is a project copy of RJ45_Amphenol_54602-x08_Horizontal pointing at Amphenol's STEP model, with its coordinates rewritten into KiCad's model axes (the vendor file has height on Y and width on Z) so it needs no offset or rotation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Dividers, LED resistors and optocouplers move from under the DevKitC
into a column between the RJ45 jacks and the left socket strip, LED
side toward the ESP32. The left side shifts out to make room; the
board is now 69.4 x 55.6 mm.
- J3 is fitted (DNP cleared) and its pins are labelled on silkscreen
with the README signal names; the right edge moves out to fit them.
- Test points get function labels (5V, CLK/DAT, RAW/ESP, GND); TP
references move to F.Fab.
- Title blocks: "Spa Bridge", rev A, company Brick. Silkscreen reads
"SPA BRIDGE // REV ${REVISION}" and a large "BRICK", both in OCR A
Extended, embedded in the board file. The SPA BRIDGE line is 1.5mm
so its strokes stay above JLCPCB's 0.15mm silkscreen minimum.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signals and +5V routed with Freerouting 2.6.0 (headless), then cleaned up in passes: - Net classes: Power (+5V, GND) 0.5mm track, 0.8/0.4mm vias; default signal width 0.25mm. - GND is left to pours on both layers instead of being routed. Only R6/R9's SMD ground pads get short traces to J1 pin 4, since traces box them in on the top layer. - Bottom layer weighted 2x in the router so it stays a near-solid ground plane (21% of track on B.Cu, down from 36%). - Best of nine router runs by bends/length: 909mm of track, 5 signal vias, compact J3 bus. - 17 GND stitching vias: a 12mm grid plus one in each top-pour piece that needs it. Solid zone connections on GND pads too boxed in for thermal spokes (R6, R9, J1/J2 pin 4, opto pin 2). - R6 rotated vertical so its ground pad faces open copper. DRC clean with schematic parity, 0 unconnected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The two GND vias that came in from the router import at 0.6/0.4mm (0.1mm annular ring) are now 0.6/0.3 like the rest. - TP3-TP7 are bare pads, so they are excluded from the BOM and position files in both the schematic and the board. - hardware/*/fab/ is gitignored: Gerbers, drill, BOM and CPL are regenerated from the project with kicad-cli. ERC and DRC clean at all severities with schematic parity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- D1 (SS34, SMA) between the tub's +5V and DevKitC pin 19, now on its own +5V_ESP net (Power netclass). Plugging the DevKitC into USB no longer backfeeds the tub's 5V rail, which Espressif's DevKitC guide says not to do. - C1 (47uF 10V 1210 X5R/X7R) and C2 (100nF 0603) on +5V_ESP for WiFi current bursts. - C3/C4 (100pF 0603, DNP) from DISP_DATA/DISP_CLK to GND, under the ESP-side test pads: an optional RC filter (tau ~0.43us with the 220R + 6.8k||10k source) if the clock or data edges prove noisy. Board layout keeps the DevKitC-flush outline and puts every part on the front, none under the module: - D1 moves beside R3; C1/C2 sit below it on one 0.5mm track from the cathode to pin 19. - TP3's 5V feed drops to a back-layer trace with two vias, freeing the space under the test-pad row for C3/C4. - The board title moves below C3/C4 at 1mm in KiCad's stroke font; OCR A at 1mm fails the silk stroke-width rule. - One GND stitching via moved out of C1's spot. kicad_pro also picks up sch_revision "A" (written by KiCad) to match the title block. ERC and DRC clean at all severities with schematic parity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
U1's single footprint held both 1x19 socket strips, so a JLC assembly order could only place one part for it. Each strip is now its own part: - J4: DevKitC pins 1-19 (left row). New project footprint ESP32-DevKitC_Socket_Left, which also keeps the module outline, antenna keep-out marking and USB-end marker. - J5: DevKitC pins 20-38 (right row). Stock PinSocket_1x19_P2.54mm_Vertical rotated 180, so J5 pin n = U1 pin 19+n and pin 1 sits at the USB end. U1 stays in the schematic as the DevKitC (pin names and wiring) but is excluded from the board; J4/J5 join its nets through the same labels and GND symbols. Pad positions and nets are unchanged, so no copper moved. The old ESP32-DevKitC_Socket footprint is removed. ERC and DRC clean at all severities with schematic parity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Part numbers move into the schematic as hidden LCSC and MPN fields on every BOM part (mirrored onto the footprints for schematic parity), so the BOM can't drift from the design. TP1/TP2 carry an MPN (Keystone 5001) but no LCSC number; C3/C4 are DNP and carry neither. make-fab.py builds the whole fab package into the gitignored fab/: Gerbers, drill files and zip, the JLC BOM from the LCSC/MPN fields, and the JLC placement file from KiCad's position export. DNP parts and parts excluded from the BOM or the board (U1, the plug-in DevKitC) are left out, and any part without an LCSC number is reported. kicad-cli comes from $KICAD_CLI, PATH, or the Windows install when run from WSL. Checked against the previous hand-made files: identical placement file and zip contents; same BOM parts and quantities, with part values as the Comment column. ERC and DRC clean at all severities with schematic parity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- hardware: after ERC and DRC pass, run each board's make-fab.py and upload the Gerber zip, JLC BOM and placement file as the `fab` artifact. Runs on every PR, so a broken make-fab.py fails right away and every run has a fab package to download. - release: needs `hardware`, and adds the `fab` package to the GitHub release next to the firmware binaries. A board failing ERC or DRC can no longer be released. - make-fab.py: read the title and rev anywhere in the title block, not only when rev directly follows title. - README: describe the fab artifact and the release job, and drop the stale "no custom PCB until v2" line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The `fab` artifact keeps each board's <project>/fab/ folders (its paths start at hardware/*), so downloading it straight into release/ would nest the files where the release's release/* pattern can't see them. Download it elsewhere and copy the files in flat, failing if no Gerber zip arrived. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DRC now runs with --schematic-parity, so a schematic change that never reached the board fails the hardware job. KiCad rates every parity check a warning (missing or extra footprints, net conflicts, field mismatches), and the report script only failed on errors, so it now fails on any schematic_parity entry and prints each one. Tested locally: the current board passes; the board from before the LCSC/MPN fields were copied to its footprints fails with 24 parity warnings that the old check would have let through. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Takes the esp32-spa hardware from a single-jack schematic to a laid-out, routed and fab-ready 2-layer board: Spa Bridge rev A (69.5 × 55.7 mm). The board is a parallel tap on the topside harness. The panel keeps working on its own while the ESP32 reads the display and presses buttons through optocouplers.
Schematic
+5V_ESPnet. Plugging the DevKitC into USB while it's on the tub no longer backfeeds the tub's 5V rail.+5V_ESP.Board
esp32-spa.kicad_dru.Fab
hardwareCI job).hardware/*/fab/is gitignored. CI builds the fab package on every run (thefabartifact) and attaches it to the GitHub release when a version tag is pushed;releasenow waits forhardware, so a board failing ERC/DRC can't be released.make-fab.pybuilds the Gerber zip, JLC BOM and placement file withkicad-cli. Part numbers live in the schematic asLCSC/MPNfields, and the BOM is generated from them. Every part has one except the TP1/TP2 test loops, which have no suitable JLC listing, so they're soldered by hand.Docs and cleanup
docs/wifi.mdremoved, WSL setup expanded, anddocs/logic-analyzer-debug.mdadded.Drivers/libdriverssubmodule removed;.venvand fab outputs ignored.Known open issue
The display decode still drops every frame on the real tub (see
docs/logic-analyzer-debug.md). The logic-analyzer capture that identifies what's on RJ45 pins 5/6 hasn't been done yet. The board leaves room for fixes without a respin: the clock/data pin assignment can be swapped in firmware, the divider resistors are 0603s, and C3/C4 can be fitted for filtering.🤖 Generated with Claude Code