

Stm main
- Size
- 70 × 85 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 101
- Nets
- 142
- Pads
- 363
- Tracks, vias
- 704, 317
- Pours
- 8
- Routed
- Yes
- KiCad
- KiCad 7 (file 20221018)
- Created
- 5 Aug 2024
- Updated
- 14 Oct 2024
Overview
Stm main is an open-source printed circuit board by hcmos, from the hcmos/kicad-2024 repository on GitHub. It is a 2-layer board of 70 × 85 mm with 101 parts on 142 nets, routed with 704 tracks and 317 vias.
It is built around the STM32F103CBT6, STM32F405RGT6TR and MAX3051EKA+T, with the USBLC6-2SC6 and SKRKAEE020 among its other parts. Its parts include 32 capacitors, 30 resistors, 8 connectors, 7 diodes and 5 ICs. It belongs with the STM32 boards of this library.
Main components
5STM32F103CBT6
LQFP-48(7x7)-40℃~+85℃ 128KB 12bit 20KB 2V~3.6V 32 Bit 37 72MHz ARM Cortex-M3 Built-in FLASH LQFP-48(7x7) Microcontrollers (MCU/MPU/SOC) ROHSSTMicroelectronicsMicrocontrollers (MCU/MPU/SOC)STM32F405RGT6TR
LQFP-64(10x10)-40℃~+85℃ 1.8V~3.6V 12bit 12bit 168MHz 192KB 1MB 32 Bit 51 ARM Cortex-M4 Built-in FLASH LQFP-64(10x10) Microcontrollers (MCU/MPU/SOC) ROHSSTMicroelectronicsMicrocontrollers (MCU/MPU/SOC)MAX3051EKA+T
SOT-23-8-40℃~+85℃ 15uA 1Mbps 3.3V 70mA CAN Transceiver SOT-23-8 CAN Transceivers ROHSMaxim Integrated (Analog Devices)CAN TransceiversUSBLC6-2SC6
SOT-23-60.35pF、0.8pF 100nA 150W@8/20us 15V 2 5V 6A@8/20us 6V ESD SOT-23-6 ESD and Surge Protection (TVS/ESD) ROHSUMWESD And Surge Protection (TVS/ESD)SKRKAEE020
SMD,3.9x2.9mm-40℃~+85℃ 1.6N 12V 2.9mm 200,000 Cycles 2mm 3.9mm 50mA Round Button SMD(SMT) Tab SPST-NO Surface Mount,Vertical SMD,3.9x2.9mm Tactile Switches ROHSALPSALPINETactile Switches
README
raspberrypi_hat/README.mdハードウェア

- 回路図

端子
CAN
使用したもの
- MCP2515(コントローラ) CANプロトコルをSPIに変換するため.外部クロックが必要(夢考房にあるやつ)
- MCP2562FD(トランシーバ) 物理層
起動ファイル
ラズパイOSでは/boot/config.txt.Ubuntuでは/boot/firmware/config.txt,同ディレクトリのusercfg.txt(推奨)に以下を追記.
# enable MCP2515
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=20000000,interrupt=25
dtoverlay=spi-bcm2835oscillator=は外部クロックに合わせる.interrupt=は配線したGPIOを指定.
書き終わったらreboot!
確認
$ dmesg | grep -e CAN -e can
[ -] CAN device driver interface
[ -] mcp251x spi0.0 can0: MCP2515 successfully initialized.みたいに返ってくればOK.
有効化
デバイスの状態をUPにする.
sudo ip link set can0 type can bitrate 1000000
sudo ip link set can0 upビットレートは環境に合わせて変更.->ifconifgにCAN0が出てくるはず.
受信
CANパケットをcandumpで確認する.
candump can0 -x
can0 RX - - 000 [8] 00 00 00 00 00 00 00 00などと表示されれば成功.
あとはsocketcan_ifなどのパッケージでlinux-canで触ってみる.
UART
GPIO14(TXD0), GPIO15(RXD0)とつなげただけ.
GND | +5V | TX | RX
I2C
GPIO2(SDA1), GPIO3(SDL1)とつなげただけ.
GND | +5V | SDA | SCL
GPIO24
制御緊急停止用.
GND | GPIO24
FAN
ファンコントロールのためのGPIO. ラズパイコンフィグから指定.
GND | +5V | GPIO18
Parts
101| Qty | Value | Footprint | References |
|---|---|---|---|
| 17 | 0.1u | Capacitor_SMD:C_0603_1608Metric | C1, C2, C3, C4, C12, C13, C14, C15, C16, C24, C25, C26, C28, C29, C30, C31 +1 |
| 8 | 10k | Resistor_SMD:R_0603_1608Metric | R6, R8, R11, R14, R15, R16, R19, R23 |
| 6 | LED | Diode_SMD:D_0603_1608Metric | D2, D3, D4, D5, D6, D7 |
| 5 | 0 | Resistor_SMD:R_0603_1608Metric | R1, R2, R3, R24, R30 |
| 4 | 20p | Capacitor_SMD:C_0603_1608Metric | C9, C17, C27, C32 |
| 4 | 330 | Resistor_SMD:R_0603_1608Metric | R5, R17, R18, R20 |
| 4 | B04B-XASK-1_LF__SN_ | my_pretty:SHDR4W60P0X250_1X4_1250X640X880P | J2, J3, J4, J5 |
| 3 | 100k | Resistor_SMD:R_0603_1608Metric | R7, R21, R22 |
| 3 | 1u | Capacitor_SMD:C_0603_1608Metric | C20, C21, C23 |
| 3 | Jumper_2_Open | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | JP1, JP2, JP3 |
| 2 | 2.2u | Capacitor_SMD:C_0603_1608Metric | C18, C19 |
| 2 | 2MS1T1B4VS2QES | my_pretty:2MS1T1B4VS2QES | SW1, SW2 |
| 2 | 4.7k | Resistor_SMD:R_0603_1608Metric | R27, R28 |
| 2 | 4.7u | Capacitor_SMD:C_0603_1608Metric | C7, C8 |
| 2 | Conn_01x05_Pin | Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Vertical | J7, J8 |
| 2 | PNP | my_pretty:MMBT3906WT1G | Q1, Q3 |
| 2 | XVHCELNANF | my_pretty:XVHCELNANF | Y1, Y2 |
| 1 | 1.5k | Resistor_SMD:R_0603_1608Metric | R26 |
| 1 | 10 | Resistor_SMD:R_0603_1608Metric | R29 |
| 1 | 100 | Resistor_SMD:R_0603_1608Metric | R25 |
| 1 | 100R | Resistor_SMD:R_0603_1608Metric | FB1 |
| 1 | 100n | Capacitor_SMD:C_0603_1608Metric | C22 |
| 1 | 100u | Capacitor_THT:CP_Radial_D5.0mm_P2.00mm | C6 |
| 1 | 10u | Capacitor_SMD:C_0603_1608Metric | C11 |
| 1 | 120 | Resistor_SMD:R_0603_1608Metric | R9 |
| 1 | 150 | Resistor_SMD:R_0603_1608Metric | R12 |
| 1 | 1k | Resistor_SMD:R_0603_1608Metric | R4 |
| 1 | 22u | Capacitor_SMD:C_0603_1608Metric | C10 |
| 1 | 27n | Inductor_SMD:L_0603_1608Metric | L1 |
| 1 | 510 | Resistor_SMD:R_0603_1608Metric | R10 |
| 1 | 82 | Resistor_SMD:R_0603_1608Metric | R13 |
| 1 | B06B-XASK-1_LF__SN_ | my_pretty:SHDR6W80P0X250_1X6_1750X640X880P | J6 |
| 1 | D | Diode_SMD:D_0603_1608Metric | D1 |
| 1 | LOGO | logo_pretty:rdclab_small | G*** |
| 1 | MAX3051EKA+T | my_pretty:MAX3051EKA+T | IC4 |
| 1 | MCP1703AT-3302E_CB | my_pretty:MCP1703AT-3302E_CB | IC3 |
| 1 | MUSB-5BF01AS | my_pretty:MUSB5BF01AS | J1 |
| 1 | OKL-T_6-W12N-C | my_pretty:OKLT6W12NC | PS1 |
| 1 | PMOS | my_pretty:SSM3J332RLFT | Q2 |
| 1 | SKRKAEE020 | my_pretty:SKRKAEE020 | SW3 |
| 1 | STM32F103CBT6 | my_pretty:STM32F103CBT6 | IC5 |
| 1 | STM32F405RGT6TR | my_pretty:STM32F405RGT6TR | IC2 |
| 1 | USBLC6-2SC6 | my_pretty:USBLC6-2SC6 | IC1 |
The 97 most common of 101 parts.
More from hcmos/kicad-2024
1- 2 layers36.2 × 52.7 mm

Similar boards
- 2 layers41 × 42 mm

Mini Air FC
darshg321/Mini-Air
Mini-Air is a DIY FPV drone! it features: - a custom flight controller supporting Betaflight - an ESC supporting Bluejay firmware - ELRS protocol - an analog camera - GPS
101 parts2CERN-OHL-W-2.0 - 4 layers67 × 15 mm

GBB15
skuep/GBB15
A gantry-mounted CAN stepper driver board for 15mm aluminum beams (mostly for PrintersForAnts printers). This is heavily work in progress.
76 parts51MIT - 4 layers60 × 40 mm

- 2 layers42 × 38 mm

L103 DRV8316C
bjthemost-hub/l103-drv8316c-joint
Joint motor driver: CH32L103 + DRV8316C + MT6701. KiCad hardware, FOC firmware, 2-stage planetary gearbox (J, 25:1). MIT.
82 partsMIT - 2 layers100 × 100 mm

Mcu
cs2dsb/coffee_assistant
Free and open source software distributed under the terms of both the [MIT License][lm] and the [Apache License 2.0][la].
168 parts10Apache-2.0 - 2 layers20 × 38.5 mm

Arm tiny pcb
Chicken-Fried/STM32-NanoCortex
Ultra-compact USB-C development board powered by STM32F042 (ARM Cortex-M0) with native DFU, ceramic-only LDO power stage & CaveRover branding.
29 partsCERN-OHL-S-2.0 - 2 layers94 × 34.3 mm

- 2 layers73.5 × 47.5 mm

Questions
How big is the Stm main PCB?
It measures 70 × 85 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Stm main use?
101 parts, built around the STM32F103CBT6, STM32F405RGT6TR, MAX3051EKA+T and USBLC6-2SC6. 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 Stm main KiCad files?
From the hcmos/kicad-2024 repository on GitHub, at the commit this page was made from: the board is stm_main/stm_main.kicad_pcb and its schematic raspberrypi_hat/raspberrypi_hat.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Stm main design in my own project?
Its repository states no licence, so its author keeps all rights: ask hcmos before reusing the design.