Skip to the content
4 layers48.5 × 36.2 mmSTM32 customized 1, the printed circuit board in 3D

This repository contains the hardware design files and documentation for a custom STM32F103C8Tx-based development board. Designed with robustness and data-logging in mind, this board features a dual-input power selector (USB and Barrel Jack) with Diode-ORing protection, alongside an integrated MicroSD card slot for data storage.

Size
48.5 × 36.2 mm
Copper layers
4
Thickness
1.6 mm
Parts
43
Nets
55
Pads
163
Tracks, vias
388, 44
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
3 Jul 2026
Updated
3 Jul 2026

Overview

STM32 customized 1 is an open-source printed circuit board by vishal-r07, from the vishal-r07/Custom_build_STM32 repository on GitHub. It is a 4-layer board of 48.5 × 36.2 mm with 43 parts on 55 nets, routed with 388 tracks and 44 vias.

It is built around the AMS1117-3.3. Its parts include 16 capacitors, 8 resistors, 6 connectors, 3 diodes and 2 ICs. It belongs with the microcontroller boards boards and the STM32 boards of this library.

Main components

1

README

README.md

Customized STM32 Development Board

Designer: Vishal Meyyappan R Design Tool: KiCad 9.0 MCU: STM32F103C8T6 (LQFP-48)

A compact, breakout-style STM32F103 development board built around a "Blue Pill"-class microcontroller, with dual power input (USB or barrel jack), onboard microSD storage for data logging, and broken-out USART/I2C/SWD headers for peripherals and debugging.


1. Overview

This board is designed as a general-purpose sensor data acquisition and logging platform. The core idea: read sensor values over I2C or USART, and persist them to a microSD card in real time, so the board can operate as a standalone data logger without needing a permanent connection to a PC. It can be powered either from USB (during development/debugging) or from an external DC supply via the barrel jack (for field/standalone deployment), with both sources safely combined so either one can be present without conflict.

Key features

  • STM32F103C8T6 microcontroller — 72 MHz Cortex-M3, 64KB Flash, 20KB RAM
  • Dual power input: USB Micro-B or 7–12V DC barrel jack, diode-ORed together
  • Onboard AMS1117-3.3 LDO regulator (3.3V logic/power rail)
  • microSD card slot (SPI mode) for onboard data storage/logging
  • USART1 header for serial communication (e.g. GPS, external logger, PC terminal)
  • I2C2 header for sensor peripherals (IMUs, environmental sensors, RTCs, displays, etc.)
  • SWD header for programming and debugging (ST-Link compatible)
  • Reset button and status LED
  • USB D+/D- routed directly to the MCU for native USB device applications (e.g. CDC virtual COM port, DFU bootloader use)
  • 4x M2 mounting holes for mechanical enclosure mounting

2. Functional Blocks

2.1 Power Supply

The board accepts power from either of two sources, which are combined onto a single protected rail before regulation:

SourceConnectorVoltageNotes
USBJ1 (USB Micro-B)5V (VBUS)Also carries D+/D- to the MCU for USB device functionality
DC Barrel JackJ57–12V (typical wall adapter)Center pin positive

Both inputs pass through a dedicated Schottky diode (D2 for the barrel jack, D3 for USB VBUS) before joining onto a common rail. This "power-ORing" arrangement means:

  • Either source can be connected and power the board independently.
  • If both are connected simultaneously, the board draws from whichever is at the higher potential, without one source backfeeding into the other's connector — protecting a USB host (like a laptop) from being driven by the barrel jack supply, and vice versa.
  • Reverse-polarity protection is inherent: if the barrel jack is wired backwards, the diode simply blocks conduction rather than damaging the board.

The combined rail feeds U2 (AMS1117-3.3), a linear regulator that steps the input down to a clean 3.3V rail (+3.3V), which powers the MCU core, I/O, and the microSD card. FB1 (a 120Ω ferrite bead) filters high-frequency noise on the USB VBUS path specifically, and D1 (LED) with R3 provides a visual power-on indicator.

A separate +3.3VA net is also present for the MCU's analog supply (VDDA), isolated with C7/C8 to reduce noise coupling into the ADC/analog peripherals from the digital 3.3V rail.

2.2 Microcontroller (U1 — STM32F103C8T6)

The MCU is clocked from an 8 MHz external crystal (Y1, Crystal_GND24) with C10/C11 (10pF) load capacitors, feeding the HSE (High-Speed External) oscillator input. SW1 provides a manual reset (NRST), debounced by C9 and pulled up by R1.

Boot mode selection (BOOT0) is available on the board for entering the built-in USB/UART bootloader if needed, alongside the SWD interface for hardware debugging.

2.3 USB Interface (J1)

A USB Micro-B connector routes D+/D- directly to the MCU's native USB peripheral pins (PA11/PA12), enabling USB device applications such as a virtual COM port (CDC), custom HID device, or DFU firmware updates. R2 (1.5kΩ) pulls USB_D- up to 3.3V, a common requirement for the MCU to be recognized as a full-speed USB device without needing to bit-bang the pull-up in firmware.

2.4 DC Barrel Jack Input (J5)

For standalone/field operation where USB isn't available (e.g. powered by a wall adapter or battery pack), J5 accepts a standard center-positive barrel connector. C14/C15 provide bulk and high-frequency decoupling right at the input before the reverse-polarity diode D2.

2.5 microSD Card Storage (J6)

This is the board's primary logging mechanism. The microSD slot is wired in SPI mode (rather than native 4-bit SD mode, which this MCU's hardware doesn't support), using the MCU's SPI1 peripheral:

J6 PinNative SD FunctionSPI Mode FunctionSTM32 Pin
2 (DAT3/CD)Data line 3 / Card DetectChip Select (CS)PA4
3 (CMD)Command lineMOSI (DI)PA7
5 (CLK)ClockSCKPA5
7 (DAT0)Data line 0MISO (DO)PA6
1 (DAT2), 8 (DAT1)Data lines 1–2Unused in SPI modePulled up to 3.3V (R6–R8)
4 (VDD)PowerPower+3.3V
6 (VSS)GroundGroundGND
9 (SHIELD)—Mechanical shieldGND

C16 (100nF) decouples the card's local supply. A pull-up on CS (PA4) ensures the card remains deselected during MCU power-up/reset, before firmware has configured the pin as an active output — preventing bus contention during boot.

Intended use case: the board reads sensor data (e.g. from a device on the I2C2 header) at a fixed interval, formats it (e.g. as a CSV row with a timestamp), and writes it to a file on the SD card using a FAT filesystem library (FatFs) running over this SPI interface. This lets the board function as a self-contained data logger — sensor readings accumulate on the card over time and can be retrieved simply by removing the card and reading it on a PC, without needing a live connection to the board.

2.6 Communication Headers

HeaderSignalsTypical Use
J2SWDIO, SWCLK, 3.3V, GNDProgramming/debugging via ST-Link or compatible SWD probe
J3USART1_TX, USART1_RX, 3.3V, GNDSerial communication — external modules (GPS, Bluetooth/BLE, PC terminal), or a second logging path
J4I2C2_SCL, I2C2_SDA, 3.3V, GNDSensor peripherals — IMUs, environmental sensors (temperature/humidity/pressure), RTCs, OLED displays, etc.

R4/R5 (1.5kΩ) provide I2C bus pull-ups on the SDA/SCL lines.

2.7 Status & Control

  • D1 (LED) — power-on indicator, active whenever the 3.3V rail is present
  • SW1 — manual reset button (NRST)

2.8 Mechanical

Four M2 mounting holes (H1–H4) are provided at the board corners for enclosure mounting.


3. Typical Application: Sensor Data Logger

A representative use case this board is designed around:

  1. Connect a sensor (e.g. an I2C temperature/humidity sensor, or an IMU) to the J4 (I2C2) header.
  2. Firmware on the STM32 periodically polls the sensor over I2C.
  3. Each reading is timestamped and formatted as a line of text (e.g. CSV: timestamp,value1,value2).
  4. The line is written to a log file on the microSD card via SPI1 + FatFs.
  5. The card can be removed and read on any PC, or the board can optionally stream the same data live over J3 (USART1) for real-time monitoring during development.

This makes the board suitable for applications like environmental monitoring stations, unattended data collection, portable measurement tools, or any project needing local, non-volatile storage of time-series sensor data without relying on cloud connectivity.


4. Power Architecture Summary

text
USB Micro-B (5V)  ──▶ D3 ──┐
                            ├──▶ Shared VIN net ──▶ AMS1117-3.3 (U2) ──▶ +3.3V rail ──▶ MCU, SD card, peripherals
Barrel Jack (7-12V) ─▶ D2 ──┘

Both sources are diode-ORed so either can power the board independently; the AMS1117-3.3 regulates whichever is present down to a clean 3.3V for the rest of the system.


5. Bill of Materials

ReferenceQtyValueFootprintDatasheet
C1, C2, C3, C4, C9, C15, C167100nCapacitor_SMD:C_0402_1005Metric~
C5, C14210uCapacitor_SMD:C_0603_1608Metric~
C6110nCapacitor_SMD:C_0402_1005Metric~
C7, C821uCapacitor_SMD:C_0402_1005Metric~
C10, C11210pCapacitor_SMD:C_0402_1005Metric~
C12, C13222uCapacitor_SMD:C_0805_2012Metric~
D11LEDLED_SMD:LED_0603_1608Metric~
D2, D32D_SchottkyDiode_SMD:D_SMA~
FB11120RInductor_SMD:L_0603_1608Metric~
H1, H2, H3, H44MountingHoleMountingHole:MountingHole_2.2mm_M2~
J11USB_B_MicroConnector_USB:USB_Micro-B_Wuerth_629105150521~
J2, J3, J43Conn_01x04_PinConnector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_Vertical~
J51Barrel_JackConnector_BarrelJack:BarrelJack_Horizontal~
J61Micro_SD_CardConnector_Card:microSD_HC_Wuerth_693072010801Datasheet
R1110KResistor_SMD:R_0402_1005Metric~
R2, R3, R4, R541k5Resistor_SMD:R_0402_1005Metric~
R6, R7, R8310kResistor_SMD:R_0402_1005Metric~
SW11SW_SPDTButton_Switch_SMD:SW_SPDT_PCM12~
U11STM32F103C8TxPackage_QFP:LQFP-48_7x7mm_P0.5mmDatasheet
U21AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2Datasheet
Y11Crystal_GND24Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm~

Total unique references: 24 | Total placed components: ~50 (excluding mounting holes)


6. Firmware Notes

  • Toolchain: STM32CubeIDE (or STM32CubeMX + preferred IDE/toolchain)
  • SD card access: SPI1 peripheral + FatFs middleware (SD-over-SPI driver); recommend low clock speed (~400 kHz) during card initialization, then increasing to a few MHz for normal read/write operations
  • I2C sensor communication: I2C2 peripheral (PB10/PB11), 3.3V logic
  • Serial/debug output: USART1 (PA9/PA10), standard TTL-level UART, 3.3V logic
  • Debugging: Standard SWD (PA13/PA14) — compatible with ST-Link V2/V3 or any SWD-capable probe
  • USB: Native USB device peripheral (PA11/PA12) — usable for CDC virtual COM port, custom HID, or DFU bootloader entry

image

PCB Editor

image

3D VIEW

I have attached Schematic sheet as output.pdf


Designed by Vishal Meyyappan R

Parts

43
QtyValueFootprintReferences
7100nCapacitor_SMD:C_0402_1005MetricC1, C2, C3, C4, C9, C15, C16
41k5Resistor_SMD:R_0402_1005MetricR2, R3, R4, R5
4MountingHoleMountingHole:MountingHole_2.2mm_M2CUSTOM BUILD STM32, H1, H2, H3
310kResistor_SMD:R_0402_1005MetricR6, R7, R8
3Conn_01x04_PinConnector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ2, J3, J4
210pCapacitor_SMD:C_0402_1005MetricC10, C11
210uCapacitor_SMD:C_0603_1608MetricC5, C14
21uCapacitor_SMD:C_0402_1005MetricC7, C8
222uCapacitor_SMD:C_0805_2012MetricC12, C13
2D_SchottkyDiode_SMD:D_SMAD2, D3
110KResistor_SMD:R_0402_1005MetricR1
110nCapacitor_SMD:C_0402_1005MetricC6
1120RInductor_SMD:L_0603_1608MetricFB1
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1Barrel_JackConnector_BarrelJack:BarrelJack_HorizontalJ5
1Crystal_GND24Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1LEDLED_SMD:LED_0603_1608MetricD1
1LOGOLOGOG***
1Micro_SD_CardConnector_Card:microSD_HC_Wuerth_693072010801J6
1STM32F103C8TxPackage_QFP:LQFP-48_7x7mm_P0.5mmU1
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 STM32 customized 1 PCB?

It measures 48.5 × 36.2 mm and has 4 copper layers, 1.6 mm thick.

What parts does the STM32 customized 1 use?

43 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 STM32 customized 1 KiCad files?

From the vishal-r07/Custom_build_STM32 repository on GitHub, at the commit this page was made from: the board is STM32_customized_1.kicad_pcb and its schematic STM32_customized_1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the STM32 customized 1 design in my own project?

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