Skip to the content
2 layers120.9 × 119 mmTrain1, the printed circuit board in 3D
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

8

README

README.md

Kiế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:

KICAD

Setup phần mềm cài plugin JLC và IBOM

IBOM:

JLCPCB:


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
  1. Vào KICAD.
  2. Chọn Preferences → Configure Paths.
  3. 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.
  4. Nhấn OK.
  5. 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.
  6. 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:

Schematic
  1. Lấy linh kiện.
  2. Định nghĩa Bus I2C, SPI, Bus số (Demo vẽ insert).
  3. Sử dụng Netclass (định nghĩa class, màu mè cho class).
  4. Thêm hình ảnh vào Schematic.
  5. Thêm Footprint cho linh kiện.
  6. Thêm giá trị linh kiện.
  7. 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.
  8. Thêm mã BOM cho JLC, Thế Giới IC, IC Đầy Rối.
  9. Xuất BOM.
  10. 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
  1. Thêm thư viện vào PCB.
  2. 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.
  3. Vẽ viền board (đúng mm hoặc nhập file DXF).
  4. Vẽ kích thước board, kích thước vị trí lỗ ốc.
  5. Tạo grid tùy chỉnh.
  6. Cắt board tạo khoảng trống cách ly.
  7. Update SCH sang PCB.
  8. Sửa footprint trực tiếp.
  9. 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.
  10. Xếp chữ ghi, chữ nổi đậm, edit font chữ nhanh thêm thông tin, logo.
  11. Chạy DRC kiểm lỗi.
  12. Xuất STEP.
  13. Xuất PDF.
  14. Xuất GERBER.
  15. Xuất CPL.
  16. 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

Parts

130
QtyValueFootprintReferences
131K/0603/5%trainFootprint:C_0603R1, R4, R6, R8, R9, R11, R13, R15, R19, R26, R29, R34, R35
12100nF/0603/50VtrainFootprint:C_0603C7, C8, C15, C17, C19, C21, C22, C23, C24, C27, C28, C30
12RED/0603trainFootprint:LED_0603LE1, LE2, LE3, LE4, LE5, LE6, LE7, LE8, LE9, LE12, LE13, LE14
1110K/0603/5%trainFootprint:C_0603R3, R10, R12, R14, R16, R18, R23, R28, R30, R31, R36
810uF/0603/6.3VtrainFootprint:C_0603C6, C9, C11, C25, C26, C29, C32, C33
71uF/0603/50VtrainFootprint:C_0603C10, C12, C13, C14, C16, C18, C20
5SI2300/SOT23-3trainFootprint:SOT23-3Q1, Q2, Q3, Q4, Q5
41N4007/SOD-123trainFootprint:D_SOD-123D5, D6, D7, D8
4200R/0603/5%trainFootprint:C_0603R5, R17, R20, R27
4EL357N-G/SOP-4trainFootprint:OPTO_EL357N-GU5, U6, U8, U9
4G5NB-1A-E_DC5trainFootprint:Relay_G5NB-1A-E DC5RL1, RL2, RL3, RL4
20.1uF/275VACtrainFootprint:C_Rect_L16.5mm_W5.0mm_P15.00mm_MKTC1, C3
2100K/0603/5%trainFootprint:C_0603R2, R7
210nF/1000VtrainFootprint:C_Rect_L7.0mm_W2.0mm_P5.00mmC2, C4
23.3V/SOD-123trainFootprint:D_SOD-123Z1, Z2
24.7K/0603/5%trainFootprint:C_0603R32, R33
2RTC_DS3231MtrainFootprint:SOIC-16W_7.5x10.3mm_P1.27mmIC1, IC2
2USB_A_StackedtrainFootprint:USB_A_Wuerth_61400826021_Horizontal_StackedJ2, J4
2tactileSW/4.2x3.3trainFootprint:SW_SPST_PTS810SW1, SW2
10.9-1.2A/1812/24VtrainFootprint:Fuse_1812_4532MetricF2
110D561trainFootprint:RV_Disc_D12mm_W5.8mm_P7.5mmRV1
110KtrainFootprint:C_0603R37
110mH/UU9.8trainFootprint:ACFilterChokeUU9.8FL1
110nF/0603/50VtrainFootprint:C_0603C31
11N4148/SOD323trainFootprint:D_SOD323D3
120KtrainFootprint:C_0603R38
1220uF/6.3x7.7/6.3VtrainFootprint:CP_Elec_6.3x7.7C5
1300mA/250VACtrainFootprint:RV_Disc_D12mm_W3.9mm_P7.5mmF1
14.7K/0603/1%trainFootprint:C_0603R22
168uH 2A/10.4x10.4trainFootprint:L_10.4x10.4_H4.8L1
19.1K/0603/1%trainFootprint:C_0603R21
1ACS712ELCTR-20A-T/SOIC-8trainFootprint:SOIC-8_3.9x4.9mm_P1.27mmU4
1AMS1117-3.3trainFootprint:SOT-223-3_TabPin2U2
1BAT54C/SOT23-3trainFootprint:SOT23-3D4
1BuzzertrainFootprint:Buzzer_12x9.5RM7.6BZ1
1CR1220trainFootprint:BatteryHolder_CR1220BT1
1DC5521/2.1mmtrainFootprint:BarrelJack_Wuerth_6941xx301002J1
1ESP32-WROOM-32EtrainFootprint:ESP32-WROOM-32EU10
1HB9500-6PtrainFootprint:TerminalBlock_Screw_HB9500_6P_P9.5mmJ3
1HLK-10M05trainFootprint:ACDC_HLK10M05PS1
1MiSD-PP-9P-V1trainFootprint:MicroSD_Socket_9PJ6
1MountingHole_PadtrainFootprint:MountingHole_3.2mm_M3_Pad_ViaH1
1PCF8574/SOIC-16WtrainFootprint:SOIC-16W_7.5x10.3mm_P1.27mmU3
1SI2301/SOT23-3trainFootprint:SOT23-3Q6
1SS54/SMAtrainFootprint:D_SMAD2
1TestPointtrainFootprint:TestPoint_Pad_D1.0mmTP1
1XL1509-5.0E1trainFootprint:SOIC-8_3.9x4.9mm_P1.27mmU1
1header-2.54mm-7ptrainFootprint:PinHeader_1x07_P2.54mm_VerticalJ5
1power selecttrainFootprint:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mm_NumberLabelsJP2

Similar boards

  • 2 layers43.6 × 39.5 mmIlosuno, the printed circuit board in 3D

    Ilosuno

    dimsumlabs/dsl-lights-v2-ilosuno

    47 partsBSD-3-Clause
  • 2 layers151 × 118 mmOBQAS, the printed circuit board in 3D

    OBQAS

    diminDDL/OBQAS

    Open Battery Quantification and Analysis System

    204 parts1MIT
  • 2 layers193.3 × 111.3 mmGATEWAY HARDWARE V1, the printed circuit board in 3D

    GATEWAY HARDWARE V1

    kori-thespirit/LoraGatewayDevelopment

    224 partsMIT
  • 2 layers180.9 × 110 mmSaunasteuerung ESP Home, the printed circuit board in 3D

    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 mmReflow, the printed circuit board in 3D

    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 mmPower supply, the printed circuit board in 3D

    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
  • 4 layers75.2 × 99.5 mmFOC, the printed circuit board in 3D

    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.