Kicad model train control
fanningert·kicad_model_train_control·pcb_core/project.kicad_pcb
About the Kicad model train control PCB
Kicad model train control is an open source ESP32 PCB design by fanningert, published on GitHub. It is a 2-layer board measuring 212.3 × 91.7 mm, with 99 components from 16 distinct parts.
Its main chip is the esp32, from the ESP32 family. Other key parts include the DRV8871DDA. By type, the board carries 34 capacitors, 23 connectors, 21 ICs, 17 resistors and 3 diodes.
It belongs with the iot & wireless designs in this gallery.
From the project
A simple control for a analog model train. Changes are only made on my private Git-Server and are pushed to GitHub. Issues on Github are wellcome.
Control unit for analog model trains, based on ESPHome. A Home Assistant instance is used for visualization and control. This board is stackable up to 64 boards and every board has 16 outputs (3 pin). The Voltage is limited on the outputs per ESPHome template. It comes in three variants, but all variants are the same boards. Only some components are not placed.

Main components on the Kicad model train control
Kicad model train control bill of materials (BOM)
99 components, 16 distinct parts.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 16 | DRV8871DDA | SOIC127P600X170-9N | IC1, IC3, IC5, IC6, IC7, IC8, IC9, IC10 +8 |
| 1 | ~ | esp32 | U1 |
| 1 | ~ | voltage_protection | U2 |
| 2 | ~ | ioexpander | U4, U5 |
| 1 | ~ | i2cmultiplexer | U6 |
| 6 | PCBConnector | TestPoint_THTPad_D3.0mm_Drill1.5mm | J1, J20, J21, J22, J25, J27 |
| 1 | 1725656 | 1725656 | J2 |
| 16 | 1053131103 | 105313YY03 | J3, J4, J5, J6, J7, J8, J9, J10 +8 |
| 1 | PQQ10W-Q24-S3-S | PQQ10WQ24S3S | PS1 |
| 2 | SML-012P8TT86 GREEN LED | LED_1206_3216Metric_Pad1.42x1.75mm_HandSolder | D2, D6 |
| 1 | CMJ2000 TR PBFREE ~ | D_SOD-123F | D5 |
| 16 | Capacitor, 0.1uF, 50V, 0805 SMD 0.1uF | C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C6, C10, C13, C15, C17, C19, C21, C23 +8 |
| 17 | Polarized Capacitor, 22.0uF, 63V, D6.3xL7.7 SMD 22uF | CP_Elec_6.3x7.7 | C7, C12, C14, C16, C18, C20, C22, C24 +9 |
| 1 | FZ47UF35V90RV0124 47uF | CP_Elec_6.3x7.7 | C42 |
| 16 | 30k | R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R8, R18, R21, R24, R27, R30, R33, R36 +8 |
| 1 | 56 | R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R23 |
Kicad model train control design files
The KiCad project lives in the fanningert/kicad_model_train_control repository on GitHub; these links point at the commit this page was built from.
- Layoutpcb_core/project.kicad_pcb
- Schematicpcb_core/project.kicad_sch
Kicad model train control: common questions
What microcontroller does the Kicad model train control use?
The Kicad model train control is built around the esp32, from the ESP32 family.
How big is the Kicad model train control PCB?
The Kicad model train control measures 212.3 × 91.7 mm, has 2 copper layers and is 1.6 mm thick.
How many components are on the Kicad model train control?
99 components, from 16 distinct parts. The full bill of materials is listed on this page.
Where can I download the Kicad model train control design files?
From the fanningert/kicad_model_train_control repository on GitHub, which has the KiCad layout and the schematic; the links under Design files point to each one.
Can I use the Kicad model train control design in my own project?
The repository has no license, so all rights stay with fanningert. Use it as a reference, and ask the author before reusing the design.
Can I test firmware for the Kicad model train control without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug ESP32 firmware against it before you order a PCB.
Similar boards
ESP32
Open Book Abridged Edition
joeycastillo
85 × 115 mm65 parts2LCC-BY-SA-4.08.1kESP32
Badge
atopile
56.3 × 39 mm239 parts4LMIT4.0kESP32
Esp32 minimal
atopile
36.2 × 26.8 mm20 parts2LMIT4.0kESP32
Racer
StuckAtPrototype
36 × 50.2 mm70 parts4LApache-2.03.8kESP32
Controller
StuckAtPrototype
29 × 74 mm58 parts4LApache-2.03.8kESP32
Bitaxe
skot
56.5 × 99.8 mm86 parts4LCERN-OHL-S-2.01.4k