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
  • 346 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
  • 5334 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
  • 6383 Views
  • 2 replies
  • 6 kudos

USART3 stops working after code update.

I have a motor control board built around the STM32F446RET6. I was updating code using motor control workbench to alter the control parameters.After an update, I was no longer able to use the motor control workbench console to communicate with the bo...

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

Resolved! STEVAL-SPIN3202 Correct positions of the jumpers

Dear ST,Could you please advice on the correct positions of STEVAL-SPIN3202 jumpers to run an example with ST MotorPilot.J9 - BOOT0 Open or closed? J7 - RX - TX Open or closed, Could you please explain why would we need to connect RX and TX? Which o...

0693W00000Ka6sLQAR.png 0693W00000Ka6yJQAR.png 0693W00000Ka6zbQAB.png
EShaw.1 by Associate II
  • 799 Views
  • 2 replies
  • 0 kudos

Deadtime

First thingI am trying to XOR, 3 pwm's and If the xor output is 1 "motor is on" otherwise "motor is off".I am getting 90ns deadtime. I mean between the pwm's there is some gap. How to encounter this situation? ( I wnt to use a gpio and Im using a nuc...

Vmere.1 by Senior
  • 725 Views
  • 0 replies
  • 0 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
  • 919 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
  • 470 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
  • 438 Views
  • 1 replies
  • 0 kudos