Home > other >  STM32 motor control software development kit complete source code X - Cube - MCSDK - FUL v5.4.3
STM32 motor control software development kit complete source code X - Cube - MCSDK - FUL v5.4.3

Time:10-23

X - Cube - MCSDK - FUL v5.4.3 full source code for download links: https://download.csdn.net/download/yanxiaolong444/13022431
STM32 microcontroller has run a vector control or field orientation control (FOC) model of the performance of the industry standard architecture (M kernel, is widely used in air-conditioning, household appliances, unmanned aerial vehicles (uavs), construction and industrial automation in high performance motor drive, medical application and electric bicycle,

The STM32 motor control (MC) software development kit (SDK) include:

ST MC FOC firmware library;
ST MC six steps the firmware library
ST MC Workbench software tools,
ST MC FOC FW library implements the FOC model, used to drive the surface-mounted permanent magnet synchronous motor (all-digital fuzzy) and internal, this implementation can drive at the same time one or two electric motors, and has the characteristics of the below listed,

ST MC six steps FW library implements the six step model, used to drive internal and surface-mounted permanent magnet synchronous motor (all-digital fuzzy), the implementation can drive has the following characteristics of an electric motor,

ST MC FOC FW library provides the following functions:

Motor drive
At the same time one or two different motor (six steps only drive a)

In the configuration of double motor, allowing the following mention of speed feedback, current sampling, control mode and any combination of optional algorithm
The speed or torque control mode:

When using the FOC (even in the motor rotates) or on the six steps compile time all can switch control mode at any time,
Independent setting for each motor control mode,
Programmable speed or torque slope:

Ramp duration (only applicable to FOC);
The ultimate goal, speed or torque
FOC cycle
SVPWM generation:

Configurable PWM frequency
Center or edge of the PWM mode type,
Open loop or closed loop operation

The default for the closed loop; However, you can remain the open-loop state, when need
Magnetic flux weakening algorithm can achieve higher than the rated speed motor (optional)

Feedforward high-performance algorithm to adjust current (optional)

Each amps peak torque (applies only to the I - all-digital fuzzy, optional)

Acceleration control, and can realize sensorless configuration

Instant startup sensorless algorithm can detect whether the motor before start already in rotation, to skip when you want to accelerate stage (is very useful to the fan application)

Real-time adjustment:

PI/PID controller;
Sensorless algorithm (observer, the revised program);
Optional algorithm (feedforward, flux weakening, MTPA...). ;
Sensorless initiator,
Six steps cycle
Duty cycle generation:

Configurable PWM frequency
Center or edge of the PWM mode type,
Open loop or closed loop operation

The default for the closed loop; However, you can keep open loop state when there is a need for (determined at compile time)
For sensorless configuration startup control

Real-time adjustment of PID parameter

PWM function of conduction time counter electromotive force detection in

Current sensing
Isolation type current sensor (ICS, only FOC);
Single way shunt resistor current - common dc bus shunt resistor (ST patent);
Three shunt resistor current - resistor is placed at the bottom of the three inverter bridge arm (FOC) only;
If double motor drive is set, the current detection method may be varied from an electric motor, then, can be optimized in the motor the use of Shared between ADC,
FOC rotor speed and position sensor
If present, indicates that the support on the STM32 micro controller using embedded operational amplifier.
Sensorless counter electromotive force state observer, in combination with PLL is used in the rotor speed and Angle calculation (estimated);
Sensorless B - EMF state observer combined with CORDIC use calculation for the rotor speed and Angle (estimated);
60 degrees or 120 degrees of the displacement of HALL sensors decoding (measurement);
Quadrature encoder decoding (measurement);
Two of the above two methods can also use it for any motor: the motor and the Auxiliary motor, Main used for control circuit, and the other is Auxiliary, spinning process allows for exchange of Main motor, Auxiliary motor
Six sections of rotor speed and position sensor
Counter electromotive force measuring
Motor braking strategy (FOC) only
Dealing with dissipative dc link braking resistor;
Motor phase short circuit (?????? Disable optional hardware overcurrent protection);
Motor idling,
STM32F30x the use of embedded analog peripherals (FOC) only
Support for current detection of programmable gain amplifier (PGA) :

Three parallel and parallel topology;
Internal or external benefits;
Support the overcurrent protection (OCP) composition among the mode of the comparator using:

Three parallel and parallel topology;
The external or internal threshold;
Support in overvoltage protection (OVP) mode using the comparator:

Motor phase short circuit mode and idle mode;
The external or internal threshold,
Use specific FOC STM32F30x hardware acceleration (only applicable to FOC)
The ADC context queue patent architecture (ST);
CCM (memory) core coupling RAM;
Senior timer for single parallel topology structure patent (ST),
Fault management
Over current
Overvoltage
Undervoltage
Overheating;
Speed feedback reliability error (FOC) only;
FOC algorithm performs overrun,
ST Motor Profiler software tools (with ST MC Workbench tools provide, only FOC)
A PC software application, used for automatic measurement of all-digital fuzzy mechanical and electrical parameters of the motor (only STM32F30x and STM32F4xx);
Embedded one-click adjustment algorithm is a kind of new algorithm, which USES a single parameter setting speed controller, depending on the type of load combination ST Motor Profiler software tools, you can enable it to complete the set up and run from the beginning of the unknown Motor (only STM32F30x and STM32F4xx);
With ST motor control table, can be in MC applications configured in the measurement of electrical parameters,
ST Motor Control Workbench software tool
A graphical user interface (GUI), is used to configure motor control application:

Graphically characteristics and algorithm configuration;
Can be provided by ST database configuration board: board, power board, motor parameters;
You can specify a custom power supply board and motor;
Generated. The ioc documents to connect STM32CubeMX PC software tools,
Simple parameter adjustment:

All-digital fuzzy FOC library;
MCU board;
The power board;
Engine,
STM32CubeMx
STM32CubeMx is ST, PC software tool used to configure the application based on the STM32, it not a part of the STM32 MC SDK delivery,

It is used to generate for the ARM (IAR Systems AB) of IAR embedded Workbench, or to the ARM (Keil MDK) and TrueSTUDIO mu Vision IDE, to prepare for use. IocST MC Workbench project in the generated file,

MC environment, the ST STM32CubeMX can be used to customize the MC implementation, application of pin and configuration of the MC specific but still needed for MC application other peripherals (GPIO pin, for example),

Support equipment and plate
Support equipment:

STM32F0xx series: STM32F030RC/STM32F030R8/STM32F031C6/STM32F051R8/STM32F051C8/STM32F072VB/STM32F072RB
STSPIN32 series: STSPIN32F0601 STSPIN32F0602/STSPIN32F0251/STSPIN32F0252/STSPIN32F0A/STSPIN32F0B
STM32F1xx series: STM32F103 is high, and low density
STM32F3xx series: STM32F302VB STM32F302VC/STM32F302R8/STM32F303VB/STM32F303VC/STM32F303ZE STM32F303VE/STM32F303RE
STM32F4xx series: STM32F417IG STM32F415ZG/STM32F407IG/STM32F446ZE/STM32F446RE/STM32F401RE
STM32F7xx series: STM32F746ZG/STM32F769NI
STM32L4xx series: STM32L452RE/STM32L476RG
STM32G0xx series: STM32G081
STM32G4xx series: STM32G431CB STM32G431RB/STM32G474QE
STM32H7xx series: partly by STM32H745ZI sample support
Control panel

STM32F0xx series:

NUCLEO - F030R8
NUCLEO - F072RB
STM32072B - EVAL
STM32F1xx series:

NUCLEO - F103RB
STM3210E - Eval
STM32F3xx series:

NUCLEO - F302R8
NUCLEO - F303RE/NUCLEO - F303RB
STM32303E - EVAL
STM32F4xx series:

NUCLEO - F446RE
NUCLEO - F401RE
STM3240G - EVAL
STM3241G - EVAL
STM32446E - EVAL
STEVAL - IHM039V1
STM32F7xx series:

NUCLEO - F746ZG
STM32F769I - EVAL
STM32L4xx series:

NUCLEO - L452RE
NUCLEO - L476RG
STM32L476G - EVAL
STM32G0xx series:

STM32G081B - EVAL
STM32G4xx series:

NUCLEO - G431RB
STM32G474E - EVAL
STM32H7xx series: (backed by example)

The NUCLEO - H745ZI - Q
The power supply board:

STEVAL - IHM023V3
STEVAL - IHM025V1
STEVAL - IHM028V2
STEVAL - IHM045V1
STEVAL - IPM05F
STEVAL - IPM07F
STEVAL - IPM08B
STEVAL - IPM10B
STEVAL - IPM10F
STEVAL - IPM15B
STEVAL - IPMNG3Q
STEVAL - IPMNG3S
STEVAL - IPMNG5Q
STEVAL - IPMNG8Q
STEVAL - IPMNM1N
STEVAL - IPMNM2N
STEVAL - IPMNM1S
STEVAL - CTM009V1
X - NUCLEO - IHM07M1
X - NUCLEO - IHM08M1
X - NUCLEO - IHM11M1
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related