|
今天看到ST的网址STM8S的资料页面提供了基于STM8S控制 三相马达的软件库用户手册下载,看了看,有点替换ST7MC的味道。
STM8S three-phase BLDC motor control software library V1.0
点击此处下载 ourdev_458102.pdf(文件大小:1.67M) (原文件名:STM8S three-phase BLDC motor control software library V1.0.pdf)
This user manual describes the brushless direct current motor (BLDC) scalar software library, a scalar control firmware library for 3-phase permanent-magnet (PM) motors developed for the STM8Sxxx microcontrollers.
ST STM8Sxxx 8-bit microcontrollers come with a set of peripherals that makes them suitable for performing both PM and AC induction motor scalar control.
The present document describes the STM8Sxxx software library developed to control trapezoidal driven PM motors in both open loop and speed control mode. These motors may be equipped with three Hall sensors or may be sensorless. The control of an AC induction motor equipped with tachogenerator is described in the UM0712 user manual.
The BLDC motor software library is made of several C modules, and is fitted out with STVD workspace. It is used to quickly evaluate both the MCU and the available tools. In addition,when used together with the STM8/128-MCKIT motor control starter kit and a PM motor, a
motor can be made to run in a very short time. The BLDC library also eliminates the need for time-consuming development of low level drive and speed regulation algorithms by providing ready-to-use functions that let the user concentrate on the application layer.Moreover, it is possible to get rid of any speed sensor thanks to the sensorless algorithm for rotor position reconstruction based on BEMF detection.
A prerequisite for using this library is basic knowledge of C programming, PM motor drives and power inverter hardware. In-depth know-how of STM8Sxxx functions is only required for customizing existing modules and for adding new ones for a complete application development.
BLDC software library V1.0 features (CPU running at 16 MHz)
The BLDC software library source code is available free of charge if it is used in an endapplication based on ST products.
The main library features are the following:
● Supported BLDC modes (trapezoidal 6 step method):
– Sensorless mode: back EMF voltage on the non-energized phase is monitored and used to trigger the commutation events
– Sensor mode: Hall sensors trigger the commutation events.
– Voltage mode: PWM duty cycle is set directly via 16-bit PWM generator.
– Current mode: internal current loop and external voltage reference are used jointly to maximize the current in motor windings. The PWM duty cycle is automatically managed by the current feedback loop output.
– Open loop operation
– Closed loop operation: Proportional integral (PI) regulator, 1 to 255 ms sampling time.
– DC bus voltage measurement
– DC bus brake resistor management
– Heatsink temperature measurement
– Fault handling including overcurrent (shunt resistor network required), DC bus overvoltage/undervoltage, heatsink overtemperature.
– User interface with LCD and joystick
– Two-channel virtual DAC functionality for real-time tracing of software variables
– Firmware compatibility with STM8S motor control builder GUI (see Section A.3)
STM8S three-phase AC induction motor control software library V1.0
点击此处下载 ourdev_458101.pdf(文件大小:1.53M) (原文件名:STM8S three-phase AC induction motor control software library V1.0.pdf)
ACIM voltage mode scalar controls
● Speed open loop
– Adjustable target rotor speed, V/f ratio, and slip speed via the user interface (UI)
● Speed open loop and load compensation
– Adjustable target rotor speed via the UI
– Varied V/f ratio and slip speed according to the characteristic torque curve of the load.
● Speed open loop and load compensation, tachogenerator sensing:
– Adjustable target rotor speed via the UI
– Slip speed varying according to the characteristic torque curve of the load
– Rotor speed checked to validate startup and max/min run speed
● Speed closed loop, V/f and slip control:
– Adjustable target rotor speed via the UI
– Rotor speed measured and provided as feedback of the speed loop control
– Optimized dynamics drive
– Parameters tuning mode (proportional-integral-derivative regulator (PID) gains, V/f ratio, startup V/f ratio, startup slip).
● Speed closed loop, maximum torque per ampere (MTPA) control:
– Adjustable target rotor speed via the UI
– Rotor speed measured and provided as feedback of the speed loop control
– Optimized efficiency drive
– Parameter tuning mode (PID gains, V/f ratio, optimum slip, startup V/f ratio, startup slip).
Additional features
● Three-phase center-aligned PWM sine waves and third harmonics synthesis, adjustable switching frequency, dead time, output refresh rate.
● DC bus voltage measurement and ripple compensation
● Automatic drive adaptation to AC mains voltage
● Dead time effect compensation
● DC bus brake resistor management
● Heatsink temperature measurement
● Fault handling for overcurrent (shunt resistor network required), DC bus overvoltage/undervoltage, heatsink overtemperature.
● The UI is provided through LCD and joystick
● Two-channel, virtual DAC functionality, for real-time tracing of software variables
● Firmware is compatible with STM8s motor control builder GUI
ST的网址上有个文档下载地址可能搞错了,本应是pdf后缀,结果成了htm后缀,唉。我传到这里吧。 |
阿莫论坛20周年了!感谢大家的支持与爱护!!
你熬了10碗粥,别人一桶水倒进去,淘走90碗,剩下10碗给你,你看似没亏,其实你那10碗已经没有之前的裹腹了,人家的一桶水换90碗,继续卖。说白了,通货膨胀就是,你的钱是挣来的,他的钱是印来的,掺和在一起,你的钱就贬值了。
|