SEARCH WITHIN CONTENT
Citation Information : International Journal of Advanced Network, Monitoring and Controls. Volume 3, Issue 1, Pages 35-38, DOI: https://doi.org/10.21307/ijanmc-2018-007
License : (CC-BY-NC-ND-4.0)
Published Online: 07-May-2018
In the recent years, the safety problem in the large stadium has concerned by the researchers. Especially during the period of the large sport, the safety problem of the stadium has become an important public event. This paper designs a multi-function monitoring and alarm system based on the mobile communication network. It could realize the smoke or combustible gas alarm, the infrared identification detection and the temperature alarm. It collects the data through the sensor and sends the data to the mobile phone or the control platform. The system has the characteristics of simple, convenient, safety, various functions and low cost.
For the safety problem of the large sports venues, this paper introduces a multi-function alarm system based on the wireless communication system. 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.
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. 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.
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 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.
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.
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.
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.
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. 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:
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.
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.
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. The main program flow is shown in Figure 6.
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.
The program design of this part is the design of serial communication of GSM. 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.
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.
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.
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.
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.