Preface Here, for design reference, a detailed exploration of single-shunt and three-shunt configurations is conducted. This article will delve into the differences between these two configurations and the variances between the old and new versions of MCSDK. It is recommended to use MCSDK 5.x version for verification, as it provides a better UI interface for […]
Motor control on STM32
Preface When using MCSDK for motor control, adding additional channels to the existing ADC poses challenges due to considerations such as sampling rates. Attempting to add ADC channels directly using STM32CubeMX may result in system failure. This information is provided to address how to add channels for sampling shunt resistors in a motor control project.
Preface The customer used MCSDK 5.4.8 to generate code for a Hall sensor, but when the motor had a load during startup, there was a magnetic excitation noise. However, there were no additions to the code, only a motor stop and restart. We used the DAC interface for easy debugging and ultimately identified algorithmic adjustments
Preface This section will address common issues encountered with MCSDK and provide explanations and adjustments. Relevant information locations will also be organized to facilitate a quicker start for everyone in motor control. MCSDK Program Main Structure After generating code using MCSDK, the main program section and mathematical equations are as shown in the following figure:
Preface A current sensing resistor (shunt resistor) is usually placed on one of the three-phase lines. The voltage drop across this resistor can be amplified by an operational amplifier (op-amp), and then received by a sensor and converted into a digital signal. In this way, we can detect the current of the motor in the
Preface When using the ST FOC motor control library with Hall signals as the position feedback, synchronous electrical angle data must be input based on the characteristics of the motor being used. This data synchronizes the electrical angle with the Hall signal at each signal change. If the angle deviation is large, it may affect
Preface In MC SDK 5.x, there are two control loops, the current loop and the speed (torque) loop. Some applications require the use of a position loop, such as motor control for UAV gimbal or subway gates. This article will explain how to add a simple position loop on top of the existing ST motor
Preface The previous post described the main program structure generated by the STM32 Motor Control Workbench. Here we will continue to explain the three core task flows and structures that depend on the main structure, which are mainly divided into three parts: safety tasks, medium frequency tasks, and high frequency tasks. The safety task mainly
Preface Here, there are many online resources available for reference, such as the video tutorials on FOC control principles and motor application development based on STM32. This discussion focuses on the code generated by ST’s Workbench after setting up the parameters, mainly on the program architecture and important code explanations. After understanding the architecture, users
Preface On the ST side, Motor Profiler and MotorControl Workbench are introduced to facilitate the complete construction of the underlying program and provide basic APIs for applications. They are relatively easy to use for beginners and have the advantage of having all their code fully open for viewing, including the writing methods of each API.