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
  • 522 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
  • 5373 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
  • 6479 Views
  • 2 replies
  • 7 kudos

How to disable MCP

Dear ST MCSDK team,We are using MC SDK 5.Y.2 and have a conflict between our custom ADCs drivers and ASPEP protocol. Aspep init the UART that use DMA and conflict with our DMA usage with ADC.We can't find anywhere to disable ASPEP / MCP Protocol in t...

ANICO.1 by Associate III
  • 1884 Views
  • 3 replies
  • 2 kudos

Resolved! How to control complementary pwm output ?

I am using 3 Channels to generate 6 pwm using complementary pwm by timer 1.I want to control output of CH1 and CH1N seperatly.I tried configuring according to this table:TIM1->CCER &= (uint16_t) ~TIM_CCER_CC1NE; // Disabling compl pwmHAL_Delay(150...

0693W00000GZRJOQA5.png
Tejashree by Associate III
  • 1668 Views
  • 2 replies
  • 0 kudos

Complementary output is active high when disabled

I want to control output of complementary PWM.I am doing it as follows:while (1) {  /* USER CODE END WHILE */  TIM1->CCR2 = 30000;  HAL_Delay(15000);  TIM1->CCER &= (uint16_t) ~TIM_CCER_CC2E;  HAL_Delay(15000);  TIM1->CCER|=TIM_CCER_CC2E;  /* USER...

0693W00000GZSEZQA5.png 0693W00000GZSEyQAP.png
Tejashree by Associate III
  • 740 Views
  • 1 replies
  • 0 kudos

STM32F0 speed PID tuning and low speed operation

We are working on parameter tuning for a BLDC motor on a custom board, by using demo board STEVAL-SPIN3201 and Motor Control Workbench (FOC mode). The motor is used to drive a peristaltic pump.The motor has been measured and measurements have been ve...

LF.1 by Associate
  • 1221 Views
  • 3 replies
  • 1 kudos

FOC+Hall question

I use FOC+Hall sensor(STM32F030RE MCU, ihm08m1 power board, MC lib 5.3.2) and set default mode to torque mode(Iq = 15A, Id = 0). Motor nominal current is 15AWhen I try to go uphill by this Ebike, the motor can not go uphill sucessfully.How to improve...

cyt by Associate II
  • 1116 Views
  • 3 replies
  • 0 kudos

Resolved! issue on ADC value left align

I've designed an FOC driver borad using STM32F302.The ADC that samples the resistor current is set left-align in the generated code by MotorControl Workbench 5.4.7.Does ADC have to be left-aligned?Due to this,the ADC value is always out of bound​​

Lzhiy.1 by Associate II
  • 1311 Views
  • 3 replies
  • 0 kudos

Resolved! can FOC Frequency be very low?

I've designed an FOC board.First of all,I want to realize the SVPWM without using other transformation in order to make the motor rotate first.PWMC_SetPhaseVoltage(pwmcHandle, Valphabeta);so I generate an array about Valphabeta as the code below:#de...

Lzhiy.1 by Associate II
  • 990 Views
  • 2 replies
  • 0 kudos