STM32 MCUs Motor control

Discuss STM32 solutions for motor control, including PID tuning, sensorless operation, ADC noise, custom algorithms, and more.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

MCSDK 6.4.0 is out!

Dear MCSDK users, MCSDK version 6.4.0 is now available: Download It here. This version of the new Motor Control SDK 6 series (X-CUBE-MCDSK) provides mainly FOC and 6Step improvements, here are the main changes for this version: Motor Control Features...

GMA by ST Employee
  • 447 Views
  • 0 replies
  • 3 kudos

Board Manager documentation is out !

The documentation of the Board descriptions format is now available on Motor Control Boards Description Wiki page, this documentation is compatible with MCSDK versions from 6.1.2. Board Descriptions are used by the ST motor-control workbench to enabl...

Zied b. by ST Employee
  • 5364 Views
  • 5 replies
  • 3 kudos

MCSDK documentation and your feedback

Motor Control Wiki: STM32 Motor Control Knowledge Database - stm32mcuMC Frequently asked questions (FAQ) for version MCSDK5.x:Frequently asked questions (FAQ) - stm32mcu   The documentation of the Board descriptions format is now available on the Mot...

Zied b. by ST Employee
  • 6447 Views
  • 2 replies
  • 7 kudos

Need higher resolution speed measurement in FOC code.

In my sensorless application driving a BLDC I need the best resolution possible. I set the SPEED_UNIT to _001Hz but the feedback from the SPD_GetAvrgMecSpeedUnit procedure still seems to be in units rounded to 6. For example I can read 3059 and 3064 ...

BTrem.1 by Senior II
  • 730 Views
  • 3 replies
  • 0 kudos

MC Workbench cannot generate projects with CubeMX 6.3.0

Hi all,​I am using MC Workbench to generate motor projects.​As I upgrade my STM32CubeMX to 6.3.0, it doesn't work anymore.​I can directly use STM32CubeMX, but cannot generate source via MCWorkbench.​I tried MC Workbench 5.4.4, 5.4.6, 5.Y.1, and all o...

JHSU.16 by Associate
  • 1117 Views
  • 1 replies
  • 0 kudos

STSPIN32G4 Power Consumption Reduction

I customized a version of the EVSPIN32G4 eval board to spin my 2 pole pair BLDC 24V 2A motor in sensorless FOC mode. My schematic is similar to the eval schematic. When the motor is spinning the STSPIN32G4 on my board is getting to 65 degrees C which...

WSega.1 by Associate II
  • 768 Views
  • 2 replies
  • 0 kudos

STEVAL-PTOOL1V1 sample code

helloI have been purchased one of STEVAL-PTOOL1V1 evaluation board.I am going to develop sample code which provided by company, but some errors occurred in building new file process by IAR & Keil IDE.errors of following:no definition for "MC_Core_St...

amoos.11 by Associate II
  • 2119 Views
  • 10 replies
  • 0 kudos

Installing Motor Profiler 5.4.3

My computer crashed & I needed to reinstall all my tools on another system. Both are Windows 10 64x. I can't get the Motor Profiler 5.4.3 to connect on the new system. When I try to connect I get a message it can't find the MFC100.dll. I installed th...

BTrem.1 by Senior II
  • 849 Views
  • 3 replies
  • 1 kudos

STM32G4 Window Comparator Alternatives

I am designing a motor controller PCB that uses an STM32G4 MCU (since the CORDIC accelerator and FPU will be useful in my application). One of the required features for this project is cycle-by-cycle current limiting for a BLDC motor. I have two phas...

BPaik by Senior
  • 1029 Views
  • 3 replies
  • 0 kudos

I am able to generate a complementary PWM signal. However due to hardware changes I would need to add a dead time. Regardless the value I am setting in the BDTR register there is no dead time at the output.

// InitialisationTIM1->PSC = (FOSC/(PWM_FREQ * PWM_STEPS)) - 1;    // Timer clock TIM1->ARR = PWM_STEPS - 1;                        // Auto reload TIM1->BDTR = 0;                                    // SafetyTIM1->CCER = 0;TIM1->CR2 = 0;TIM1->CCMR1 = ...