Skip to the content
2 layers30 × 40 mmSwanStab V1 Mod, the printed circuit board in 3D

SwanStab V1 Mod là mạch cân bằng bay nhỏ gọn, tối ưu cho máy bay cánh bằng (Fixed-wing / Swan / VTOL) và mô hình RC. Mạch tích hợp vdk STM32F103, cảm biến chuyển động 6 trục Bosch BMI160, 6 kênh điều khiển động cơ/servo và các cổng giao tiếp chuẩn cho bộ thu sóng RC (ELRS, CRSF, SBUS)

Size
30 × 40 mm
Copper layers
2
Thickness
1.6 mm
Parts
31
Nets
49
Pads
135
Tracks, vias
199, 44
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
1 Sep 2026
Updated
1 Sep 2026

Overview

SwanStab V1 Mod is an open-source printed circuit board by kappyphm, from the kappyphm/SwanStabilizer-FlightStabilizer repository on GitHub, published under the MIT licence. It is a 2-layer board of 30 × 40 mm with 31 parts on 49 nets, routed with 199 tracks and 44 vias.

It is built around the AMS1117-3.3 and BMI160. Its parts include 11 capacitors, 6 connectors, 3 resistors, 3 ICs and 2 switches. It belongs with the STM32 boards of this library.

Main components

2

README

README.md

SwanStab V1 Mod

License: MIT Hardware: KiCad 10 MCU: STM32F103C8 IMU: BMI160

SwanStab V1 Mod là mạch cân bằng bay (Flight Stabilizer / Flight Controller) nhỏ gọn, tối ưu cho máy bay cánh bằng (Fixed-wing / Swan / VTOL) và mô hình RC. Mạch tích hợp vi điều khiển STM32F103, cảm biến chuyển động 6 trục Bosch BMI160, 6 kênh điều khiển động cơ/servo và các cổng giao tiếp chuẩn cho bộ thu sóng RC (ELRS, CRSF, SBUS).


📌 Thông số kỹ thuật phần cứng (Hardware Specifications)

Thành phầnChi tiết
Vi điều khiển (MCU)STM32F103C8T6 (ARM Cortex-M3 @ 72MHz, 64KB Flash, 20KB SRAM, LQFP-48)
Cảm biến chuyển động (IMU)Bosch BMI160 6-DoF (3-axis Gyroscope + 3-axis Accelerometer, giao tiếp I2C)
Thạch anh dao động8 MHz SMD Crystal (3225-4Pin)
Nguồn cấp hệ thống5V DC qua cổng JST-XH (J9) hoặc qua nguồn BEC trên hàng rào Servo
Hạ áp (LDO)AMS1117-3.3V (SOT-223) cấp nguồn 3.3V cho MCU và cảm biến
Ngõ ra điều khiển6 kênh chuẩn Servo 2.54mm (2 Motor ESC + 4 Servo)
Cổng giao tiếp2x UART (UART1 cho Telemetry/Debug, UART2/RC cho Receiver)
Cổng nạp & DebugSWD Pads (VCC, GND, SWDIO, SWCLK)
Kích thước PCB30.0 mm x 40.0 mm (2 lớp, độ dày 1.6 mm)
Nút bấm & Chỉ báoNút Reset (RST), Nút Bootloader (BOOT0), Đèn LED trạng thái (ST_LED)

🔌 Sơ đồ chân & Kết nối (Pinout & Interfaces)

1. Ngõ ra Motor & Servo (3x6 Pin Header 2.54mm)

Hàng rào chân ngõ ra được bố trí chuẩn 3 chân: Tín hiệu (~) / Nguồn (+ / BEC) / Mass (- / GND).

KênhKý hiệu SilkscreenSTM32 PinChức năng khuyến nghị
CH1M1PB6 / PA8Điều khiển động cơ 1 (Motor 1 / ESC)
CH2M2PB7 / PA9Điều khiển động cơ 2 (Motor 2 / ESC)
CH3S1PB0 / PA0Servo 1 (Aileron / Cánh liệng)
CH4S2PB1 / PA1Servo 2 (Elevator / Cánh đuôi ngang)
CH5S3PA2Servo 3 (Rudder / Cánh đuôi đứng)
CH6S4PA3Servo 4 (Flaps / Aux / Cánh tà)

2. Cổng truyền thông (UART Headers 1x04 P2.54mm)

  • J7 (UART1 - Debug / Telemetry):
    • Pin 1: VCC (3.3V / 5V)
    • Pin 2: TX1 (PA9)
    • Pin 3: RX1 (PA10)
    • Pin 4: GND
  • J8 (UART2 / RC Receiver):
    • Pin 1: VCC (5V / BEC)
    • Pin 2: RC_TX (PA2)
    • Pin 3: RC_RX (PA3)
    • Pin 4: GND

3. Cảm biến BMI160 (I2C Bus)

  • SCL: PB8 / PB10 (I2C Clock)
  • SDA: PB9 / PB11 (I2C Data)

4. Giao tiếp nạp SWD & Nút bấm

  • SWD Test Points (TP1 - TP4):
    • TP1: VCC (3.3V)
    • TP2: GND
    • TP3: SWDIO (PA13)
    • TP4: SWCLK (PA14)
  • Nút bấm: SW1 (NRST), SW2 (BOOT0).
  • LED trạng thái: D2 (PC13 hoặc chân GPIO chỉ định).

🛠 Hướng dẫn phát triển Firmware (PlatformIO / Arduino)

Dự án có thể lập trình dễ dàng với PlatformIO (VS Code) hoặc Arduino IDE sử dụng Arduino Core for STM32 (STM32duino).

Cấu hình platformio.ini mẫu:

ini
[env:genericSTM32F103C8]
platform = ststm32
board = genericSTM32F103C8
framework = arduino

; Upload qua ST-Link (SWD Test Points)
upload_protocol = stlink
debug_tool = stlink

; Hoặc nạp qua UART Bootloader (chân TX1/RX1)
; upload_protocol = serial
; upload_port = /dev/ttyUSB0

; Thư viện hỗ trợ cảm biến BMI160
lib_deps =
    dfrobot/DFRobot_BMI160@^1.0.0
    ; Hoặc thư viện BMI160 tương đương

📂 Cấu trúc thư mục (Repository Structure)

text
├── Model/
│   └── SwanStab_V1_Mod.step           # Mô hình 3D STEP hoàn chỉnh của PCB
├── production/                        # Dữ liệu phục vụ gia công & lắp ráp (JLCPCB ready)
│   ├── SwanStab_V1_Mod.zip           # File Gerber nén
│   ├── bom.csv                       # Bill of Materials (BOM)
│   ├── positions.csv                 # Tọa độ gắp linh kiện (CPL / Pick & Place)
│   ├── designators.csv               # Danh sách tên linh kiện
│   └── netlist.ipc                   # IPC-D-356 netlist
├── SwanStab_V1_Mod.kicad_pro          # File quản lý dự án KiCad
├── SwanStab_V1_Mod.kicad_sch          # Sơ đồ nguyên lý (Schematic)
├── SwanStab_V1_Mod.kicad_pcb          # Thiết kế mạch in (PCB Layout)
├── fabrication-toolkit-options.json  # Cấu hình xuất file sản xuất KiCad
├── .gitignore                         # Bộ lọc file tạm cho KiCad
└── README.md                          # Tài liệu hướng dẫn dự án

🏭 Gia công và Sản xuất (Manufacturing)

Thư mục production/ đã được tạo tự động bằng KiCad Fabrication Toolkit và sẵn sàng để đặt hàng sản xuất tại JLCPCB hoặc các nhà máy gia công PCB:

  1. Gerbers: Tải file production/SwanStab_V1_Mod.zip lên trang đặt hàng PCB.
  2. SMT Assembly (Lắp ráp linh kiện):
    • BOM: production/bom.csv
    • CPL: production/positions.csv

📄 Bản quyền (License)

Dự án được phát hành dưới giấy phép MIT License.

Parts

31
QtyValueFootprintReferences
5100nCapacitor_SMD:C_0603_1608MetricC1, C2, C3, C4, C7
210kResistor_SMD:R_0603_1608MetricR2, R7
210uCapacitor_SMD:C_0603_1608MetricC11, C12
222pCapacitor_SMD:C_0603_1608MetricC5, C6
247uCapacitor_Tantalum_SMD:CP_EIA-3216-18_Kemet-AC13, C14
11.5kResistor_SMD:R_0603_1608MetricR5
18MHzCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U3
1BMI160Custom_Module:BMI160_Module_SMD_1U2
1BOOTButton_Switch_SMD:SW_SPST_PTS810SW2
1CLKTestPoint:TestPoint_Pad_D1.5mmTP4
1DIOTestPoint:TestPoint_Pad_D1.5mmTP3
1GConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ4
1GNDTestPoint:TestPoint_Pad_D1.5mmTP2
1LEDLED_SMD:LED_1206_3216MetricD2
1PWRConnector_JST:JST_XH_S2B-XH-A-1_1x02_P2.50mm_HorizontalJ9
1RSTButton_Switch_SMD:SW_SPST_PTS810SW1
1SConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ3
1STM32F103C8TxPackage_QFP:LQFP-48_7x7mm_P0.5mmU1
1UART1Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ7
1UART2Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ8
1VConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ1
1VCCTestPoint:TestPoint_Pad_D1.5mmTP1

Similar boards

  • 2 layers59.1 × 99.9 mmCheap FOCer 2 60mm, the printed circuit board in 3D

    Cheap FOCer 2 60mm

    shamansystems/Cheap-FOCer-2

    Low-Cost Motor Controller based on the VESC 6

    193 parts407
  • 4 layers95.6 × 59.9 mmFlight computer rocketry, the printed circuit board in 3D

    Flight computer rocketry

    Himanshukohale22/Flight_control_controller_V1.2

    Hardware files for universal flight controller for small UAV's.

    145 parts1MIT
  • 2 layers41 × 22 mmUECG rev4, the printed circuit board in 3D

    UECG rev4

    ultimaterobotics/uECG_v4_3_all

    uECG - very small wearable ECG device that sends raw and processed data over BLE

    69 parts77MIT
  • 4 layers38.1 × 25.4 mmOpenHAK 03, the printed circuit board in 3D

    OpenHAK 03

    OpenHAK/OpenHAK_Hardware

    Opensource Health Activity Kit Hardware files

    51 parts56
  • 4 layers73.4 × 72.7 mmAwatch2, the printed circuit board in 3D

    Awatch2

    jwise/aWatch2-hw

    hardware for aWatch2

    177 parts18
  • 2 layers64.8 × 62 mmSensor, the printed circuit board in 3D

    Sensor

    chukhanhhoang/SoftRoboticSetupFesto

    Code for Raspberry Pi and Matlab/Simulink

    89 parts14
  • 2 layers81.7 × 372 mmUEggMG v3b, the printed circuit board in 3D

    UEggMG v3b

    ultimaterobotics/uEMG

    uEMG project

    80 parts14MIT
  • 2 layers40 × 78 mmHardware v2, the printed circuit board in 3D

    Hardware v2

    rmingon/Falcon-Edge

    A 3D-printable flying-wing airframe with a custom ESP32 flight computer—open hardware you can solder, screw together, and fly.

    56 parts11

Questions

How big is the SwanStab V1 Mod PCB?

It measures 30 × 40 mm and has 2 copper layers, 1.6 mm thick.

What parts does the SwanStab V1 Mod use?

31 parts, built around the AMS1117-3.3 and BMI160. 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 SwanStab V1 Mod KiCad files?

From the kappyphm/SwanStabilizer-FlightStabilizer repository on GitHub, at the commit this page was made from: the board is SwanStab_V1_Mod.kicad_pcb and its schematic SwanStab_V1_Mod.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the SwanStab V1 Mod 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).