
Ssr
Th3Link/homeautomation
Components for a CAN-bus home-automation system: relay/rollershutter/ light/button/sensor nodes on a shared CAN bus, bridged to MQTT (and from there to openHAB or Home Assistant) by a gateway.

Components for a CAN-bus home-automation system: relay/rollershutter/ light/button/sensor nodes on a shared CAN bus, bridged to MQTT (and from there to openHAB or Home Assistant) by a gateway.
Relais is an open-source printed circuit board by Th3Link, from the Th3Link/homeautomation repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 188 × 97 mm with 101 parts on 123 nets, routed with 946 tracks and 51 vias.
It is built around the ESP32-WROOM-32, IRM-02-12 and PCA9534D, with the PESD2CAN, 1N4148WS and RT314A12 among its other parts. Its parts include 24 diodes, 23 resistors, 12 connectors, 12 switches and 11 capacitors. It belongs with the home automation and IoT boards and the ESP32 boards of this library.
Components for a CAN-bus home-automation system: relay/rollershutter/ light/button/sensor nodes on a shared CAN bus, bridged to MQTT (and from there to openHAB or Home Assistant) by a gateway. This repository holds the hardware (KiCad), mechanics (3D-printable enclosures), and firmware for the whole system.
Start here: docs/index.md — the full documentation
index (requirements, architecture decisions, protocol specs), also built
into every crate's cargo doc output and published to GitHub Pages.
The firmware is Rust (#![no_std], embassy async,
esp-hal), organized as one Cargo
workspace under software/:
common-core / common-hardware
— CAN wire-format types and ESP32 hardware-support helpers shared by
both firmware lines.gateway-core / gateway-hardware
— the CAN↔MQTT bridge: web config UI, /control.json RPC, self- and
CAN-bus OTA update, over wired Ethernet (DHCPv4 + SLAAC, no WiFi).cancomponents-core / cancomponents-hardware
— the node firmware living on the bus: relays, rollershutters, buttons,
lights.tools/mqtt-log-reader — a small
Python tool for reading back the gateway's MQTT log/debug topics.sim/ — ./sim up: the unchanged gateway and node
firmware in QEMU, several gateways with their nodes on virtual CAN buses;
press buttons, set what the sensors measure, watch relays and frames, in
a TUI, from Python scripts or in pytest.legacy/ — the original C++/ESP-IDF implementation,
kept for reference. No longer built by CI.The *-core crates are hardware-independent and build/test on any
machine with stable Rust:
cargo test -p gateway-core -p cancomponents-core -p common-coreThe *-hardware crates target Xtensa (ESP32) and need Espressif's Rust
toolchain fork, installed via espup:
cargo install espup
espup install
source "$HOME/export-esp.sh" # needed once per new shellThen, from a *-hardware crate directory (e.g. software/gateway-hardware/):
cargo run --releasecargo run flashes over USB serial and opens a monitor, via espflash
(configured as each crate's custom runner in its own .cargo/config.toml).
Disclaimer: if you put mains voltage on a relais board, make sure you know what you are doing. These components are experimental and you are in charge of your own actions. Be safe — if you're unsure, get an expert or leave it.
Three PCBs, one shared firmware, to switch power on and off:
All three use the same firmware and the same ESP32 pinning, and each has one extension port for up to 4 additional relay or sensor boards.
Additional boards in hardware/ — see each board's own KiCad project for
details; written documentation for these is still a work in progress.
See docs/protocol-can.md for the byte-level CAN
wire format shared by every component, and
software/gateway-core/docs/protocol-mqtt.md
for the gateway's MQTT topic scheme. (Extension-board channel/button
numbering conventions used by the node firmware — e.g. which CAN
NO/button-id ranges map to which extension address — are documented at
the node firmware level; docs/protocol-can.md covers the CAN frame
format itself.)
cargo fmt / cargo clippy for every crate, cargo nextest
with coverage and an MSRV check for the *-core crates.cargo doc for every crate, published to GitHub Pages.cargo-audit
against the RustSec advisory database, on every dependency change and
once daily.software/legacy/ (the original C++/ESP-IDF code) is no longer built by
CI — see its own README.md for the ESP-IDF build steps if you need to
reproduce it.
GNU General Public License v3.0 (or later) — see LICENSE.
This is meant to be freely buildable, flashable, and modifiable hardware and firmware. GPLv3 was chosen deliberately: its copyleft means anything built on this stays open, and its Section 6 "Installation Information" requirement means anyone who conveys a modified version as part of a physical product also has to provide what's needed to install your own modified firmware on it — nobody gets to lock you out of hardware you own. All schematics, layouts, mechanics, tools, and software are provided so you can fix things yourself rather than throwing them away.
Feel free to report issues or open a pull request.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 12 | 1K | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R6, R7, R8, R9, R10, R11, R12, R13, R22, R23, R24, R25 |
| 12 | 1N4148WS | Diode_SMD:D_SOD-123 | D1, D3, D5, D7, D9, D11, D13, D15, D17, D19, D21, D23 |
| 12 | LED | LED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolder | D2, D4, D6, D8, D10, D12, D14, D16, D18, D20, D22, D24 |
| 12 | RT314A12 | Relay_THT:Relay_SPDT_Schrack-RT1-16A-FormC_RM5mm | K1, K2, K3, K4, K5, K6, K7, K8, K9, K10, K11, K12 |
| 7 | 100n | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C1, C4, C5, C8, C9, C10, C11 |
| 6 | WAGO2604-1104 | awesome:WAGO2604-1104 | J2, J4, J8, J9, J10, J11 |
| 4 | 100R | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R16, R17, R18, R19 |
| 4 | MountingHole | MountingHole:MountingHole_3.2mm_M3_DIN965 | H1, H2, H3, H5 |
| 3 | 10K | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R4, R14, R21 |
| 3 | 10u | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C3, C6, C7 |
| 2 | 2K2 | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R5, R20 |
| 2 | IRDA | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J5, J6 |
| 2 | PCA9534 | Package_SO:SOIC-16W_7.5x10.3mm_P1.27mm | U5, U6 |
| 2 | RJ45-CAN | Connector_RJ:RJ45_OST_PJ012-8P8CX_Vertical | J7, J12 |
| 2 | SolderJumper_2_Open | Jumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mm | JP5, JP6 |
| 2 | SolderJumper_3_Bridged12 | Jumper:SolderJumper-3_P1.3mm_Open_RoundedPad1.0x1.5mm | A1, A2 |
| 2 | TPL7407LADR | Package_SO:SO-16_5.3x10.2mm_P1.27mm | U7, U8 |
| 1 | 1u | Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolder | C2 |
| 1 | 4K7 | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R15 |
| 1 | Button-Sensors-MicroMatch2X03 | awesome:02x03MicroMatch | J1 |
| 1 | ESP32-WROOM-32 | awesome:ESP32-WROOM-32 | U3 |
| 1 | IRM-02-12 | Converter_ACDC:Converter_ACDC_MeanWell_IRM-02-xx_THT | PS1 |
| 1 | MCP1703A-3302_SOT89 | Package_TO_SOT_SMD:SOT-89-3_Handsoldering | U4 |
| 1 | MCP2562-E-SN | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U2 |
| 1 | PESD2CAN | Package_TO_SOT_SMD:SOT-23 | U1 |
| 1 | R | Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder | R27 |
| 1 | SolderJumper_2_Bridged | Jumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mm | JP2 |
| 1 | WAGO2604-1102 | awesome:WAGO2604-1102 | J13 |
| 1 | wuerthDebug6 | awesome:wuerthDebug6 | U9 |

Th3Link/homeautomation
Components for a CAN-bus home-automation system: relay/rollershutter/ light/button/sensor nodes on a shared CAN bus, bridged to MQTT (and from there to openHAB or Home Assistant) by a gateway.

Th3Link/homeautomation
Components for a CAN-bus home-automation system: relay/rollershutter/ light/button/sensor nodes on a shared CAN bus, bridged to MQTT (and from there to openHAB or Home Assistant) by a gateway.

Th3Link/homeautomation
Components for a CAN-bus home-automation system: relay/rollershutter/ light/button/sensor nodes on a shared CAN bus, bridged to MQTT (and from there to openHAB or Home Assistant) by a gateway.

Th3Link/homeautomation
Components for a CAN-bus home-automation system: relay/rollershutter/ light/button/sensor nodes on a shared CAN bus, bridged to MQTT (and from there to openHAB or Home Assistant) by a gateway.

Th3Link/homeautomation
Components for a CAN-bus home-automation system: relay/rollershutter/ light/button/sensor nodes on a shared CAN bus, bridged to MQTT (and from there to openHAB or Home Assistant) by a gateway.

Th3Link/homeautomation
Components for a CAN-bus home-automation system: relay/rollershutter/ light/button/sensor nodes on a shared CAN bus, bridged to MQTT (and from there to openHAB or Home Assistant) by a gateway.

Th3Link/homeautomation
Components for a CAN-bus home-automation system: relay/rollershutter/ light/button/sensor nodes on a shared CAN bus, bridged to MQTT (and from there to openHAB or Home Assistant) by a gateway.

Th3Link/homeautomation
Components for a CAN-bus home-automation system: relay/rollershutter/ light/button/sensor nodes on a shared CAN bus, bridged to MQTT (and from there to openHAB or Home Assistant) by a gateway.



variegated-coffee/all-purpose-espresso-controller-hv-board
A high voltage (well, low voltage really, 100-240V) board for the All Purpose Espresso Controller


testudor/shutdown-manager-mainboard
Power input module for 3D printers capable of performing safe shutdown procedures for SBCs like Raspberry PIs


WOOWTECH/Woow_zigbee_fresh_air_pcb
WO_30109 Zigbee 新風控制器 PCB(KiCad 10,git 版控;V1.3 重繪 + V2.0 安規改版)

andia89/MaraXEvolution
This repository contains the hardware design and firmware for the MaraX Evolution main controller board. This project is designed to replace the stock controller of the Lelit Mara X espresso machine, adding advanced…
It measures 188 × 97 mm and has 2 copper layers, 1.6 mm thick.
101 parts, built around the ESP32-WROOM-32, IRM-02-12, PCA9534D and PESD2CAN. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the Th3Link/homeautomation repository on GitHub, at the commit this page was made from: the board is hardware/relaisModule/relais.kicad_pcb and its schematic hardware/canheader/canHeader.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).