0 Introduction
In order to meet the increasingly stringent emission regulations, the exhaust temperature, pressure and other parameters of the engine need to be tested when the vehicle leaves the factory or is tested. The exhaust parameters are also an important indicator of whether the engine is operating normally, so it is very necessary to regularly test the exhaust temperature of diesel locomotives. This paper develops a data acquisition system to automatically complete the collection and storage of exhaust parameters, and collects and stores the engine exhaust temperature and pressure parameters. Due to the different performance and the quality of the diesel used, the exhaust temperature of different models of diesel engines is also different. Therefore, we use the host computer to store the exhaust temperature parameters of different models of diesel engines during normal operation, and compare the real-time collected temperature with the stored temperature. When there is a large difference, the engine performance needs to be inspected.
1 System Design
This system consists of two parts: the host computer and the slave computer. The slave computer collects the exhaust temperature and pressure in real time and transmits the collected data to the host computer. The host computer is programmed with Visual Basic6.0 to display the temperature data transmitted by the slave computer, draw a temperature curve, and compare it with the normal operating temperature of the diesel locomotive stored in the host computer. The observer can judge whether the engine is operating normally based on the difference between the two curves. Figure 1 is the schematic diagram of this system. The single-chip K-type thermocouple amplifier with cold-end compensation and the digital converter MAX6675 are used for temperature collection. The VESX-100 pressure sensor adopts a three-wire system, 10~32 V power supply, and the output signal is 1~5 V. It can be directly connected to the AD converter. The single-chip microcomputer processes the digital quantity after A/D conversion and transmits it to the host computer.
2 Lower computer design
2.1 Lower computer hardware design
In order to accurately measure the pressure, the pressure sensor VESX-100 with high linearity was selected in the bus exhaust parameter collection experiment. The VESX-100 pressure sensor adopts a three-wire system, 10~32 V power supply, and an output signal of 1~5 V, which can be directly connected to the AD converter. In order to accurately measure the temperature, the temperature sensor used in this experiment is a high-sensitivity K-type thermocouple with a diameter of 1 mm. After selecting the sensor, the diesel vehicle exhaust temperature data acquisition system is composed of the STC89C52RC microcontroller and the 12-bit serial control AD converter TLC2543, the single-chip K-type thermocouple amplifier and digital converter MAX6675, and the 512 kbit serial EEPROM memory AT24C512 and MAX232. The STC89C52RC microcontroller selected in this system is one of the STC series microcontrollers. The STC microcontroller has strong anti-interference ability and low power consumption, and is suitable for use in relatively harsh occasions. TLC2543 is a 12-bit serial controlled AD converter with internal sampling and holding. Using TLC2543 in the design can not only save the I/O resources of the single-chip microcomputer, but also has a moderate price and high resolution. MAX6675 is a complex single-chip K-type thermocouple digital converter, which has a signal conditioning amplifier, a 12-bit analog/digital thermocouple converter, cold end compensation sensor and correction, a digital controller, an SPI compatible interface and an associated logic control. The single-chip microcomputer can read the temperature value of the K-type thermocouple measured by MAX-6675. This experiment uses MAX6675 to save complex linearization circuit processing and has high temperature conversion accuracy. AT24C512 is a 64 kbyte serial electrically erasable programmable memory produced by Atmel. The data is not lost when the power is off. It is suitable for data acquisition systems with large-capacity data storage requirements. This experiment uses AT24C512 as the memory. Almost all PCs have RS-232-C interfaces. Therefore, it is most convenient for the microcontroller to communicate with the PC through the RS-232-C port. This experiment uses MAX232 to achieve the conversion between logic level and RS-232-C level. [page]
The lower computer circuit is shown in Figure 2.
2.2 Lower computer software design
The lower computer software is written in assembly language. The main parts of the program are as follows:
3 Host Computer
Visual Basic 6.0 is a powerful and easy-to-learn programming language. It not only retains all the functions of the original Basic language, but also adds object-oriented programming functions. It can not only easily and quickly compile programs suitable for data processing, multimedia, etc., but also use the ActiveX control MSComm to easily develop computer communication programs using the computer serial port. This article uses the MSComm control of VB to realize serial port communication with the lower computer and read the pressure and temperature data collected by the lower computer. The specific operation process is to declare a dynamic array, and the Input property of the MSComm control is directly assigned to the GetByte array. The purpose of the following LBound and UBound functions is to obtain the minimum index value and maximum index value of the GetByte array. With the maximum and minimum index values, the content can be transferred out in a customized way of the program for other operations, thus completing the program for receiving binary data. The received data is stored in a text file named PT.txt in the root directory of the C drive in a certain order to complete the data saving work. The upper computer software process is shown in Figure 4.
The upper computer part of the program is as follows:
4 Conclusion
The engine exhaust parameter acquisition system based on STC89C52RC single chip microcomputer can be successfully used in the detection test of engine exhaust parameters. This system has low cost, reliable operation and good application value.
Previous article:Application of single chip microcomputer in automobile driving simulator
Next article:How to erase and write the internal Flash memory of C8051F35X microcontroller
Recommended ReadingLatest update time:2024-11-16 19:54
- Popular Resources
- Popular amplifiers
- 100 Examples of Microcontroller C Language Applications (with CD-ROM, 3rd Edition) (Wang Huiliang, Wang Dongfeng, Dong Guanqiang)
- MCU Principles and Interface Technology C51 Programming (Edited by Zhang Yigang)
- Arduino and LabVIEW Development Practice (Shen Jinxin)
- 51 Single Chip Microcomputer C Language Programming Classic Examples (2nd Edition) (Hou Yubao)
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
- If the clamp meter (multimeter) does not measure but there are still numbers, is it a malfunction?
- RK3399 open source motherboard hardware and software information released - free download
- EEWORLD University Hall - Digital Oscilloscope Operation Digital Oscilloscope Operation_National Taiwan Normal University_Teacher Zhang Guowei
- [ESP32-Audio-Kit Audio Development Board Review] Part 1: Building esp-idf and esp-adf development environments based on vs code
- Live broadcast has ended | Microchip's latest SAM and PIC32 microcontroller software development platform - MPLAB Harmony V3
- [GD32E503 Review]——07.LCD Part 2: Drawing Custom Patterns
- Xiaozhi Science Popularization丨Why do instruments generally have set values and readback values?
- SensorTile.box emulates STEVAL-MKI109V3
- TI.com live broadcast: Interpretation of popular smart electronic locks, visual doorbells, smart sensors and network camera solutions
- 【TI Recommended Course】#What can universal fast charging bring?#