Design of gas concentration information detection and alarm based on single chip microcomputer

Publisher:九九归一74Latest update time:2012-05-23 Source: 电子产品世界 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Due to the danger of gas itself and the great harm it causes to people's production and life, the detection and alarm of gas is a necessary task. Gas alarm refers to the use of gas sensor technology to compare the detected gas concentration with the standard value. When it is higher than a certain concentration value, a corresponding sound and light alarm is issued to remind the working personnel to take corresponding measures, organize personnel to evacuate or ventilate the mine to avoid unsafe accidents, which plays a very important role in the safety of the current mining industry. The author has designed a low-cost combustible gas alarm design that can monitor the concentration of gas in the mine, display the measurement results, make judgments on the current environmental status, and issue alarm information.

At present, with the continuous development of mining technology, the safety of underground operations is increasingly guaranteed. However, there are still many mining enterprises with low mechanization levels, which pose a potential threat to the life safety of on-site mining workers. In particular, there are still hidden dangers in the detection and alarm of gas. There are still many major accidents caused by gas leakage every year. Gas is a gas formed in the coal-forming process and stored in large quantities in the coal seam. It is the most harmful gas in coal mines. Gas is a colorless and odorless gas. The main component is methane (CH4). The density is 0.716kg/m3. The harm to the human body is that it can cause suffocation and death if it exceeds the time limit. When mining underground, a certain amount of CH4, CO and SO2 gases often leak in the well. The latter has a small content and is easily soluble in water. After being treated with water spray during coal mining, it becomes acid. However, the first two gases have a large content and are almost insoluble in water. They are flammable and explosive gases.

System function design

System Design

The gas alarm designed in this paper consists of six parts: sensor, LCD display, sound and light alarm, control circuit, A/D conversion and power module. The gas sensor used in the sensor part can sense a certain gas in the environment and convert information related to the type and concentration of the gas into an electrical signal. This electrical signal is a continuously changing analog signal that needs to be converted into a discrete digital signal through A/D conversion. The control circuit is based on a single-chip microcomputer, which can process and judge the collected digital signals, use a certain algorithm to calculate the composition and concentration of the gas to be detected and send it to the LCD display for display. When the concentration of the detected gas exceeds the set alarm threshold, an audible and visual alarm is given. This system can store the detected data and the set threshold parameters and has its own power supply. The system block diagram is shown in Figure 1.

Figure 1 Overall functional block diagram

Figure 1 Overall functional block diagram

According to the portable requirements of the use environment for product design, the core component of the control circuit uses the AT89LV51 low-voltage single-chip microcomputer, and the sensor uses the MQ5 gas sensor. In order to reduce the occupation of the single-chip microcomputer port and further expand other functions, the A/D conversion part uses TI's TLC1543, and the LCD display uses dm12232f. The A/D conversion and LCD are connected to the single-chip microcomputer in serial mode. The sound and light alarm circuit uses a buzzer and a light-emitting diode for alarm. This design can meet the application of different occasions, and the test results are stable and reliable. The 10-bit TLC1543 A/D conversion chip can meet the accuracy requirements of the system measurement. The system circuit is shown in Figure 2.

Figure 2 System circuit diagram

Figure 2 System circuit diagram

The system uses AT89LV51 microcontroller as the core of the control part. AT89LV51 is a low-voltage, high-performance CMOS 8-bit microcontroller produced by ATMEL. It contains 4Kbytes of repeatedly erasable read-only program memory (PEROM) and 128bytes of random access memory (RAM), which is compatible with the standard MCS-51 instruction system. It has a built-in general 8-bit central processing unit (CPU) and Flash storage unit. AT89LV51 can work under a power supply voltage of 2.7~6.0V. The core device TLC1543 of the A/D conversion part has three control input terminals CS, I/OCLOCK, ADDRESS and a data output terminal DATAOUT that follows the serial peripheral interface SPI protocol. The 51 series microcontroller does not have a built-in SPI interface, but the SPI protocol can be simulated by software. In terms of hardware, the five ports of TLC1543, CS, I/OCLOCK, ADDRESS, DATAOUT, and EOC, are connected to the five I/O ports of AT89LV51. The alarm module uses a buzzer as a sound alarm device to remind users that the current gas concentration has exceeded the warning line and they should stop working immediately and take appropriate measures to avoid danger. It can effectively remind the staff of the working environment around them and help them improve their safety awareness in the alarm module circuit. When the level of the P0.7 port is low, the transistor is cut off; when the level of the P0.7 port is high, the transistor is turned on and the buzzer generates an alarm sound.

In this design, since the main component of gas is methane, the gas sensor used is MQ-5, which is suitable for monitoring devices for liquefied gas, methane (natural gas), and coal gas in households or industries. It has excellent resistance to ethanol and smoke interference, good sensitivity to liquefied gas, natural gas, and city gas; almost no response to ethanol and smoke; fast response recovery characteristics; long service life and reliable stability; simple test circuit, etc. Its structure and appearance are shown in Figure 3.

Figure 3

Figure 3 MQ-5 structure and appearance [page]

The structure and appearance of the MQ-5 gas sensor are shown in Figure 3 (Structure A or B). The sensitive element consisting of a micro AL2O3 ceramic tube, a SnO2 sensitive layer, a measuring electrode and a heater is fixed in a cavity made of plastic or stainless steel. The heater provides the necessary working conditions for the gas sensor. The packaged gas sensor has 6 pins, 4 of which are used for signal extraction and 2 for providing heating current.

The wiring of MQ-5 in the design is shown in Figure 4. In actual measurement, the corresponding correction value can be calculated according to its equivalent circuit, where Ro represents the equivalent resistance of the measured gas in the chamber, and RL is the external load resistance, which is used to adjust the output analog voltage range. The specific value should be determined according to the input range of the A/D converter. The input range of TLC1543 is 0~5V, so RL can be adjusted to this range to ensure that the measurement range is sufficient.

Figure 4

Figure 4 Equivalent circuit of MQ-5

Gas test result calculation

For the calculation of the adjustment parameters of the sensor, you can follow the steps in Table 1 and make adjustments in combination with the characteristic table of the sensor.

Table 1 Methane test calculation

Table 1 Methane test calculation

Wherein: RL = 20KΩ; Ro = 14.43KΩ; C = 86; RL is load resistance; Ro is sensitive body resistance; C is constant, which is used to adjust the display range.

During the sensitivity adjustment process, since the MQ-5 gas sensor has different resistance values ​​for different types and concentrations of gases, it is very important to adjust the sensitivity when using this type of gas sensor. It is recommended to calibrate the sensor with 1000ppm isobutane or hydrogen.

This design considers the convenient and practical alarm. The finished product can be easily embedded in the mine lamp, and the design cost is low. The design of the intelligent gas alarm for the mine lamp based on the single-chip microcomputer leaves room for the choice of hardware. While adding related hardware, the software part only needs to change a few parts to realize other functions, making the system function more perfect. The A/D converter is 11 channels, which can expand other sensors, such as sensors for monitoring temperature and humidity in the mine. And the system can expand the wireless transmission module to send the detected information to the safety control center in time, and cooperate with other safety monitoring equipment in the mine to better ensure the safety of underground operations.

Reference address:Design of gas concentration information detection and alarm based on single chip microcomputer

Previous article:Chinese Character Input Method in Single Chip Microcomputer Display and Control System
Next article:A wireless remote control technology based on single chip microcomputer system

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
Guess you like

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号