Skip to the content
PCBKitNew board
2 layers42.5 × 38.5 mmSTM32 pcd, the printed circuit board in 3D

STM32-based development board designed using KiCad, featuring schematic design, PCB layout and routing, power regulation, clock circuitry, USB connectivity, and manufacturing file generation.

Size
42.5 × 38.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
32
Nets
50
Pads
132
Tracks, vias
260, 6
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
27 Oct 2026
Updated
27 Oct 2026

Overview

STM32 pcd is an open-source printed circuit board by dishasingla5, from the dishasingla5/STM32-PCB-Design repository on GitHub. It is a 2-layer board of 42.5 × 38.5 mm with 32 parts on 50 nets, routed with 260 tracks and 6 vias.

It is built around the STM32F103C8T6 and AMS1117-3.3. Its parts include 13 capacitors, 5 resistors, 4 connectors, 2 ICs and 1 diode. It belongs with the microcontroller boards boards and the STM32 boards of this library.

Main components

2

README

README.md

STM32-Based PCB Design Using KiCad

1. Project Overview

This project involves the schematic design, PCB layout, routing, and manufacturing preparation of an STM32-based development board using KiCad. The design follows a structured hardware development workflow, from selecting electronic components to generating fabrication files for PCB manufacturing.

The project focuses on understanding microcontroller hardware design, power regulation, clock circuitry, USB connectivity, PCB routing, and design verification.

2. Hardware Design Theory

2.1 STM32 Microcontroller

The STM32 microcontroller acts as the central processing unit of the board. It executes firmware and provides interfaces for communication, debugging, and peripheral control.

The surrounding circuitry must provide stable power, a suitable clock source, correct boot configuration, and access to programming and debugging interfaces.

2.2 Power Supply and Voltage Regulation

The board uses an AMS1117-3.3 linear voltage regulator to convert a 5 V USB supply into a nominal 3.3 V supply for the microcontroller and other circuitry.

Input and output capacitors support regulator stability and help reduce supply-voltage fluctuations. The regulator's current capacity and power dissipation must be checked against the total circuit load.

The approximate power dissipated as heat by a linear regulator is:

[ P_{\text{loss}}=(V_{\text{in}}-V_{\text{out}})I_{\text{load}} ]

This power dissipation must be considered when evaluating thermal performance.

2.3 Decoupling Capacitors

Decoupling capacitors are placed close to the microcontroller's power pins to provide local charge during rapid changes in current demand. They also help reduce high-frequency noise on the supply rails.

Small ceramic capacitors are commonly used for high-frequency decoupling, while larger bulk capacitors support slower changes in load current.

Short connections between the power pins, capacitors, and ground help minimize parasitic inductance and improve power integrity.

2.4 Clock and Crystal Circuit

The crystal circuit provides an external clock reference for the microcontroller. The crystal and its associated load capacitors must be selected according to the microcontroller requirements and the crystal manufacturer's specifications.

The crystal and its load capacitors should be placed close to the relevant oscillator pins. Their traces should be short, and unnecessary routing near noisy signals should be avoided to reduce interference.

2.5 USB Interface

The USB interface provides a connection for communication and, where supported by the design, power input.

USB data lines connect the USB connector to the microcontroller's USB peripheral. For full-speed USB, the differential data pair should be routed together with consistent geometry and minimal unnecessary stubs.

The connector, protection components where required, and signal routing should follow the applicable microcontroller and USB hardware guidelines.

2.6 Reset, Boot Configuration, and Debugging

The reset circuit allows the microcontroller to restart reliably. Boot configuration determines the source from which the microcontroller starts executing code.

A boot-selection switch can provide control over the boot configuration. A Serial Wire Debug (SWD) interface provides access for programming and debugging firmware using compatible tools.

Unused pins should be handled according to the microcontroller datasheet and circuit requirements.

3. Schematic Design

The schematic represents the electrical connections between components before PCB layout begins.

The schematic design workflow includes:

  • Selecting the microcontroller and supporting components.
  • Connecting power and ground nets.
  • Adding decoupling, clock, reset, and communication circuitry.
  • Adding net labels and component reference designators.
  • Assigning appropriate PCB footprints.
  • Running the Electrical Rules Checker (ERC).

ERC helps identify electrical connectivity and pin-type issues. Its warnings must be reviewed in the context of the actual circuit.

4. PCB Layout and Routing

4.1 Component Placement

Component placement affects signal integrity, power distribution, thermal performance, and manufacturability.

Decoupling capacitors should be placed close to the relevant power pins. Crystal components should be positioned near the oscillator pins. Connectors should be accessible, and components should be arranged to support short, practical routing paths.

4.2 Copper Layers and Ground Plane

A two-layer PCB typically uses front copper (F.Cu) and back copper (B.Cu) for signal and power connections.

A continuous ground plane, where practical, provides low-impedance return paths and helps reduce electromagnetic interference. Ground connections and vias should be arranged to preserve return-current paths.

4.3 Signal and Power Routing

Signal routing connects components according to the schematic nets. Critical signals should have short, direct paths where practical.

Power traces must be sized for their expected current, temperature rise, and manufacturing constraints. USB differential signals require particular attention to routing geometry and continuity.

Routing should respect the manufacturer's minimum trace widths, clearances, drill sizes, and other fabrication limits.

5. Design Rule Checking

KiCad's Design Rules Checker (DRC) checks the PCB against configured electrical and physical constraints.

Typical checks include:

  • Unconnected copper and unrouted nets.
  • Clearance violations between copper features.
  • Minimum track width and drill constraints.
  • Footprint and board-layout issues.

DRC results should be reviewed rather than blindly accepted or ignored. The schematic and PCB should also be checked for consistency before manufacturing.

6. Manufacturing File Generation

After finalizing the layout, manufacturing outputs are generated for fabrication and assembly.

  • Gerber files: Describe individual copper, solder mask, silkscreen, and board-outline layers.
  • Drill files: Specify the locations and sizes of drilled holes and vias.
  • Bill of Materials (BOM): Lists the components and their quantities.
  • Component Placement List (CPL): Provides component positions and orientations for automated assembly.

Before submitting the files, verify that the board outline is correct, the required layers are exported, the drill files match the design, and the outputs correspond to the final saved PCB revision.

7. Tools Used

  • KiCad: Schematic capture, PCB layout, routing, and manufacturing output generation.
  • STM32CubeIDE: Firmware development and debugging, where applicable.
  • Gerber and drill-file viewers: Inspection of manufacturing outputs.

8. Learning Outcomes

This project provides practical experience in:

  • Translating a microcontroller circuit into a PCB layout.
  • Understanding power regulation, decoupling, clock circuitry, and USB connectivity.
  • Selecting component footprints and evaluating physical constraints.
  • Routing signal and power nets on a two-layer PCB.
  • Performing ERC and DRC checks.
  • Generating manufacturing files for PCB fabrication and assembly.

9. Project Status

The KiCad schematic and PCB design files, along with the generated manufacturing outputs, are organized in the project repository.

Generating manufacturing files does not by itself establish that the PCB is electrically correct or has been validated through physical testing. The design should be reviewed for electrical and layout errors before fabrication and tested after assembly.

STM32-PCB-Design

STM32-PCB-Design

STM32-PCB-Design

Parts

32
QtyValueFootprintReferences
5100nCapacitor_SMD:C_0402_1005MetricC4, C5, C6, C7, C11
41k5Resistor_SMD:R_0402_1005MetricR1, R3, R4, R5
4MountingHoleMountingHole:MountingHole_2.2mm_M2H1, H2, H3, H4
3Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical_SMD_Pin1RightJ1, J2, J3
210pCapacitor_SMD:C_0402_1005MetricC12, C13
21uCapacitor_SMD:C_0402_1005MetricC9, C10
222uCapacitor_SMD:C_0805_2012MetricC1, C2
110kResistor_SMD:R_0402_1005MetricR2
110nCapacitor_SMD:C_0402_1005MetricC8
110uCapacitor_SMD:C_0603_1608MetricC3
116MHzCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U1
1FerriteBeadInductor_SMD:L_0603_1608MetricFB1
1STM32F103C8T6Package_QFP:LQFP-48_7x7mm_P0.5mmU2
1SW_SPDTButton_Switch_SMD:SW_SPDT_PCM12SW1
1USB_B_MicroConnector_USB:USB_Micro-B_Wuerth_629105150521J4
1redLED_SMD:LED_0603_1608MetricD1

Questions

How big is the STM32 pcd PCB?

It measures 42.5 × 38.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the STM32 pcd use?

32 parts, built around the STM32F103C8T6 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 STM32 pcd KiCad files?

From the dishasingla5/STM32-PCB-Design repository on GitHub, at the commit this page was made from: the board is STM32_PCB/STM32 pcd.kicad_pcb and its schematic STM32_PCB/STM32 pcd.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the STM32 pcd design in my own project?

Its repository states no licence, so its author keeps all rights: ask dishasingla5 before reusing the design.

Similar boards

  • 2 layers68 × 40 mmStm32-io extend, the printed circuit board in 3D

    Stm32-io extend

    hardenedlinux/cheap-pcb

    Cheap PCB: Better understanding the current status of hardware supply chain

    44 parts170CC0-1.0
  • 2 layers99.1 × 58.4 mmHEAT, the printed circuit board in 3D

    HEAT

    milar111/HEAT

    An open-source STM32 SMD assembly station for precision soldering. Uses a custom Smart Pulse & Coast algorithm to drive 400W mains heaters via SSR. Features OLED UI, NTC feedback, and safety cooling.

    57 parts9
  • 2 layers71.3 × 25.4 mmUSB DALI, the printed circuit board in 3D

    USB DALI

    even-notodd/USB-DALI

    USB-DALI interface converter

    43 parts4
  • 2 layers78 × 60 mmDC Motor Controller, the printed circuit board in 3D

    DC Motor Controller

    minhle4397/Line-Follower-Robot-v2

    Improved Hardware and Firmware for Line Follower Robot

    53 parts3
  • 4 layers36 × 36 mmTrackMAG, the printed circuit board in 3D

    TrackMAG

    mupfdev/TrackMAG

    An open hardware development board primarily intended for the development of accessible input devices.

    58 parts3
  • 2 layers154.7 × 113 mmDeskMixer, the printed circuit board in 3D

    DeskMixer

    RaduAndre/DeskMixer

    DeskMixer is a software that allows control of application volumes with real sliders, and action mapping on buttons using arduino like platforms. The project was inspired originally by deej.

    113 parts3
  • 2 layers42 × 33 mmSTM32 course, the printed circuit board in 3D

    STM32 course

    abda-s/STM32-Phill-s-Lab-PCB-Course

    A beginner-friendly introduction to STM32 hardware design and KiCad

    32 parts2
  • 2 layers53.3 × 35.6 mmStm32 minimal dev, the printed circuit board in 3D

    Stm32 minimal dev

    amrithHN/stm32_minimal_dev

    stm32 based minimal dev board

    33 parts2GPL-3.0