Skip to the content
2 layers65 × 84 mmStm32, the printed circuit board in 3D

Code samples and ready projects based on bare-metal STM32

Size
65 × 84 mm
Copper layers
2
Thickness
1.6 mm
Parts
67
Nets
49
Pads
228
Tracks, vias
508, 25
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 65 × 84 mm with 67 parts on 49 nets, routed with 508 tracks and 25 vias.

It is built around the MCP2551-I/SN, LM1117-3.3 and LM1117-5.0, with the SI2300, SMAJ5.0A and AO3407 among its other parts. Its parts include 20 resistors, 12 connectors, 9 capacitors, 9 diodes and 4 ICs. It belongs with the sensors and measurement and computers and single-board computers boards and the STM32 boards of this library.

Main components

10

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

67
QtyValueFootprintReferences
80.1Capacitors_SMD.pretty:C_0603_HandSolderingC1, C5, C6, C11, C12, C13, C14, C15
8330Resistors_SMD.pretty:R_0603_HandSolderingR1, R2, R5, R10, R11, R12, R29, R30
4Holemy_footprints:Hole_3mmP15, P16, P17, P18
3SI2300TO_SOT_Packages_SMD.pretty:SOT-23_HandsolderingQ2, Q3, Q4
210kResistors_SMD.pretty:R_0603_HandSolderingR27, R28
222Resistors_SMD.pretty:R_0603_HandSolderingR34, R35
247kResistors_SMD.pretty:R_0603_HandSolderingR6, R7
2SMAJ5.0ADiode_SMD.pretty:D_SMAD8, D9
10Resistors_SMD.pretty:R_0805_HandSolderingR14
1120Resistors_SMD.pretty:R_0603_HandSolderingR9
112vConnectors_Terminal_Blocks.pretty:TerminalBlock_Pheonix_MKDS1.5-2polJ5
1220kResistors_SMD.pretty:R_0603_HandSolderingR3
14.7Resistors_SMD.pretty:R_0603_HandSolderingR13
147uCapacitors_Tantalum_SMD.pretty:Tantalum_Case-A_EIA-3216-18_HandC2
14k7Resistors_SMD.pretty:R_0603_HandSolderingR8
156kResistors_SMD.pretty:R_0603_HandSolderingR4
1AO3407TO_SOT_Packages_SMD.pretty:SOT-23_HandsolderingQ1
1BootButtons_Switches_SMD.pretty:SW_SPST_FSMSMSW2
1CONN_02X03Pin_Headers.pretty:Pin_Header_Straight_2x03_Pitch2.54mmJ1
1Conn_01x01Pin_Headers.pretty:Pin_Header_Straight_1x01_Pitch2.54mmJ6
1Conn_01x07Pin_Headers.pretty:Pin_Header_Straight_1x07_Pitch2.54mmJ4
1DB9_FemaleConnectors.pretty:DB9FCJ2
1DB9_MaleConnectors.pretty:DB9MCJ3
1LEDLEDs.pretty:LED_0805D2
1LED0LEDs.pretty:LED_0805D5
1LED1LEDs.pretty:LED_0805D6
1LM1117-3.3TO_SOT_Packages_SMD.pretty:SOT-223U2
1LM1117-5.0TO_SOT_Packages_SMD.pretty:SOT-223U1
1MBRS130LDiodes_SMD.pretty:D_SMB_HandsolderingD4
1MCP2551-I/SNHousings_SOIC.pretty:SOIC-8_3.9x4.9mm_Pitch1.27mmU4
1PESD1CANTO_SOT_Packages_SMD.pretty:SOT-23D3
1ResetButtons_Switches_SMD.pretty:SW_SPST_FSMSMSW1
1SP0502BAHTTO_SOT_Packages_SMD.pretty:SOT-23D1
1STM32F042C6TxHousings_QFP.pretty:LQFP-48_7x7mm_Pitch0.5mmU7
1TerminalPin_Headers.pretty:Pin_Header_Straight_1x02JP1
1USART_BOOTPin_Headers.pretty:Pin_Header_Straight_1x03P12
1USB6B1Housings_SOIC.pretty:SOIC-8_3.9x4.9mm_Pitch1.27mmD7
1USB_AConnect.pretty:USB_Mini-BP13

The 61 most common of 67 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
  • 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

    155 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

Similar boards

  • 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 layers140 × 178.7 mmMswi, the printed circuit board in 3D

    Mswi

    ZeniteSolar/MSWI19

    Steering-wheel Interface

    154 parts3GPL-3.0
  • 2 layers54 × 54 mmSteppers, the printed circuit board in 3D

    Steppers

    eddyem/mmpp

    MMPP (Multimode photometer-polarimeter) for the telescope Zeiss-1000 of SAO RAS.

    55 partsGPL-3.0
  • 2 layers87 × 71 mmSocket, the printed circuit board in 3D

    Socket

    eddyem/STM8_samples

    Some code samples and ready projects based on STM8 (deprecated)

    89 parts80
  • 2 layers76.6 × 21.5 mmPower Breakout, the printed circuit board in 3D

    Power Breakout

    EmbeddedDesign/GotT-Translation-Circuit

    A Bluetooth voice modulator for Dalek speech

    18 parts2MIT
  • 4 layers53.6 × 65.4 mmPneumatics Control Unit V1, the printed circuit board in 3D

    Pneumatics Control Unit V1

    msoe-vex/pcb-design

    This repository is dedicated to storing files required for designing and creating PCB Boards

    80 parts2
  • 2 layers256.5 × 172.9 mmMCB19 panel, the printed circuit board in 3D

    MCB19 panel

    ZeniteSolar/MCB19

    Modulo de carregamento das baterias auxiliares

    411 parts2GPL-3.0
  • 2 layers239.3 × 121.3 mmPanel, the printed circuit board in 3D

    Panel

    ZeniteSolar/MT19

    Tachometer Module for CANBUS with ATmega328p

    252 parts2GPL-3.0

Questions

How big is the Stm32 PCB?

It measures 65 × 84 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Stm32 use?

67 parts, built around the MCP2551-I/SN, LM1117-3.3, LM1117-5.0 and SI2300. 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/deprecated/canbus/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.