You are on page 1of 4

Question Response

What is the maximum motor power supply ripple? Does The good design practise is to have power supply with
a higher ripple reduce control precision? negligible ripple, it means enough capacitance on motor
bus line.
How does active breaking work? The FOC library is a full 4-quadrant control so it is equally
adept at producing full accelerating or decelerating
torque. The generation of decelerating torque could be
called active braking. Unlike dynamic braking which is
often used with brush DC motors and sometimes with
BLDC as well, using the FOC to generate decelerating
torque allows for controlled torque (up to full torque) to be
generated down to zero speed. One caveat, on must pay
attention as the DC bus voltage will tend to pump up
during this regenerative operation. Some sort of bus
dissipater may be required.
Is there a limit, in eRPMS, which this uC can't handle with The maximum execution rate of the sensorless FOC is
FOC sensored/sensorless? about 15 kHz. A rasonable limit for the electrical frequecy
could be 1.5 kHz.
Can STSPIN32F0 control both AC Permanent magnet Yes
synchronous motor and DC bldc motor?
Are STSPIN32F0 motor drivers available today from Yes, it is.
Digikey?
what is different between BLDC and PMSM? The difference is in the cuntruction method. From the
control point of view, the BEMF of a BLDC motor is
trapezoidal and the one of a PMSM motor is sinusoidal. In
any case both of them can be driven using the FOC
algorithm.
Will the STSPIN32 support isolated current sensors on Yes. The FOC library supports this kind of sensors.
the phase leads?
measuring the motor's position can take time and by the You are right. The STM32 FOC library is optimized to
motor will have moved. How much can this be a problem perform position estimation in the shortest possible time.
and how your FOC depends on motor position, and
reading this position can take time. How much
problematic this is and how your ICs go around this?
Could I use F3/F4 Discovery board to develop a project in Yes. Both F3 and F4 MCU families are supported by the FOC
ST motor control workbench? library.
What is the maximum driving frequency of each phase of The maximum PWM frequecncy strongly depends on the
the BLDC? power stage characteristics (i.e. selected MOSFETs)
can your Microcontroller generate three phase SVPWM The STM32 FOC library from ST is based on this PWM
to drive motor method.
Is the 6-Step algorithm available instead of the FOC A dedicated library and evaluation board for the 6STEP
algorithm. I am not focusing on the STSPIN3201, but in (sensorles/sensored) will be avalilable soon. Stay tuned!
general. With FOC, I have great difficulty starting the
motor under various high torque conditions, even when I
change the RevUp parameters
Can your provide a list of motors that can easily be Thre are few pre-programmed options (e.g. Shinano). You
purchased from for learning an sources (e.g. DigiKey, may also visit the e2e community
Mouser, etc.) and used with the evaluation board? https://community.st.com for more information.
Will the output compile with System Workbench? No. You need one of the supported IDE to compile the
project and then download it into the microcontroller.
can i use the bldc with "DELTA" phase connection Yes. There is no difference fron the control point of view.
Does the STSPIN32F0 have CAN It does not have CAN bus
If not do you plan to add to the family with F3 for We are evaluating several options for future products.
example?
How about regenerative braking ? The FOC can performs regenerative braking imposing
"negative" torque to the motor. However the STM32 FOC
library does not include control algorithm managing the
charging of the battery.
Hello, I've got a problem with Hall sensors as rotor 300 rpm are equivalent to 5 Hz on Hall sensors (in case of
position sensor. It works incorrect on zero and low speed single pole pair motor). Try incresing the average FIFO
(less than 300...500 rpm). Motor doesn't rotate smoothly depth. For more support you can also contact our e2e
and doesn't give full torque. On faster speed it's ok. community https://community.st.com
Tuning regulators (speed and torque) doesn't help.
Please, give some advise. What can be wrong? I guess,
that's because of rotor position is extrapolated from not
precise Hall sensors (assuming that motor rotates with
constant speed). And there is no such problem whith
encoder. I use STM32 PMSM FOC SDK v 4.2.0

Do you offer a version that supports CAN STSPIN32F0 does not support CAN bus.
communication?
Thank you very much for this presentation You are welcomed.
what are the disvantages of FOC? High demand for MCU computanional power.
The calculations for sensorless FOC is quite extensive, but It is done in MCU.
the integrated MCU is M0. Is calculation done in MCU or
some other Place?
What is highest possible electrical RPM by using of this The maximum execution rate of the sensorless FOC is
solution ? about 15 kHz. A rasonable limit for the electrical frequecy
could be 1.5 kHz.
Does STM have any examples of USART (RS232 or RS485) The library includes a UART protocol controlling the target
commanded motor positon or speed? Alternatively, it speed and diagnostic of the system. It can be used as
seems the integrated STM32 does not support canbus, is starting point for a more complete RS232/485 protocol.
that correct?
What is the maximum PWM frequency? The maximum PWM frequecncy strongly depends on the
power stage characteristics (i.e. selected MOSFETs)
Hi Jiri ... I'm having motor startup issues. It seems to stall Probably the system switches from open to closed loop too
and I get Speed Feedback fault occasionally, then it runs early. Try incresing the minimum speed at witch the
correctly for a while, but the Measured Speed in the ST algorithm is allowed to close the loop. For more support
monitor is all over the place. Thanks Rich you can also contract our e2e community
https://community.st.com
SDK supports speed control with discrete of 6 rpm. What I think this is a question for our firmware experts. Contact
if less discrete and more speed precision is required? them on https://community.st.com
Is it possible to use STCUBE and system workbench32 for The STM32 FOC library is not based on STCube framework.
the development?
There is a very useful app called Motor Profiler, but You are right. The motor profiler does not support the
seems it does not work with this SPIN3201 steval board, STSPIN32F0, but you can use the motor profiler with a
is it true? supported motor kit and them "export" the results to the
STPIN32F0 using the MC Workbench.
What is the maximum motor speed achievable with the I depends on many factors. One of the main limits is the
STSPIN32F0 using sensorless FOC? maximum FOC frequency which is about 15 kHz.
Please explain the 20kHz requirement for PWM, and the PWM frequency divided by execution rate imposes the FOC
relationship between this and control rate. execution frequency.
How can I set the value of Iq for torque control? Should I It depeds on what the motor suppose do. In the speed loop
use any equation to calculate the current? control the Iq is calculated according to the difference
between actual and target speed. In servo positiong it
depends on target position.
Is there any recommended way to tune speed and The torque PI is automatically set according to motor
torque PID-regulators? electrical characteristics. The speed PI should be tuned
using the zero-pole canellation method where the zero
introduced by the PI cancels the mechanical pole of the
motor.
Does ST have products capable of simultaneously Take a look to this solution:
controlling 2 BLDC motors? http://www.st.com/en/evaluation-tools/steval-
ihm042v1.html
There is no External crystal on the EVAL board, right? But You are right, but it is possible to generate the MCU clock
that is the only option in the Clock source. through a xstal/resonator. See the datasheet for morte
details.
Can I control with only Space Vector Modulation(varying The FOC implies the control of the stator magnetic filed
3 voltages with patterns depending n sector) without the (i.e. currents) according to rotor position. The driving
measured current? Is it considered FOC? Kind of? method you described is named the sinusoidal voltage
mode driving.
In SDK there are two modes: torque and speed control. Is We are working on it. Stay tuned.
there any plans to fulfill position control mode? This
mode is frequently required in servo systems.
Can you define SPI slave motor controller that can The library includes a UART protocol for this purpose, but
control speed as well as rotation direction using FOC you can use the API of the library in order to implement a
Software Development Kit? SPI based communication protocol.
What is the communication protocole used for real time It is a UART-based protocol.
display for exemple ?
Why the max PWM frequency is limited to 15kHz? 15 kHz is the maximum FOC execution frequency. The
PWM frequency can be higher.
Why to use just PI control and not PID control ? The derivative component is not required by the control
loop.
Is there newer version of "ST Motor Profiler" that Unfortunetly the latest version of the motor profiler does
support STEVAL-SPIN3201 eval board? not support the STSPIN32F0.
at 48 Mhz system clock, what would be the max RPM of The maximum execution rate of the sensorless FOC is
he motor drive? about 15 kHz. A rasonable limit for the electrical frequecy
could be 1.5 kHz.
If needed to run multiple BLDC motors can this be done Each BLDC motor requires STSPIN32F0 driver in order to
with a single STSPIN32F0 or are there other STSPIN control each motor independently. Multi motor solutions
motor drivers. are based on different hardware (see
http://www.st.com/en/evaluation-tools/steval-
ihm042v1.html)
should we enable in firmware this quadrant encoder to It is not needed. The FOC allows regenerative braking also
enable regenerative braking ? in sensorless mode.
What are the minimum and maximum temperatures It depeds on the characteristics of the board and power
allowed for this application? consumption of the device. The MCU embedded into the
packages works properly with a junction temperature up to
125 C.
can we ue the FOC library on the main STM32uC of the The FOC algorithm is demanding, but the actual MCU load
application wher also othe custom application is running, depends on motor speed and other parameters.
or does the FOC library require its dedicated uC core?

Is the software really limited to IAR and KEIL? No. They are only two of the IDE natively supported by the
library (i.e. you find the workspace already configured and
ready to be compiled). Another supported IDE is "System
Workbech for STM32", a GCC based IDE. The code can be
compiled by other IDE too, but you need to set the project
database from a scratch.
Is there any application note which explain all You can take a look to the library page looking for STSW-
parameters on configuration header file ? STM32100 on st.com
Thank you You are welcomed.
How can I set the software to work with customer It really depends on the customer specific parameters. I
specific hardware? would suggest to be more specific and eventually share
these parameters on the e2e community
https://community.st.com
The FOC toolkit is based upon StdPeripheral library. Is I think this is a question for our firmware experts. Contact
there an easy way to integrate HAL functionality for user them on https://community.st.com
routines?

You might also like