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
  • 377 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
  • 2722 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
  • 7053 Views
  • 5 replies
  • 3 kudos

Hardware Changes in B-G431B-ESC1 board

I need some advice on the hardware design of the B-G431B-ESC1, i have built custom board with different ratings but based on the schematic provided. My main worry and want to understand is there is some filtering section missing for example Anti alia...

SRedd.5 by Senior III
  • 627 Views
  • 0 replies
  • 0 kudos

STSPIN32G4 does not start with software from MCSDK

Hello,I have built an ESC based on STSPIN32G4 and created a software for it using MC SDK. I did select the following in MC Workbench: Inverter, EVSPIN32G4. Did not change any other options. Schematic of my PCB is based on the EVSPIN32G4 electronic wi...

HAL-9000 by Associate II
  • 3677 Views
  • 7 replies
  • 0 kudos

STSPIN32G4 running very hot

I designed my own PCB largely based on the EVALSTSPIN32G4, mine being a four layer board with components on both sides for compactness.I generated code using MC Workbench 5.Y.4 with hall sensors. I implemented my own absolute encoder via SPI, and add...

0693W00000LxnLFQAZ.jpg
PCama.1 by Associate III
  • 2851 Views
  • 6 replies
  • 0 kudos

motor phase voltage feedback

 Hi guys, I'm working on an EV motor control project, the motor type is IPMSM, and on it’s Drive, I have found that it measures the motor voltage feedbacks (middle point of inverter legs) by Op-amps (inverting Configuration) -> MCU input.The inverter...

Resolved! Control and synchronization of two BLDC motors

Good day!Please tell me where I could see the connection diagram for controlling two brushless motors using STSPIN32G4? I couldn't find any information on the site. I saw a video on youtube https://www.youtube.com/watch?v=E8NkogGR--s But i couldn't f...

Resolved! How can I optimize my position loop control?

I am using MCSDK 5.Y.4 and add position loop.My controller sends a position command every 4ms.err=target_pos - current_pos,then the err value (multiply by P) is the speed loop pid input.But I found that the speed is not smooth when the motor changes ...

微信截图_20230719162859.png
gtop.1 by Associate III
  • 951 Views
  • 1 replies
  • 0 kudos

Resolved! motor control (especially FOC)

Hi ,Is there any sample code for motor control (especially FOC) in Cube IDE, Cube MX, motor control workbench, ST website, etc.?I tried to search all the Cube IDE, ST website, etc., but I couldn't find it.Also, is there any additional software I need...

Nishino08 by Associate II
  • 1913 Views
  • 3 replies
  • 0 kudos

Resolved! Speed Feedback fault in Motor Control Workbench Monitor.

I have made a SM-PMSM project for a hub motor (10 pole pairs). I can compile the generated code in STM32CubeIDE (HAL) but when I run it I always get the fault "Speed feedback" in Motor Control Workbench Monitor.There is 20ms of activity, where there ...

0690X00000ArsRRQAZ.png
Gussius by Associate II
  • 8571 Views
  • 10 replies
  • 3 kudos

Resolved! STC_GetMecSpeedRefUnitDefault prototype does not match.

The definition of the function is __weak int16_t STC_GetMecSpeedRefUnitDefault(SpeednTorqCtrl_Handle_t *pHandle) in speed_torq_ctrl.c file.It is called in mc_tasks.c as belowSTC_GetMecSpeedRefUnitDefault(pSTC[M1]),0);it is called with additional 0 ar...

SRedd.5 by Senior III
  • 720 Views
  • 1 replies
  • 0 kudos

Resolved! sending signal (UART) while running MotorControl

Hi,I'm currently working on sending signals through FDCAN or UART of B-G431B-ESC1 while driving a motor.I have written a debug code which sends UART data when a button is pressed.However, the function is called once and never called again, nor the mo...

JKong3_0-1688626066429.png
JKong.3 by Associate III
  • 4169 Views
  • 17 replies
  • 2 kudos