Abstract: A direct torque control system based on TMS320F240 DSP was developed to realize motor AC speed regulation. The system design scheme and software and hardware implementation methods were introduced. Experimental results show that the system has good performance.
Keywords: digital signal processor, direct torque control, AC speed-regulated asynchronous motor
With the development of power electronics and computer technology, high-performance asynchronous motor speed control systems have been widely used. High-performance AC speed control systems are inseparable from digital signal processors. In the past, digital signal processing was fast but had poor control capabilities. The new F24X/C24X series DSP is a digital motor speed controller specially developed by TI for three-phase AC speed regulation. It not only has the speed of a general DSP, but also has the control function of three-phase AC speed regulation. This paper develops a high-performance AC speed control system based on TMS320F240 DSP based on the principle of direct torque control of asynchronous motors. Experimental results show that the control system using TMS320F240 DSP has the characteristics of simple hardware circuit and excellent performance.
1 System structure and principle
The principle of the direct torque control system uses the space vector analysis method and uses the stator magnetic field orientation to perform a 3/2 transformation of the stator current and voltage, thereby directly calculating the torque and flux linkage of the AC motor in the stationary α-β coordinate system, and then Compare with the given torque and flux linkage respectively, and find the optimal switching table based on the comparison results to generate a PWM signal to directly control the switching state of the inverter. The basic block diagram is shown in Figure 1.
The following space vector expressions of stator voltage and current can be obtained from the 3-phase/2-phase coordinate transformation:
According to the UI model, the expression of the stator magnetic flux is:
φs= ∫(us-Rsis)dt (3)
The electromagnetic torque equation is:
T=np( φsαisβ-φsβisα) (4)
After obtaining the stator magnetic flux and electromagnetic torque, compare it with the given value, determine the appropriate switching state according to the comparison result and the vector angle θ , generate a PWM inverter signal, and control the working state of the main circuit inverter, thereby real-time Control the torque of the motor.
2 Hardware system design
This AC speed control system takes TMS320F240 DSP as the core and consists of a rectifier, voltage-type main loop and control loop. The entire system is modularly designed according to the power circuit board, DPS control board, 15V switching power supply, etc.
2.1 Power circuit
The power circuit is composed of EMS, uncontrollable rectifier module and IGBT inverter module IPM. It also has overcurrent, overvoltage and other protection functions. Through the reactance coil, EMS eliminates electromagnetic interference from the power grid and improves the anti-interference ability of the entire system. The drive circuit uses the smart IGBT inverter module IPM (PM10RSH120) from Mitsubishi Corporation of Japan. It not only integrates the power switching device and the drive circuit, but also has overcurrent, overvoltage, undervoltage, temperature and other protection circuits, which can not only protect the IPM module, and also simplifies the off-chip drive circuit, reducing the system failure rate. The fault output signal FO of the IPM is connected to the PDPINT port of the DSP through the optocoupler. When the IPM fails, the DSP can promptly set all event manager output pins to a high-impedance state, prohibiting PWM signal output, and protecting the system. The drive circuit uses HP HCPL4504 as the PWM drive circuit and is isolated to prevent strong current from entering the DSP control loop. Figure 2 shows a drive circuit.
The inverter requires that one of the upper and lower switching tubes on the same bridge arm is always on and the other is off, and must be interlocked. Therefore, the PWM signal must have a dead zone for a certain period of time, otherwise the upper and lower switch tubes of the same bridge arm will be turned on at the same time, causing the IGBT module to burn out. TMS320F240 integrates a dead-time adjustment circuit, and the dead-time can be adjusted from 0 to 102 μs . The system dead time is set by software. The dead time of this system is 4.5 μs .
The detection of the two-phase stator current is completed using two magnetically balanced Hall current sensors, which are directly installed on the power board. The detected signal is sent to the TMS320F240 control board through the connector, and the on-chip ADC is used to obtain the real-time stator current signal. .
2.2 DSP control board
DPS control consists of TMS320F240 DSP, simulation debugging interface JTAG, 128K Words external SRAM, 10M crystal oscillator, hardware reset loop, etc. Its core is the TMS320F240 DSP chip, which is a digital motor regulator developed by the American TI company specifically for three-phase AC speed regulation. speed controller. The powerful processing capabilities of TMS320F240 enable motor control-oriented control algorithms such as vector control and direct torque control to be quickly implemented. The DSP control board mainly completes tasks such as algorithm processing, PWM output, analog/digital conversion, communication with the host computer, and display. In order to complete the above tasks, this system has been expanded on the basis of the DSP minimum system. The 16-channel 10-bit ADC interface is used to receive feedback signals such as current; the RS232 serial port is used to communicate with the host computer and display data and waveforms; 16V8 GAL is used to Combined control signals. In addition, an LCD display circuit, keyboard input circuit, three 34-pin peripheral interfaces (connected to power boards, sensors, keyboards, etc.) and circuit modules are also added.
2.3 Switching power supply module
IPM has high requirements on driving power supply. Each IGBT unit of the upper arm needs a separate isolated 15V voltage supply to enhance anti-interference ability and reduce power supply noise; all units of the lower arm are powered by a common 15V power supply. Therefore, the power module includes four 15V power supplies isolated from each other to provide energy for the drive circuit of the IPM module. The core of the switching power supply is the single-chip three-terminal switching power supply chip TOP227, which integrates all the functions of the PWM control system into the three-terminal chip, including PWM, power switching field effect transistor, self-bias circuit, protection circuit, and high-voltage starting circuit and loop compensation circuit.
3 System software design
The software of the entire system is written in C2000 DPS assembly language. TMS320F240 starts the ADC through the event manager, obtains current and voltage signals, and realizes control of magnetic flux and torque. The entire software includes three parts: initialization, fault diagnosis, and GP TIMER1 interrupt service routine. The system software module flow chart is shown in Figure 3. Among them, the initialization module mainly completes the setting of motor parameters, initial value assignment of variables, setting of timer time, setting of timer service subroutine address, etc. The initialization flow chart is shown in Figure 4.
The interrupt service program is the core of software design. It completes almost all control algorithms, such as ADC detection, 3/2 conversion, calculation of magnetic flux and torque, acquisition of angle θ , voltage vector selection, action time and dead time time Calculation and setting, PWM generation, etc., this process is completed within one sampling period (50 μs ). The interrupt service subroutine flow chart is shown in Figure 5.
The generation of PWM signals is completed by the time manager through the configuration of special registers. The symmetrical PWM register configuration code is as follows:
SPLK #2840H, T1CON; up/down count in 50ns steps
SPLK #PWM_PERIOD,T1PR ;PWM carrier frequency
;fpwm=50ns * 2 *
PWM_PERIOD
SPLK #1207H,COMCON ;CMPRx,T1PR reload at Timer 1
;ACTR reload at Timer1=0
;enable PWM1-6 outputs
SPLK #0207H ,COMCON ;SYMMETRICAL PWM
SPLK #0666H ,ACTR ;PWM 1,3,5 active high
;PWM 2,4,6 active low
SPLK #32E0H ,DBTCON ;dead band =2.5 μs */
SPLK #8000,COMCON ;enable compare unit */
4Experimental results
The above direct torque control system experiment uses a 4-pole asynchronous motor: 2.2kW; 380V; 2.5A; 1500r/min. A DC generator acts as a load for an asynchronous motor. Figure 6 shows the torque step response curve and stator flux waveform. Experimental results show that the system has better performance.
The high-performance direct torque control system based on TMS320F240 makes full use of the high-speed computing function and rich on-chip peripheral resources of TMS320F240, making the AC speed control system simple in structure and high in reliability. Experimental results show that the system proposed in this article has high control accuracy and fast dynamic response, and is a high-performance AC speed control system.
Previous article:Half-duplex data flow direction indication circuit
Next article:Research and implementation of H.324 video phone based on DSP
- Popular Resources
- Popular amplifiers
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
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
- SparkRoad Review (7) - FPGA Serial Port Test
- Disable AD auto-start JLink
- Seeking guidance - stc microcontroller remote upgrade program
- Problems with creating sheet symbols for multi-page schematics
- Zigbee Z-Stack 3.0.1 Modify channels using broadcasting
- SHT31 Review + My Review Summary
- Using AT89S series microcontroller
- 【McQueen Trial】Use IPAD to program McQueen's car
- The STM32 FFT library calculates the amplitude normally, but the phase is different each time. Has anyone encountered this problem?
- EEWORLD University----UCD3138 Analog Front End (AFE) Module