Skip to main content
Erenburg.Evgeny
Associate III
October 31, 2017
Question

Using FOC SDK

  • October 31, 2017
  • 2 replies
  • 2090 views
Posted on October 31, 2017 at 08:53

The FOC library is complicated and I have some difficulties to understand how to work with it. Even after reading UM1052, UM1053.

On the highest level we can start/stop a motor

if (MCI_GetSTMState(oMCI[M1]) == IDLE) { MCI_StartMotor(oMCI[M1]); } else { MCI_StopMotor(oMCI[M1]); }

But how to set velocity and current?

Another question - I have to drive DC motors as well. What should I set for this purpose?

Is there more extensive examples?

This topic has been closed for replies.

2 replies

Alex Fedoseev
Associate II
December 12, 2017
Posted on December 12, 2017 at 19:21

For the second question, did you mean  brushed or brushless DC motors

PMSM FOC library is for driving the brushless ones.

Erenburg.Evgeny
Associate III
December 13, 2017
Posted on December 13, 2017 at 16:33

I need to drive DC motors as well as BLDC. So I thought there is a way to set the firmware to behave like a full bridge driver.

Alex Fedoseev
Associate II
December 14, 2017
Posted on December 14, 2017 at 00:49

I don't think FOC SDK is applicable for driving Brushed DC motors. The poles in Brushed motors are mechanically commutated vs the Brushless ones where we need complex algorithms to commutate motor windings.

If you do need an intergated solution, take a look at this document:

http://www.st.com/content/ccc/resource/sales_and_marketing/promotional_material/selection_guide/group0/52/61/48/55/a5/92/44/a4/sgstspin/files/sgstspin.pdf/jcr:content/translations/en.sgstspin.pdf

Laurent Ca...
Senior III
June 15, 2021

The question has been moved from the "Motor Control Hardware" section to the "STM32 Motor Control" section (the question is about the STM32 MC SDK). 

Best regards