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
  • 534 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
  • 5379 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
  • 6486 Views
  • 2 replies
  • 7 kudos

Inaccuracy of power measurement vs speed of the motor

We are using STM32F301 micro along with 5.4.4 motor control SDK. We found that at different speeds we get different power measurments for the same amount of power output of the motor. Is this due to the fact that PQD_CalcElMotorPower() does not use p...

0693W00000AO2vWQAT.png
SAkki.1 by Associate
  • 686 Views
  • 2 replies
  • 0 kudos

Controlling two servo motors with one STM32 MCU

For a new motion control application it would be beneficial to control two servo motors (in velocity control mode) with one STM32 MCU. It would require to generate two PWM signals based on Hall sensor feedback from two servos. The two motor velocitie...

Kmax18 by Senior II
  • 3198 Views
  • 2 replies
  • 0 kudos

Could someone help with MCP overrun errors ?

Hi, first the good news: I have motor control up and working. And communication with the workbench works fine. Having read up on the ST motor control protocol, and watching serial comms with the HHD software device monitor app, I can see that command...

DKing.1 by Associate II
  • 798 Views
  • 2 replies
  • 0 kudos

how to connect the interface timer to the PWM generating timer using DMA on a STM32G4 for BLDC motor coordination using three (U-V-W) Hall Sensors?

I want to use an STM32G4 to control a BLDC motor with three (U-V-W) Hall Sensors (through a TI DRV8323S three-phase integrated gate driver). To be concrete, I am planning on using TIM1 on the STM as the interfacing timer to detect state changes (on U...

TB by Associate III
  • 805 Views
  • 1 replies
  • 1 kudos

Six-step motor driving library for STSPIN32F0251

Hi All,Please has anyone worked the six step library STSPIN32F0251 for the EVSPIN32F0251S1 evaluation board ?if yes, please do you mind explaining this: When the quasi-synchronous rectification is selected under the 6step_conf.h file, the MC_Core_LL_...

0693W000008xaPWQAY.png

I am using STM32F405 for BLDC six step motor control for drone application with open source BLDC VESC code. In the PWM pulses for the low side IGBT’s, there is a weird pulse (which is unwanted) and causing problem especially during high duty cycle

The captured PWM signals with back-emf’s and currents are shown in the figure below (waveforms are recorded using Logic Analyzer). The pulse causing the problem is highlighted in yellow.I did many work-around to solve the problem but could not find a...

0693W000008xoeQQAQ.png
JJaco.3 by Associate
  • 688 Views
  • 1 replies
  • 0 kudos

Flash programming while MC Workbench program is running

Hi, I'm going to write a parameter tabe into the last page of the flash in my MC Workbench project running on STM32F302R8. I made some tests and seems that programming the flash while the motor is in IDLE state is working fine. If I program the flash...

CSime.1 by Associate
  • 448 Views
  • 1 replies
  • 0 kudos

STM32F4 Discovery Board external power problem

Hi,I am trying to feed my Stm32F4 Discovery with 5v in pins. I have tried to feed it with ESC's BECs , PDB or with voltage regulator and Li-Po battery but I am still facing with problems.The problem is that when I try to make PWM generation in tim4 ...

MDoğr.1 by Associate II
  • 551 Views
  • 1 replies
  • 0 kudos

How can change the RPM using motor control SDK API.

Hi, SETUP:IPM30B-3sh + STM32F302R8 + 2.5KW BLDC MotorI have been trying to run the motor sensorless + PLL, i have been able to run the motor with predefined ramp.question:Q1. How can control the speed of motor using the gui tool and knob in MC-Workbe...

Tido1 by Associate
  • 475 Views
  • 1 replies
  • 0 kudos