Skip to the content
2 layers99 × 90 mmEsp32-relay-24v, the printed circuit board in 3D

ESP32 controller board for a tigerexped Warmduscher Kit 2.0: 16 A relay for the 24 V/300 W boiler element plus AUTOTERM Air 4D 5 V UART control, driven from Home Assistant. KiCad PCB generated from Python.

Size
99 × 90 mm
Copper layers
2
Thickness
1.6 mm
Parts
27
Nets
16
Pads
100
Tracks, vias
78, 5
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
2 Sep 2026
Updated
2 Sep 2026

Overview

Esp32-relay-24v is an open-source printed circuit board by LeanderM99, from the LeanderM99/esp32-warmduscher-autoterm repository on GitHub. It is a 2-layer board of 99 × 90 mm with 27 parts on 16 nets, routed with 78 tracks and 5 vias.

It is built around the K7805-1000R3, SN74AHCT125N and DS18B20, with the SS34, G2R-1-E-DC24V and KF635-6.35-2P among its other parts. Its parts include 6 resistors, 6 connectors, 4 capacitors, 2 ICs and 2 diodes. It belongs with the home automation and IoT and interfaces and adapters boards and the ESP32 boards of this library.

Main components

7

README

README.md

Warmduscher controller (rev C)

One board that runs a tigerexped Warmduscher Kit 2.0 from Home Assistant: it switches the 24 V / 300 W boiler element through a 16 A relay and talks to the AUTOTERM Air 4D over its 5 V control-panel UART.

2-layer, 99 × 90 mm, default-cost 1 oz copper, ground poured on both layers. An ESP32 DevKit V1 (30 pin) plugs into J3/J4. Mixed assembly: JLCPCB's SMT line places the 14 SMD parts, the 9 through-hole parts go in by hand.

Boards and SMT from JLCPCB, through-hole parts from LCSC — full ordering walkthrough and a cost comparison of every assembly option in ORDERING.md.

board

Status

text
kicad-cli pcb drc  ->  0 violations, 0 unconnected items
check_jlcpcb.py    ->  inside JLCPCB 2-layer standard process on every limit
                       contacts 17.7 A max, 9.0 C rise at 12.5 A
                       14 SMT parts, all top side -> Economic PCBA available

Everything is generated by build_pcb.py. Edit that source and regenerate; manual edits to esp32-relay-24v.kicad_pcb are overwritten on the next run.

What changed from rev B

rev Brev C
Scoperelay carrier onlyrelay + AUTOTERM 5 V UART + boiler probe
ESP32DevKitC 38-pin, 2×19 socketsDevKit V1 30-pin, 2×15 sockets
Board99 × 64 mm99 × 90 mm (still inside the ≤100×100 economy tier)
Passivesthrough-hole, hand soldered0805 / SOT-23 / SMA / SOIC-14, SMT assembled
Groundhand-routed trackspoured on both layers
U1RECOM R-78E5.0-1.0 (8–28 V)MORNSUN K7805-1000R3 (8–36 V) — see below
Power LEDfittedremoved

U1 was a latent defect. The RECOM R-78E5.0-1.0 that rev B specified as the primary part is rated 8–28 V in. A nominal 24 V vehicle system reaches about 28.8 V on charge, so it was operating out of spec on the very system this board is for. The MORNSUN K7805-1000R3 is 8–36 V, same SIP-3 package and pinout, and is now the only part listed. Do not substitute the RECOM back in.

Circuit

text
J1.1 24V+ ─F1─▶|──┬─ C1 ──┬─ U1 K7805 ─┬─ C2 ─┬─ C4 ─┬─▶ DevKit VIN  (5 V)
             D1   │       │  24V->5V 1A │      │      └─▶ U2 pin14 + C3
                  │       └─ K1 coil ─┐ │
                  │          D2 ┤◀────┤ │
                  │                   │
                  │             Q1 collector
    GPIO13 ─ R1 1k ─┬─ Q1 base        │
                    └─ R3 10k ─ GND   │
J1.2 0V ────────────────────────────────────────── GND  (poured, both layers)

K1 COM / NO ─────────────▶ J2  (6.35 mm screw terminal, 12.5 A)

AUTOTERM bus, J5 (5-pin JST XH):
     GPIO26 ─▶ U2 74AHCT125 ch1, Vcc = 5 V ─▶ J5.3  heater RX  (white)
     J5.2 heater TX (green, 5 V) ─ R4 1k ─┬─ R5 2k ─ GND
                                          └─────────▶ GPIO27
     J5.4 GND (blue) ─ board GND      J5.1 and J5.5 (+V, red) NOT connected
     DevKit 3V3 ─ R7 10k ─ GPIO26     holds the bus idle-high during ESP boot

Boiler probe, J6 (3-pin JST XH):
     J6.1 3V3 ─ R6 4.7k ─┬─ J6.2 DQ ─▶ GPIO33        J6.3 GND
                          DS18B20
  • D1 (series schottky) makes reversed 24 V input harmless. It carries only the logic supply — the 12.5 A load current never enters the board's 24 V rail.
  • F1 is a 2-pad axial footprint: fit a wire link, or a 1 A axial polyfuse.
  • R3 holds Q1 off while GPIO13 floats during ESP32 boot/reset — without it the relay state at power-up is undefined.
  • R7 does the same job for the AUTOTERM bus: while GPIO26 floats, the 74AHCT125 input is held at 3.3 V, so its output idles at a clean 5 V mark instead of driving noise into the heater's RX line.
  • U2 uses one of four channels. The unused inputs and their active-low enables are tied to GND so no CMOS input floats; 2Y/3Y/4Y are left with no net.
  • Coil and logic share one ground, and the AUTOTERM loom's ground joins it at J5.4. There is no optoisolation and none is useful — it is one 24 V battery feeding all of it.
  • K1 is SPDT, but NC is intentionally not brought to J2. Omron rates the G2R-1-E at 16 A/30 VDC resistive only when both duplicated pins of each used contact are connected; the board joins both COM pins and both NO pins.

DevKit V1 pin map

Pin 1 is the USB-C end. Only seven positions are connected; the rest are mechanical.

The vendor pinout drawing has USB-C at the bottom. This board mounts the DevKit USB-C-up, which is a 180° rotation — so the drawing's left column lands on J4 and its right column on J3, each reversed. Mirroring instead of rotating puts 5 V on the 3V3 pin.

RowPinSignalUsed for
J3 (left)13V3R6 / R7 pull-up rail
J32GNDground
J4 (right)1VIN5 V in from U1
J42GNDground
J43IO13relay K1 drive
J46IO27AUTOTERM RX (from the R4/R5 divider)
J47IO26AUTOTERM TX (into U2)
J49IO33DS18B20 data

None of the four signal pins is a strapping pin, so none of them affects boot mode, and none of them is one of the pins that pulses during boot (IO1, IO3, IO5, IO14, IO15) — which is why the relay sits on IO13 and not on the IO14 that happens to face the driver. All four are free on WROOM and WROVER modules.

Do not power the board from 24 V and USB at the same time unless you have checked your particular clone. VIN and the USB 5 V rail are joined on many of these boards, sometimes without a series diode.

BOM

Generated from the board, so they cannot drift out of sync:

FileWhat
bom_jlcpcb_assembly.csv + cpl_jlcpcb.csvthe 14 SMD parts JLCPCB places
bom_lcsc.csvthe through-hole parts you buy loose and solder

Human-readable master table with substitution rules: BOM.md. Soldering, cable-making and bring-up: assembly.md.

RefValuePackageNotes
—ESP32 DevKit V1, 30-pin—plugs into J3/J4, not on any BOM
J3, J41×15 female header2.54 mmrows 25.4 mm apart
J1KF301-5.0-2P5.08 mm24 V DC in
J2KF635-6.35-2P6.35 mmCOM / NO, 30 A UL, accepts 12 AWG
J5JST B5B-XH-A2.5 mm, 5 posAUTOTERM control-panel bus
J6JST B3B-XH-A2.5 mm, 3 posDS18B20 boiler probe
U1K7805-1000R3SIP-38–36 V → 5 V @ 1 A
U2SN74AHCT125DRSOIC-143.3 V → 5 V buffer, TTL input thresholds
K1Omron G2R-1-E-DC24VG2R-1-ESPDT, 16 A/30 VDC resistive
Q1MMBT3904SOT-23coil driver, pin 1 = base
D1, D2SS34SMAreverse polarity / coil flyback
F1wire link or 1 A polyfuseaxial, 7.62 mmoptional
C147 µF / 50 VSMD alu, D6.3input bulk
C222 µF / 25 V0805 X5R5 V bulk
C3, C4100 nF / 50 V0805 X7Rdecoupling
R1, R41 kΩ0805base drive / divider top
R3, R710 kΩ0805base pull-down / TX idle pull-up
R52 kΩ0805divider bottom
R64.7 kΩ08051-Wire pull-up
H1–H4—M3, 3.2 mmcorner mounting

Firmware

warmduscher.yaml is a complete ESPHome config: the AUTOTERM climate entity, the boiler probe, and every interlock running locally on the ESP32 so none of it depends on Home Assistant or Wi-Fi.

text
GPIO13 relay      GPIO26 AUTOTERM TX   GPIO27 AUTOTERM RX   GPIO33 DS18B20

The baud rate is not known until you measure it. Published AUTOTERM projects report 2400, 9600 and 57600, all 8N1, across different generations and firmware. Start at 9600, and if "Heater connected" never comes on, try 57600 then 2400. It is a one-line change; the hardware is happy at any of them.

Before you order — check these four

  1. Header row spacing. This board is built for 25.4 mm. Measure yours. If it differs, change ROW_SPACING at the top of build_pcb.py and re-run — nothing else needs touching.
  2. Your DevKit's pin order. LEFT and RIGHT in build_pcb.py are the common DOIT/NodeMCU 30-pin order. Clone layouts are not universal; check yours against the table above before soldering the sockets.
  3. The AUTOTERM connector. AUTOTERM does not publish the connector family for assy.25-01, and the wire colours below are community-reported. Measure the loom with a meter before you crimp anything — see ORDERING.md § 4.
  4. Load type and ambient. The 12.5 A rating is for resistive 24 VDC loads. Omron's 16 A/30 VDC approval is stated at 40 °C.

Deliberate limits

  • Contact traces carry 12.5 A — 4 mm wide, mirrored on both 1 oz copper layers. IPC-2221 gives 17.7 A at a 20 °C rise and a 9.0 °C rise at 12.5 A. One layer alone is calculated at a 44 °C rise. check_jlcpcb.py computes this from the generated board and verifies both relay pins on each contact net. This geometry is byte-identical to rev B and was not touched.
  • K1 is the system limit: 16 A at 30 VDC resistive. J2 is rated 30 A UL.
  • No load-dump protection. U1 is good to 36 V and the bus normally sits at up to 28.8 V on charge, so there is no room for a TVS: clamping below 36 V would need a ~22 V part that conducts in normal operation. Feed this board from a battery-backed 24 V rail, which is what clamps a real load dump. A wide-input (60 V) buck is the upgrade path if you ever need one.
  • Not laid out for mains. Clearances are ordinary 24 V clearances.
  • No fuse is fitted by default. Fusing the 12.5 A load side externally is your responsibility; F1 only protects the 24 V logic supply.
  • No schematic file: nets are assigned directly in the PCB and the circuit is documented above. The DRC connectivity check verifies the copper matches the net table, which is what a schematic would have bought us here.
  • The supplied thermostat has been designed out. See ORDERING.md § 5 for what that means and what the firmware now has to do instead.

Files

esp32-relay-24v_JLCPCB_gerbers.zipupload this to JLCPCB
cpl_jlcpcb.csv, bom_jlcpcb_assembly.csvupload these too — assembly is ON
bom_lcsc.csvupload this to LCSC's BOM tool
warmduscher.yamlESPHome config with all the interlocks
assembly.mdhand-soldering, the four cables, wiring and bring-up
ORDERING.mdJLCPCB + LCSC ordering, cost comparison, API status
BOM.mdhuman-readable parts master and substitution rules
Autoterm.mdthe integration's goals, decisions and open questions
check_jlcpcb.pychecks the board against JLCPCB's process limits
make_cpl.pyregenerates the CPL and both BOMs
esp32-relay-24v.kicad_pcbgenerated board; inspect in KiCad 10
build_pcb.pyregenerates the board from the tables inside it
gerbers/unzipped Gerber + Excellon output
board-top.png, board-3d.png, board-3d-left.pngrenders
assembly-solder-map.png, assembly-wiring-map.pngannotated renders for assembly.md
make_assembly_images.pyregenerates those two annotated renders
drc.jsonlast DRC run
AGENTS.mdinstructions for AI agents working on this repo

Regenerating

bash
KC="$LOCALAPPDATA/Programs/KiCad/10.0/bin"
"$KC/python.exe" build_pcb.py
"$KC/kicad-cli.exe" pcb drc --severity-error --severity-warning \
    --format json --output drc.json esp32-relay-24v.kicad_pcb
"$KC/python.exe" check_jlcpcb.py
"$KC/python.exe" make_cpl.py
"$KC/kicad-cli.exe" pcb export gerbers --output gerbers \
    --layers F.Cu,B.Cu,F.Silkscreen,B.Silkscreen,F.Mask,B.Mask,Edge.Cuts \
    --subtract-soldermask --use-drill-file-origin esp32-relay-24v.kicad_pcb
"$KC/kicad-cli.exe" pcb export drill --output gerbers --format excellon \
    --excellon-units mm --drill-origin plot --excellon-separate-th \
    esp32-relay-24v.kicad_pcb
"$KC/kicad-cli.exe" pcb render --output board-3d.png --side top \
    --rotate "-55,0,0" --perspective --quality high --background opaque \
    --width 1400 --height 1000 esp32-relay-24v.kicad_pcb
"$KC/kicad-cli.exe" pcb render --output board-3d-left.png --side top \
    --rotate "-55,0,-45" --perspective --quality high --background opaque \
    --width 1400 --height 1000 esp32-relay-24v.kicad_pcb
"$KC/kicad-cli.exe" pcb render --output board-top.png --side top \
    --quality high --background opaque --width 1400 --height 1300 \
    esp32-relay-24v.kicad_pcb
python - <<'EOF'
import zipfile, glob, os
out = "esp32-relay-24v_JLCPCB_gerbers.zip"

build_pcb.py asserts every pad lands at its expected coordinate before it writes anything, so a wrong footprint rotation fails loudly instead of quietly shifting a part out from under its traces.

Parts

27
QtyValueFootprintReferences
4M3MountingHole_3.2mm_M3H1, H2, H3, H4
2100nC_0805_2012MetricC3, C4
210kR_0805_2012MetricR3, R7
21kR_0805_2012MetricR1, R4
2SS34D_SMAD1, D2
122u/25VC_0805_2012MetricC2
124V INTerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalJ1
12kR_0805_2012MetricR5
147u/50VCP_Elec_6.3x7.7C1
14k7R_0805_2012MetricR6
1AUTOTERMJST_XH_B5B-XH-A_1x05_P2.50mm_VerticalJ5
1DS18B20JST_XH_B3B-XH-A_1x03_P2.50mm_VerticalJ6
1DevKit LPinSocket_1x15_P2.54mm_VerticalJ3
1DevKit RPinSocket_1x15_P2.54mm_VerticalJ4
1G2R-1-E-DC24VRelay_SPDT_Omron_G2RL-1-EK1
1K7805-1000R3Converter_DCDC_RECOM_R-78E-0.5_THTU1
1KF635-6.35-2PTerminalBlock_MetzConnect_Type701_RT11L02HGLU_1x02_P6.35mm_HorizontalJ2
1LINK/1AR_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalF1
1MMBT3904SOT-23Q1
1SN74AHCT125SOIC-14_3.9x8.7mm_P1.27mmU2

Similar boards

  • 2 layers84.7 × 30 mmEurorack, the printed circuit board in 3D

    Eurorack

    scrambletools/AVB-Eurorack

    Eurorack interposer for the Scramble Hat-trik: bus power, 180° hat stacking, panel jacks

    29 parts
  • 2 layers75 × 65 mmMotormodul, the printed circuit board in 3D

    Motormodul

    Meo98/picostack

    Stackable, contract-driven module system for the Raspberry Pi Pico — open hardware, built by code

    63 partsGPL-3.0
  • 2 layers80 × 75 mmPlanta control, the printed circuit board in 3D

    Planta control

    cesar191/diseno_PCB

    diseño de una pcb de control el cual puede tener diferentes estructuras

    55 parts
  • 2 layers61.6 × 36.8 mmThermostat, the printed circuit board in 3D

    Thermostat

    cswank/thermostat

    26 partsMIT
  • 2 layers57.1 × 53.3 mmHushbox fan control, the printed circuit board in 3D

    Hushbox fan control

    mhoyer/hushbox-control

    I tested esp32-idf4-20191220-v1.12.bin and esp32-idf4-20191220-v1.13.bin from https://micropython.org/download/esp32/.

    34 parts
  • 2 layers90 × 50 mmVizitka Michal 04, the printed circuit board in 3D

    Vizitka Michal 04

    Meteopresscz/PCB_Public

    Design of our Business Cards and Note Pads on PCB

    61 parts
  • 2 layers133 × 89.5 mmESP32-Simple Thermostat PCB, the printed circuit board in 3D

    ESP32-Simple Thermostat PCB

    jrtaylor71/ESP32-Simple-Thermostat

    Simple ESP32 Thermostat with touch screen

    52 parts2

Questions

How big is the Esp32-relay-24v PCB?

It measures 99 × 90 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Esp32-relay-24v use?

27 parts, built around the K7805-1000R3, SN74AHCT125N, DS18B20 and SS34. 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.

Where can I download the Esp32-relay-24v KiCad files?

From the LeanderM99/esp32-warmduscher-autoterm repository on GitHub, at the commit this page was made from: the board is esp32-relay-24v.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Esp32-relay-24v design in my own project?

Its repository states no licence, so its author keeps all rights: ask LeanderM99 before reusing the design.