Paper Title (use style: paper title) 2018 International Conference on Sensor Network and Computer Engineering (ICSNCE 2018) 35 Multi-function Monitoring and Alarm System for the Large Stadium Wang Xiaohui School of Leisure Management Xi’an Eurasia University Xi’an, China e-mail: wangxiaohui@eurasia.edu Dou Xiaoning School of Leisure Management Xi’an Eurasia University Xi’an, China e-mail: douxiaoning@eurasia.edu Abstract—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. Keywords-Sensor; Wireless Transmission; Alarm;, MCU; GSM I. 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]. II. OVERALL DESIGN OF THE SYSTEM A. 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. Clock circuit Reset circuit STC89C52 MCU GSM Module Display circuit Sensor circuit Control circuit Buzzer alarm Smoke detection circuit Infrared detection circuit Temperature detection circuit 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. B. 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. 1 2 3 4 5 6 7 8 10 11 12 13 14 15 19 18 39 38 37 36 35 34 33 32 21 22 23 24 25 26 27 28 31 17 30 29 9 P11 P10 P13 P12 P15 P14 P17 P16 P30/RXD P34/T0 P31/TXD P32/INT0 P33/INT1 P35/T1 X1 RESET X2 P00 P01 P02 P03 P04 P05 P06 P07 P20 P21 P22 P23 P24 P25 P26 P27 EA/VPP RD/P37 WR/P36 ALE/PRDG 16 PSEN C3 22PF C1 30PF C2 30PF X1 12MHz L1 R1 4.7K STC89C52 + + + 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 2018 International Conference on Sensor Network and Computer Engineering (ICSNCE 2018) 36 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. C. Example Sensor detection circuit 1) 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 ℃ ~+125℃. The increment is 0.5℃ 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. Memory and controller 64 bits ROM and single-wire interface 8 Bits CRC generator Configuration register High temperature trigger Low temperature trigger Temperature sensor High speed cache memory 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. 2) 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+Threshold Infrared Detection N N 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. B. 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. Start MCU iniatialization Module iniatialization COM interrupt End receive“RING” Send the command“ATH” Delay Send message Receive #OPEN# Relay turn on LED turn on Receive #CLOSE# Relay turn off LED turn off Y N N N N Y Y Y 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. IV. 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” 2018 International Conference on Sensor Network and Computer Engineering (ICSNCE 2018) 38 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 V. 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. ACKNOWLEDGMENT This work was partly supported by Shaanxi Province Social Science Fund Project (NO.2016R022) of China and by the scientific research fund project of Shaanxi Provincial Department of Education (17JK1036). REFERENCES [1] F.Cappella, V.Caracciolo, and R.Cerulli, et al. “The calibration and the monitoring/alarm system”, International Journal of Modern Physics A, vol. 31, Nov. 2016, pp.1-8, doi:org/10.1142/S0217751X16420045 [2] T.Hamaguchi, H.Sakashita, and H.Moritani, et al. “Method for Designing Alarm System Using DAEs, CE Matrices, and Preference Indices”, Journal of Chemical Engineering of Japan, vol.50, Jun,2017, pp.439-444, doi:org/10.1252/jcej.16we365 [3] S.Romero-Brufau, B. W.Morlan, and M.Johnson, et al. “Evaluating Automated Rules for Rapid Response System Alarm Triggers in Medical and Surgical Patients”, Journal of Hospital Medicine, vol.23, Nov.2017, pp.217-223,doi: 10.12788/jhm.2712. [4] Y.Jie, H.Zhu, and X.Cao. “One-Piece Triboelectric Nanosensor for Self-Triggered Alarm System and Latent Fingerprint Detection”, Acs Nano, vol.11, Oct. 2016, pp.10366-10372, doi:10.1021/acsnano.6b06100. [5] Y.Jiang, G.Li, and J.Wang . “Photoacoustic Compound Fire Alarm System for Detecting Particles and Carbon Monoxide in Smoke”, Fire Technology, vol.52,May.2016, pp.1255-1269, doi:org/10.1007/s10694-015-0542-6. [6] S.Fong, R.Wong, and A. V.Vasilakos. “Accelerated PSO Swarm Search Feature Selection for Data Stream Mining Big Data”, IEEE Transactions on Services Computing, vol.9, Dec.2016, pp.33-45, doi:10.1109/TSC.2015.2439695. [7] A. O.Gaca, P.Kudrin, and C.Colomer-Winter, et al. “From (p)ppGpp to (pp)pGpp: Characterization of Regulatory Effects of pGpp Synthesized by the Small Alarmone Synthetase of Enterococcus faecalis”, Journal of Bacteriology, vol.197, Oct.2015, pp.2908.doi:10.1128/JB.00324-15. [8] T.Jones, L.Glass, and S.Gandhi, et al. “Madagascar's Mangroves: Quantifying Nation-Wide and Ecosystem Specific Dynamics, and Detailed Contemporary Mapping of Distinct Ecosystems”, Remote Sensing, vol.8,Feb.2016, pp.106,doi:10.3390/rs8020106. [9] A. S.Crunchant, M.Egerer, and A.Loos, et al. “Automated face detection for occurrence and occupancy estimation in chimpanzees”, American Journal of Primatology, vol.79,May.2017, pp.1- 12.doi:10.1002/ajp.22627. https://doi.org/10.1142/S0217751X16420045 https://doi.org/10.1252/jcej.16we365 https://doi.org/10.1021/acsnano.6b06100 https://doi.org/10.1109/TSC.2015.2439695 http://dx.doi.org/10.1128/JB.00324-15 http://dx.doi.org/10.3390/rs8020106 http://dx.doi.org/10.1002/ajp.22627