
Skateboard
86kkd/millionBoard
Amazing 500million sensor enetric skateboard use body center of gravity to control !!!

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…
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.
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.
.
|-- 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.mdThe project fetches the HSS STM32 framework from:
https://github.com/veskotr/stm32-baremetal-frameworkThe configured tag is:
0.6.0 commit 6f4283f4528c2af430c4bed222983aba019fc634The tag and repository URL are cache variables, so they can be overridden during configure:
cmake -S . -B build/debug -G Ninja \
-DCMAKE_TOOLCHAIN_FILE=cmake/arm-gcc-toolchain.cmake \
-DHSS_FRAMEWORK_GIT_TAG=6f4283f4528c2af430c4bed222983aba019fc634 \
-DCMAKE_BUILD_TYPE=DebugThe 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.
arm-none-eabi-gccThe default preset builds the Blue Pill board:
cmake --preset Debug
cmake --build --preset DebugRelease uses the same board with a release build type:
cmake --preset Release
cmake --build --preset ReleaseBuild artifacts are written to the selected build directory:
temp_transmitter.elftemp_transmitter.bintemp_transmitter.hextemp_transmitter.mapThe 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.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.
The default board is blue_pill_temp_transmitter. Select a different board with TEMP_TRANSMITTER_BOARD and use a separate build directory per board:
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/g0Current board folders:
| Board | MCU | Notes |
|---|---|---|
blue_pill_temp_transmitter | STM32F103C8Tx | Default 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_transmitter | STM32G071KBTx | Builds, but the Modbus timer and status LED roles are still TODOs in board_roles.cmake. |
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:
cmake --build build/debug --target hss_sync_boardsIf CubeMX adds or removes source files, reconfigure once after sync so CMake reloads the generated manifest:
cmake -S . -B build/debugGenerated board files include:
board_manifest.cmakegenerated/board_config.hgenerated/board_glue.cboard_roles.cmake, created only if missing and safe to editFor the default Debug build:
cmake --build build/debug --target flash_temp_transmitterThe framework also generates openocd_temp_transmitter for launching OpenOCD without flashing.
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:
| Address | Value |
|---|---|
| 0 | Device status bitfield |
| 1 | Live fault bits |
| 2 | Latched fault bits |
| 3/4 | Temperature as signed s32, scale 0.01 C, MSW/LSW |
| 5/6 | RTD resistance as u32, scale 0.001 ohm, MSW/LSW |
| 7/8 | Temperature as optional IEEE754 float32 |
| 9/10 | Resistance as optional IEEE754 float32 |
| 11/12 | Raw RTD conversion value |
| 13 | Measurement age in milliseconds |
| 14 | Internal 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.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 13 | 100n | Capacitor_SMD:C_0603_1608Metric | C2, C3, C8, C9, C10, C11, C12, C13, C14, C15, C16, C19, C24 |
| 4 | 1u | Capacitor_SMD:C_0603_1608Metric | C20, C21, C22, C23 |
| 4 | MountingHole | MountingHole:MountingHole_2.2mm_M2 | H1, H2, H3, H4 |
| 3 | 1k | Resistor_SMD:R_0603_1608Metric | R9, R10, R11 |
| 3 | LED | LED_SMD:LED_0603_1608Metric | D4, D5, D6 |
| 2 | 10k | Resistor_SMD:R_0603_1608Metric | R1, R7 |
| 2 | 15 | Resistor_SMD:R_0603_1608Metric | R4, R5 |
| 2 | 18p | Capacitor_SMD:C_0603_1608Metric | C17, C18 |
| 2 | 47u | Capacitor_THT:CP_Radial_D6.3mm_P2.50mm | C5, C6 |
| 2 | 56k | Resistor_SMD:R_0603_1608Metric | R2, R3 |
| 2 | SS36 | Diode_SMD:D_SMA | D1, D2 |
| 2 | TPS7A20xxxDBV | Package_TO_SOT_SMD:SOT-23-5 | U3, U4 |
| 1 | 100k | Resistor_SMD:R_0603_1608Metric | R8 |
| 1 | 10n | Capacitor_SMD:C_0603_1608Metric | C1 |
| 1 | 10u | Capacitor_SMD:C_0805_2012Metric | C7 |
| 1 | 2.2u | Capacitor_SMD:C_0603_1608Metric | C4 |
| 1 | 33u | Inductor_SMD:L_6.3x6.3_H3 | L1 |
| 1 | 430 | Resistor_SMD:R_0603_1608Metric | R6 |
| 1 | BOOT | TestPoint:TestPoint_2Pads_Pitch2.54mm_Drill0.8mm | JP1 |
| 1 | Conn_01x03_Pin | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J8 |
| 1 | Conn_01x05_Pin | Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Vertical | J7 |
| 1 | Conn_01x08_Socket | Connector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_Vertical | J6 |
| 1 | Crystal_GND24 | Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm | Y1 |
| 1 | LMR16030SDDAR | Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.29x3mm | U2 |
| 1 | MAX31865xTP | Package_DFN_QFN:TQFN-20-1EP_5x5mm_P0.65mm_EP3.25x3.25mm | U6 |
| 1 | Power_in | Connector_Phoenix_MC:PhoenixContact_MC_1,5_2-G-3.5_1x02_P3.50mm_Horizontal | J1 |
| 1 | Power_in_2 | Connector_Phoenix_MC:PhoenixContact_MC_1,5_2-G-3.5_1x02_P3.50mm_Horizontal | J2 |
| 1 | RESET | TestPoint:TestPoint_2Pads_Pitch2.54mm_Drill0.8mm | JP2 |
| 1 | RS-485 | Connector_Phoenix_MC:PhoenixContact_MC_1,5_2-G-3.5_1x02_P3.50mm_Horizontal | J4 |
| 1 | RS-485-2 | Connector_Phoenix_MC:PhoenixContact_MC_1,5_2-G-3.5_1x02_P3.50mm_Horizontal | J3 |
| 1 | RTD_IN | Connector_Phoenix_MC:PhoenixContact_MC_1,5_4-G-3.5_1x04_P3.50mm_Horizontal | J5 |
| 1 | SM712_SOT23 | Package_TO_SOT_SMD:SOT-23 | D3 |
| 1 | STM32G071CBT6 | Package_QFP:LQFP-48_7x7mm_P0.5mm | U1 |
| 1 | THVD2450DR | PCM_JLCPCB:SOIC-8_3.9x4.9mm_P1.27mm | U5 |

86kkd/millionBoard
Amazing 500million sensor enetric skateboard use body center of gravity to control !!!

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


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




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.
It measures 49.2 × 58.9 mm and has 4 copper layers, 1.57 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask veskotr before reusing the design.