

- Size
- 120.9 × 119 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 130
- Nets
- 110
- Pads
- 452
- Tracks, vias
- 66, 0
- Pours
- 4
- Routed
- Yes
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 10 Mar 2025
- Updated
- 18 Sep 2025
Overview
Train1 is an open-source printed circuit board by nguyentrungthao, from the nguyentrungthao/kicad_example repository on GitHub. It is a 2-layer board of 120.9 × 119 mm with 130 parts on 110 nets, routed with 66 tracks and 0 vias.
It is built around the ESP32-WROOM-32E, HLK-10M05 and XL1509-5.0E1, with the AMS1117-3.3, G5NB-1A-E DC5 and 10D561K among its other parts. Its parts include 36 resistors, 33 capacitors, 11 ICs, 7 diodes and 6 transistors. It belongs with the ESP32 boards of this library.
Main components
8ESP32-WROOM-32E
SMD,18x25.5mmSMD,18x25.5mm WiFi Modules ROHSEspressif SystemsWiFi ModulesHLK-10M05
DIP,46.9x27.8mm100mVp-p 10W 2.2A 21.8mm 3kV 46.9mm 5V 70V~350V 85VAC~264VAC AC/DC-DC Short Circuit Protection、Over Current Protection DIP,46.9x27.8mm AC-DC Power Modules ROHSHI-LINKAC-DC Power ModulesXL1509-5.0E1
SOIC-8-40℃~+85℃ 1 150kHz 2A 2mA 4.5V~40V 5V Buck Buck Built-in Fixed No SOIC-8 DC-DC Converters ROHSXLSEMIDC-DC ConvertersAMS1117-3.3
SOT-223-40℃~+125℃ 0.003%Vout 1 1.1V@(800mA) 15V 1A 3.3V 5mA 72dB@(120Hz) Fixed Over Current Protection、Short Circuit Protection、Thermal shutdown Positive SOT-223 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSAdvanced Monolithic SystemsVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsG5NB-1A-E DC5
插件,20.4x7mm-40℃~+85℃ 1 Set Normally Open: 1A (SPST NO) 100mΩ 10ms 10ms 125Ω 200mW 30V@DC、250V@AC 3A@30VDC、5A@250VAC 4 5A 5V Non-Polarized - Single Coil Silver Alloy (Cd-Free) 插件,20.4x7mm Power Relays ROHSOmronPower Relays10D561K
插件,P=7.5mm180pF@1kHz 2.5kA 350V 460V 504V~616V 70J 925V 插件,P=7.5mm Varistors ROHSSURGINGVaristorsCR1220-2
--40~80℃ Battery base CR1220 Phosphor bronze - Battery holder base ROHSQ&JButton And Strip Battery ConnectorSS54-SMAF
SMAF-55℃~+150℃ 1 Independent 120A 40V 50uA@40V 5A 700mV@5A SMAF Schottky Diodes ROHSShunYeSchottky Diodes
README
README.mdKiến thức thiết kế sơ đồ nguyên lý
- Kiến thức cơ bản về điện tử: Playlist YouTube
- Kiến thức về các chuẩn giao tiếp của MCU: I2C, SPI, UART
- Kiến thức về nguồn:
- Mạch lọc EMI: Video YouTube
- Nguồn (Switching Power Supply): Video YouTube
- Nguồn xung Buck (Buck Converter): Video YouTube
KICAD
Setup phần mềm cài plugin JLC và IBOM
IBOM:
JLCPCB:
- GitHub JLCPCB Plugin
- Link điền ở mục 4: '''https://raw.githubusercontent.com/Bouni/bouni-kicad-repository/main/repository.json'''

Thiết kế phần cứng
- $${\color{red} NHỚ ĐỌC TÀI LIỆU CỦA LINH KIỆN TRƯỚC KHI VẼ}$$
Hướng dẫn thêm thư viện IoTVision vào KICAD
Thư viện có sẵn
- Vào KICAD.
- Chọn Preferences → Configure Paths.
- Thêm đường dẫn thư viện:
- 3D: Thêm alias như IOTVISION_3D và trỏ đường dẫn đến thư mục 3D step.
- Symbols: Thêm alias như IOTVISION_SYMBOL_DIR và trỏ đường dẫn đến thư mục symbols.
- Footprints: Thêm alias như IOTVISION_FOOTPRINT_DIR và trỏ đường dẫn đến thư mục footprints.
- Nhấn OK.
- Quản lý thư viện:
- Preferences → Manage Symbol Libraries → Global Libraries.
- Thêm IVS_SYMBOLS và đường dẫn thư viện Symbols.kicad_sym.
- Quản lý Footprint Libraries:
- Thêm IVS_FOOTPRINTS và đường dẫn IVSFootprint.pretty.
Lưu ý: Nếu mở PCB Editor hoặc Footprint Editor, bạn sẽ không thấy Manage Symbol Libraries.
Tải 3D và Footprint
- Tìm footprint <tên linh kiện> + hoặc <tên linh kiện> +
- Tìm 3D <tên linh kiện> + <3D> hoặc <Tên linh kiện> +
Tải 3D:
Tải Footprint:
-
Video add thư viện: Hướng dẫn cài thư viện
-
video tìm add thư viện ngoài Tải thư viện ngoài - phút 12
-
Thư viện cũ của LAB: IoTVision
-
Thư viện riêng của Tác giả KicadLIB
Schematic
- Lấy linh kiện.
- Định nghĩa Bus I2C, SPI, Bus số (Demo vẽ insert).
- Sử dụng Netclass (định nghĩa class, màu mè cho class).
- Thêm hình ảnh vào Schematic.
- Thêm Footprint cho linh kiện.
- Thêm giá trị linh kiện.
- Vẽ Schematic:
- Đối với những bạn mới, nên thêm Solder Jumper để hạn chế cháy linh kiện.
- Thêm mã BOM cho JLC, Thế Giới IC, IC Đầy Rối.
- Xuất BOM.
- Xuất PDF.
Các bước khác:
- Sửa và cập nhật symbol.
- Exclude linh kiện khỏi BOM.
- Xuất symbol vào thư viện riêng.
PCB Design
- Thêm thư viện vào PCB.
- Cấu hình board setup:
- Thêm/xóa các lớp (4 lớp, 6 lớp).
- Cấu hình chữ, Designed Rules.
- Cấu hình kích thước track, via, các netclass.
- Vẽ viền board (đúng mm hoặc nhập file DXF).
- Vẽ kích thước board, kích thước vị trí lỗ ốc.
- Tạo grid tùy chỉnh.
- Cắt board tạo khoảng trống cách ly.
- Update SCH sang PCB.
- Sửa footprint trực tiếp.
- Layout linh kiện:
- Xếp theo chụp các linh kiện, dùng các lệnh sắp xếp linh kiện.
- Đặt connecter theo vỏ hộp từ đó đặt các linh kiện còn lại.
- Chia vùng điện áp, vùng phủ đồng và giải thích các lựa chọn phủ đồng: thermal => sold, zone priority.
- Dùng clearance và giải thích.
- Rọc lớp đồng để phủ chì.
- Sắp xếp tinh các linh kiện theo sơ đồ nguyên lý.
- Đi dây:
- Đi dây vi sai.
- Hướng dẫn matching length.
- Tính trở kháng đường dây.
- Thêm các via GND.
- Thêm teardrop.
- Xếp chữ ghi, chữ nổi đậm, edit font chữ nhanh thêm thông tin, logo.
- Chạy DRC kiểm lỗi.
- Xuất STEP.
- Xuất PDF.
- Xuất GERBER.
- Xuất CPL.
- Update file lên JLC để review.
Một số lỗi
- Viền board không nhận => chạy DRC sửa vị trí đỏ.
Danh sách phát video kicad Kicad play list
HÀN MẠCH
- Học hàn, khò với thiết hàn cuộn và kem chì.
- Học cách tháo connector.
DO NGUỘI
- Đo thông mạch nguồn, các đường tín hiệu trước khi cắm điện.
LẬP TRÌNH TEST MẠCH
- Test nạp code ESP32 => nếu không tự động nạp được, xem lại mạch nút nhấn BOOT và RESET của ESP32.
- Viết code test từng module trên PCB.
Project Mẫu
- STM32F103 Đồ án môn học - PID Lò nhiệt
- projet mẫu mạch mẫu theo link học tập của Thầy TS.Nguyễn Văn Thái
- Link bài học của Thầy Nguyễn Văn Thái Bài Giảng
Parts
130| Qty | Value | Footprint | References |
|---|---|---|---|
| 13 | 1K/0603/5% | trainFootprint:C_0603 | R1, R4, R6, R8, R9, R11, R13, R15, R19, R26, R29, R34, R35 |
| 12 | 100nF/0603/50V | trainFootprint:C_0603 | C7, C8, C15, C17, C19, C21, C22, C23, C24, C27, C28, C30 |
| 12 | RED/0603 | trainFootprint:LED_0603 | LE1, LE2, LE3, LE4, LE5, LE6, LE7, LE8, LE9, LE12, LE13, LE14 |
| 11 | 10K/0603/5% | trainFootprint:C_0603 | R3, R10, R12, R14, R16, R18, R23, R28, R30, R31, R36 |
| 8 | 10uF/0603/6.3V | trainFootprint:C_0603 | C6, C9, C11, C25, C26, C29, C32, C33 |
| 7 | 1uF/0603/50V | trainFootprint:C_0603 | C10, C12, C13, C14, C16, C18, C20 |
| 5 | SI2300/SOT23-3 | trainFootprint:SOT23-3 | Q1, Q2, Q3, Q4, Q5 |
| 4 | 1N4007/SOD-123 | trainFootprint:D_SOD-123 | D5, D6, D7, D8 |
| 4 | 200R/0603/5% | trainFootprint:C_0603 | R5, R17, R20, R27 |
| 4 | EL357N-G/SOP-4 | trainFootprint:OPTO_EL357N-G | U5, U6, U8, U9 |
| 4 | G5NB-1A-E_DC5 | trainFootprint:Relay_G5NB-1A-E DC5 | RL1, RL2, RL3, RL4 |
| 2 | 0.1uF/275VAC | trainFootprint:C_Rect_L16.5mm_W5.0mm_P15.00mm_MKT | C1, C3 |
| 2 | 100K/0603/5% | trainFootprint:C_0603 | R2, R7 |
| 2 | 10nF/1000V | trainFootprint:C_Rect_L7.0mm_W2.0mm_P5.00mm | C2, C4 |
| 2 | 3.3V/SOD-123 | trainFootprint:D_SOD-123 | Z1, Z2 |
| 2 | 4.7K/0603/5% | trainFootprint:C_0603 | R32, R33 |
| 2 | RTC_DS3231M | trainFootprint:SOIC-16W_7.5x10.3mm_P1.27mm | IC1, IC2 |
| 2 | USB_A_Stacked | trainFootprint:USB_A_Wuerth_61400826021_Horizontal_Stacked | J2, J4 |
| 2 | tactileSW/4.2x3.3 | trainFootprint:SW_SPST_PTS810 | SW1, SW2 |
| 1 | 0.9-1.2A/1812/24V | trainFootprint:Fuse_1812_4532Metric | F2 |
| 1 | 10D561 | trainFootprint:RV_Disc_D12mm_W5.8mm_P7.5mm | RV1 |
| 1 | 10K | trainFootprint:C_0603 | R37 |
| 1 | 10mH/UU9.8 | trainFootprint:ACFilterChokeUU9.8 | FL1 |
| 1 | 10nF/0603/50V | trainFootprint:C_0603 | C31 |
| 1 | 1N4148/SOD323 | trainFootprint:D_SOD323 | D3 |
| 1 | 20K | trainFootprint:C_0603 | R38 |
| 1 | 220uF/6.3x7.7/6.3V | trainFootprint:CP_Elec_6.3x7.7 | C5 |
| 1 | 300mA/250VAC | trainFootprint:RV_Disc_D12mm_W3.9mm_P7.5mm | F1 |
| 1 | 4.7K/0603/1% | trainFootprint:C_0603 | R22 |
| 1 | 68uH 2A/10.4x10.4 | trainFootprint:L_10.4x10.4_H4.8 | L1 |
| 1 | 9.1K/0603/1% | trainFootprint:C_0603 | R21 |
| 1 | ACS712ELCTR-20A-T/SOIC-8 | trainFootprint:SOIC-8_3.9x4.9mm_P1.27mm | U4 |
| 1 | AMS1117-3.3 | trainFootprint:SOT-223-3_TabPin2 | U2 |
| 1 | BAT54C/SOT23-3 | trainFootprint:SOT23-3 | D4 |
| 1 | Buzzer | trainFootprint:Buzzer_12x9.5RM7.6 | BZ1 |
| 1 | CR1220 | trainFootprint:BatteryHolder_CR1220 | BT1 |
| 1 | DC5521/2.1mm | trainFootprint:BarrelJack_Wuerth_6941xx301002 | J1 |
| 1 | ESP32-WROOM-32E | trainFootprint:ESP32-WROOM-32E | U10 |
| 1 | HB9500-6P | trainFootprint:TerminalBlock_Screw_HB9500_6P_P9.5mm | J3 |
| 1 | HLK-10M05 | trainFootprint:ACDC_HLK10M05 | PS1 |
| 1 | MiSD-PP-9P-V1 | trainFootprint:MicroSD_Socket_9P | J6 |
| 1 | MountingHole_Pad | trainFootprint:MountingHole_3.2mm_M3_Pad_Via | H1 |
| 1 | PCF8574/SOIC-16W | trainFootprint:SOIC-16W_7.5x10.3mm_P1.27mm | U3 |
| 1 | SI2301/SOT23-3 | trainFootprint:SOT23-3 | Q6 |
| 1 | SS54/SMA | trainFootprint:D_SMA | D2 |
| 1 | TestPoint | trainFootprint:TestPoint_Pad_D1.0mm | TP1 |
| 1 | XL1509-5.0E1 | trainFootprint:SOIC-8_3.9x4.9mm_P1.27mm | U1 |
| 1 | header-2.54mm-7p | trainFootprint:PinHeader_1x07_P2.54mm_Vertical | J5 |
| 1 | power select | trainFootprint:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mm_NumberLabels | JP2 |
Similar boards
- 2 layers43.6 × 39.5 mm

- 2 layers151 × 118 mm

- 2 layers193.3 × 111.3 mm

- 2 layers180.9 × 110 mm

Saunasteuerung ESP Home
Technolitix/Sauna-Contoller
Standalone sauna controller running ESPHome, compatible with Home Assistant for smart temperature, timer, and lighting control.
103 partsMIT - 2 layers116 × 55 mm

Reflow
Greentalinjo/GreenToaster
A reflow oven controller: RP2040, PT100 RTD, touchscreen profile editor, feed-forward + PID with automatic oven calibration, and a sealed 3D-printed mains enclosure.
8 parts - 4 layers50 × 50 mm

Power supply
nakoyonioka/PSU
This repository contains the design files for a regulated power supply circuit featuring multiple voltage regulation stages, overcurrent detection, and output control.
78 parts - 2 layers115 × 78 mm

- 4 layers75.2 × 99.5 mm

FOC
nordstream3/FOC
Date | Manufacturer | amount | includes | shipping & tax | price | -------- | -------- | -------- | -------- | -------- | -------- | 2024-01-17 | JLCPCB | 10 boards | All assembled excl fets and caps | YES, to EU |…
261 parts81
Questions
How big is the Train1 PCB?
It measures 120.9 × 119 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Train1 use?
130 parts, built around the ESP32-WROOM-32E, HLK-10M05, XL1509-5.0E1 and AMS1117-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 Train1 KiCad files?
From the nguyentrungthao/kicad_example repository on GitHub, at the commit this page was made from: the board is train1/train1.kicad_pcb and its schematic train1/ESP32.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Train1 design in my own project?
Its repository states no licence, so its author keeps all rights: ask nguyentrungthao before reusing the design.
