Skip to the content
2 layers59.1 × 38.1 mmThermostat, the printed circuit board in 3D

ESP32 based thermostat for a DIY heating system

Size
59.1 × 38.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
27
Nets
41
Pads
120
Tracks, vias
276, 36
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
4 Jan 2020
Updated
17 Feb 2023

Overview

Thermostat is an open-source printed circuit board by kollhof, from the kollhof/thermostat repository on GitHub. It is a 2-layer board of 59.1 × 38.1 mm with 27 parts on 41 nets, routed with 276 tracks and 36 vias.

It is built around the ESP32-WROOM-32D, RAC03-05SK and BME280, with the AP2112K-3.3 among its other parts. Its parts include 7 capacitors, 5 resistors, 5 connectors, 2 ICs and 2 switches. It belongs with the home automation and IoT boards and the ESP32 boards of this library.

Main components

4

README

README.md

thermostat

ESP32 based thermostat for a DIY heating system

gettting started

Create a factory NVS partitions with hardware and homekit config:

bash
../esp-homekit-sdk/tools/mfg_homekit/hk_mfg_gen.py --conf mfg-config.csv --values mfg-values.csv --prefix thermo --cid 9 --outdir ./secret/mfg/ --size 0x6000

Flash factory partitions to individual devices:

bash
esptool.py write_flash 0x340000 secret/mfg/bin/thermo-[homekit-setup-id].bin

Flash firmware:

bash
idf.py clean build flash

Update firmware over the air:

The Device ID can be found as serial number in Homekit once paired.

bash
idf.py -DOTA_DEVICE_ID=[device-id] clean build flash-ota

progress

This first version used an ESP32-WROVER-V4 powered by a Hi-link power supply all badly soldered to a protboard with way too thick wires.

prototype 0

After reading up on powersupplies I decided to ditch the Hi-link for a Recom RAC03-05SK. It does not need any extra components to be safe which made things a bit simpler.

prototype 1

The female pin headers were awful to work with and I wanted a bit more ports exposed for experimenting.

prototype 2

I also started to get a tiny bit better at soldering, and my choice of wires improved as well.

prototype 2

Now I had a pretty well working little board. I used Dallas ds18b20 sensors to measure temperatur and relays to drive the electric radiators.

I needed about 5 of these boards, wiring and soldering everything got old pretty quickly. Instead of continuing to use protoboards, I decided to design my own PCB. I downloaded KiCad, looked at many ESP-32 dev board schematics for inspiration and created my own little board.

prototype 3

I had them printed by https://aisler.net and few days later I had a 3 PCBs and all the parts needed. I soldered all the SMD components using a hot air blower,and everything just worked!

Parts

27
QtyValueFootprintReferences
40.1uFCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC3, C4, C6, C7
34.7kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR2, R7, R8
2MountingHoleMountingHole:MountingHole_2.2mm_M2_ISO7380H1, H2
11.0uFCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC1
110KResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR1
11kResistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolderR3
12.2uFCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC2
122uFCapacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolderC5
1230ACTerminalBlock_RND:TerminalBlock_RND_205-00045_1x02_P5.00mm_HorizontalJ1
13.3VConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ3
1AP2112K-3.3Package_TO_SOT_SMD:SOT-23-5U1
1BME280Package_LGA:Bosch_LGA-8_2.5x2.5mm_P0.65mm_ClockwisePinNumberingU2
1ESP32-WROOM-32DRF_Module:ESP32-WROOM-32ESP32
1GNDConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ4
1GPIOsConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ5
1Logo_Open_Hardware_SmallSymbol:OSHW-Symbol_6.7x6mm_SilkScreenLOGO1
1RAC03-05SKRAC03-05SK:CONV_RAC03-05SKPS1
1bootButton_Switch_SMD:SW_SPST_B3U-1000PSW2
1programConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ2
1resetButton_Switch_SMD:SW_SPST_B3U-1000PSW1
1statusLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD1

Similar boards

  • 2 layers176 × 100 mmSmartDesk v1p0, the printed circuit board in 3D

    SmartDesk v1p0

    daverowntree/SmartDesk

    I open sourced a design I made a few years back for a non-paying client. Use it as you see fit!

    190 parts
  • 2 layers341.8 × 158.5 mmWs2812-clock, the printed circuit board in 3D

    Ws2812-clock

    CommanderRedYT/ws2812-clock

    A simple pcb clock using ws2812 in 7-segment form

    533 parts2GPL-3.0
  • 2 layers136 × 100 mmClimateSprinklerController, the printed circuit board in 3D

    ClimateSprinklerController

    kbx81/ClimateSprinklerController

    ESP32-based climate and sprinkler controller for use with ESPHome

    187 parts56
  • 2 layers22 × 66.5 mmKbxIrBlaster, the printed circuit board in 3D

    KbxIrBlaster

    kbx81/kbxIRBlaster

    ESP32-based IR MegaBlaster!

    106 parts58CC-BY-SA-4.0
  • 2 layers65 × 100 mmSyringe pump, the printed circuit board in 3D

    Syringe pump

    wenzel-lab/syringe-pumps-and-controller

    Design of 3d printable syringe pumps and dual controller.

    141 parts11
  • 2 layers290 × 100 mmESP32-Wall Clock, the printed circuit board in 3D

    ESP32-Wall Clock

    SkullKill/ESP32-Wall-Clock-PCB

    ESP32 based 30cm Wall Mounted Clock. WiFi, NTP, SNMP, web interface, MicroUsb, Type-C, HG3613 Retrofit

    207 parts3GPL-3.0
  • 2 layers30 × 60 mmSmartishMiniLED, the printed circuit board in 3D

    SmartishMiniLED

    jeremypoulter/SmartishMiniLED

    USB C powered mini WLED controller

    41 parts2BSD-3-Clause

Questions

How big is the Thermostat PCB?

It measures 59.1 × 38.1 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Thermostat use?

27 parts, built around the ESP32-WROOM-32D, RAC03-05SK, BME280 and AP2112K-3.3. 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 Thermostat KiCad files?

From the kollhof/thermostat repository on GitHub, at the commit this page was made from: the board is hardware/thermostat.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Thermostat design in my own project?

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