Design of carbon monoxide monitoring alarm based on single chip microcomputer

Publisher:幸福如意Latest update time:2012-11-15 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

With the rapid development of industry, there are more and more occasions where humans are exposed to harmful gases, which causes more and more harm to humans themselves. In steel mills and iron mills, blast furnace gas (mainly CO), a byproduct of blast furnace production, is sent to the gas pipeline network or to the gas tank for storage after cooling, dust removal and pressurization. Workers in the workshops near or near the blast furnace and workers in the pressurization station often suffer from carbon monoxide poisoning, which is very harmful; and during the maintenance of gas pipelines and storage cabinets, leaked carbon monoxide gas often explodes when it encounters open flames. Therefore, the development of a carbon monoxide gas monitor has very important practical significance. This article uses AD's data acquisition chip ADuC834 as the main control chip, and introduces a carbon monoxide monitoring alarm with high sensitivity, reliable performance and simple operation.

1 System Hardware Composition

1.1 System Block Diagram

The working principle of this system is as follows: First, the carbon monoxide data information on the scene is collected through the carbon monoxide sensor. The sensor selected is the electrochemical carbon monoxide gas sensor 7E/F from the British City Technology Ltd.; when the carbon monoxide gas diffuses through the pores on the sensor shell to the surface of the working electrode, a chemical change occurs, and the working electrode outputs a changing current, the current size of which is proportional to the gas concentration. The current signal then passes through the operational amplifier circuit to output a 0-2.5V voltage signal. This voltage signal is linearly related to the gas concentration. The ADuC834 microcontroller can obtain the carbon monoxide gas concentration value by collecting the voltage signal through its own integrated 24-bit A/D converter, and then use the LCD to display the current carbon monoxide concentration on the scene. In addition, the primary and secondary gas concentration alarm points of carbon monoxide can be set by pressing buttons. When the carbon monoxide concentration is greater than a certain alarm point, there are three alarm modes: sound, light, and vibration.

1.2 ADuC834 MCU Introduction

The ADuC834 microcontroller integrates two independent ∑-△ ADCs, of which the main channel ADC is 24 bits and the auxiliary channel ADC is 16 bits. The main channel AD input range is ±20mV to ±2.56V, divided into 8 levels, and any level can be selected when used. Due to the use of ∑-△ conversion technology, up to 24 bits of no missing code performance can be achieved; in addition to the basic A/D conversion function, the auxiliary channel can also be used as the input interface of the internal temperature sensor.

The ADuC834 microcontroller uses a 32kHz crystal oscillator to drive the on-chip phase-locked loop (PLL) and generates the required internal operating frequency through the setting of internal registers. Its microcontroller core is compatible with 8051. The on-chip peripherals include a serial port compatible with SPI and I2C, multiple digital input/output ports, watchdog timer, power monitor and time interval counter. The chip also provides 62KB flash/electrically erasable program memory and 2304B on-chip RAM.

The ADuC834 microcontroller is provided with a boot program by the manufacturer, so the user program code can be easily loaded into the ADuC834 microcontroller through the standard UART serial interface, which is very convenient for program development and design.

2. Software Programming

2.1 Data collection procedure

When collecting data, the external reference voltage Vref of the ADuC834 microcontroller is set to 2.5V, and different input ranges are set through the RN2, RN1 and RN0 bits of the AD0CON register to sample the input signal of the main channel.

2.2 Programming of User Flash/Electrically Erasable Data Registers

The ADuC834 microcontroller provides developers with 4KB of flash/electrically erasable data memory, which can be used to save system configuration information when power is off.

3. Instrument calibration and inspection

3.1 Instrument calibration

Since the linearity of the sensor itself is relatively good, the instrument is calibrated using a two-point calibration method. First, place the instrument in pure air, and after the displayed data is stable, use this point as the first point, i.e., the zero point, and adjust the LCD indication to zero; then adjust the gas flow rate of the standard gas cylinder to 200m1/min, and keep the gas flow stable through the sensor for about 1 minute; after the display reading is stable, use the concentration of this point as the second point and adjust the LCD indication to be consistent with the gas concentration value of the standard gas cylinder, and then close the gas cylinder, thus completing the entire calibration process.

3.2 Test results

3.2.1 Indication error

After various standard concentrations of gas pass through the sensor at a flow rate of 200ml/min, the measurement results are recorded after a delay of 35s, and the indication error is calculated according to the formula:

In the formula: △e is the repeatability error; A is the arithmetic mean of the readings; As is the standard gas concentration value; R is the range.

The indication errors at different concentrations were calculated and shown in Table 1.

Through the analysis of the above test data, it can be seen that the indication error of the carbon monoxide monitoring alarm is less than ±3% FS, which meets the requirements of the indication error verification regulations.

3.2.2 Repeatability error

After the same concentration standard gas passes through the sensor multiple times at a flow rate of 200m1/min, the measurement results are recorded after a delay of 35s, and the repeatability error is calculated according to the formula:

Where: Sr is the repeatability error; A is the arithmetic mean of the readings; Ai is the instrument reading value; n is the number of measurements, n=6.

The calculated repeatability error is shown in Table 2.

From the above test data, it can be seen that the repeatability error of the carbon monoxide monitoring alarm is less than ±2%, which meets the requirements of the repeatability error verification procedure.

4 Conclusion

The carbon monoxide monitoring alarm introduced in this article has the characteristics of simple hardware structure, small size, simple software programming and short development time. In addition, the carbon monoxide alarm designed by the author has been actually used in steel mills and iron mills, and has achieved good practical results.

Reference address:Design of carbon monoxide monitoring alarm based on single chip microcomputer

Previous article:Solution to Eliminating Electromagnetic Interference of MCU System
Next article:Dynamic encryption measures for microcontroller programs

Latest Analog Electronics Articles
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号