Open Access

Multi-function Monitoring and Alarm System for the Large Stadium


Cite

INTRODUCTION

For the safety problem of the large sports venues, this paper introduces a multi-function alarm system based on the wireless communication system[1]. It can realize the stadium smoke or combustible gas, the infrared detection and the temperature alarm. Through the sensor and the wireless communication module, the collected data was send to the user or the main control platform. The system includes the minimum system based on STC89C52, sensor circuit composed of the DS18B20, HC-SR501, MQ-2, GSM communication module and the LCD1602 display circuit. The software system includes the main program, the GSM SMS transceiver program, the display program and the temperature detection program[2].

OVERALL DESIGN OF THE SYSTEM
The system function block

The hardware system is composed by the smallest system of MCU, the GSM module, the display circuit, the buzzer control circuit and the sensor circuit[3]. The sensor circuit is composed of three parts: the smoke detection, the human infrared detection and the temperature detection. It is showed in Figure 1.

Figure 1.

System block diagram.

From Figure 1, when the three sensors detect the smoke, the human body or the high temperature, the alarm information is sent to the microcontroller. The microcontroller detects the alarm by judging the threshold of the buzzer circuit. Then the GSM module sends the alarm message to the user.

The design of the minimum system

The minimum system of single chip microcomputer is composed of single chip microcomputer, crystal oscillator circuit and reset circuit[4]. As shown in Figure 2.

Figure 2.

Minimum system of the single chip.

The principle of reset circuit is to reset the program manually when pressing the button, reset the program, and restart it. In the crystal oscillator circuit, X1 provides oscillating signal for the crystal oscillator to the microcontroller, and the MCU runs into the running program.

Example Sensor detection circuit
Temperature detection.

The temperature of the environment is collected by DS18B20 and the collected information is sent to the circuit through the interface. The temperature range is -55 °C ~+125°C. The increment is 0.5°C and the temperature can be turned into a number. The MCU can read the temperature directly. This temperature sensor reduces the external circuit and makes it easier to realize[5].

The DS18B20 consists of four parts: the 64 bits ROM with the single-wire interface, the temperature sensor, the temperature trigger and the configuration register. Its structure is shown in Figure 3.

Figure 3.

The internal block of DS18B20.

Through the single bus protocol, the single chip microcontroller reads the data and operations from the DS18B20. Finally it is concluded the temperature value. The resistor in the circuit used for the pull-up, it has the ability of the anti-interference.

Smoke and combustible gas detection.

The MQ-2 smoke sensor is a kind of the air sensitive material with the tin oxide. It has the low conductivity in the clean air[6]. Therefore, in the surrounding environment, the conductivity of the sensor increases with the increase in the presence of the smoke or the combustible gas.

LM393 is the operational amplifier which is used as a voltage comparator. When the input voltage V+ > V-, the output is high and the output is low when V- > V+.

The MQ-2 is the smoke sensor. In MQ-2, R1 and RV2 constitute the circuit. RV1 is a sliding resistor which adjusts the input voltage of LM393. In general, when V+ >V-, outputs the high level. When the MQ-2 detects the smoke or the combustible gas, its resistance decreases and the voltage is smaller, the V-voltage changed higher, so that the V+<V-. The LM393 outputs the low level, the light emitting diode conducts. The single chip microcomputer detects the low level, so as to start the alarm.

The detection circuit of the smoke and combustible gas is shown in Figure 4:

Figure 4.

The circuit of the smoke and the combustible gas.

Human infrared detection

With the HC-SR501 module, the system detects the human body. When the human body passes through the infrared detection zone, the MCU outputs the trigger signal to the wireless module. When no one is unmanned, the MCU is used to detect the high level through the pull resistance[7].

Figure 5.

The infrared detection circuit.

HC-SR501 is the human body induction module. When it detects the human body, pin A1 outputs the high level. Through the current limiting resistor, Q1 turns on and the collector connects to the GND and then switched to the low level. At this time, the light emitting diode conducts and the LED lighting. The single chip microcomputer detects the low level and begins an alarm. In the circuit, the capacitance used as the filter, R2 is the pull-up resistor. When there is no person, the Q1 turns off. The single chip microcomputer can detect the high level by the pull-up resistor.

SOFTWARE SYSTEM DESIGN
Main program design

The software of this system is designed with a single chip system program as the main program, and the sensor module program is designed as the subroutine[8]. The main program flow is shown in Figure 6.

Figure 6.

Main program of the systemm.

At first, the MCU initializes and then the temperature module, the human infrared module and the smoke alarm module are also initialized. If the system detects the smoke, sends the message to the mobile phone or determines whether the temperature exceeds the threshold value. If it exceeds it, send data to the user or judge the results of the human detected. If detects the human body sends the data to the mobile phone or not.

GSM module program design

The program design of this part is the design of serial communication of GSM[9]. First, port, baud rate, parity bit, data bit and so on are first set up, then the short message is sent by TC35 AT command. The flow of its program is shown in Figure 7.

Figure 7.

TC35 module program flow chart.

The program began, GSM module initialization, serial port to determine whether to interrupt if the serial interrupt, and then determine whether to receive the “RING” command, if the received command is sent on command, if not to receive orders and then to determine whether the received switch command, if the #OPEN# is received, the control relay is closed, LED lights, if received the #CLOSE# command, control relay off, LED lamp.

TEST RESULT AND DATA ANALYSIS

When the system detects the data exceeds the threshold, the GSM module begin works. It send SMS to the user or the main platform, which could transmit the data in time. In order to display the test results, uses the screen results of the mobile phone in Figure 8.

Figure 8.

GSM sending SMS.

Users can send “OPEN” and “CLOSE” command to control the working status of the system. If the “OPEN” command is send, the LED turns on. When sending “CLOSE” command the LED turns off. It proved the GSM module could receive short message successfully. The test result is shown in Figure 9.

Figure 9.

GSM receiving SMS

CONCLUSIONS

In this paper, the multi-function alarm system could detect the smoke or combustible gas, the infrared identification and the temperature by the multi-point sensor in the large stadium. The collected data transmitted by the mobile communication to the mobile phone or the main platform. The system is simple and cheap, it has various functions for the monitoring system conveniently.

eISSN:
2470-8038
Language:
English
Publication timeframe:
4 times per year
Journal Subjects:
Computer Sciences, other