

Stm32pcb
Schematic , PCB , 3D and gerber files - Designed for JLCPCB rules
- Size
- 36.3 × 38.1 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 32
- Nets
- 50
- Pads
- 130
- Tracks, vias
- 200, 25
- Pours
- 4
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 29 Jul 2026
- Updated
- 29 Jul 2026
Overview
Stm32pcb is an open-source printed circuit board by Waqar-98, from the Waqar-98/stm32f103-usb-devboard repository on GitHub, published under the MIT licence. It is a 2-layer board of 36.3 × 38.1 mm with 32 parts on 50 nets, routed with 200 tracks and 25 vias.
It is built around the AMS1117-3.3. Its parts include 12 capacitors, 5 resistors, 4 connectors, 2 ICs and 1 diode. It belongs with the STM32 boards of this library.
Main components
1README
README.mdSTM32F103CBTx PCB
A compact carrier/development board for the STM32F103CBTx microcontroller (ARM Cortex-M3, LQFP48 package), featuring USB power and communication, SWD debug access, and USART/I2C breakout headers. The board is designed for manufacture at JLCPCB using their standard two-layer prototype process.
| MCU | STM32F103CBTx (Cortex-M3, LQFP48) |
| Layers | 2 |
| Interfaces | USB (Micro-USB), USART, SWD, I2C |
| Revision | 0.1 |
| Status | In development |
Table of Contents
- Overview
- Features
- Hardware Description
- Schematic
- PCB Layout
- Connector Pinout
- Power Supply
- Manufacturing Specification (JLCPCB)
- Getting Started
- Repository Structure
- Bill of Materials
- Revision History
- License
1. Overview
This repository contains the schematic, PCB layout, and manufacturing files for a minimal STM32F103CBTx development board. The design provides USB-powered 3.3 V regulation, an HSE crystal oscillator, standard debug/programming access via SWD, and header breakouts for USART and I2C peripherals. It is intended as a reusable base board for embedded projects built around the STM32F103 series.
2. Features
- STM32F103CBTx microcontroller (Cortex-M3, LQFP48)
- Micro-USB connector for 5 V power input and USB D+/D- signal routing (PA11/PA12)
- On-board 3.3 V regulation via AMS1117-3.3 linear regulator, with power-on LED indicator
- External HSE crystal (Y1) with associated load capacitors
- Reset push-button with pull-up and decoupling
- BOOT0 control (switch/jumper) for entering the system bootloader
- 4-pin SWD header for debugging and firmware programming
- 4-pin USART header for serial communication
- 4-pin I2C header for peripheral connectivity
- Ferrite bead (FB1) filtering on the VDDA analog supply rail
- Four mounting holes for enclosure or standoff installation
- Two-layer PCB compatible with JLCPCB standard prototyping capabilities
3. Hardware Description
The schematic is organized into two functional sections:
Power Supply 5 V is supplied from the Micro-USB VBUS line and regulated to 3.3 V by an AMS1117-3.3 linear regulator (U1). Input and output decoupling capacitors are placed adjacent to the regulator, and a red LED (D1) with a current-limiting resistor provides a visual power-on indication.
Microcontroller and USB The STM32F103CBTx (U2) is supported by an HSE crystal oscillator (Y1) with load capacitors, a reset circuit (push-button, pull-up resistor, and decoupling capacitor), and a BOOT0 pull-down with a switch to force bootloader entry. The VDD and VDDA supply pins are decoupled per standard ST reference design practice, with a ferrite bead isolating the VDDA analog rail. USB D+/D- lines are routed from the Micro-USB connector to PA11/PA12, with a pull-up resistor on D+ for USB full-speed device enumeration. General-purpose I/O is broken out to labeled 2.54 mm pitch headers for USART, SWD, and I2C.
4. Schematic

5. PCB Layout
The board is a two-layer design with top-layer routing shown below. Connectors (USART, SWD, USB, I2C) are placed along the board edges for external access, while the microcontroller, crystal, and decoupling capacitors are centrally located to minimize trace length on clock and power-critical nets.

3D Render

6. Connector Pinout
Pin assignments below are derived from the schematic and PCB silkscreen. Verify against the source design files prior to integration.
SWD Header (4-pin)
| Pin | Signal |
|---|---|
| 1 | SWDIO |
| 2 | GND |
| 3 | SWCLK |
| 4 | 3.3V |
USART Header (4-pin)
| Pin | Signal |
|---|---|
| 1 | GND |
| 2 | RX |
| 3 | TX |
| 4 | 3.3V |
I2C Header (4-pin)
| Pin | Signal |
|---|---|
| 1 | GND |
| 2 | SCL |
| 3 | SDA |
| 4 | 3.3V |
USB (Micro-USB)
| Pin | Signal |
|---|---|
| VBUS | 5V input |
| D- | PA11 |
| D+ | PA12 |
| GND | GND |
BOOT0
A switch or jumper pulls BOOT0 high to force the STM32 into the system bootloader (for USB or UART DFU flashing). BOOT0 should remain low for normal boot from flash memory.
7. Power Supply
| Parameter | Value |
|---|---|
| Input | 5 V, via Micro-USB VBUS |
| Regulator | AMS1117-3.3 (U1) |
| Output | 3.3 V regulated rail |
| Indicator | Red LED (D1) with series resistor |
| Filtering | Input/output bulk and decoupling capacitors; ferrite bead (FB1) isolating VDDA |
8. Manufacturing Specification (JLCPCB)
The PCB was designed to comply with JLCPCB's standard two-layer prototyping design rules.
| Parameter | Value Used |
|---|---|
| Layers | 2 |
| Minimum trace width / spacing | 6 mil (0.153 mm) |
| Minimum drill size | 0.3 mm |
| Minimum annular ring | 0.13 mm (5 mil) |
| Minimum via | 0.3 mm drill / 0.6 mm pad |
| Board thickness | 1.6 mm (standard) |
| Copper weight | 1 oz |
| Surface finish | HASL or ENIG (ENIG recommended for the LQFP48 fine-pitch footprint) |
| Outline tolerance | ±0.2 mm |
These values reflect JLCPCB's standard capability limits at the time of design and should be reconfirmed against the current JLCPCB capabilities documentation prior to fabrication, as fab-house design rules are subject to change.
9. Getting Started
- Power: Connect a Micro-USB cable to supply 5 V to the board.
- Programming via SWD: Connect an ST-Link or compatible debug probe to the 4-pin SWD header and flash using STM32CubeProgrammer, OpenOCD, or an equivalent toolchain.
- Programming via bootloader: Set BOOT0 high, reset the board, and flash via the STM32 system bootloader (USB DFU or UART, depending on wiring).
- Serial communication: Use the USART header (TX/RX, 3.3 V logic) for UART-based debugging or communication.
- I2C peripherals: Connect external I2C devices to the I2C header (SDA, SCL, 3.3V, GND).
10. Repository Structure
.
├── docs/
│ └── images/
│ ├── schematic.png
│ ├── pcb-layout.png
│ └── pcb-3d-render.png
├── hardware/
│ ├── kicad/ # Native KiCad project (open Stm32pcb.kicad_pro here)
│ │ ├── Stm32pcb.kicad_pro
│ │ ├── Stm32pcb.kicad_sch
│ │ ├── Stm32pcb.kicad_pcb
│ │ ├── Stm32pcb.kicad_prl
│ │ ├── stm32pcb.kicad_dru
│ │ └── Stm32pcb-backups/ # Automatic KiCad project backups
│ ├── gerbers/ # Fabrication-ready Gerber, drill, pick-and-place, and job files
│ ├── step/ # Exported 3D STEP model of the assembled board
│ └── bom.csv # Bill of materials for assembly
├── libraries/ # Reference 3D-model downloads not used by the current design
├── README.md
└── LICENSEThe schematic and PCB live together under hardware/kicad/ because KiCad expects the .kicad_pro, .kicad_sch, and .kicad_pcb files to sit in the same directory to open correctly; splitting them into separate folders would break the project.
11. Bill of Materials
| Reference | Component | Description |
|---|---|---|
| U1 | AMS1117-3.3 | 3.3 V LDO regulator |
| U2 | STM32F103CBTx | LQFP48 microcontroller |
| Y1 | Crystal | HSE oscillator, with load capacitors C11/C12 |
| D1 | LED (red) | Power indicator |
| FB1 | Ferrite bead | VDDA supply filtering |
| — | Decoupling capacitors | Distributed across VDD/VDDA per ST reference design |
| — | Micro-USB connector | USB power and data |
| — | Tactile switches | RESET and BOOT0 |
| — | Pin headers (4-pin, ×3) | USART, SWD, I2C |
The table above is a summary; the exported CAD bill of materials with quantities and footprints is included as hardware/bom.csv. Add manufacturer part numbers and LCSC/Digi-Key codes to that file before ordering JLCPCB SMT assembly.
12. Revision History
| Revision | Date | Notes |
|---|---|---|
| 0.1 | 2026-07-29 | Initial release |
13. License
This project is released under the MIT License.
Author: Waqar
Parts
32| Qty | Value | Footprint | References |
|---|---|---|---|
| 5 | 100n | Capacitor_SMD:C_0402_1005Metric | C4, C5, C6, C7, C10 |
| 4 | MountingHole | MountingHole:MountingHole_2.2mm_M2 | H1, H2, H3, H4 |
| 3 | Conn_01x04_Pin | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J2, J3, J4 |
| 2 | 10p | Capacitor_SMD:C_0402_1005Metric | C11, C12 |
| 2 | 1k5 | Resistor_SMD:R_0402_1005Metric | R1, R3 |
| 2 | 1u | Capacitor_SMD:C_0402_1005Metric | C2, C3 |
| 2 | 22u | Capacitor_SMD:C_0805_2012Metric | C8, C9 |
| 2 | 2K2 | Resistor_SMD:R_0402_1005Metric | R4, R5 |
| 1 | 100R | Inductor_SMD:L_0603_1608Metric | FB1 |
| 1 | 10k | Resistor_SMD:R_0402_1005Metric | R2 |
| 1 | 10n | Capacitor_SMD:C_0603_1608Metric | C1 |
| 1 | AMS1117-3.3 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U1 |
| 1 | Crystal_GND24 | Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm | Y1 |
| 1 | LOGO | LOGO | G*** |
| 1 | RED | LED_SMD:LED_0603_1608Metric | D1 |
| 1 | STM32F103C8Tx | Package_QFP:LQFP-48_7x7mm_P0.5mm | U2 |
| 1 | SW_SPDT | Button_Switch_SMD:SW_SPDT_PCM12 | SW1 |
| 1 | USB_B_Micro | Connector_USB:USB_Micro-B_Wuerth_629105150521 | J1 |
Similar boards
- 2 layers290.1 × 130 mm

- 2 layers26.2 × 45.5 mm

PL18 multiprotocol
pascallanger/DIY-Multiprotocol-TX-Module
Multiprotocol TX Module (or MULTI-Module) is a 2.4GHz transmitter module which controls many different receivers and models.
24 parts1.9kGPL-3.0 - 4 layers99 × 53.3 mm

PSLab
fossasia/pslab-hardware
PSLab Hardware Design and Schematics https://pslab.io
199 parts1.7kApache-2.0 - 4 layers85 × 56 mm

- 4 layers100 × 54 mm

32Bit shift register
MaltWhiskey/Mega-Cube
16x16x16 PL9823 Cube with Teensy 4.0 and FlexIO driver
64 parts766 - 2 layers44.2 × 29.3 mm

- 2 layers78 × 60 mm

- 2 layers59.1 × 99.9 mm

Cheap FOCer 2 60mm
shamansystems/Cheap-FOCer-2
Low-Cost Motor Controller based on the VESC 6
193 parts407
Questions
How big is the Stm32pcb PCB?
It measures 36.3 × 38.1 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Stm32pcb use?
32 parts, built around the 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 Stm32pcb KiCad files?
From the Waqar-98/stm32f103-usb-devboard repository on GitHub, at the commit this page was made from: the board is hardware/kicad/Stm32pcb.kicad_pcb and its schematic hardware/kicad/Stm32pcb.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Stm32pcb 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).