Development of a refrigerant central control system based on a single chip microcomputer

Publisher:翩翩轻舞Latest update time:2013-07-04 Source: dzscKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
       Introduction

       The refrigeration system has become an important configuration of modern automobiles. The amount of refrigerant and the purity of refrigerant in the refrigeration system are the key factors affecting the refrigeration effect. It is necessary to carry out system inspection and refrigerant replacement on schedule. The refrigerant replacement process is divided into four steps: refrigerant recovery, vacuuming, refrigeration oil injection and refrigerant filling. At present, the means of repair and maintenance of automobile refrigeration systems in China are mostly manual operations. The work process is complicated and inefficient, and the system is often damaged due to improper operation.

       The author has completed the development of automated equipment for automobile refrigeration system maintenance, which effectively improves the maintenance efficiency and maintenance quality, realizes the full automatic operation of refrigerant replacement in automobile refrigeration system, is easy to use and has a friendly interface.

       The fully automatic refrigerant filling control system uses the 16-bit single-chip microcomputer MSP430F149 as the core controller, uses the new CPLD device EPF10K10A of ATERA, and realizes external storage data encryption. The whole machine is fully functional and highly reliable.

       2 System structure and control process

       The structure of the fully automatic refrigerant filling system is mainly composed of an embedded control system, an electronic scale, a vacuum pump, a compressor, multiple state detection sensors, an execution switch and a solenoid valve. As shown in Figure 1.

Refrigerant filling system structure diagram

                                                           Figure 1 Refrigerant filling system structure diagram

       The workflow of the automatic control of the refrigerant filling system includes eight items: vehicle information input, filling information query, refrigerant identification and recovery, vacuuming, adding refrigeration oil, adding refrigerant and result printing, as shown in Figure 2.

Workflow of automatic control of refrigerant filling system

 


       (1) Vehicle information input After the refrigerant pipeline of the vehicle to be inspected is correctly connected to the refrigerant filling system, the operator enters the parameters such as the manufacturer, vehicle model, year and month information of the vehicle through the operation panel keyboard. [page]

       (2) Filling information query The control system searches for the refrigerant type, refrigeration oil filling amount, refrigerant filling amount and other control parameters corresponding to the vehicle in the vehicle filling information database based on the input vehicle information.

       (3) Refrigerant identification Send a control signal to start the refrigerant analyzer, and the refrigerant analyzer extracts the vehicle refrigerant sample for type analysis, and submits the identification result to the control system. It is required that the refrigerant type in the refrigerant filling system storage tank is the same as that of the refrigerant vehicle to be filled, otherwise the system will give an alarm prompt, replace the refrigerant storage tank of the same type, and continue the next step.

       (4) Refrigerant recovery Control the corresponding actuator, rely on the pressure in the vehicle refrigerant pipeline itself to recover the refrigerant, and the recovered refrigerant is introduced into the refrigerant storage tank after purification.

       (5) After the vacuum recovery pressure is balanced, control to open the vacuum pump to extract the residual refrigerant gas in the vehicle refrigerant pipeline until it is close to zero pressure. Turn off the vacuum pump and let the vacuum sensor monitor the pressure of the vehicle refrigerant storage chamber. The pressure value changes within a certain period of time to detect whether there is a leak in the refrigerant pipeline. If there is no leak, proceed to the next step. Otherwise, the refrigerant pipeline needs to be repaired first to ensure that the refrigerant pipeline is well sealed.

       (6) Add refrigerant oil According to the control process, add a certain amount of refrigerant oil corresponding to the vehicle to the vehicle refrigeration system.

       (7) Refrigerant filling Add the corresponding amount of the same type of refrigerant to the vehicle.

       (8) Print the filling result The micro printer configured in the system prints the relevant items and parameters of this "filling work" and submits it to the user and archives it. At this point, the whole process of refrigerant filling is completed.
Based on the above system structure and control process, the design of the fully automatic automobile refrigerant filling control system focuses on studying and solving four problems: first, the system works stably and reliably and has strong anti-interference ability; second, the human-machine interface design is friendly, intuitive and easy to operate; third, the embedded vehicle refrigerant filling information database system is realized; fourth, a high-precision electronic scale is developed to ensure the accurate measurement of the refrigerant weight and realize the accurate control of the refrigerant filling amount.

       3 Hardware System Design

       The refrigerant filling system is a "car maintenance" device with a relatively harsh working environment and large electromagnetic interference. In line with the design goals of stability and reliability, simple circuits, and complete functions and novel technology, the hardware system structure of the fully automatic automobile refrigerant filling control system is shown in Figure 3.

Hardware system structure


       The main components are: MSP430F149 single-chip microcomputer, complex programmable logic device (CPLD), pressure sensor and its conditioning circuit, serial interface LCD display and refrigerant analyzer, keyboard, micro printer, switch input and output control, parallel port E2PROM, etc.

       (1) MSP430F149 single-chip microcomputer M

 
SP430F149 is the control center of the fully automatic automobile refrigerant filling system. It completes the processing of sensor data results, the detection of switch signals, the recognition of keyboards, the management of the two serial port communications of USART0 and USART1, and the communication and control with CPLD devices. The MSP430F149 microcontroller of Texas Instruments (TI) is a FLASH type microcontroller with built-in 60KB+256 bytes of FLASH and 2KB RAM. The refrigerant filling system uses a liquid crystal display interface. The program contains a large number of interfaces, menus, and animation data. The 60KB FLASH ROM in the MSP430F149 meets the system program's demand for storage space; the 2KB internal RAM ensures temporary data such as data acquisition, processing, and display, as well as a large number of system global variables; the rich I/O resources realize the expansion of the keyboard and the input detection of switch signals, as well as the communication and control of CPLD devices.

       (2) CPLD device expansion The microcontroller is connected to the external memory X28C512, 8-way solid-state relays, and micro printer through the CPLD device. Among them, X28C512 is a 64K parallel port E2PROM, which is used to store the vehicle filling information database. The 8-way solid-state relay sends out drive output signals to control each actuator. The CPLD device uses ALTERA's EPF10K10A, which solves the interface problem between the 3V microcontroller and the 5V working device; the port drive capability of EPF10K10A meets the solid-state relay's requirements for drive current; it realizes the expansion of the microcontroller port line and simplifies the circuit; EPF10K10A contains 6144 Bits RAM, which can realize data encryption of the filling information database.

       (3) Pressure sensor and its conditioning circuit The refrigerant filling system uses a strain gauge pressure sensor to realize the electronic scale function. The sensor detects the weight of the refrigerant tank on the platform and the refrigerant inside it, and controls the refrigerant filling process accordingly, which is expressed by the following formula: Q = (q1+q0) - (q2+q0) In the formula: Q is the amount of refrigerant already filled, q0 is the weight of the refrigerant tank, q1 is the weight of the refrigerant before filling, and q2 is the current weight of the refrigerant.

       The sensor outputs a millivolt strain signal, which is sent to the analog-to-digital conversion chip ICL7135 for A/D conversion after amplification, zeroing, filtering, and other conditioning. The output digital signal is sent to the single-chip microcomputer to complete the pressure signal detection. The single-chip microcomputer performs a table lookup based on the value range of the processing result, realizes segmented linearization, and corresponds the sensor signal to the refrigerant weight. The electronic scale implemented by the refrigerant filling system has a range of 0 to 50 kilograms and an accuracy of 10 grams.

       (4) Serial communication The MSP430F149 microcontroller has two serial communication ports, USART0 and USART1. The refrigerant filling system is connected to three serial communication devices, including the intelligent LCD with serial interface, the refrigerant analyzer and the host computer. The refrigerant analyzer and the host computer reuse the USART1 communication port. The RS232 interface chip uses the 3V-5V compatible MAX3232.

       (5) Keyboard and switch quantity detection are implemented using the P1 and P2 ports of the MSP430F149. The P1 and P2 ports have interrupt functions and can capture trigger events in real time.

       4 Software system design

       The software of the fully automatic automobile refrigerant filling control system includes monitoring programs, interrupt programs, and data processing programs. The main function of the monitoring program is to respond to user service requests in a timely manner, effectively manage the equipment's own hardware and software and human-machine integrated contact equipment, and provide corresponding processing information when the system fails. It mainly includes: system initialization management, keyboard management, display management, communication management, management of various functional modules of the instrument, interrupt management, etc. The interrupt sources used in this system are: serial port interrupt, external interrupt, software timer interrupt. The functions realized by the refrigerant filling control system are: automatic filling, manual filling, electronic scale measurement, filling information database management, system settings, as shown in Figure 4. [page]

Functions of the refrigerant filling control system


       (1) In the automatic filling mode, the refrigerant filling system automatically completes the entire refrigerant filling process; (2) In the manual filling mode, the operator can choose to complete one or more operations of refrigerant identification, recovery, vacuuming, adding refrigeration oil, and filling refrigerant; (3) The electronic scale function can detect the mass of objects on the weighing platform; (4) The data management function realizes the maintenance of the vehicle filling information database, including data query, data browsing, record addition, modification and deletion. In addition, the refrigerant filling system also provides a database update function, which is realized by communicating with the host computer through the control system and writing to the storage chip X28C512 under the control of the single-chip microcomputer; (5) The system setting function includes equipment information setting, user information setting, refrigerant information setting, operating parameter setting, etc.

       In the human-machine interface control of the refrigerant filling system, the software realizes various LCD display function modules and input method programs, which can input numbers, English and Chinese characters. These basic modules are called in the human-machine interface operation. 

       5 Conclusion

       The refrigerant filling control system developed in this paper realizes the fully automatic control of automobile refrigerant filling, improves the maintenance efficiency and repair quality of automobile refrigeration system, and the control system completes various functions and reaches various accuracy indicators with stable performance, high reliability and simple and convenient equipment operation.


参考文献
[1]. MSP430F149 datasheet http://www.dzsc.com/datasheet/MSP430F149.html.
[2]. CPLD datasheet http://www.dzsc.com/datasheet/CPLD_1136600.html.
[3]. EPF10K10A datasheet http://www.dzsc.com/datasheet/EPF10K10A_.
[4]. X28C512 datasheet http://www.dzsc.com/datasheet/X28C512_904921.html.
[5]. ICL7135 datasheet http://www.dzsc.com/datasheet/ICL7135_225194.html.
[6]. RS232 datasheet http://www.dzsc.com/datasheet/RS232_585128.html.
[7]. MAX3232 datasheet http://www.dzsc.com/datasheet/MAX3232_1107769.html.
[8]. MSP430 datasheet http://www.dzsc.com/datasheet/MSP430_490166.html.

Keywords:MCU Reference address:Development of a refrigerant central control system based on a single chip microcomputer

Previous article:Design and implementation of PSE based on TPS2384
Next article:High cost-effective single-chip microcomputer application system structure design

Recommended ReadingLatest update time:2024-11-16 21:03

AVR MCU Tutorial - Toggle Switch
There are 4 toggle switches above the buttons. Switches and buttons are very similar in principle and usage, but they have different uses - buttons will pop up when they are pressed and released, while switches can save their state. switch.h defines switch-related functions. switch_status corresponds to button_down,
[Microcontroller]
In 51 single-chip microcomputer, what is the difference between calling interrupt function and general function?
The calling process of an interrupt function is similar to that of a general function. The difference is that the time to call a general function is pre-arranged in the program, while the time to call an interrupt function cannot be determined in advance, because the occurrence of an interrupt is determined by exter
[Microcontroller]
A brief discussion on the usage of special IO of STC microcontroller
Under normal circumstances, after the 51 microcontroller is powered on and reset, all IO ports are high level by default and work in quasi-bidirectional IO mode. However, microcontrollers after the STC15 series have four IO working modes. An IO with a multiplexing function will not be in quasi-bidirectional IO mode af
[Microcontroller]
A brief discussion on the usage of special IO of STC microcontroller
Amid chip shortages, APM32 MCU replacement is accelerating
In the first half of 2021, the impact of the chip supply and demand imbalance continued, and the inventory of overseas IC manufacturers fell into a low warning level. Domestic foundry factories were working at full capacity to expand production. Faced with the supply interruption crisis, downstream terminals turned
[Microcontroller]
Amid chip shortages, APM32 MCU replacement is accelerating
Design and implementation of serial interface between single chip microcomputer and LCD
0 Introduction LCD liquid crystal display devices are used as information display interfaces for intelligent instruments. They have the characteristics of low voltage, low power consumption, and clear display. Nowadays, they are widely used in low-power intelligent instruments. The JM240128A LCD used in this art
[Microcontroller]
Design and implementation of serial interface between single chip microcomputer and LCD
Several common methods for programming microcontrollers
Recently, I saw a friend asking a relatively basic question, probably asking: What are the common methods for programming microcontrollers? Let’s talk about the three common methods of burning programs: ISP, IAP and ICP, as well as their differences. ISP ISP: In System Programing, in system programming. ISP mea
[Microcontroller]
Several common methods for programming microcontrollers
Infrared sending program based on single chip microcomputer (Infineon--XC866)
This program is suitable for Infineon--XC866 microcontroller, the carrier is 38KHZ, through P3_0 as the sending port, where: 0 is composed of 0.56m high level and 0.56ms low level, 1 is composed of 0.56 high level and 1.68ms level. It can be applied to C51 with slight modification. The sending procedure is as follows:
[Microcontroller]
Microcontroller and embedded system applications
1 Overview With the development of my country's equipment manufacturing industry, embedded systems have become the core technology of the manufacturing industry. It is widely used in many fields such as industrial control, simulation systems, medical instruments, information appliances, communication equipment, etc.
[Microcontroller]
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号