Skip to the content
4 layers100 × 100 mmLon6Main, the printed circuit board in 3D

Lon6Main

r-gal/LON_v2

This program is firmware to Home Automation Main module. Code for peripferal modules is stored in https://github.com/r-gal/LONdevices repository.

Size
100 × 100 mm
Copper layers
4
Thickness
4.69 mm
Parts
288
Nets
251
Pads
1,017
Tracks, vias
2,378, 424
Pours
6
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
26 Jun 2025
Updated
21 Oct 2025

Overview

Lon6Main is an open-source printed circuit board by r-gal, from the r-gal/LON_v2 repository on GitHub, published under the MIT licence. It is a 4-layer board of 100 × 100 mm with 288 parts on 251 nets, routed with 2,378 tracks and 424 vias.

It is built around the STM32H725ZGT6, DM9161AEP and MCP6004-E/P, with the LM2596S-5.0, MC34063AD and BC847 among its other parts. Its parts include 118 resistors, 79 capacitors, 27 diodes, 13 ICs and 13 inductors. It belongs with the STM32 boards of this library.

Main components

10

README

README.md

Overview

This program is firmware to Home Automation Main module. Code for peripferal modules is stored in https://github.com/r-gal/LON_devices repository.

Compilation

General information: Project is prepared on IDE that uses GCC compiller, files from System directory may need be adapted to other compillers. Program is prepared to use on dedicated Hardware, Schematic and PCB layout in KiCad format is available in PCB directory. Program uses 3rd party software: CMSIS, HAL libraries and FreeRTOS, in Core directory files generated in STM32CubeMX tool are stored.

  1. Clone this repository with submodules
text
git clone https://github.com/r-gal/LON_v2 --recursive
  1. Create project in your IDE and attach all files from repository

  2. Attach FreeRTOS Kernel files

text
git submodule add https://github.com/FreeRTOS/FreeRTOS-Kernel

Use source files from main directory and from correct portable. Choose correct port.c and portmacro.h files from portable directory - for STM32H725 and GCC compilator use portable\GCC\ARM_CM7\r0p1 Do not add any memory manager from portable/MemMang - Application offers own memory manager.

  1. Add preprocesor definitions:
text
USE_PWR_LDO_SUPPLY
USE_HAL_DRIVER
STM32H725xx
STM32_THREAD_SAFE_STRATEGY=5
  1. Add user include directories
text
stm32h7xx-hal-driver\Inc
cmsis-device-h7\Include
FreeRTOS-Kernel\include
FreeRTOS-Kernel\portable\GCC\ARM_CM7\r0p1
Core\Inc
Appl\Inc
Lib_Fat
Lib_Common
Lib_Ethernet
  1. Configure Memory map to use DTCM memory - see files in System directory

Method 1 - using STM32CubeMX

  1. Open myCnc2_v2.ioc in STM32CubeMX
  2. Run Generate code
  3. Add to project generated files: Core, CMSIS, HAL drivers

Method 2 - use generated files

  1. Attach CMSIS files
text
git submodule add https://github.com/STMicroelectronics/cmsis-device-h7

Add to project file startup_stm32h725xx.s 2. Attach Hal drivers

text
git submodule add https://github.com/STMicroelectronics/stm32h7xx-hal-driver

Usage

  1. Load generated software into module

Parts

288
QtyValueFootprintReferences
38100nFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC1, C2, C10, C11, C13, C15, C16, C17, C18, C20, C21, C22, C23, C24, C25, C26 +22
272k 1%Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR17, R18, R24, R29, R43, R44, R45, R46, R47, R48, R112, R113, R114, R115, R116, R117 +11
2518k 1%Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR26, R49, R50, R51, R52, R53, R54, R58, R59, R65, R118, R119, R120, R121, R122, R123 +9
191n4148Diode_SMD:D_MiniMELFD1, D3, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23 +3
160.5 1%Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR61, R62, R68, R70, R72, R73, R79, R81, R83, R84, R106, R107, R108, R109, R110, R111
1610nFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC56, C57, C59, C60, C65, C66, C67, C68, C69, C70, C75, C76, C77, C78, C79, C80
111kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R4, R5, R13, R14, R21, R22, R28, R30, R133, R134
80.5RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR35, R36, R37, R38, R39, R40, R41, R42
810kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR6, R7, R8, R10, R33, R55, R56, R60
810uF 10VCapacitor_Tantalum_SMD:CP_EIA-3528-21_Kemet-BC55, C58, C62, C63, C64, C72, C73, C74
81uH 0.8AInductor_SMD:L_1812_4532MetricL6, L7, L8, L9, L10, L11, L12, L13
74.7kResistor_SMD:R_Array_Convex_4x0603RN1, RN4, RN5, RN6, RN9, RN10, RN11
4100Resistor_SMD:R_Array_Convex_4x0603RN2, RN3, RN7, RN8
42.2uFCapacitor_Tantalum_SMD:CP_EIA-3216-18_Kemet-AC6, C9, C12, C37
450RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR11, R12, R15, R16
4PE1805C4A6Package_TO_SOT_SMD:SOT-23-6U11, U12, U13, U14
3100Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2, R3, R27
34.7kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR19, R20, R34
21.5kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR32, R138
210pFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC3, C4
222pFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC14, C19
227Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR136, R137
2330kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR139, R140
2BC847Package_TO_SOT_SMD:SOT-23Q1, Q2
2MCP6004Package_SO:SOIC-14_3.9x8.7mm_P1.27mmU9, U10
2SW_PushButton_Switch_THT:SW_PUSH_6mmSW1, SW2
2SolderJumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_TrianglePad1.0x1.5mmJP1, JP2
10Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR135
10.33RResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR31
11000uF/10VCapacitor_SMD:CP_Elec_10x10.5C51
1100uF 6.3VCapacitor_SMD:CP_Elec_6.3x5.7C50
1100uF/10vCapacitor_SMD:CP_Elec_6.3x5.9C52
1100uF/25VCapacitor_SMD:CP_Elec_6.3x5.3C44
1100uH 0.5AInductor_SMD:L_Bourns-SRU8028_8.0x8.0mmL2
1100uH 5AInductor_THT:L_Toroid_Vertical_L25.4mm_W14.7mm_P12.20mm_Vishay_TJ5_BigPadsL4
118kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR141
11N5819Diode_SMD:D_SOD-123D8
11R 1WResistor_THT:R_Axial_DIN0516_L15.5mm_D5.0mm_P5.08mm_VerticalR23
11k 1%Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR25
11uFCapacitor_SMD:C_1206_3216MetricC8
11uHInductor_SMD:L_1812_4532Metric_Pad1.30x3.40mm_HandSolderL3
122uF/6.3VCapacitor_Tantalum_SMD:CP_EIA-3528-21_Kemet-BC48
122uH 5AInductor_SMD:L_Bourns_SRR1208_12.7x12.7mmL5
125MHzCrystal:Crystal_SMD_HC49-SDY2
1330uF/35VCapacitor_SMD:CP_Elec_10x10.5C39
133kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR142
1390pFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC42
14.7uHInductor_SMD:L_1806_4516Metric_Pad1.45x1.90mm_HandSolderL1
1470uF/6.3VCapacitor_SMD:CP_Elec_6.3x5.9C46
16.8k 1%Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR9
1ACUTerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-2-5.0-H_1x02_P5.00mm_HorizontalJ5
1ACU_LEDLED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolderD2
1AC_INTerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-3-5.0-H_1x03_P5.00mm_HorizontalJ3
1ASE-xxxMHzOscillator:Oscillator_SMD_Abracon_ASE-4Pin_3.2x2.5mmX1
1B340ADiode_SMD:D_SMA_HandsolderingD9
1BD140Package_TO_SOT_THT:TO-126-3_VerticalQ3
1Battery_Cellmoje:DS-1092_CR2032_VERTICALBT1
1CANConnector_IDC:IDC-Header_2x03_P2.54mm_VerticalJ12
1Conn_01x32Connector_PinHeader_2.54mm:PinHeader_1x32_P2.54mm_VerticalJ15
1Conn_02x03_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ7
1CrystalCrystal:Crystal_AT310_D3.0mm_L10.0mm_VerticalY1
1DF01S1Diode_SMD:Diode_Bridge_OnSemi_SDIP-4LD5
1DM9161APackage_QFP:LQFP-48_7x7mm_P0.5mmU2
1EXT_ACTerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-3-5.0-H_1x03_P5.00mm_HorizontalJ6
1FR3J-DCDiode_SMD:D_SMCD7
1FerriteBead_SmallInductor_SMD:L_1206_3216Metric_Pad1.22x1.90mm_HandSolderFB1
1LED1LED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolderD50
1LED2LED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolderD51
1LED_SDLED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolderD24
1LM2596S-5Package_TO_SOT_SMD:TO-263-5_TabPin3U7
1LM317_TO-252Package_TO_SOT_SMD:TO-252-2U4
1LT1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U6
1MC34063ADPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU5
1Micro_SD_Card_DetConnector_Card:microSD_HC_Hirose_DM3D-SFJ1
1RJ45_Bel_SI-60062-FConnector_RJ:RJ45_Bel_SI-60062-FJ4
1SANYOU_SRB_Smoje:SANYOU_SRBU3
1SPI1Connector_IDC:IDC-Header_2x05_P2.54mm_VerticalJ10
1SPI2Connector_IDC:IDC-Header_2x05_P2.54mm_VerticalJ11
1STM32H725ZGT6footprints:LQFP_25ZGT6_STMU1
1SW_DIP_x02Button_Switch_THT:SW_DIP_SPSTx02_Slide_9.78x7.26mm_W7.62mm_P2.54mmSW3

The 284 most common of 288 parts.

Similar boards

  • 4 layers50.9 × 46.7 mmHybridPanda, the printed circuit board in 3D

    HybridPanda

    kriptomad/openpilot-honda-city-brasil

    openpilot/flowpilot for the Honda City G7 2023 (Brazil): black panda firmware, openpilot v0.9.9 port, flowpilot APK, Hybrid Panda STM32H725 PCB. Release index repo.

    125 parts1
  • 2 layersPcbgolf, the printed circuit board in 3D

    Pcbgolf

    chilly23/PCBGolf-master-Comma.ai

    Compact PCB studies for the comma.ai PCBGolf challenge, including KiCad and EasyEDA designs, BOMs, STEP models, and routing-status reports.

    245 partsMIT
  • 2 layers67 × 45 mmUVDAR Board, the printed circuit board in 3D

    UVDAR Board

    ctu-mrs/mrs_hw_uvdar

    Hardware for UVDAR.

    63 parts1MIT
  • 2 layers151.4 × 128.5 mmEnvelope generator, the printed circuit board in 3D

    Envelope generator

    naokiiwakami/envelope-generator

    Analog3 envelope generator

    128 partsMIT
  • 2 layers140 × 105 mmFt150ts C, the printed circuit board in 3D

    Ft150ts C

    z-XOF-z/FT150TS

    Tablero digital + launcher para Android que funciona solo con el teléfono del manubrio y está listo para una tarjeta ESP32 en la moto.

    68 parts
  • 2 layers120.1 × 46 mmGeiger EDW, the printed circuit board in 3D

    Geiger EDW

    Sidolux/geiger_counter

    Geiger Counter (STS-5) designed with KiCad

    60 parts1
  • 2 layers65.5 × 76.5 mmHeizungsregler, the printed circuit board in 3D

    Heizungsregler

    christof1977/kicad-heizungsregler

    basierend auf Raspberry Pi Zero - 10BaseT Ethernet (ENC28J60) - Schmalspur PoE: 24V Eingang über die äusseren Päärchen - Step-Down-Converter auf 5V - MBus-Interface zum Auslesen von Wärmemengenzähler - Anschluss für…

    119 parts

Questions

How big is the Lon6Main PCB?

It measures 100 × 100 mm and has 4 copper layers, 4.69 mm thick.

What parts does the Lon6Main use?

288 parts, built around the STM32H725ZGT6, DM9161AEP, MCP6004-E/P and LM2596S-5.0. 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 Lon6Main KiCad files?

From the r-gal/LON_v2 repository on GitHub, at the commit this page was made from: the board is PCB/Lon6Main.kicad_pcb and its schematic PCB/Lon6Main.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Lon6Main design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).