Professional Documents
Culture Documents
Journal Paper-Elseviere - Chlorine Leakage Detectioncorrected On 9-11-23
Journal Paper-Elseviere - Chlorine Leakage Detectioncorrected On 9-11-23
Abstract
In the paper, the hardware and software design of the chlorine leakage inspection instrument based on the ARM-7-LPC-2148
microcontroller are introduced. The design of the constant voltage circuit, signal conditioning circuit (including filtering and
amplifying circuit), power supply circuit, display circuit, and alarm circuit, and through the Wi-Fi module and the cloud server
platform to realize data storage and remote viewing of the collected data from the chlorine concentration sensor, temperature sensor,
and humidity sensor Finally, through the host computer, LABVIEW software is used to query the historical data stored on the cloud
server. The lab view software provides real-time monitoring of the collected data from the sensor through the user interface. The
equipment can be widely used in petrochemicals, the papermaking industry, textiles, water treatment, and other occasions.
Keywords :Chlorine Sensor, Smart Monitoring, chlorine concentration, Chlorine analyzer, ARM processors, humidity,Wi-Fi Module
1. Introduction
Chlorine is a toxic gas with a pungent odor. Yellow green, is an important chemical raw material. It is widely used in
petroleum and chemical industry, pharmacy. Plastic pigment synthetic fiber industry, textile industry, papermaking
industry disinfection etc. However when chlorine gas leaks or is used improperly, it will cause serious consequences for
the employees and the social environment. According to the national standard, the maximum allowable concentration of
chlorine is lmgm3. Once the chlorine dioxide has been exceeded for a long time, it will cause poisoning. This seriously
affects the health status of the workers. Mild patients will have mucosal irritation symptoms: moderate patients will
develop bronchitis and bronchopneumonia: severe cases will have pulmonic edema, coma and systemic death and
respiratory arrest. So the effective monitoring of chlorine and timely alarm is a very important means to ensure the
safety, it can not only prevent the occurrence of accidents. Also can detect the leakage fault of equipment. Have
significance for toxic post production safety and health care.
The system uses ARM 7- 2148 LPC as the core design, including constant voltage circuit, signal conditioning circuit
(including filtering and amplifying circuit). Power supply circuit, display circuit and alarm circuit, and also needs the
GPRS module and tile cloud server platform to realize data storage and remote viewing.
STM32F1O3ZET6 is the STM32 series microcontroller enhanced high-capacity single-chip microcomputer. Using
ARM 32 bit Cortex-M3 kernel. STM32F 103 microcontroller system clock, frequency of 72MHz. The main system
consists of 4 drive units and 4 passive units. The 4 driving units including the Cortex-M3 kernel D-Code bus (data bus).
S-Code bus (rstem bus) and general DMA1 and DMA2: The 4 passive units include internal SRAM. The internal flash
memory. FSMC. AHB to APB Bridge. This system structure greatly improves the flexibility and efficiency of CPU D-
Code bus and DMA bus access to SRAM. Flash memo and peripheral devices, which is the biggest difference between
STM32 microcontroller and ordinary 16 bit microcontroller.
The electrolysis of brine process a sodium chloride (NaCl, salt) solution (brine) is electrolytically decomposed to
elemental chlorine and sodium hydroxide solution and elemental hydrogen co-produces caustic soda and chlorine is
typically referred to as a chlor-alkali (C/A).
a. Brine Purification
The initial stage of purification uses sodium carbonate and sodium hydroxide to precipitate calcium and
magnesium ions as calcium carbonate (CaCO3) and magnesium hydroxide (Mg(OH)2). The precipitated impurities
are removed by sedimentation in a clarifier followed by filtration using anthracite filter. The precipitation step
alone is not enough to reduce the levels of calcium and magnesium and additional softening using ion exchange
process is required. The ion exchange chelating resin treatment is designed to decrease the alkaline earth metals.
The resin is periodically regenerated with high purity hydrochloric acid and sodium hydroxide solutions
b. Chlorine Liquefaction
The Chlorine treatment process usually takes hot; wet cell gas and convert it to a cold, dry gas. Chlorine gas
leaving the electrolysers is at approximately at 80 OC. C and saturated with water vapour as shown in fig.1. It also
contains brine mist, impurities such as N2, H2, O2 and CO2. Electrolysers are operated at essentially atmospheric
pressure with only a few milli-atmospheres differential pressure between the anolyte and the catholyte.
[1]The development of monitoring system about the security situation in various industries like coal production,
coal mining and chemical industries. In order to solve the problem of coal mine monitoring systems and self-
management of coal enterprises, Adopted the Socket communication mechanism based on TCP protocol, design
[2] the Real-time monitoring and development of a WEB-based remote gas monitoring system.
During the design process, took into account a lot of combustible gas sensor specific problems such as their huge
power consumption, the necessity to work in explosive environment and sensor parameters degradation. To
decrease power consumption we designed specific energy efficient algorithms for measurements. The resulting
average power consumption of the node is low enough for one year autonomous lifetime.
[9] In order to realize remote monitoring and centralized management of combustible gas. A monitoring system of
high performance fuel gas based on RS485 bus communication mode was designed. The system was composed of
center controller and unit controller. The hardware design of unit controller and center controller was introduced,
and the software design scheme of the control and communication between each controller were given analyzed.
[5] IoT is an expanding network of physical devices that are linked with different types of sensors and with the
help of connectivity to the internet, they are able to exchange data. Through IoT, internet has now extended its
roots to almost every possible thing present around us and is no more limited to our personal computers and mobile
phones. Safety, the elementary
[7] The traditional Gas Leakage Detector Systems though have great precision, fail to acknowledge a few factors in
the field of alerting the people about the leakage. Therefore we have used the IoT technology to make a Gas
Leakage Detector having Smart Alerting techniques involving calling, sending text message and an e-mail to the
concerned authority and an ability to predict hazardous situation so that people could be made aware in advance by
performing data analytics on sensor readings.
[8] The oil and gas industries are investing more time and more money in wireless sensor technologies to help
reducing risks to personnel and plant by using early-warning devices such as gas detectors. This can help to
provide more time to take remedial or protective action. Gas leakage is also concern with residential, commercial
premises and gas powered transportation vehicles. This paper provides a means for detecting the leakage of
harmful gases and monitoring system which is economical to manufacture and which may be readily installed in
service stations, pressure gas storage tank environments, gas yards, utility areas like kitchen, and gas powered
vehicles.
3.0 System Analysis
The hardware and software design of the chlorine leakage inspection instrument based on ARM-7 LPC 2148 is
developed. The design of the constant voltage circuit, signal conditioning circuit (including filtering and
amplifying circuit), power supply circuit, display circuit and alarm circuit and through the GPRS module and the
cloud server platform is used to realize data storage and remote monitoring the data. The host computer which has
LABVIEW software is used to analyze the historical data stored in the cloud server
3.1. Overview of Internet of Things
Cloud servers offer great benefits over the traditional options of shared or dedicated servers. In some respects cloud
servers work in the same way as physical servers but the functions they provide can be very different.
3.2 Traditional Servers Vs. Cloud Servers
3.2.1. Traditional servers
Traditionally, there are two main options for hosting; shared hosting and dedicated hosting as depicted in fig3.
a. Shared Hosting
The cheaper option, as servers are shared between the hosting provider’s clients (e.g. one client’s website
will be hosted on the same server as those of other clients)
Suitable for small enterprises, where the required capacity is relatively low
Setup is inflexible and cannot cope with a large amount of traffic
2. Dedicated Hosting
A much more advanced form of hosting, whereby clients purchase whole physical servers
The entire server is dedicated to one client, with no one else sharing it
In some instances, a client may utilize multiple servers which are all dedicated to their use
Allows for full control over hosting
Capacity needs to be predicted, with enough resource and processing power to cope with expected traffic
levels. If this is underestimated it can lead to a lack of necessary resource during busy periods, while
overestimating will mean paying for unnecessary capacity.
3.2.2 Cloud Hosting
Clients get the best of both worlds: resource can be scaled up or scaled down accordingly, making it more
flexible and, therefore, more cost-effective
When there is more demand placed on the servers, capacity can be automatically increased to match
demand without needing to be paid for on a permanent basis
Cloud servers can run on a hypervisor. The role of a hypervisor is to control the capacity of operating
systems so it is allocated where needed
There are multiple cloud servers which are available to each particular client. This allows computing
resource to be dedicated to a client if and when it is necessary – additional capacity is temporarily
accessed when required, and then removed when no longer needed
Cloud servers offer more redundancy – if one server fails, others will take its place
Fig..3 Traditional hosting vs Cloud Hosting
4.0 Development of Wireless Chlorine Detector-proposed system
The LPC 2148 microcontrollers are based on a 16-bit/32-bit ARM7TDMI-S CPU with real-time emulation and
embedded trace support, that combine the microcontroller with embedded high-speed flash memory ranging from
32 kB to 512 kB as shown in fig4. A 128-bit wide memory interface and unique accelerator architecture enable 32-
bit code execution at the maximum clock rate. For critical code size applications, the alternative 16-bit Thumb
mode reduces code by more than 30 % with minimal performance penalty. Due to their tiny size and low power
consumption, LPC2141/42/44/46/48 are ideal for applications where miniaturization is a key requirement, such as
access control and point-of-sale. Serial communications interfaces ranging from a USB 2.0 Full-speed device,
multiple UARTs, SPI, SSP to I2C-bus and on-chip SRAM of 8 kB up to 40 kB, make these devices very well
suited for communication gateways and protocol converters, soft modems, voice recognition and low end imaging,
providing both large buffer size and high processing power. Various 32-bit timers, single or dual 10-bit ADC(s),
10-bit DAC, PWM channels and 45 fast GPIO lines with up to nine edge or level sensitive external interrupt pins
make these microcontrollers suitable for industrial control and medical systems.
ARM is a 32-bit instruction set architecture. Today many embedded applications like smart phones, set-top boxes,
digital television, digital camera use ARM processors due to their cost effectiveness and low power consumption.
ARM architecture is compatible with all four major OS i.e. Symbian OS, Palm OS, Windows and Android OS. III.
AR
Fig.4. Hardware Block Diagram
4.1 ESP 8266 WI-FI MODULE
The ESP8266 is a low-cost Wi-Fi microchip with full TCP/IP stack and microcontroller capability produced by
Shanghai-based Chinese manufacturer, Espressif Systems.The chip first came to the attention of western makers in
August 2014 with the ESP-01 module, made by a third-party manufacturer, Ai-Thinker. This small module allows
microcontrollers to connect to a Wi-Fi network and make simple TCP/IP connections using Hayes-style commands.
However, at the time there was almost no English-language documentation on the chip and the commands it
accepted. The very low price and the fact that there were very few external components on the module which
suggested that it could eventually be very inexpensive in volume, attracted many hackers to explore the module,
chip, and the software on it, as well as to translate the Chinese documentation. The ESP8285 is an ESP8266 with 1
MB of built-in flash, allowing for single-chip devices capable of connecting to Wi-Fi. The ESP8266 Wi-Fi Module
is a self-contained SOC with integrated TCP/IP protocol stack that can give any microcontroller access to your Wi-
Fi network. The ESP8266 is capable of either hosting an application or offloading all Wi-Fi networking functions
from another application processor.
.
4.2 Temperature Sensor LM35
In general, a temperature sensor as shown in fig5.is a device which is designed specifically to measure the hotness
or coldness of an object.LM35 is a precision IC temperature sensor with its output proportional to the temperature
(in °C).With LM35,the temperature can be measured more accurately than with a thermistor. It also possess low
self-heating and does not cause more than 0.1 °C temperature rise in still air. The operating temperature range is
from -55°C to 150°C.The LM35’s low output impedance, linear output, and precise inherent calibration make
interfacing to readout or control circuitry especially easy. It has find its applications on power supplies, battery
management, appliances, etc
.
Fig..5 LM35 Temperature sensor Pinout
5. Conclusion
introduced a chlorine gas leak detector system using the ARM 7-LPC 2148 controller, which stored the collected
chlorine parameters in the Thingspeak cloud server, where temperature, humidity, and chlorine concentration in
ppm can be viewed and historical data collected during different emergency situations. To monitor the collected and
stored data on the cloud server in real time, LabView software is used. The Labview software collects the data from
sensors through a wireless medium. Temperature and humidity sensors are used to measure the concentration of
chlorine in the working atmosphere with high accuracy. When the chlorine concentration crosses the predetermined
value that is above 0.5 ppm, the alarm unit starts, and the relay that controls the chlorine outlet valve is suddenly
closed. Once the chlorine concentration attains the steady state value that is below 0.5 ppm, the relay comes back to
the normal open position.
References
[1.] Guo Xiu-cai,Zhao Jing; Zhang,Xin-liang. The Research of Remote-Monitoring System of the Gas Based on
Web 2010 International Conference on E-Business and E-Government.
[2.] Denis Spirjakin; Alexander M. Baranov; Vladimir Sleptsov Design of smart dust sensor node for combustible
gas leakage monitoring.2015 Federated Conference on Computer Science and Information Systems (FedCSIS)
[3.] Kanda Januar, Miraswan Nur, Ulfa Maulidevi. Particle swarm optimization and fuzzy logic control in gas
leakage detector mobile robot, 2015 International Conference on Automation, Cognitive Science, Optics, Micro
Electro-Mechanical System, and Information Technology (ICACOMIT).
[4.] S. Nivedhitha,A. P. Padmavathy,U. S. Susaritha,M. Ganesh Madhan. Development of Multipurpose Gas
Leakage and Fire Detector with Alarm System2013 Texas Instruments India Educators' Conference.
[5.] Asmita Varma, Prabhakar S, Kayalvizhi Jayavel. Gas Leakage Detection and Smart Alerting and prediction
using IOT 2017 2nd International Conference on Computing and Communications Technologies (ICCCT).
[6.] Jinhao Sun, Yezi Li, Xiaojin Yan. The design of automatic detection processing device of gas leakage based on
the MB95204K 2011 International Conference on Electrical and Control Engineering.
[7.] Liang Zhu, Bing Zou, He Zhang, Zhen Wang, Ming Jiang. Design of multi-sensor wireless monitoring system
and its application in natural gas purification plant 2015 IEEE International Conference on Mechatronics and
Automation (ICMA)
[8.] P. C. Jain, Rajesh Kushwaha. Wireless gas sensor network for detection and monitoring of harmful gases in
utility areas and industries 2012 Sixth International Conference on Sensing Technology (ICST)
[9.] Xu Jun, Tang Ya-nan, Li Xin.High performance combustible gas monitoring system”2016 10th International
Conference on Sensing Technology (ICST).
[10.] Li-zhong Wang; Gang Zhang; Hong-bo Liu; Tao Hang. The network nodes design of gas wireless sensor
monitor 2011 Second International Conference on Mechanic Automation and Control Engineering.