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

User Manual MCSDK documentation

  Dear MCSDK users, The full MCSDK documentation is embedded in the Motor Control Workbench tool. Refer to Workbench tool > About > Documentations > Documentation.This document provides: Introduction: Includes startup guide links for MCSDK, HSO featu...

GMA by ST Employee
  • 278 Views
  • 0 replies
  • 0 kudos

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
  • 1566 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
  • 6003 Views
  • 5 replies
  • 3 kudos

Integrate Motor driver c-code to simulink

hi,i'm currently working on a project where i want to control a stepper motor via the STM32F446RE board and X-NUCLEO-IHM-03A1 expansion board.To benefit from the X-CUBE-SPN3 software package, i would like to integrate the external c-code to matlab/si...

tired by Associate II
  • 5620 Views
  • 12 replies
  • 0 kudos

Resolved! X-NUCLEO-IHM07M1

Hi,Is there an example code for start with this kit?. I have tried all code proposed(speed ramp with potenziometer) in STMCW but no one works for me, instead the motor profiler works so i think the harware is OK.I created the project in STMCW ,i gen...

DMazz.1 by Associate II
  • 1226 Views
  • 5 replies
  • 0 kudos

Resolved! Looking for help on developing "Software application for Sensor based closed loop algorithm using BLDC motor for Position control"

The idea is to 1) Control position - that is to rotate the motor with a desired angle such as 5 degrees, 7 degrees, 10 deg, 13 deg, 20 deg, etc.. 2) Control speed in rpmBut as the motor control based application is new for me, I'm not sure what contr...

SMart.2 by Associate II
  • 1281 Views
  • 7 replies
  • 0 kudos

Issues with Motor Control and CubeIDE

Hi, we just started trying to evaluate some ST micros for a small motor control project. We started by creating a motor control project with the motor control workbench 5.4.3, for our target. This created a project with no issues. We then create the...

PEagl.1 by Associate
  • 1167 Views
  • 5 replies
  • 0 kudos

STM32F411 multiple Channels on timer with DMA

Is it possible to run two or more channels on timer with DMA PWM mode?This code starts only first Channel. uint32_t PrawoPWM = 100; uint32_t LewoPWM = 100; HAL_TIM_PWM_Start_DMA(&htim4, TIM_CHANNEL_1 , &PrawoPWM, 1); HAL_TIM_PWM_Start_DMA(&htim4, TIM...

JSzem.1 by Associate II
  • 2950 Views
  • 10 replies
  • 0 kudos

Resolved! Change the frequency of the square signal

HiI am working on changing the frequency of the square signal which comes from STM32F4. I used Timer and ADC simultaneously where I change ARR and CCR1 accordingly to change the frequency. When I use an incremental loop for these values I can get dif...

AAbed.1 by Associate III
  • 1229 Views
  • 7 replies
  • 0 kudos

How do I get my first project to work on STM32G431.

Ran Motor Profiler, Created new project in MotorControlWorkbench, Generated code for STM32CubeIDE, built application with no errors, run debugger which shows download successfully.Switch back to motor control workbench and successfully connect, when ...

MCohn.1 by Associate
  • 2856 Views
  • 17 replies
  • 0 kudos

Start-up issues with custom PMSM, motor will not start

I am working with a custom SM-PMSM, and built a motor drive to power it.The motor does not start, and the START-UP FAILURE always occurs. There is a pulse of current delivered to the motor, which I assume is used to orient the rotor.Using the monitor...

DTard.1 by Associate II
  • 4260 Views
  • 12 replies
  • 0 kudos

Resolved! HRTIM inserting 100% duty cycle pulse into PWM

Hello,I am working on BLDC driver based on STM32. I am using HRTIM to generate 3 complimentary PWMs at 20Khz in up-down counting mode. Every now and then, a single pulse of the PWM is wrong, like it would have 100% duty cycle. The issue is non period...

JMaty.1 by Associate II
  • 3378 Views
  • 6 replies
  • 0 kudos

Resolved! open loop sinusoidal control

Hi, i am trying to control bldc motor sinusoidally. I completed with 6 step commutation. I asked help in stm32 forum recent, but none helped. I have learned something in sinusoidal bldc control. FIrstly i implemented spwm using sine LUT (say 256 val...

0690X00000BxSENQA3.png
Bud by Associate III
  • 2355 Views
  • 4 replies
  • 1 kudos