Skip to the content
2 layers98 × 38 mmBldc control ver3, the printed circuit board in 3D

Bldc control ver3

pekkaroi/bldc-drive199

Cheap and simple brushless DC motor driver designed for CNC applications using STM32 microcontroller

Size
98 × 38 mm
Copper layers
2
Thickness
1.6 mm
Parts
68
Nets
86
Pads
273
Tracks, vias
806, 82
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20160815)
Created
14 Nov 2015
Updated
18 Jan 2018

Overview

Bldc control ver3 is an open-source printed circuit board by pekkaroi, from the pekkaroi/bldc-drive repository on GitHub, published under the GPL-2.0 licence. It is a 2-layer board of 98 × 38 mm with 68 parts on 86 nets, routed with 806 tracks and 82 vias.

It is built around the STM32F103C8T6, 74LS125DC and AM26LV32ID, with the SFH6755T and SN74LVC8T245PW among its other parts. Its parts include 21 resistors, 17 capacitors, 13 connectors, 6 ICs and 3 diodes. It belongs with the robots and motor control boards and the STM32 boards of this library.

Main components

5

README

README.md

bldc-drive

This is a project developing a simple BLDC servo controller. It is based on an STM32F103 microcontroller.

Some parts, especially the PID control loop is based on development done by user mcm_xyz in cnczone.com forum. Thank you! Check the thread http://www.cnczone.com/forums/open-source-controller-boards/283428-cnc.html

Disclaimer

This software and hardware is provided "AS IS", WITHOUT ANY WARRANTY. The software is released under GPL v2. Authors accept no liability for any harm or loss resulting from use of this hardware or software.

Authors & Contributors

Firmware

Firmware is a work-in-progress (and will be for a while :), however following features are included:

  • Trapezoidal BLDC commutation using either HALL sensors or quadrature encoder.
  • Step+Dir input interface with PID position control loop.
  • PWM+Dir input interface in velocity mode.
  • USART communitacation for configuration. Configuration settings saved to flash memory.
  • TODO: Motor Test Mode to simply activate a Motor with a fixed frequency, no encoder needed

Update 1st May 2016

Some updates to the firmware.

  • ADC current limiting implemented. Appears to work OK
  • I created a quick and ugly Python gui for tuning
  • Updated the PID loop to have feedfoward coefficients FF1 and FF2 (like LinuxCNC). This means that the PID output can be adjusted by the requested speed and the requested acceleration. This made the PID tuning a lot easier for me at least, I'm able to get a motor to follow the requested position very well also during acceleration and during constant drive.

Hardware:

First prototype hardware is built and it is working well. However, there are couple of known issues:

  • 6n137 optocoupler is not officially supporting 3.3V supply voltage which is used in the board. In reality they seem to work, but the optocoupler should be changed or additional levelshifting circuitry added on next revision. Also, the optocoupler input circuit supports only push-pull-type encoder output. Many encoders seem to have open drain output. :(
  • Few connectors in the layout missed solder stop openings. They were bit painfull to solder. :)
  • The current amplifier INA27x connection is wrong. The IN+ and IN- should be swapped.

STATUS QUO:

Second hardware revision with the above findings fixed is published. There are no known issues, two servo drives are succesfully driving my CNC router. Pics and videos to come..

HARDWARE TODOs:

  • verify all part-values into the schematic

Parts

68
QtyValueFootprintReferences
16CCapacitors_SMD:C_1206C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C12, C13, C14, C15, C16, C17
13RResistors_SMD:R_0805R1, R2, R3, R6, R7, R8, R9, R10, R13, R16, R17, R18, R19
30Resistors_SMD:R_0805R11, R14, R20
3CONN_01X03Pin_Headers:Pin_Header_Straight_1x03P2, P8, P11
3LEDLEDs:LED-0805D1, D2, D3
3NMResistors_SMD:R_0805R12, R15, R21
21KResistors_SMD:R_0805R4, R5
2CONN_01X04Pin_Headers:Pin_Header_Straight_1x04P5, P7
2CONN_01X05Pin_Headers:Pin_Header_Straight_1x05P6, P10
2CONN_01X08Pin_Headers:Pin_Header_Straight_1x08P1, P4
174LS125SMD_Packages:SOIC-14_NU5
1AM26LV32Housings_SOIC:SOIC-16_3.9x9.9mm_Pitch1.27mmU4
1CONN_01X02Pin_Headers:Pin_Header_Straight_1x02P13
1CONN_01X04jst-ph:jst-ph-JST-PH4P9
1CONN_01X06Pin_Headers:Pin_Header_Straight_1x06P3
1CONN_01X08RJ45_SMD:RJ45_SMDP12
1CP2Capacitors_Tantalum_SMD:TantalC_SizeC_EIA-6032_ReflowC11
1CRYSTALCrystals:Crystal_HC49-SD_SMDX1
1NCP1117ST33T3Gacronet:SOT223_SU1
1PC817Opto-Devices:Optocoupler_SMD_HandSoldering_KPC357_LTV35x_PC357_SingleChannelIC1
1SFH6755TSMD_Packages:SOIC-8-NU3
1SN74LVC8T245Housings_SSOP:SSOP-24_5.3x8.2mm_Pitch0.65mmDD1
1STM32F103C8Housings_QFP:LQFP-48_7x7mm_Pitch0.5mmU2

The 62 most common of 68 parts.

More from pekkaroi/bldc-drive

2
  • 2 layers98 × 90 mmAlu casing, the printed circuit board in 3D

    Alu casing

    pekkaroi/bldc-drive

    Cheap and simple brushless DC motor driver designed for CNC applications using STM32 microcontroller

    64 parts199GPL-2.0
  • 2 layers98 × 38 mmBldc control ver2, the printed circuit board in 3D

    Bldc control ver2

    pekkaroi/bldc-drive

    Cheap and simple brushless DC motor driver designed for CNC applications using STM32 microcontroller

    63 parts199GPL-2.0

Similar boards

  • 2 layers189.2 × 148.6 mmEnlarger, the printed circuit board in 3D

    Enlarger

    ahradrhah/pcb

    65 parts
  • 4 layers223.5 × 129.8 mmClassicIIRevB, the printed circuit board in 3D

    ClassicIIRevB

    btb/ClassicII

    Reproduction of Macintosh Classic II

    447 parts16
  • 2 layers150 × 100 mm4hbd base, the printed circuit board in 3D

    4hbd base

    krtkr/4hbd

    4 Halfbridge Driver board schematics and PCB files, KiCAD

    198 partsApache-2.0
  • 2 layers83.2 × 71.4 mmReceiver Out, the printed circuit board in 3D

    Receiver Out

    computergeek1507/PB_16

    Open source FPP PB16 Pixel Controller

    68 parts78
  • 2 layersPS2Addon, the printed circuit board in 3D

    PS2Addon

    MicroLind-Developers/microlind-hw

    Hardware repository for the microlind project

    82 partsCERN-OHL-P-2.0
  • 4 layers51.4 × 60.6 mmGb rp2040 cart, the printed circuit board in 3D

    Gb rp2040 cart

    deltabeard/DBGC

    A Game Boy cartridge using the Raspberry Pi RP2040 with RTC and MBC support.

    67 parts57
  • 6 layers69.6 × 46.1 mmCarrier, the printed circuit board in 3D

    Carrier

    KaiPereira/CM5-SODIMM-Carrier

    A fully open source CM5 carrier to turn your Pi into a Jetson in compact SO-DIMM format!

    98 parts29
  • 2 layers91.3 × 53.3 mmTimep, the printed circuit board in 3D

    Timep

    Matir/timep

    Test Interface for Multiple Embedded Protocols

    89 parts25Apache-2.0

Questions

How big is the Bldc control ver3 PCB?

It measures 98 × 38 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Bldc control ver3 use?

68 parts, built around the STM32F103C8T6, 74LS125DC, AM26LV32ID and SFH6755T. 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 Bldc control ver3 KiCad files?

From the pekkaroi/bldc-drive repository on GitHub, at the commit this page was made from: the board is hardware/bldc_control_v3/bldc_control_ver3.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Bldc control ver3 design in my own project?

Its repository publishes it under the GPL-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).