Skip to the content
2 layers70 × 85 mmStm main, the printed circuit board in 3D
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

5

README

raspberrypi_hat/README.md

ハードウェア


  • 回路図

端子

CAN

使用したもの

起動ファイル

ラズパイOSでは/boot/config.txt.Ubuntuでは/boot/firmware/config.txt,同ディレクトリのusercfg.txt(推奨)に以下を追記.

bash
# enable MCP2515

dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=20000000,interrupt=25
dtoverlay=spi-bcm2835

oscillator=は外部クロックに合わせる.interrupt=は配線したGPIOを指定.
書き終わったらreboot!

確認
bash
$ dmesg | grep -e CAN -e can
[    -] CAN device driver interface
[    -] mcp251x spi0.0 can0: MCP2515 successfully initialized.

みたいに返ってくればOK.

有効化

デバイスの状態をUPにする.

bash
sudo ip link set can0 type can bitrate 1000000
sudo ip link set can0 up

ビットレートは環境に合わせて変更.->ifconifgにCAN0が出てくるはず.

受信

CANパケットをcandumpで確認する.
candump can0 -x

bash
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
QtyValueFootprintReferences
170.1uCapacitor_SMD:C_0603_1608MetricC1, C2, C3, C4, C12, C13, C14, C15, C16, C24, C25, C26, C28, C29, C30, C31 +1
810kResistor_SMD:R_0603_1608MetricR6, R8, R11, R14, R15, R16, R19, R23
6LEDDiode_SMD:D_0603_1608MetricD2, D3, D4, D5, D6, D7
50Resistor_SMD:R_0603_1608MetricR1, R2, R3, R24, R30
420pCapacitor_SMD:C_0603_1608MetricC9, C17, C27, C32
4330Resistor_SMD:R_0603_1608MetricR5, R17, R18, R20
4B04B-XASK-1_LF__SN_my_pretty:SHDR4W60P0X250_1X4_1250X640X880PJ2, J3, J4, J5
3100kResistor_SMD:R_0603_1608MetricR7, R21, R22
31uCapacitor_SMD:C_0603_1608MetricC20, C21, C23
3Jumper_2_OpenConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP1, JP2, JP3
22.2uCapacitor_SMD:C_0603_1608MetricC18, C19
22MS1T1B4VS2QESmy_pretty:2MS1T1B4VS2QESSW1, SW2
24.7kResistor_SMD:R_0603_1608MetricR27, R28
24.7uCapacitor_SMD:C_0603_1608MetricC7, C8
2Conn_01x05_PinConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ7, J8
2PNPmy_pretty:MMBT3906WT1GQ1, Q3
2XVHCELNANFmy_pretty:XVHCELNANFY1, Y2
11.5kResistor_SMD:R_0603_1608MetricR26
110Resistor_SMD:R_0603_1608MetricR29
1100Resistor_SMD:R_0603_1608MetricR25
1100RResistor_SMD:R_0603_1608MetricFB1
1100nCapacitor_SMD:C_0603_1608MetricC22
1100uCapacitor_THT:CP_Radial_D5.0mm_P2.00mmC6
110uCapacitor_SMD:C_0603_1608MetricC11
1120Resistor_SMD:R_0603_1608MetricR9
1150Resistor_SMD:R_0603_1608MetricR12
11kResistor_SMD:R_0603_1608MetricR4
122uCapacitor_SMD:C_0603_1608MetricC10
127nInductor_SMD:L_0603_1608MetricL1
1510Resistor_SMD:R_0603_1608MetricR10
182Resistor_SMD:R_0603_1608MetricR13
1B06B-XASK-1_LF__SN_my_pretty:SHDR6W80P0X250_1X6_1750X640X880PJ6
1DDiode_SMD:D_0603_1608MetricD1
1LOGOlogo_pretty:rdclab_smallG***
1MAX3051EKA+Tmy_pretty:MAX3051EKA+TIC4
1MCP1703AT-3302E_CBmy_pretty:MCP1703AT-3302E_CBIC3
1MUSB-5BF01ASmy_pretty:MUSB5BF01ASJ1
1OKL-T_6-W12N-Cmy_pretty:OKLT6W12NCPS1
1PMOSmy_pretty:SSM3J332RLFTQ2
1SKRKAEE020my_pretty:SKRKAEE020SW3
1STM32F103CBT6my_pretty:STM32F103CBT6IC5
1STM32F405RGT6TRmy_pretty:STM32F405RGT6TRIC2
1USBLC6-2SC6my_pretty:USBLC6-2SC6IC1

The 97 most common of 101 parts.

More from hcmos/kicad-2024

1

Similar boards

  • 2 layers41 × 42 mmMini Air FC, the printed circuit board in 3D

    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 mmGBB15, the printed circuit board in 3D

    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
  • 2 layers42 × 38 mmL103 DRV8316C, the printed circuit board in 3D

    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 mmMcu, the printed circuit board in 3D

    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 mmArm tiny pcb, the printed circuit board in 3D

    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 layers73.5 × 47.5 mmEinkBadge, the printed circuit board in 3D

    EinkBadge

    Las-Vejas/badge

    An E-ink badge run by RP2040, with NFC capabilities.

    67 partsGPL-3.0

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.