Skip to the content
PCBKitNew board
4 layers40 × 40 mmMoco pg4, the printed circuit board in 3D

Moco pg4

ziteh/moco24

PMSM/BLDC motor controller/driver PCBs

Size
40 × 40 mm
Copper layers
4
Thickness
1.6 mm
Parts
101
Nets
90
Pads
589
Tracks, vias
410, 81
Pours
14
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
7 Dec 2022
Updated
18 May 2024

Overview

Moco pg4 is an open-source printed circuit board by ziteh, from the ziteh/moco repository on GitHub, published under the CERN-OHL-P-2.0 licence. It is a 4-layer board of 40 × 40 mm with 101 parts on 90 nets, routed with 410 tracks and 81 vias.

It is built around the STSPIN32G4, TCAN337D and STPS0560Z. Its parts include 35 capacitors, 32 resistors, 8 connectors, 6 transistors and 3 ICs. It belongs with the robots and motor control boards and the STM32 boards of this library.

Main components

3

README

hardware/moco-rd321/readme.md

moco-RD321

  • 6.7V~35V, 12A
  • 3-Phase low-side current sensing. OP-Amp Gain=6.74, Shunt resistor=20mΩ
  • Overcurrent detection. Ith=30A @ OC_COMPth=500mV
  • Input voltage sensing
  • 32x32mm square PCB, 4xM2 mounting holes
  • STSPIN32F0A 3-phase gate driver with embdded MCU SiP
    • STM32F031C6 48MHz, 4KB SRAM, 32KB Flash
    • 600mA sink/source gate drivers, integrated bootstrap diodes
    • 12V LDO and 3.3V buck
  • SiZ250DT Dual N-MOSFET, 60V, 38A, 3.3x3.3mm
  • MA702 magnetic encoder, SPI
  • 2x04 2.54mm Pin header for debug, JST SM03B-SRSS-TB 1x03 for Serial and I2C

Pinmap

DescriptionAnalog ICSTM32STM32 Func
High-side UHS1PA8TIM1_CH1
High-side VHS2PA9TIM1_CH2
High-side WHS3PA10TIM1_CH3
Low-side ULS1PB13TIM1_CH1N
Low-side VLS2PB14TIM1_CH2N
Low-side WLS3PB15TIM1_CH3N
OC threshold select 1OC_TH_STBY1PF7Push-pull output
OC threshold select 2OC_TH_STBY2PF6Push-pull output
OC protection selectionOC_SELPA11Push-pull output
OC comparator outputOC_COMP_INTPB12TIM1_BKIN
OC comparator outputOC_COMP_INT2PA12TIM1_ETR
Current sense UOP3OPA0ADC_IN0
Current sense VOP2OPA1ADC_IN1
Current sense WOP1OPB1ADC_IN9
VM sense--PA4ADC_IN4
SPI SCLK--PA5SPI1
SPI MISO--PA6SPI1
SPI MOSI--PA7SPI1
SPI nCS MA702--PA15
USART Tx--PA2USART1
USART Rx--PA3USART1
I2C SCL--PB6I2C1
I2C SDA--PB7I2C1
SWDIO--PA13
SWCLK--PA14
Connected to GND--BOOT0
User LED (Red)--PF0Active HIGH
12V indicator LED (Blue)----
  • Unused GPIOs inside the package should be config to output low: PB0, PB2, PB3, PB4, PB5, PB8, PB9, PB10, PB11, PC13, PC14, PC15.
  • OC_TH_STBY1 and OC_TH_STBY2 should be HIGH for 500mV OC threshold.
  • For analog IC, the GPIO input config without pull-up or -down is always allowed.

PCB

Jumper

If input voltage (i.e. VM)<15V then close SB1 to connect VM pin and VREG12 pin.

Board Characteristics

  • Copper layer count: 4
  • Board overall dimensions: 32 x 32 mm
  • Min track/spacing: 0.13 mm / 0.13 mm
  • Min hole diameter: 0.3 mm
  • Castellated pads: No
  • Edge card connectors: No
  • Plated board edge: No
  • 1oz copper

SPI

MA702 encoder SPI:

  • Mode:
    • 0 (CPOL=0, CPHA=0) or 1 (CPOL=1, CPHA=1)
    • Data sampled on first edge
  • 16-bit data frame
  • MSB first
  • nCS pin active low
  • 25MHz clock

MCU

STSPIN32xF0F0AF0B
Operating voltage8~45V6.7~45V6.7~45V
OP-Amps431
GPIOs151620
BOOT0 pin--YesYes
3FG decoding logic for Hall sensorsYes----
ComparatorOCPOCP and current controlOCP and current control
PackageQFN 7x7mm 1EPQFN 7x7mm 1EPQFN 7x7mm 1EP

Solved: STSPIN32F0 vs STSPIN32F0A vs STSPIN32F0B - STMicroelectronics Community

Reference

  • qwertpas/O32controller: Miniature closed-loop controller for brushless DC motors
  • STspin32G4 support - hardware support - SimpleFOC Community
  • ST AN5397 "Current Sensing in motion control applications"
  • ST AN4999 "STSPIN32F0/F0A/F0B overcurrent protection"
  • ST DB3364 "STEVAL-SPIN3202: STSPIN32F0A advanced 3-phase BLDC driver with embedded STM32 MCU single shunt evaluation board"
  • ST DB4049 "EVALKIT-ROBOT-1: Compact reference design kit for robotics and automation based on STSPIN32F0A"
  • ST DB3798 "STEVAL-ESC002V1: Electronic Speed Controller reference design based on STSPIN32F0A"
  • TI SLUA887 "Bootstrap Circuitry Selection for Half-Bridge Configurations"
  • Diodes DN1156 "Gate Drivers in BLDC Motors"

Parts

101
QtyValueFootprintReferences
1210uF/50VCapacitor_SMD:C_0805_2012MetricC23, C24, C25, C26, C27, C28, C29, C30, C31, C33, C34, C37
9100nFCapacitor_SMD:C_0402_1005MetricC3, C4, C5, C8, C9, C11, C16, C19, C22
61.78kResistor_SMD:R_0402_1005MetricR12, R15, R20, R23, R28, R31
610RResistor_SMD:R_0402_1005MetricR9, R10, R17, R18, R25, R26
624kResistor_SMD:R_0402_1005MetricR11, R14, R19, R22, R27, R30
6DMTH4007SPSmoco:PowerDI5060-8Q1, Q2, Q3, Q4, Q5, Q6
6NetTie_2NetTie:NetTie-2_SMD_Pad0.5mmNT1, NT2, NT3, NT4, NT5, NT6
4220nF/50VCapacitor_SMD:C_0805_2012MetricC7, C14, C17, C20
4MountingHoleMountingHole:MountingHole_2.2mm_M2_ISO14580H1, H2, H3, H4
3100nF/50VCapacitor_SMD:C_0402_1005MetricC15, C18, C21
310kResistor_SMD:R_0402_1005MetricR2, R5, R6
312kResistor_SMD:R_0402_1005MetricR16, R24, R32
320mΩ/3WResistor_SMD:R_2512_6332MetricR13, R21, R29
21kResistor_SMD:R_0402_1005MetricR7, R8
21uFCapacitor_SMD:C_0402_1005MetricC10, C12
26.8pFCapacitor_SMD:C_0402_1005MetricC1, C2
2CANConnector_JST:JST_SH_SM03B-SRSS-TB_1x03-1MP_P1.00mm_HorizontalJ2, J8
1100kResistor_SMD:R_0402_1005MetricR3
110uFCapacitor_SMD:C_0805_2012MetricC13
110uFCapacitor_SMD:C_0402_1005MetricC6
1120RResistor_SMD:R_0402_1005Metric_Pad0.72x0.64mm_HandSolderR1
118uHInductor_SMD:L_Taiyo-Yuden_MD-3030L1
11uFCapacitor_SMD:C_0402_1005Metric_Pad0.74x0.62mm_HandSolderC36
122kResistor_SMD:R_0402_1005MetricR4
124MHzCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1Amoco:wire_2.2mm_rectagnelJ5
1Bmoco:wire_2.2mm_rectagnelJ6
1BlueLED_SMD:LED_0603_1608MetricLD2
1Cmoco:wire_2.2mm_rectagnelJ7
1DebugConnector_PinHeader_2.54mm:PinHeader_2x04_P2.54mm_VerticalJ1
1GNDTestPoint:TestPoint_Pad_D1.0mmTP1
1MA702Package_DFN_QFN:QFN-16-1EP_3x3mm_P0.5mm_EP1.75x1.75mmU3
1RESETButton_Switch_SMD:SW_SPST_EVQP7CSW1
1RedLED_SMD:LED_0603_1608MetricLD1
1STPS0560ZDiode_SMD:D_SOD-123FD1
1STSPIN32G4moco:VFQFPN 9X9X1.0 64 PITCH 0.5U1
1TCAN337Package_TO_SOT_SMD:SOT-23-8U2
1V+moco:wire_2.2mm_rectagnelJ3
1V-moco:wire_2.2mmJ4

Questions

How big is the Moco pg4 PCB?

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

What parts does the Moco pg4 use?

101 parts, built around the STSPIN32G4, TCAN337D and STPS0560Z. 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 Moco pg4 KiCad files?

From the ziteh/moco repository on GitHub, at the commit this page was made from: the board is hardware/moco-pg4/moco-pg4.kicad_pcb and its schematic hardware/moco-bkd8316/moco-bkd8316.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Moco pg4 design in my own project?

Its repository publishes it under the CERN-OHL-P-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

More from ziteh/moco

5
  • 4 layersMoco od501, the printed circuit board in 3D

    Moco od501

    ziteh/moco

    PMSM/BLDC motor controller/driver PCBs

    102 parts24CERN-OHL-P-2.0
  • 4 layers32 × 32 mmMoco rd321, the printed circuit board in 3D

    Moco rd321

    ziteh/moco

    PMSM/BLDC motor controller/driver PCBs

    95 parts24CERN-OHL-P-2.0
  • 4 layersMoco rc1, the printed circuit board in 3D

    Moco rc1

    ziteh/moco

    PMSM/BLDC motor controller/driver PCBs

    89 parts24CERN-OHL-P-2.0
  • 2 layersMoco oi401, the printed circuit board in 3D

    Moco oi401

    ziteh/moco

    PMSM/BLDC motor controller/driver PCBs

    75 parts24CERN-OHL-P-2.0
  • 2 layers35.5 × 41 mmMoco bkd8316, the printed circuit board in 3D

    Moco bkd8316

    ziteh/moco

    PMSM/BLDC motor controller/driver PCBs

    50 parts24CERN-OHL-P-2.0

Similar boards

  • 4 layers80 × 80 mmFOC CONTROLLER V2, the printed circuit board in 3D

    FOC CONTROLLER V2

    INBOARDBOT/2526_PROJET2A_TDI

    Total Drive Immersion - Motion System

    127 parts1MIT
  • 4 layers40 × 40 mmZiteh moco moco sc1, the printed circuit board in 3D

    Ziteh moco moco sc1

    punkfab/pcb-corpus

    235 real KiCad boards from open-source hardware repositories, prepared as a placement and routing benchmark

    118 parts1
  • 2 layers191.3 × 181.7 mmIO Card G3, the printed circuit board in 3D

    IO Card G3

    PerMalmberg/IO-Card-G3

    This is my custom I/O card, third generation. Main purpose is to serve as an alarm system.

    400 parts7MIT
  • 4 layers77 × 127 mmEsc sigma-4s panel, the printed circuit board in 3D

    Esc sigma-4s panel

    mstoilov/sigmadrone-esc

    Sigmadrone Electronic Speed Controller (ESC)

    514 parts5
  • 8 layers50 × 43.3 mmFOC CONTROLLER V1, the printed circuit board in 3D

    FOC CONTROLLER V1

    mathieupommery/ESE_2526_ROBOTCHATDELAMUERTE

    We first wanted to make a three omniwheeled robot with FOC control on brushless motors.

    297 parts1
  • 4 layers58.9 × 48.4 mmApppd, the printed circuit board in 3D

    Apppd

    chithigun23/ANUFS-APPPD

    An update to the Accelerator Pedal Position Plausibility Device to remain compliant with the use of a paddle shift system.

    103 parts
  • 4 layers80 × 80 mmTelemetry, the printed circuit board in 3D

    Telemetry

    chithigun23/ANUFS-Telemetry

    To use custom hardware to measure parameters and dynamics of an ICE Formula SAE car.

    159 parts
  • 2 layers82.5 × 49 mmObd2dash, the printed circuit board in 3D

    Obd2dash

    EthanPope07/obd2dash

    An ESP32-S3 CAN-to-BLE bridge for an iPad vehicle dashboard. The firmware discovers each ECU's supported current-data PIDs and forwards complete raw responses through a versioned BLE GATT stream.

    22 parts