Skip to the content
2 layers121.5 × 136.5 mmStm32, the printed circuit board in 3D

Code samples and ready projects based on bare-metal STM32

Size
121.5 × 136.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
155
Nets
149
Pads
523
Tracks, vias
1,637, 143
Pours
6
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
21 Mar 2015
Updated
10 Oct 2026

Overview

Stm32 is an open-source printed circuit board by eddyem, from the eddyem/stm32samples repository on GitHub. It is a 2-layer board of 121.5 × 136.5 mm with 155 parts on 149 nets, routed with 1,637 tracks and 143 vias.

It is built around the ISO1050DUB, ISO3086DW and B0505S-1W, with the B0505S-2W, ISO7241CDW and LM2576-5.0WU among its other parts. Its parts include 38 resistors, 30 connectors, 29 capacitors, 18 ICs and 9 diodes. It belongs with the sensors and measurement and computers and single-board computers boards and the STM32 boards of this library.

Main components

12

README

Readme.md

Repository Overview

The stm32samples repository is a collection of low-level, bare-metal code examples and complete projects for various STM32 microcontroller series (F0, F1, F3, F4, G0). It uses CMSIS header files from modm-io/cmsis-header-stm32 for register definitions.

Project Structure by MCU Series

STM32F0 (F030, F042, F072)

  • 3steppersLB – Controls 3 stepper motors with encoders via USB/CAN bus
  • blink – Simple LED toggling
  • CANbus4BTA – CAN replacement for PEP-CAN
  • CANBUS_SSI – Works with BTA SSI azimuth encoder
  • Chiller – Basic chiller temperature controller
  • F0_testbrd – Tests STM32F0x2 on custom board
  • htu21d_nucleo – Reads HTU-21D sensor on Nucleo-F042K
  • morze – Echoes USART1 data as Morse code on TIM3CH1 (PA6)
  • NUCLEO_SPI – SSI over SPI on Nucleo-F042K
  • PL2303_ringbuffer – USB CDC ACM with ring buffers
  • QuadEncoder – Quadrature encoder via timer
  • Servo – Controls SG-90 style servos
  • Socket_fans – Manages multiple fans
  • TM1637 – Drives 7‑segment displays
  • tsys01_nucleo – Reads two TSYS01 sensors
  • uart_blink & uart_blink_dma – USART echo with DMA
  • usbcan_relay – Relay board over CAN bus
  • usbcan_ringbuffer – USB‑CAN adapter with ring buffers
  • USBHID – USB HID keyboard + mouse

STM32F1 (F103)

  • BMP180, BMP280 – I²C temperature/pressure sensors
  • Canon_managing_device – Controls Canon lenses
  • canUART – UART‑CAN bridge
  • DHT22_DHT11 – Humidity sensors using timer+DMA
  • DS18 – DS18x20 temperature sensors
  • F1_testbrd – Test board for LQFP48 packages
  • I2Cscan – I²C scanner with register R/W
  • LED_Screen – Drives 32×16 LED matrices (P10)
  • MAX7219_screen – Controls 8×8 LED matrices
  • RGB_LED_Screen – HUB75E RGB panel with 8.8.4 color
  • SevenCDCs – Seven USB‑CDC ACM instances on one MCU (joke project)
  • shutter – Bistable shutter via USB/external signal
  • Tetris – Tetris on HUB75E panel
  • USB_HID – USB HID mouse+keyboard
  • ws2815 – Rainbow effect on WS2815 strips

STM32F3 (F303)

  • ADC – Works with ADC peripheral
  • blink – Toggles LEDs on PB0/PB1
  • CANusb – USB‑CAN adapter
  • floatPrintf – Converts floats to strings
  • Multistepper – Controls up to 64 multiplexed steppers
  • NitrogenFlooding – Automatic nitrogen flooding
  • PL2303 – PL2303 emulator (old)
  • Seven_CDCs – Seven USB CDC ACM interfaces
  • usart1fullDMA – USART1 Rx/Tx DMA with match detection
  • USB_template_CDC – USB‑CDC template

STM32F4 (F401)

  • blink – Simple LED toggling

STM32G0 (G070, G0B1)

  • blink – Basic LED blink
  • RTC – Real‑time clock
  • flash – Flash memory operations
  • g0b1 – USB‑CDC working on G0B1
  • i2c – I²C operations
  • usart – USART communication

Other Directories

  • deprecated – Archive of older, no‑longer‑maintained code
  • snippets – Small reusable code fragments
  • testboard – KiCad 8 design files

Development Environment

  • Toolchain: arm-none-eabi‑gcc with -flto optimisations
  • Build: Structured Makefiles per series
  • Debug: OpenOCD configuration files provided
  • Libraries: No third‑party libraries; only CMSIS‑SVD headers

Project Maturity

  • Alpha: USB template for F303, MLX90640 all‑sky camera
  • Stable: LED blink, UART echo, sensor interfaces, USB‑CDC
  • Draft: CANbus4BTA, MLX90640multi
  • Deprecated: Older code in deprecated/

Summary

This repository is a valuable resource for learning low‑level STM32 programming without vendor libraries. It covers practical applications:

  • Industrial control: Stepper motors, CAN bus, relay boards
  • Sensor interfacing: Temperature, pressure, humidity, encoders
  • Human‑machine interfaces: LED matrices, 7‑segment displays, USB HID
  • Communication: UART, SPI, I²C, USB‑CDC, USB‑HID, CAN
  • Prototyping: Test boards for F0, F1, F3, G0

For the latest updates, check the repository on GitHub.

License

This repository is provided under the GNU General Public License v3 or later. Full text of the GPLv3 is available at https://www.gnu.org/licenses/gpl-3.0.html.

Parts

155
QtyValueFootprintReferences
170.1Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC2, C4, C5, C7, C10, C11, C12, C13, C14, C16, C17, C20, C21, C24, C25, C29 +1
910kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR2, R9, R10, R12, R13, R14, R15, R16, R17
8360Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR31, R32, R33, R34, R35, R36, R37, R38
8PC817Package_DIP:DIP-4_W7.62mmU11, U12, U13, U14, U15, U16, U17, U18
67.5Resistor_SMD:R_2010_5025Metric_Pad1.40x2.65mm_HandSolderR22, R23, R24, R25, R26, R27
6Holemy_footprints:Hole_3mmP1, P2, P3, P4, P5, P6
522Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR1, R19, R20, R29, R30
41uCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C3, C15, C23
3330Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR7, R11, R18
34k7Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR3, R4, R21
2100Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR5, R6
2100u 35VCapacitor_THT:CP_Radial_D8.0mm_P3.50mmC18, C19
212Capacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC6, C8
250kPotentiometer_THT:Potentiometer_Bourns_3296W_VerticalRV1, RV2
274HC4051Package_SO:SOIC-16_3.9x9.9mm_P1.27mmU1, U2
2B0505S-1Wmy_footprints:B0x0xSQ1, Q8
2CESD3V3Diode_SMD:D_0805_2012Metric_Pad1.15x1.40mm_HandSolderD1, D2
2GndConnector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalTP2, TP3
2MBRS130LDiode_SMD:D_SMB_HandsolderingD5, D7
2SI2300Package_TO_SOT_SMD:SOT-23_HandsolderingQ4, Q5
2SW_PushButton_Switch_SMD:SW_SPST_FSMSMSW1, SW3
10Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ1
11Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ2
1100uInductor_THT:L_Toroid_Horizontal_D6.5mm_P10.00mm_Diameter7-5mm_Amidon-T25L1
1100u 16VCapacitor_THT:CP_Radial_D8.0mm_P3.50mmC28
1120Resistor_SMD:R_1210_3225Metric_Pad1.30x2.65mm_HandSolderR28
11FCapacitor_THT:C_Rect_L18.0mm_W8.0mm_P15.00mm_FKS3_FKP3C22
11N5822Diode_THT:D_DO-201_P3.81mm_Vertical_AnodeUpD10
12Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ7
13Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ8
13.3VConnector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalTP4
14Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ3
14.6VConnector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalTP1
147u 10VCapacitor_Tantalum_SMD:CP_EIA-6032-28_Kemet-C_Pad2.25x2.35mm_HandSolderC26
147u 6VCapacitor_Tantalum_SMD:CP_EIA-3216-18_Kemet-A_Pad1.58x1.35mm_HandSolderC27
15Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ4
15VConnector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalTP5
15VoutTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_HorizontalJ27
16Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ5
17Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ6
18MHzCrystal:Crystal_HC49-U_VerticalY1
191kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR8
1ADUM4160Package_SO:SOIC-16W_7.5x10.3mm_P1.27mmU7
1AinTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3_1x03_P5.00mm_HorizontalJ21
1B0505S-2Wmy_footprints:B0505S-2WQ3
1Buzzer 3.3VBuzzer_Beeper:Buzzer_12x9.5RM7.6BZ1
1CANConnector_Dsub:DSUB-9_Female_Horizontal_P2.77x2.84mm_EdgePinOffset4.94mm_Housed_MountingHolesOffset7.48mmJ28
1DDiode_SMD:D_0805_2012Metric_Pad1.15x1.40mm_HandSolderD3
1EXT_INConnector_Phoenix_MC_HighVoltage:PhoenixContact_MC_1,5_10-GF-5.08_1x10_P5.08mm_Horizontal_ThreadedFlangeJ30
1HF115F-024-2ZS4Relay_THT:Relay_DPDT_Finder_40.52K1
1I2CConnector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_VerticalJ19
1IP4220CZ6Package_TO_SOT_SMD:SOT-23-6U6
1IRF9310Package_SO:SO-8_3.9x4.9mm_P1.27mmQ7
1ISO1050DUBPackage_SO:SOP-8_6.62x9.15mm_P2.54mmU8
1ISO3086Package_SO:SOIC-16W_7.5x10.3mm_P1.27mmU3
1ISO7241CPackage_SO:SOIC-16W_7.5x10.3mm_P1.27mmU5
1LM1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U10
1LM2576-5.0Package_TO_SOT_THT:TO-220-5_P3.4x3.7mm_StaggerEven_Lead3.8mm_VerticalU9
1MM3Z7V5Diode_SMD:D_0805_2012Metric_Pad1.15x1.40mm_HandSolderD4
1PA15Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ17
1PA8Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ38
1PB10Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ15
1PB11Connector_PinSocket_2.54mm:PinSocket_1x01_P2.54mm_VerticalJ16
1PESD1CANPackage_TO_SOT_SMD:SOT-23D9
1PROGConnector_PinSocket_1.27mm:PinSocket_1x06_P1.27mm_VerticalJ9
1PWMoutConnector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJ22
1PowerConnector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_VerticalJ24
1RelayATerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3_1x03_P5.00mm_HorizontalJ25
1RelayBTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3_1x03_P5.00mm_HorizontalJ10
1RxConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJP2
1SI2308Package_TO_SOT_SMD:SOT-23_HandsolderingQ6
1SPITerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-6_1x06_P5.00mm_HorizontalJ20
1SS14Diode_SMD:D_SMA-SMB_Universal_HandsolderingD6
1SSI/422Connector_Dsub:DSUB-9_Female_Horizontal_P2.77x2.84mm_EdgePinOffset4.94mm_Housed_MountingHolesOffset7.48mmJ18
1SSI_VRConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJP3
1SSI_ZConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJP4
1STM32F072C8TxPackage_QFP:LQFP-48_7x7mm_P0.5mmU4
1SW_DIP_x01Button_Switch_THT:SW_DIP_SPSTx01_Slide_6.7x4.1mm_W7.62mm_P2.54mm_LowProfileSW4
1SW_DIP_x04Button_Switch_THT:SW_DIP_SPSTx04_Slide_9.78x12.34mm_W7.62mm_P2.54mmSW2
1TxConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJP1

The 150 most common of 155 parts.

More from eddyem/stm32samples

12
  • 4 layers113.5 × 105.5 mmMultistepper, the printed circuit board in 3D

    Multistepper

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    243 parts208
  • 2 layers121.5 × 136.5 mmStm32, the printed circuit board in 3D

    Stm32

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    192 parts208
  • 4 layers80 × 80 mmNitrogen, the printed circuit board in 3D

    Nitrogen

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    140 parts208
  • 2 layers80 × 84 mmMany485, the printed circuit board in 3D

    Many485

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    117 parts208
  • 2 layers97 × 69.5 mmStm32, the printed circuit board in 3D

    Stm32

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    103 parts208
  • 2 layers98 × 63.5 mmStm32, the printed circuit board in 3D

    Stm32

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    98 parts208
  • 2 layers58 × 71 mmMLX90640-allsky, the printed circuit board in 3D

    MLX90640-allsky

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    94 parts208
  • 2 layers97.5 × 59.5 mmChrono, the printed circuit board in 3D

    Chrono

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    90 parts208
  • 2 layers75.5 × 52.5 mmStm32, the printed circuit board in 3D

    Stm32

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    89 parts208
  • 2 layers66 × 54 mmWindshield, the printed circuit board in 3D

    Windshield

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    86 parts208
  • 2 layers65.5 × 41 mmLamps, the printed circuit board in 3D

    Lamps

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    78 parts208
  • 2 layers62 × 60.5 mmChiller control, the printed circuit board in 3D

    Chiller control

    eddyem/stm32samples

    Code samples and ready projects based on bare-metal STM32

    73 parts208

Similar boards

  • 4 layers65 × 52 mmCOMMS HAT SWITCH, the printed circuit board in 3D

    COMMS HAT SWITCH

    Stab-Rabbit-coding/Serenity-UAV

    A functional, security conscious, Unmanned Aerial Vehicle based on the Firefly Class spacecraft Serenity from the 2002 show..

    39 parts1CERN-OHL-W-2.0
  • 2 layers109 × 74 mmStm32, the printed circuit board in 3D

    Stm32

    eddyem/tsys01

    BTA primary mirror thermal monitoring using STM32 and TSYS01

    92 parts4GPL-3.0
  • 2 layers56.9 × 63.9 mmOpi hat, the printed circuit board in 3D

    Opi hat

    eddyem/ARMsingleboard

    Something for singleboard PC (Orange Pi Zero1/2 etc): I2C, SPI etc.

    53 parts2GPL-3.0
  • 4 layers195 × 123 mmMHCNC, the printed circuit board in 3D

    MHCNC

    TheHexaCube/MHCNC

    417 parts
  • 4 layers30 × 30 mmReCamera 2002 POE Board, the printed circuit board in 3D

    ReCamera 2002 POE Board

    Seeed-Studio/OSHW-reCamera-Series

    reCamera is a series of open-source AI cameras.

    75 parts495Apache-2.0
  • 2 layers92.6 × 87.9 mmBMS Master, the printed circuit board in 3D

    BMS Master

    sakshamgupta2004/VegapodAll

    All the vegapod material

    112 parts
  • 4 layers86.3 × 91.4 mm485toSDI12, the printed circuit board in 3D

    485toSDI12

    sihyun-noh/zephyr_485toSDI12

    Zephyr RTOS 기반 Dajilog MCU 장비의 firmware, custom board 정의, 공통 component, KiCad hardware source를 함께 관리하는 repository입니다.

    156 partsApache-2.0

Questions

How big is the Stm32 PCB?

It measures 121.5 × 136.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Stm32 use?

155 parts, built around the ISO1050DUB, ISO3086DW, B0505S-1W and B0505S-2W. 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 KiCad files?

From the eddyem/stm32samples repository on GitHub, at the commit this page was made from: the board is F0:F030,F042,F072/CANbus4BTA/kicad/stm32.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Stm32 design in my own project?

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