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
  • 247 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
  • 5277 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
  • 6332 Views
  • 2 replies
  • 6 kudos

MC workbench with bldc using hall sensors.

Hi, I am fairly new to motor control and ST software. I am trying to setup a bldc hall sensor motor with the MC workbench tool to control speed for now. I am using the b-g431b-esc1 discovery kit. I have wired the motor to the kit as described in um25...

How to run a BLDC using C-functions of mc_api.c

I tried to run a motor(BLDC).But, my motor doesn't run. I refered to this PDF to page 45~.https://www.st.com/content/ccc/resource/technical/document/user_manual/group1/48/e6/91/f4/66/ea/48/a1/DM00490980/files/DM00490980.pdf/jcr:content/translations/e...

smiya.1 by Associate
  • 892 Views
  • 3 replies
  • 0 kudos

I want to read the current using single shunt method for stm32g431cb.I am not using SDK.Below is my Cubemx configuration.I am trying to read the opAMP out pin on adc via dma.

Below is my cubemx config:I am trying to Read OP1_out via ADC.but I don't get any values when the motor is rotating.can some help me to configure the pin for single shunt current read ?Also if there is any Opamp configuration

0693W00000KZfSuQAL.png 0693W00000KZfTYQA1.png
Tejashree by Associate III
  • 469 Views
  • 0 replies
  • 0 kudos

Hi, I would like to get some informations about using timer prescaler in encoder mode. Is it allowed practice or it shouldn't be used?

First of all it works for me just as I wanted: Using prescaler "4" increments CNT every 4 encoder detections. It solves problem of CNT overflow in bigger resolution encoders. I know it could gain errors every motor direction change, but this is not a...

PKied.1 by Associate
  • 435 Views
  • 1 replies
  • 0 kudos

Can't Stop Motor when in START or ALIGN state

Hello EveryoneI'm using FOC control for a BLDC motor. It works fine, but there's a situation that I can't solve.I'm using a trigger as input: when pressed, the motor starts and must remain running until the trigger is released. If the user press the ...

Position Control PID Error?

CubeMX 6.4.0Cube IDE 1.8MSDK 5.y.4Nucleo -F446REIHM 08M1 3shHello,I noticed that in position control mode, the PID controller generates a current Id ref value other than 0. Is it supposed to be like this? In version MSDK 5.4.8 the current Id referen...

MK.1 by Senior
  • 844 Views
  • 2 replies
  • 0 kudos

STEVAL-SPIN3202, Over current and set SPEED REF

Step 1I have a motorUse EVB-F302+iHM08M1 to get motor parameters through Motor profiler as follows. Step 2I need to use EVB-STEVAL-SPIN3202 of STSPIN32F0A,execute Six-Step Sensorless Example code,STEVAL-SPIN3202\Demonstration\6S_STEVAL3202_SL_VM.stmc...

0693W00000JPevwQAD.png 0693W00000JPevhQAD.png

Resolved! STSPIN32F0 gate driver HS open by default

I'm trying to adapt a piece of BLDC control firmware that already works for the STM32F0 family for use with an STSPIN32F0 chip using a STEVAL-SPIN3201 board. But for some weird reason, I am unable to figure out what's going on with the gate driver, a...

neoxic by Associate II
  • 704 Views
  • 1 replies
  • 0 kudos