Skip to the content
4 layers49.2 × 58.9 mmTemp transmitter pcb, the printed circuit board in 3D

Temp transmitter pcb

veskotr/temp-transmitter

Temp Transmitter is a small STM32 bare-metal firmware project for a Modbus RTU temperature-transmitter node. It is currently a pilot application for the HSS STM32 framework: the application code lives in this…

Size
49.2 × 58.9 mm
Copper layers
4
Thickness
1.57 mm
Parts
63
Nets
75
Pads
229
Tracks, vias
435, 114
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
25 Jun 2026
Updated
27 Jul 2026

Overview

Temp transmitter pcb is an open-source printed circuit board by veskotr, from the veskotr/temp-transmitter repository on GitHub. It is a 4-layer board of 49.2 × 58.9 mm with 63 parts on 75 nets, routed with 435 tracks and 114 vias.

It is built around the STM32G071CBT6, THVD2450DRB and LMR16030SDDAR, with the SS36 among its other parts. Its parts include 24 capacitors, 11 resistors, 8 connectors, 6 ICs and 6 diodes. It belongs with the STM32 boards of this library.

Main components

4

README

README.md

Temp Transmitter Firmware

Temp Transmitter is a small STM32 bare-metal firmware project for a Modbus RTU temperature-transmitter node. It is currently a pilot application for the HSS STM32 framework: the application code lives in this repository, the board projects live under boards/, and the framework is fetched at configure time with CMake FetchContent.

The current firmware brings up the selected board, starts a Modbus RTU slave, reads a MAX31865 RTD converter over the framework sensor SPI role, and exposes the temperature-transmitter register map through a central data/config service.

Project version: see version.txt. CMake reads this file during configure and exposes it as PROJECT_VERSION plus TEMP_TRANSMITTER_VERSION compile definitions on the firmware target.

Repository Layout

text
.
|-- CMakeLists.txt
|-- CMakePresets.json
|-- hss.conf
|-- hss-blue_pill_temp_transmitter.conf
|-- cmake/
|   `-- arm-gcc-toolchain.cmake
|-- src/
|   |-- main.c
|   |-- data/
|   |-- modbus/
|   `-- sensors/
|       `-- max31865/
|-- boards/
|   |-- blue_pill_temp_transmitter/
|   `-- stm32g071kb_temp_transmitter/
`-- docs/
    |-- project.md
    |-- device-roadmap.md
    |-- firmware-structure.md
    `-- temp_transmitter_modbus_register_map.md

Framework Dependency

The project fetches the HSS STM32 framework from:

text
https://github.com/veskotr/stm32-baremetal-framework

The configured tag is:

text
0.6.0 commit 6f4283f4528c2af430c4bed222983aba019fc634

The tag and repository URL are cache variables, so they can be overridden during configure:

sh
cmake -S . -B build/debug -G Ninja \
  -DCMAKE_TOOLCHAIN_FILE=cmake/arm-gcc-toolchain.cmake \
  -DHSS_FRAMEWORK_GIT_TAG=6f4283f4528c2af430c4bed222983aba019fc634 \
  -DCMAKE_BUILD_TYPE=Debug

The local cmake/arm-gcc-toolchain.cmake is intentionally kept as the first-configure toolchain entry point. CMake must load the toolchain before project() and before FetchContent downloads the framework, so a fetched framework cannot provide the toolchain file for the same first configure unless the framework is already vendored or pre-populated.

Requirements

  • CMake 3.20 or newer
  • Ninja
  • arm-none-eabi-gcc
  • Python 3, used by the framework board-sync tooling
  • OpenOCD, only needed for flash/debug targets
  • Network access on first configure, unless the FetchContent dependency is already populated

Build

The default preset builds the Blue Pill board:

sh
cmake --preset Debug
cmake --build --preset Debug

Release uses the same board with a release build type:

sh
cmake --preset Release
cmake --build --preset Release

Build artifacts are written to the selected build directory:

  • temp_transmitter.elf
  • temp_transmitter.bin
  • temp_transmitter.hex
  • temp_transmitter.map

Firmware Config

The firmware uses the HSS config system:

  • hss.conf contains product defaults such as Modbus settings, RTD type/curve/wiring defaults, filter defaults, identity values, and startup flags.
  • hss-<board>.conf contains board-specific overlays selected from TEMP_TRANSMITTER_BOARD.
  • Generated firmware macros are written under build/.../hss_generated/temp_transmitter/hss_config.h.

For the default board, hss-blue_pill_temp_transmitter.conf records the MAX31865 CS/DRDY pin labels and reference resistor value. The actual GPIO role mapping still lives in boards/blue_pill_temp_transmitter/board_roles.cmake.

Select A Board

The default board is blue_pill_temp_transmitter. Select a different board with TEMP_TRANSMITTER_BOARD and use a separate build directory per board:

sh
cmake -S . -B build/g0 -G Ninja \
  -DCMAKE_TOOLCHAIN_FILE=cmake/arm-gcc-toolchain.cmake \
  -DTEMP_TRANSMITTER_BOARD=stm32g071kb_temp_transmitter \
  -DCMAKE_BUILD_TYPE=Debug
cmake --build build/g0

Current board folders:

BoardMCUNotes
blue_pill_temp_transmitterSTM32F103C8TxDefault board. Has Modbus UART, Modbus timer, SPI1 sensor bus, PA4 active-low MAX31865 CS, PA3 DRDY/EXTI3, and active-low PC13 status LED roles.
stm32g071kb_temp_transmitterSTM32G071KBTxBuilds, but the Modbus timer and status LED roles are still TODOs in board_roles.cmake.

Board Sync

The framework generates board metadata from the CubeMX output in each board folder. Normal builds run sync for the selected board before compilation.

To sync explicitly:

sh
cmake --build build/debug --target hss_sync_boards

If CubeMX adds or removes source files, reconfigure once after sync so CMake reloads the generated manifest:

sh
cmake -S . -B build/debug

Generated board files include:

  • board_manifest.cmake
  • generated/board_config.h
  • generated/board_glue.c
  • board_roles.cmake, created only if missing and safe to edit

Flash

For the default Debug build:

sh
cmake --build build/debug --target flash_temp_transmitter

The framework also generates openocd_temp_transmitter for launching OpenOCD without flashing.

Application Behavior

The firmware is a Modbus RTU slave with slave ID 1 and baud rate 9600. It initializes 128 holding registers and 128 input registers so the documented transmitter map is reachable.

The MAX31865 is configured for continuous conversion with the 50 Hz filter setting to reject local mains noise. PA3/DRDY requests a sample through EXTI3, and a 20 ms fallback poll keeps the registers moving during bring-up even if the DRDY edge is wrong or disconnected.

The process temperature/resistance registers expose the filtered value. The default filter mode is EMA-by-alpha with APP_FILTER_EMA_ALPHA=2500, meaning alpha = 0.25. Filter mode can be changed through holding registers 40..48; disabled/latest-sample, EMA alpha, and EMA time-constant modes are implemented.

Key input registers, using zero-based Modbus offsets:

AddressValue
0Device status bitfield
1Live fault bits
2Latched fault bits
3/4Temperature as signed s32, scale 0.01 C, MSW/LSW
5/6RTD resistance as u32, scale 0.001 ohm, MSW/LSW
7/8Temperature as optional IEEE754 float32
9/10Resistance as optional IEEE754 float32
11/12Raw RTD conversion value
13Measurement age in milliseconds
14Internal temperature placeholder, currently 0

The full Modbus map is documented in docs/temp_transmitter_modbus_register_map.md. Runtime register ownership lives in src/data; src/modbus is now only the Modbus transport adapter.

See docs/project.md for project purpose, board roles, and development notes. See docs/cubemx-configuration.md for the CubeMX peripheral checklist used by the board.

Parts

63
QtyValueFootprintReferences
13100nCapacitor_SMD:C_0603_1608MetricC2, C3, C8, C9, C10, C11, C12, C13, C14, C15, C16, C19, C24
41uCapacitor_SMD:C_0603_1608MetricC20, C21, C22, C23
4MountingHoleMountingHole:MountingHole_2.2mm_M2H1, H2, H3, H4
31kResistor_SMD:R_0603_1608MetricR9, R10, R11
3LEDLED_SMD:LED_0603_1608MetricD4, D5, D6
210kResistor_SMD:R_0603_1608MetricR1, R7
215Resistor_SMD:R_0603_1608MetricR4, R5
218pCapacitor_SMD:C_0603_1608MetricC17, C18
247uCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC5, C6
256kResistor_SMD:R_0603_1608MetricR2, R3
2SS36Diode_SMD:D_SMAD1, D2
2TPS7A20xxxDBVPackage_TO_SOT_SMD:SOT-23-5U3, U4
1100kResistor_SMD:R_0603_1608MetricR8
110nCapacitor_SMD:C_0603_1608MetricC1
110uCapacitor_SMD:C_0805_2012MetricC7
12.2uCapacitor_SMD:C_0603_1608MetricC4
133uInductor_SMD:L_6.3x6.3_H3L1
1430Resistor_SMD:R_0603_1608MetricR6
1BOOTTestPoint:TestPoint_2Pads_Pitch2.54mm_Drill0.8mmJP1
1Conn_01x03_PinConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ8
1Conn_01x05_PinConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ7
1Conn_01x08_SocketConnector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_VerticalJ6
1Crystal_GND24Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1LMR16030SDDARPackage_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.29x3mmU2
1MAX31865xTPPackage_DFN_QFN:TQFN-20-1EP_5x5mm_P0.65mm_EP3.25x3.25mmU6
1Power_inConnector_Phoenix_MC:PhoenixContact_MC_1,5_2-G-3.5_1x02_P3.50mm_HorizontalJ1
1Power_in_2Connector_Phoenix_MC:PhoenixContact_MC_1,5_2-G-3.5_1x02_P3.50mm_HorizontalJ2
1RESETTestPoint:TestPoint_2Pads_Pitch2.54mm_Drill0.8mmJP2
1RS-485Connector_Phoenix_MC:PhoenixContact_MC_1,5_2-G-3.5_1x02_P3.50mm_HorizontalJ4
1RS-485-2Connector_Phoenix_MC:PhoenixContact_MC_1,5_2-G-3.5_1x02_P3.50mm_HorizontalJ3
1RTD_INConnector_Phoenix_MC:PhoenixContact_MC_1,5_4-G-3.5_1x04_P3.50mm_HorizontalJ5
1SM712_SOT23Package_TO_SOT_SMD:SOT-23D3
1STM32G071CBT6Package_QFP:LQFP-48_7x7mm_P0.5mmU1
1THVD2450DRPCM_JLCPCB:SOIC-8_3.9x4.9mm_P1.27mmU5

Similar boards

  • 4 layers83.6 × 84.8 mmSkateboard, the printed circuit board in 3D

    Skateboard

    86kkd/millionBoard

    Amazing 500million sensor enetric skateboard use body center of gravity to control !!!

    186 parts
  • 2 layers22 × 53.5 mmIsolated RS485 Bridge, the printed circuit board in 3D

    Isolated RS485 Bridge

    Anderman/tombask

    All message send Slave can send after a poll frame. Slave is ready sending when the last padding byte is 0x55 To write byte 0x08 must be 0x02

    22 parts
  • 2 layers149 × 141 mmFurnace Controller, the printed circuit board in 3D

    Furnace Controller

    veskotr/furnace-pcb

    The main PCB for the furnace project

    99 parts
  • 2 layers63 × 99 mmBionxBatteryBoard, the printed circuit board in 3D

    BionxBatteryBoard

    William-Yen/Bionx-3rdParty-BMS

    A supplemental PCB to retrofit a Bionx e-bike battery pack with a 3rd-party BMS

    144 partsGPL-3.0
  • 4 layers94 × 74 mmHigh speed, the printed circuit board in 3D

    High speed

    marmbrus/circuits

    94 parts
  • 4 layers77.5 × 56 mmHermes v1, the printed circuit board in 3D

    Hermes v1

    raybello/KICAD-PCBs

    Repository for KICAD PCB Designs

    144 parts
  • 4 layers42.4 × 57 mmBLDriver, the printed circuit board in 3D

    BLDriver

    jviereck/SemiRoute

    A semi-automatic PCB router

    38 parts1
  • 4 layers70 × 50 mmPD Smart Supply, the printed circuit board in 3D

    PD Smart Supply

    JaphD/USB-C-PD-Smart-Power-Supply

    A compact STM32-controlled USB-C Power Delivery supply providing selectable 5 V, 9 V, 12 V, and 20 V outputs up to 3 A.

    73 parts

Questions

How big is the Temp transmitter pcb PCB?

It measures 49.2 × 58.9 mm and has 4 copper layers, 1.57 mm thick.

What parts does the Temp transmitter pcb use?

63 parts, built around the STM32G071CBT6, THVD2450DRB, LMR16030SDDAR and SS36. 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 Temp transmitter pcb KiCad files?

From the veskotr/temp-transmitter repository on GitHub, at the commit this page was made from: the board is pcb/temp_transmitter_pcb/temp_transmitter_pcb.kicad_pcb and its schematic pcb/temp_transmitter_pcb/Power_module.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Temp transmitter pcb design in my own project?

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