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
  • 305 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
  • 5307 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
  • 6362 Views
  • 2 replies
  • 6 kudos

Resolved! Need a 3rd advanced timer in the STM32 family

i would like to run 3 BLDC motors out of the STM32.  Are only TIM1 and TIM8 the only advanced timers available? is there any part that has 3? We use the comp output 3-phase PWMs with success driving 1 or 2 motors, but now we need to drive 3 and don't...

rfish.749 by Associate II
  • 1013 Views
  • 2 replies
  • 0 kudos

How to ACTUALLY get started with STEVAL-SPIN3202 ??

In order to actuate a gripper prototype, I decided to buy a BLDC motor from Maxon (EC-32 flat), and an evaluation board to drive it (STEVAL-SPIN3204, then STEVAL-SPIN3202).After setting up the hardware connection with the STEVAL-SPIN3204, I manage to...

ACAND.1 by Associate
  • 1403 Views
  • 3 replies
  • 1 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
  • 1823 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
  • 1620 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
  • 725 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
  • 1183 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
  • 1095 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
  • 1279 Views
  • 3 replies
  • 0 kudos