Take the asynchronous motor as an example. A simple design requires applying three 120° phase-shifted sinusoidal voltages to the stator, and the windings are arranged in a way that produces a rotating magnetic flux. Using the transformer effect, this flux induces a current in the rotor cage, which then produces rotor flux. It is the interaction of these two fluxes that produces the electromagnetic torque that makes the motor rotate.
The condition for inducing a current in the rotor is that the rotor speed is different from the stator flux frequency; if they are the same, the rotor will experience a constant flux and no induced current will be generated (Lenz's law). The small difference between the current frequency and the mechanical frequency it generates is the reason for the name of the asynchronous motor. The simplest way to achieve adjustable speed operation of a three-phase AC motor is to implement a so-called voltage/frequency control (or scalar control), which works by maintaining a constant ratio between the frequency and the motor current voltage. This method produces a constant stator flux and then the rated motor torque on the rotor shaft. This is a popular control method for low-cost drives with well-known application load characteristics and drives with low control bandwidth requirements, such as a small number of HP pumps and fans, washing machines, etc. An 8-bit microcontroller with a low MIPS and a reasonable peripheral interface, such as the ST7MC, can meet such application requirements and is also easy to program.
This approach does not guarantee the best motor characteristics (torque, efficiency) during transient operation. Furthermore, the time of the drive reaction force must be limited to prevent temporary demagnetization of the motor. To overcome these limitations, other control strategies have emerged on the market, taking into account the dynamic characteristics of the motor. Field-oriented control (also known as vector control) is the most widely used control algorithm, targeting applications such as belt conveyors, high-power water pumps, automotive exhaust emissions, and factory automation. This approach allows an AC motor to be controlled with two decoupled control variables (hereinafter referred to as Id and Iq) just like a DC motor with separate excitation. The excitation current Id generates the DC main flux, while Iq controls the torque, functioning like the armature current in a DC motor. When the load changes, field-oriented control allows precise speed control, very fast response, and even during transient operation, by keeping the stator and rotor fluxes orthogonal, it can optimize the motor efficiency. This approach allows position control schemes (through transient torque control) to release the full torque of the motor at low speeds.
The following is a brief introduction to the working principle of field-oriented control. The reference coordinate system is changed from the fixed stator coil to the moving rotor flux coordinate system using two well-known transformation algorithms: Clarke transformation and Park transformation. Clarke transformation converts the 120° phase-shifted three-axis coordinate system (Ia, Ib, Ic) into a two-axis rectangular coordinate system (Ia, Ib); Park transformation converts the fixed (Ia, Ib) coordinate system into a two-axis rotating coordinate system (Id, Iq) related to the rotor. The last two values are DC or slowly changing values, and a simple PI controller method can be used to adjust these two values. Finally, the inverse transformation (Park and Clarke inverse transformation) is used to restore it to the fixed AC three-phase coordinate system, as shown in Figure 1.
Figure 1 Working principle of field-oriented control
Among the various vector control methods, we use an indirect field-oriented control method. The only motor model parameter measured and processed is the rotor time constant Lr/Rr (in the slip estimator module). If the motor is a permanent magnet synchronous motor, the block diagram and corresponding functions will be very similar. The slip estimator is no longer needed and the flux command can be set to zero (the magnets generate the flux themselves). The algorithm is only part of the job: once the voltage level is calculated, it must be converted into volts and amperes. Like in any modern power electronic system, this motor control system consists of muscles (power converters) and brains (microcontrollers). The driving power converter (commonly known as inverter) is driven by three PWM outputs. As can be seen from Figure 2, a powerful three-way buffer converts a 0-5V logic signal into a 0-300V square wave signal applied to the motor terminals. The motor winding inductance acts as a low-pass filter: it removes the carrier frequency and smoothes the current changes to form a sinusoidal current waveform, i.e. the waveform modulated by PWM.
Figure 2 Motor control system
Let's look at the overall requirements of an advanced motor drive system, starting with the CPU. The entire vector control algorithm must be continuously and repeatedly calculated at a speed between 1 and 10 kHz (1ms up to 100μs closed loop time, depending on the bandwidth of the final application). The system requires a lot of mathematical calculations (trigonometric functions, PID regulators, real-time flux and torque estimation based on motor parameters). In addition, there must be room for calculations for the rest of the application (communication, user interface, etc.). In order not to limit dynamic performance, the main control variables require a minimum of 16 bits of precision, and intermediate results require 32 bits of computing power. [page]
All these factors explain why vector control must use high-speed, high-performance processors. Existing products on the market include 16-bit or 32-bit microcontrollers, hybrid controllers or digital signal processors, which are usually directly related to advanced motor control. If you are not deliberately pursuing the fastest digital current control loop or the most accurate curve control, an ARM7 processor-based solution just meets the requirements of flux-oriented control. In addition to the core performance, if you want to minimize external components, you also need to be equipped with reasonable peripheral interfaces. This design can greatly simplify the design process, ensure cost-effectiveness and reliability (because the PCB design is simplified).
In terms of signal generation, general PWM channels are not suitable, and motor control-specific PWM signals must be used. Therefore, three pairs of synchronous complementary PWM channels must be used, with a dead time insertion function to prevent possible short-circuit faults in the half-bridge. For safety reasons, when a fault/error occurs in the power stage (overcurrent, high temperature), the six PWM channels must be turned off at the same time. The safety function is also equipped with a dedicated emergency fault input. The clock frequency of the timer (typical value >50MHz) and the triangular waveform of the PWM carrier frequency are the two factors that ensure the high accuracy of the sine waveform and the best noise-switching loss ratio, rather than the sawtooth waveform.
Analog signal acquisition is another major load of the MCU. Motor monitoring must control two types of signals: slowly changing signals such as DC bus voltage (containing 100Hz ripple voltage components) or potentiometer voltage; high dynamic frequency range of several Hz to hundreds of Hz motor current, which contains ripple current of PWM rate (typical value is higher than 10 kHz). Therefore, the speed of the analog-to-digital converter must be very fast (less than 5μs) to reduce the measurement of unsteady current when sampling the motor phases sequentially, saving the time consumed in the PWM interrupt service routine to wait for the analog-to-digital conversion results. In terms of converter accuracy, 10 bits are becoming the standard for converters. Although 8-bit converters are sufficient for most applications, applications with an expanded current range require more than 10-bit analog-to-digital converters to ensure sufficient resolution under various load conditions. In addition, the control accuracy is directly related to the quality of the analog-to-digital converter.
Finally, we must also deal with speed and/or position sensors. Incremental encoder position sensors require dedicated signal conditioning functions as an external clock with up and down counting functions to process two quadrature signal outputs. This function is handled by a timer with a dedicated encoder mode.
We have successfully implemented a sensored field oriented control (speed generator based) algorithm on a STR730 microcontroller based on an ARM7TDMI processor operating at 32MHz with embedded flash memory. The algorithm was developed entirely in C language without any deliberate code optimization. In the actual algorithm, the entire control loop takes 55μs to complete, with a CPU load of 17% at a sampling rate of 3kHz. When the core runs at 60MHz, the expected execution time is less than 20μs.
There are many advantages to implementing algorithms with an ARM7 processor. First, the ARM core is now a standard core, and its platform approach and the large number of development tools are key to saving costs. Second, if the next generation product design requires higher processing speed (MIPS), you can directly upgrade to an ARM9-based product. From an architectural point of view, the barrel shifter is very interesting, which allows the variable resolution to be optimized throughout the processing flow. You can change the format within a clock cycle to limit the processing time. In addition, it allows to save some multiplication operations by constants, for example, r0=(r1<<4) - r1 is equivalent to r0=15xr1, or even faster. Low-cost DSPs have 16-bit fixed-point cores. When the integral term of a PI regulator must be processed or the required precision range must be extended, the ARM7's 32-bit data path can avoid multiple 16-bit loads. When it comes to motor control signal processing, other important features of the DSP are not of much use, such as hardware closed loop and dual addressing modes. This explains to some extent why the ARM7 processor is described as such an optimized architecture.
Figure 3 shows a new STR7 product developed for ST's ARM7 processor-based product line that meets the system requirements outlined above. Key features include:
SPTimer synchronizes PWM timers to perform high-end PWM signal generation functions. Based on a 16-bit timer, the time resolution can be reduced to 16.6ns to achieve optimal voltage reconstruction.
Ability to generate center-centered or edge-aligned PWM patterns;
Internal programmable dead time signal generator and emergency fault protection required for inverter fault handling;
To simplify software handling tasks, multiple interrupt sources, a programmable reload rate, and "no smoking" protection are used to prevent software from modifying the configuration registers of important system peripherals due to uncontrolled operation.
Figure 3 New STR7 products
This SPTimer can also be used as a general-purpose timer with two input capture pins, two output compare pins, and an encoder-specific mode that minimizes software overhead. This mode has x2 or x4 resolution, automatic direction management, and can program the number of lines of the selected encoder, so the rotor angle signal can be read directly from the count register. For the current measurement function, the new product has a built-in 3μs 10-bit analog-to-digital converter with automatic scanning function. The main peripheral interfaces include multiple timers, communication interfaces, etc. Considering the non-motor control tasks handled by the microcontroller, we have designed intelligent peripherals on the circuit board, such as connection terminals, power factor correction, energy-consuming braking, etc.
STMicroelectronics is focused on the motor control market and is one of the few suppliers in the world that can provide a complete motor control portfolio, ranging from fast diodes to processors, including high-voltage gate drivers and switches. To meet the needs of more energy-efficient "green" motors and high-performance drives, we have created a complete ARM-based product line to help designers unveil the mystery of vector control algorithms. This control method will soon make today's mainstream DSP-based control obsolete. Promote the application of a new control method: Since advanced motor control needs can be met using standard ARM-based microcontrollers, who is willing to spend time on proprietary architectures to implement advanced motor control?
Previous article:Design of Distributed Remote Measurement and Control System Based on ARM7
Next article:Research on Embedded Gateway Based on ARM9
Recommended ReadingLatest update time:2024-11-16 17:33
- Popular Resources
- Popular amplifiers
- Practical Deep Neural Networks on Mobile Platforms: Principles, Architecture, and Optimization
- ARM Embedded System Principles and Applications (Wang Xiaofeng)
- ARM Cortex-M4+Wi-Fi MCU Application Guide (Embedded Technology and Application Series) (Guo Shujun)
- An ARM7-based automotive gateway solution
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- A detailed introduction to the control technology of various DC motors
- Low-cost oscilloscope discussion, come in
- EEWORLD University Hall----Live Replay: Internet of Everything-Shijian Company and Microchip experts jointly discuss IoT solutions
- [Discussion] I'm looking at a product recently, a 400x400 camera for car use
- DSP Power Budget Digital Output Voltage Regulation
- Detailed introduction to crystal oscillators and crystal parameters
- Timing Analysis of TB5128FTG’s Decay Action
- How to correct the scale of glass rotor flowmeter when in use
- msp430 button control LED light
- MATLAB simulation model for online parameter identification of permanent magnet synchronous motor based on MRAS