Application design of AC variable frequency air conditioner based on SPMC75F2413A single chip microcomputer

Publisher:CreativeMindLatest update time:2011-12-31 Keywords:SPMC75F2413A Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
1 Introduction

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.

Figure 2.1 Block diagram of outdoor unit system The

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.

Keywords:SPMC75F2413A Reference address:Application design of AC variable frequency air conditioner based on SPMC75F2413A single chip microcomputer

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

Design of DC frequency conversion washing machine based on SPMC75F2413A single chip microcomputer
1 Introduction Washing machines are an indispensable household appliance in the home, and they are developing very fast. Fully automatic washing machines are favored by everyone because of their convenience. Fully automatic means that a series of processes such as water filling, washing, rinsing, and drying are compl
[Microcontroller]
Design of DC frequency conversion washing machine based on SPMC75F2413A single chip microcomputer
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号