Skip to the content
2 layers36.3 × 38.1 mmStm32pcb, the printed circuit board in 3D

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

1

README

README.md

STM32F103CBTx 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.

MCUSTM32F103CBTx (Cortex-M3, LQFP48)
Layers2
InterfacesUSB (Micro-USB), USART, SWD, I2C
Revision0.1
StatusIn development

Table of Contents

  1. Overview
  2. Features
  3. Hardware Description
  4. Schematic
  5. PCB Layout
  6. Connector Pinout
  7. Power Supply
  8. Manufacturing Specification (JLCPCB)
  9. Getting Started
  10. Repository Structure
  11. Bill of Materials
  12. Revision History
  13. 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

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.

PCB Layout

3D Render

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)

PinSignal
1SWDIO
2GND
3SWCLK
43.3V

USART Header (4-pin)

PinSignal
1GND
2RX
3TX
43.3V

I2C Header (4-pin)

PinSignal
1GND
2SCL
3SDA
43.3V

USB (Micro-USB)

PinSignal
VBUS5V input
D-PA11
D+PA12
GNDGND

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

ParameterValue
Input5 V, via Micro-USB VBUS
RegulatorAMS1117-3.3 (U1)
Output3.3 V regulated rail
IndicatorRed LED (D1) with series resistor
FilteringInput/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.

ParameterValue Used
Layers2
Minimum trace width / spacing6 mil (0.153 mm)
Minimum drill size0.3 mm
Minimum annular ring0.13 mm (5 mil)
Minimum via0.3 mm drill / 0.6 mm pad
Board thickness1.6 mm (standard)
Copper weight1 oz
Surface finishHASL 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

  1. Power: Connect a Micro-USB cable to supply 5 V to the board.
  2. 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.
  3. Programming via bootloader: Set BOOT0 high, reset the board, and flash via the STM32 system bootloader (USB DFU or UART, depending on wiring).
  4. Serial communication: Use the USART header (TX/RX, 3.3 V logic) for UART-based debugging or communication.
  5. I2C peripherals: Connect external I2C devices to the I2C header (SDA, SCL, 3.3V, GND).

10. Repository Structure

text
.
├── 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
└── LICENSE

The 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

ReferenceComponentDescription
U1AMS1117-3.33.3 V LDO regulator
U2STM32F103CBTxLQFP48 microcontroller
Y1CrystalHSE oscillator, with load capacitors C11/C12
D1LED (red)Power indicator
FB1Ferrite beadVDDA supply filtering
—Decoupling capacitorsDistributed across VDD/VDDA per ST reference design
—Micro-USB connectorUSB power and data
—Tactile switchesRESET 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

RevisionDateNotes
0.12026-07-29Initial release

13. License

This project is released under the MIT License.


Author: Waqar

Parts

32
QtyValueFootprintReferences
5100nCapacitor_SMD:C_0402_1005MetricC4, C5, C6, C7, C10
4MountingHoleMountingHole:MountingHole_2.2mm_M2H1, H2, H3, H4
3Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ2, J3, J4
210pCapacitor_SMD:C_0402_1005MetricC11, C12
21k5Resistor_SMD:R_0402_1005MetricR1, R3
21uCapacitor_SMD:C_0402_1005MetricC2, C3
222uCapacitor_SMD:C_0805_2012MetricC8, C9
22K2Resistor_SMD:R_0402_1005MetricR4, R5
1100RInductor_SMD:L_0603_1608MetricFB1
110kResistor_SMD:R_0402_1005MetricR2
110nCapacitor_SMD:C_0603_1608MetricC1
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U1
1Crystal_GND24Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1LOGOLOGOG***
1REDLED_SMD:LED_0603_1608MetricD1
1STM32F103C8TxPackage_QFP:LQFP-48_7x7mm_P0.5mmU2
1SW_SPDTButton_Switch_SMD:SW_SPDT_PCM12SW1
1USB_B_MicroConnector_USB:USB_Micro-B_Wuerth_629105150521J1

Similar boards

  • 2 layers290.1 × 130 mmPro V2, the printed circuit board in 3D

    Pro V2

    kata0510/Lily58

    6×4+4keys column-staggered split keyboard.

    312 parts2.3k
  • 2 layers26.2 × 45.5 mmPL18 multiprotocol, the printed circuit board in 3D

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

    PSLab

    fossasia/pslab-hardware

    PSLab Hardware Design and Schematics https://pslab.io

    199 parts1.7kApache-2.0
  • 4 layers85 × 56 mmPslab mini, the printed circuit board in 3D

    Pslab mini

    fossasia/pslab-mini-hardware

    PSLab Mini Hardware https://pslab.io

    182 parts1.2kApache-2.0
  • 4 layers100 × 54 mm32Bit shift register, the printed circuit board in 3D

    32Bit shift register

    MaltWhiskey/Mega-Cube

    16x16x16 PL9823 Cube with Teensy 4.0 and FlexIO driver

    64 parts766
  • 2 layers44.2 × 29.3 mmI2c tiny usb, the printed circuit board in 3D

    I2c tiny usb

    harbaum/I2C-Tiny-USB

    Cheap and simple I²C to USB interface

    27 parts454
  • 2 layers78 × 60 mmIce viz, the printed circuit board in 3D

    Ice viz

    muni-works/vcad

    BRep CAD kernel in Rust/WASM

    44 parts442Apache-2.0
  • 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

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).