With the development of China's national economy and the continuous improvement of people's material and cultural living standards, air conditioners have been widely used in various occasions in society. DC variable frequency air conditioners have the characteristics of energy saving, low noise, constant temperature control, all-weather operation, low frequency compensation at startup, and rapid reaching of set temperature, which greatly improves the comfort of air conditioning and will be more and more popular. The wide application of single-chip microcomputer technology, the successful application of DC variable frequency technology and fuzzy control technology in the field of embedded control of air conditioners, and the rapid development of semiconductor power devices provide technical guarantees for the promotion of DC variable frequency control.
The AC variable frequency air conditioner controller of this design scheme consists of two parts: indoor unit controller and outdoor unit controller. Based on the superior performance of SPMC75F2413A, it is easy to realize the modularization and intelligent characteristics of the product by designing the outdoor unit AC variable frequency controller. The control parameters adopt an open structure, which is easy to connect with various compressors, so that the product can be upgraded according to the requirements of different manufacturers in the shortest time. In this way, the product can be brought to market faster and gain a competitive advantage in time. This controller contains the following key technologies:
1. Fuzzy control technology: According to indoor ambient temperature, pipe temperature, outdoor ambient temperature, pipe temperature, compressor exhaust temperature, compressor overload protection temperature, compressor current and other parameters, fuzzy logic relationships are established to control the operating speed of the compressor, outdoor fan and other load operations;
2. Efficient third harmonic injection based on DDS SPWM generation technology, making full use of power supply voltage, precise frequency adjustment, and real-time voltage compensation function to make the compressor work more effectively;
3. Module control protection circuit: When the module has a protection signal output, the PWM module output control signal is disconnected through the hardware circuit to achieve the effect of protecting the module, and reliably provide the single-chip module with a protection signal;
4. EMC and reliability design technology: Under the premise of mastering the interference mechanism of the air conditioner, the hardware design focuses on the following points: power supply circuit design, filter circuit parameter design, printed circuit board ground and signal line design, and the software adopts fault-tolerant technology.
2 Introduction to the overall system plan
This AC variable frequency air conditioning system is divided into two parts: indoor unit system and outdoor unit system. The indoor unit system mainly processes some logical state information of the system, while the outdoor unit system is mainly the variable frequency drive part of the compressor. In this system solution, the indoor unit is implemented by SPCE061A, and SPMC75F2413A is mainly used in the variable frequency drive part. Therefore, the indoor unit system will not be described in detail here. The circuit structure block diagram of the outdoor unit is shown in Figure 2.1.
basic working process of this system:
the main control MCU (SPMC75F2413A) of the outdoor unit receives the control and status information from the indoor unit at any time, so as to control the outdoor fan, four-way valve and compressor to complete the corresponding control functions. At the same time, some status of the outdoor unit and some outdoor temperature information will be transmitted back to the indoor unit. For the indoor unit to control.
3 System hardware design
The system circuit schematic diagram is shown in Figure 3.1. Among them, the PS21865A three-phase power full-bridge circuit module is used to realize the power synthesis of the PWM signal to drive the compressor. ULN2003A is a power inverter with open collector output, which is mainly used to drive the relay in the system to control the fan and solenoid valve. The main functions of the SPMC75F2413A microcontroller: 1. Control the entire system according to the command of the indoor unit. 2. Complete the generation and control function of the variable frequency drive signal of the AC variable frequency compressor.
The Power_Line in Figure 3.1 is a half-duplex current loop conversion circuit. It mainly uses power supply and a dedicated communication line to form a current loop between indoor and outdoor. The current loop is powered by the indoor unit. This circuit provides a communication loop for the indoor and outdoor units. The SPWM signal injected with the third harmonic synthesized by SPMC75F2413A is output through IOB0~5, input into PS21865A after buffering and optical isolation, and then output to control the motor. IOB6 of SPMC75F2413A is the error detection input terminal. By detecting the signal it returns, once the PS21865A has an abnormal operation (such as overvoltage, undervoltage, overcurrent, overheating), the driver hardware will immediately prohibit the PS21865A from working, and apply for interruption at the same time, requesting CPU processing. IOA0~3 are analog input ports, mainly temperature sensor interfaces and DC high-voltage measurement interfaces. IOC8~10 are for controlling the four-way valve and the outdoor fan.
Figure 3.1 System circuit schematic diagram
4 System software design
The entire outdoor unit system software mainly includes two parts: 1. Communication and coordination control with the indoor unit. 2. Compressor drive control part of the outdoor unit.
The system communication and coordination control with the indoor unit mainly includes serial port interrupt service, command interpretation and execution, and main loop control. The main control flow is shown in Figure 4.1. The serial port interrupt service mainly receives data packets from the indoor unit and processes the corresponding information to ensure the correctness of the commands and data transmitted to the control program; the command interpretation and execution part mainly interprets the indoor unit commands and performs corresponding processing.
Figure 4.1 Main process
The compressor drive control part is divided into several parts, such as SPWM signal synthesis, motor acceleration and deceleration control, and motor start and stop service. The core part is the synthesis of SPWM signal. The waveform synthesis of this system is carried out using DDS (direct digital frequency synthesis). This part is mainly composed of PWM period table interrupt service and corresponding auxiliary calculation program. Among them, PWM period interrupt service is the core part of signal synthesis, which occupies about 70% of the calculation amount in the whole system. It mainly completes the synthesis of drive waveform and dynamic compensation function of trunk voltage. At the same time, period interrupt provides clock reference for DDS; while the acceleration and deceleration control part mainly tracks the set frequency, so that the current operating frequency approaches the target operating frequency with the set acceleration; the motor start and stop service mainly performs special processing on the two special processes of motor start and stop.
Because the execution frequency of PWM period interrupt service program is very high (about 5KHz), this part is written in assembly to ensure the minimum CPU resource occupation. The process of PWM interrupt service subroutine is shown in Figure 4.2.
Figure 4.2 PWM interrupt service subroutine flow chart
5 Conclusion
Usually, in the process of developing frequency conversion equipment, it is necessary to write real-time and highly readable code, and then mixed programming is needed. Lingyang's m'nSP™ IDE has a good programming environment, which can easily and easily perform mixed programming (calling the assembly program in the C program, and calling the C program in the assembly program).
The system uses two timers and about 17 IO port resources of SPMC75F2413A. In fact, the resources of SPMC75F2413A are quite rich. Because it has professional frequency conversion hardware support, the development of the frequency conversion system becomes relatively simple. At the same time, SPMC75F2413A has a very outstanding performance in frequency conversion control. Therefore, the frequency conversion system based on SPMC75F2413A has broad application prospects in the frequency conversion fields such as general frequency conversion and frequency conversion home appliances.
Previous article:Application of single chip microcomputer in power control of electromagnetic cooker
Next article:Application of single chip microcomputer in DC frequency conversion washing machine
Recommended ReadingLatest update time:2024-11-16 18:00
- Popular Resources
- Popular amplifiers
- The variable frequency speed regulation system of the Lingyang microcontroller SPMC75F2413A
- Control method of stepper motor acceleration and deceleration based on Lingyang single chip microcomputer
- Use SPMC75\'s own Flash to back up data
- An example of using the AD conversion of the Sunplus SPMC75F2413A to control the speed of the marquee. This is something I wrote myself.
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
- Summary: RCSN Play Anxinke's new esp32s3 development board
- How should Japan deal with nuclear waste water? Give us some ideas
- RTL diagram timing, can anyone help me explain why the two outputs in this diagram are in the two-choice mode?
- Now DCDC design tools are made like this
- The disappearing boundary between MCU and MPU
- DS18B20 STM32G474 driver
- 【Fudan Micro FM33LC046N】Clock output test
- Python Basics: Dictionary Application
- A brief introduction to vehicle-mounted domain controllers
- Design of LED emergency lighting controller based on MSP430