Skip to the content
2 layers51.3 × 26 mmStm32 first, the printed circuit board in 3D

An open-source STM32F103C8T development board with **USB-C** power input, designed in KiCad. A modern take on the classic "Blue Pill" form factor — replacing the fragile Micro-USB with a robust USB-C connector and adding ESD protection, power indication LED, and clean breakout headers.

Size
51.3 × 26 mm
Copper layers
2
Thickness
1.6 mm
Parts
33
Nets
49
Pads
149
Tracks, vias
182, 34
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
24 Sep 2026
Updated
24 Sep 2026

Overview

Stm32 first is an open-source printed circuit board by yedidia-sisay, from the yedidia-sisay/BluePill-USB-C repository on GitHub, published under the CERN-OHL-P-2.0 licence. It is a 2-layer board of 51.3 × 26 mm with 33 parts on 49 nets, routed with 182 tracks and 34 vias.

It is built around the AMS1117. Its parts include 13 capacitors, 7 resistors, 3 diodes, 3 connectors and 2 ICs. It belongs with the interfaces and adapters and microcontroller boards boards and the STM32 boards of this library.

Main components

1

README

README.md

BluePill-USB-C

An open-source STM32F103C8T development board with USB-C power input, designed in KiCad. A modern take on the classic "Blue Pill" form factor — replacing the fragile Micro-USB with a robust USB-C connector and adding ESD protection, power indication LED, and clean breakout headers.

Contributions are welcome as I am trying to build a portfolio of good hardware projects, that people can use as a reference when learning and designing there own projects.

Yedidia Sisay Semay Project · Rev V0.1

Schematic

Features

  • STM32F103C8Tx — ARM Cortex-M3 @ 72 MHz, 64 KB Flash, 20 KB SRAM
  • USB-C connector (USB 2.0, 16-pin receptacle) with proper CC resistors (5k1)
  • AMS1117-3.3 LDO regulator — 5 V → 3.3 V from USB VBUS
  • 8 MHz crystal (Y1) for HSE clock with 27 pF load capacitors
  • SWD/JTAG header (J2) — 4-pin connector for programming & debugging
  • 2× GPIO breakout headers (J3, J4) — 4-pin each, exposing I2C (SCL/SDA), USART, and general GPIO
  • Reset button (SW1, SPDT) with 10 kΩ pull-up
  • BOOT0 select via SW1 for DFU/bootloader mode
  • ESD/TVS protection — 3× TVS diodes (D1–D3) on USB data/signal lines
  • Power LED (D5) with current-limiting resistor
  • USB activity LED — R4 pull-up on USB D+ for enumeration
  • Ferrite bead (FB1) isolating analog supply (VDDA) from digital VDD
  • Comprehensive decoupling — 100 nF on every VDD pin, 10 µF bulk, 10 nF + 1 µF on analog supply

Board Layout

PCB Layout

Bill of Materials

RefValueDescriptionQty
U1STM32F103C8TxARM Cortex-M3 MCU, LQFP-481
U2AMS1117-3.33.3 V LDO voltage regulator1
J1USB_C_Receptacle_USB2.0_16PUSB Type-C receptacle1
J2Conn_01x04_PinSWD/JTAG debug header1
J3, J4Conn_01x04_PinGPIO breakout headers2
Y18 MHzCrystal oscillator (4-pin, GND)1
FB1FerriteBeadAnalog supply filter1
SW1SW_SPDTBOOT0 / Reset select switch1
C1–C4, C8, C9100 nFDecoupling capacitors6
C510 µFBulk decoupling1
C610 nFAnalog decoupling1
C71 µFAnalog decoupling1
C10, C1127 pFCrystal load capacitors2
C12, C1322 µFLDO input/output capacitors2
R110 kΩNRST pull-up1
R2, R35.1 kΩUSB-C CC pull-down resistors2
R4–R71.5 kΩLED current-limit / USB pull-up4
D1–D3D_TVSESD protection (USB lines)3
D5LEDPower indicator1

Schematic Sections

The schematic is organized into clear functional blocks:

  1. USB_C_AND_INPUT_POWER — USB-C receptacle, CC resistors, TVS protection, and USB D+/D- routing
  2. LDO_AND_LED — AMS1117-3.3 voltage regulator with input/output caps and power LED
  3. MCU_AND_CONNECTORS — STM32F103C8Tx with decoupling, crystal, reset circuit, BOOT0 switch, SWD header, and GPIO breakout

Getting Started

Prerequisites

  • KiCad 10+ to open and edit the schematic/PCB
  • STM32CubeIDE to build and flash firmware
  • An SWD debugger (ST-Link, J-Link, etc.) connected to J2

Opening the Project

bash
git clone https://github.com/yedidia-sisay/BluePill-USB-C.git
cd BluePill-USB-C

Open stm32_first.kicad_pro in KiCad to view/edit the hardware design.

Flashing

Connect an SWD debugger to the J2 header and flash via STM32CubeIDE, or use st-flash / OpenOCD from the command line.

Repository Structure

text
BluePill-USB-C/
├── stm32_first.kicad_pro        # KiCad project file
├── stm32_first.kicad_sch        # Schematic
├── stm32_first.kicad_pcb        # PCB layout
├── HRO_TYPE-C-31-M-12.step      # USB-C connector 3D model
├── images/
│   ├── schematic.svg            # Schematic export
│   └── board.svg                # PCB layout export
├── stm32/                       # Firmware project (STM32CubeIDE)
│   ├── Src/main.c               # Application entry point
│   ├── Startup/                  # ARM startup assembly
│   └── STM32F103C8TX_FLASH.ld   # Linker script
├── LICENSE                       # CERN-OHL-P-2.0
└── README.md                     # This file

Design Decisions

DecisionRationale
USB-C instead of Micro-USBMechanical durability, reversible plug, modern standard
AMS1117-3.3 LDOWidely available, cheap, sufficient current for most applications
5.1 kΩ CC resistorsRequired for USB-C to negotiate default USB power (5 V / 500 mA)
TVS diodes on USBProtect MCU from ESD events on exposed USB port
Ferrite bead on VDDAClean analog supply for ADC accuracy
8 MHz HSE crystalEnables precise 72 MHz system clock via PLL

Contributing

Contributions are welcome! Feel free to:

  • Open issues for bugs or feature requests
  • Submit pull requests with improvements
  • Fork the design for your own projects

License

This project is licensed under the CERN Open Hardware Licence Version 2 — Permissive (CERN-OHL-P v2).

See LICENSE for the full text.

You are free to use, study, modify, and distribute this design. See the licence for details.

Parts

33
QtyValueFootprintReferences
6100nCapacitor_SMD:C_0402_1005MetricC1, C2, C3, C4, C8, C9
41K5Resistor_SMD:R_0402_1005MetricR4, R5, R6, R7
3Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2, J3, J4
3D_TVSDiode_SMD:D_SOD-523D1, D2, D3
222uCapacitor_SMD:C_0603_1608MetricC12, C13
227pCapacitor_SMD:C_0402_1005MetricC10, C11
25k1Resistor_SMD:R_0402_1005MetricR2, R3
110kResistor_SMD:R_0402_1005MetricR1
110nCapacitor_SMD:C_0402_1005MetricC6
110uCapacitor_SMD:C_0603_1608MetricC5
11uCapacitor_SMD:C_0603_1608MetricC7
18MHzCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1AMS1117Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1FerriteBeadInductor_SMD:L_0603_1608MetricFB1
1LEDLED_SMD:LED_0603_1608MetricLED
1STM32F103C8TxPackage_QFP:LQFP-48_7x7mm_P0.5mmU1
1SW_SPDTButton_Switch_SMD:SW_SPDT_PCM12SW1
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12USBC

Similar boards

  • 2 layers74.4 × 51.2 mmEsp32-wroom timer, the printed circuit board in 3D

    Esp32-wroom timer

    AlessandroAU/Chorus32-ESP32LapTimer

    This is an ESP32 port of the popular Chorus RF Laptimer

    66 parts102GPL-3.0
  • 2 layers44 × 20.5 mmQrng, the printed circuit board in 3D

    Qrng

    Spooky-Manufacturing/QRNG

    Quantum Random Number Generator

    29 parts86GPL-3.0
  • 4 layers125 × 90 mmAnalog board, the printed circuit board in 3D

    Analog board

    EERNINUO/ArbWave30

    ArbWave30 – 30MHz 任意波形发生器 | FPGA + 高速DAC | SCPI 可控

    295 parts53GPL-3.0
  • 2 layers100 × 45 mmTranspOtterNG, the printed circuit board in 3D

    TranspOtterNG

    Jana-Marie/transpOtterNG

    Next Generation of TranspOtter.

    63 parts51
  • 2 layers85 × 56 mmBasicengine, the printed circuit board in 3D

    Basicengine

    uli/basicengine-pcb

    Schematics and PCB layout for the BASIC Engine home computer

    115 parts48
  • 2 layers230 × 116 mmCvocd banana, the printed circuit board in 3D

    Cvocd banana

    hotchk155/cvocd.a

    176 parts38
  • 2 layers22 × 71 mmCircut, the printed circuit board in 3D

    Circut

    larry-wong/tiny_sensor

    基于 ESP32-S3 的温湿度 / 光照 / 人体存在传感器和红外发射器。

    18 parts34
  • 2 layers89.6 × 79 mmTDR 5351 core, the printed circuit board in 3D

    TDR 5351 core

    MR-DOS/TDR_diploma_thesis

    Time domain reflectometer. Includes Hardware, firmware and GUI in Octave. Also a diploma thesis.

    199 parts33GPL-3.0

Questions

How big is the Stm32 first PCB?

It measures 51.3 × 26 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Stm32 first use?

33 parts, built around the AMS1117. 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 Stm32 first KiCad files?

From the yedidia-sisay/BluePill-USB-C repository on GitHub, at the commit this page was made from: the board is stm32_first.kicad_pcb and its schematic stm32_first.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Stm32 first design in my own project?

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