Design of Gas Alarm Based on 51 Single Chip Microcomputer

Publisher:q13358975046Latest update time:2011-12-22 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Introduction

At present, with the continuous development of mining technology, the safety of underground operations is increasingly guaranteed, but 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 of which is methane (CH4), with a density of 0.716kg/m3. The harm to the human body is that it can cause suffocation and death if it exceeds the time limit. During underground mining, 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 by water spraying during coal mining, it becomes acid. However, the first two gases have a large content and are almost insoluble in water, and are flammable and explosive gases.

Due to the danger of gas itself and the huge 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 personnel who are working 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.

System Function Design
System Design

The gas alarm designed in this design 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

According to the portable requirements of the use environment for product design, the core component of the control circuit uses the AT89LV51 low-voltage microcontroller, and the sensor uses the MQ5 gas sensor. In order to reduce the occupation of the microcontroller 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 microcontroller 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. 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

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 4K bytes of repeatedly erasable read-only program memory (PEROM) and 128 bytes 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/O CLOCK, ADDRESS and a data output terminal DATA OUT 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/O CLOCK, ADDRESS, DATA OUT, 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 be used in conjunction with the LCD display to effectively remind the staff of the working environment around them and help them improve their safety awareness. In the circuit of the alarm module, 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 produces an alarm sound. [page]

Introduction

At present, with the continuous development of mining technology, the safety of underground operations is increasingly guaranteed, but 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 of which is methane (CH4), with a density of 0.716kg/m3. The harm to the human body is that it can cause suffocation and death if it exceeds the time limit. During underground mining, 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 by water spraying during coal mining, it becomes acid. However, the first two gases have a large content and are almost insoluble in water, and are flammable and explosive gases.

Due to the danger of gas itself and the huge 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 personnel who are working 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.

System Function Design
System Design

The gas alarm designed in this design 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

According to the portable requirements of the use environment for product design, the core component of the control circuit uses the AT89LV51 low-voltage microcontroller, and the sensor uses the MQ5 gas sensor. In order to reduce the occupation of the microcontroller 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 microcontroller 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. 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

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 4K bytes of repeatedly erasable read-only program memory (PEROM) and 128 bytes 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/O CLOCK, ADDRESS and a data output terminal DATA OUT 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/O CLOCK, ADDRESS, DATA OUT, 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.

Reference address:Design of Gas Alarm Based on 51 Single Chip Microcomputer

Previous article:Design of CAN and RS-232 Converter Based on Single Chip Microcomputer
Next article:Small resistance tester based on 51 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号