No description
  • Python 96.8%
  • Dockerfile 3.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Robert Marshall 21a76d698a
All checks were successful
Fabrication files / release (push) Successful in 1m6s
Merge pull request 'Add the relay node' (#19) from feat/relay-node into main
Reviewed-on: #19
2026-11-16 21:37:57 +00:00
.forgejo/workflows Engrave the CamperCan wordmark on the node cases 2026-11-16 15:18:13 +00:00
CamperCanNode Crop the renders to their content 2026-11-16 15:21:07 +00:00
CanTerminator Crop the renders to their content 2026-11-16 15:21:07 +00:00
LightingNode Fuse each lighting output with a mini blade fuse 2026-11-16 19:22:10 +00:00
RelayNode Add the relay node 2026-11-16 21:35:52 +00:00
scripts Add the relay node 2026-11-16 21:35:52 +00:00
.gitignore Render the cases through KiCad 2026-11-16 15:03:47 +00:00
CLAUDE.md Add the relay node 2026-11-16 21:35:52 +00:00
README.md Add the relay node 2026-11-16 21:35:52 +00:00

CamperCan hardware

Circuit boards for CamperCan, an ESP32 and CAN bus control system for campervans. The boards are designed in KiCad 10.

Boards

  • CAN node: sits on the bus and drives whatever is wired to it.
  • Lighting node: dims six 12 V or 24 V lights, with a button input for each.
  • Relay node: switches six mains or 12 V and 24 V loads with relays, five at 10 A and one at 25 A, with a button input for each.
  • CAN terminator: a 120 Ω resistor for each end of the bus.

Ordering boards

Each release carries a zip per board with gerbers, BOM and placement files for both JLCPCB and PCBWay. A release is cut when a merge to main changes a board or a case.

To build the same files locally, with kicad-cli on your PATH:

python3 scripts/generate_fab.py

They land in fab/jlcpcb/ and fab/pcbway/ inside each board's folder.

Printing cases

Each board has a printable case, built by a FreeCAD Python script in the board's case/ folder. Each release carries the base and lid as 3MF files. The board's own page lists the screws it needs. The lid is already turned over to print flat side down.

To build them locally, with FreeCAD's freecadcmd on your PATH:

freecadcmd scripts/generate_prints.py

That also writes a .FCStd file next to each script, to open in FreeCAD. To change a case, edit its script and run this again.