Implementation of An Industrial Automation System Model Using An Arduino
Implementation of An Industrial Automation System Model Using An Arduino
Implementation of An Industrial Automation System Model Using An Arduino
net/publication/330365845
CITATIONS READS
2 2,933
2 authors, including:
Arsheen Mir
The University of Sheffield
3 PUBLICATIONS 4 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Arsheen Mir on 05 February 2019.
IMPLEMENTATION OF AN INDUSTRIAL
AUTOMATION SYSTEM MODEL USING AN ARDUINO
Abstract
This paper discusses a model of an industrial system on a small scale, which
performs sequential operations using relays. The system shuts down
automatically once it detects high water or temperature levels, which are
hazardous for industrial operation. This model is implemented using an
Arduino microcontroller as it proves to be the most viable alternative. Being
an open source platform with the minimal cost it helps prototype the system
with ease. Its compatibility with sensors helps provide the required feedback
and the Arduino controls the system by taking corrective measures. The status
of the system is depicted using devices like the Liquid Crystal Display (LCD),
buzzer, etc. The sensor data is derived and stored in a Data Acquisition System
(DAS), this data can then be used for control and monitoring purposes. Thus,
the designed system helps replicate an industrial application and reduce the
cost of setting up and maintaining an actual Distributed Control System (DCS),
Programmable Logic Controller (PLC) or Supervisory Control and Data
Acquisition (SCADA) in viable industrial environments. It also provides
flexibility, with rapid prototyping and ease in error rectification. However, the
additional hardware, certifications and technical support required to implement
the design in an industrial environment when compared to a conventional
industrial system can prove to be a drawback.
Keywords: Arduino, Data acquisition, Industrial automation, Temperature sensor,
Water sensor.
4131
4132 A. Mir and R. Swarnalatha
1. Introduction
With the recent developments in technology, all processes are being automated.
Apart from industrial automation, automation is prevalent in the domestic domain
making homes more smart and secure. It has also helped reduce human effort
enabling the control of devices/appliances with great ease while being energy
efficient [1]. Various home automation models have been implemented
incorporating Android platforms [1], Global System for Mobile communications
(GSM) modules [2], Wi-Fi-based systems [3], etc., into the fundamental
microprocessor, sensor and actuator network [4, 5]. The wide application of
microprocessors is not confined to domestic/home automation applications but can
also be further extended into the industrial environment.
In the industrial domain, a fundamental automation system model is a basic
control system, which includes an input/sensor, a controller and an output/actuator.
This model can help implement any industrial application with appropriate hardware
and software selection. The application discussed in this paper is level and
temperature control during a continuous sequential switching operation.
A repetitive sequential switching operation replicates a traditional production
line. Sequential operations are widely used in industries for packaging, production
and similar activities. A simple example of such an operation would be the
production of a batch of screws in a factory. The sequence of the process flow for
the mentioned activity would be cutting, heading, lathing, threading, heat treatment,
electroplating, and packaging. This repetitive sequential nature of activities is
widely observed in all industries and can be easily replicated on a small scale for
small factories.
Level determination and monitoring systems are used in wastewater treatment
plants, oil and gas industries, chemical and food processing industries, etc., for
several applications including liquid storage, monitoring and control. These
systems use sensors based on different working principles namely magnetic,
ultrasonic, and Radiofrequency technology. The controllers used are mostly PLC’s
or conventional Proportional-Integral (PI)/Proportional-Integral-Derivative (PID)
controllers, which communicate between the sensor and the output device (usually
a pump) to assist the inflow or outflow of fluid as required.
Temperature control and monitoring systems find its application in a wide range
of process control industries. The input is derived from contact temperature sensors
like thermistors, thermocouples or resistance temperature detectors or non-contact
sensors based on infrared or similar technologies. These devices provide the
required input to the system and trigger output as determined by the controller.
Depending on the entire system either conventional controllers like the PI/PID
controller or an ON/OFF controller is used. The latter is used if the temperature is
not a very critical parameter in the system.
As evident, industrial processes are mostly based on PLC, DCS or SCADA
systems. These systems prove to be complex for small-scale industries and also
expensive because of their high initial cost of setup. As commented by Darandale
and Gunjal [6] and Sobota et al. [7], Arduino being an open source hardware
platform enables us to replicate any industrial process and experiment with it on a
small scale at a very minimal cost, with a workflow like industrial controllers.
Using PLC’s and conventional systems requires a lot of wiring and technical
Buzzers and LED’s (Loads), (6) Real Time Clock (RTC) Module and (7) PLX-
DAQ. The details of each are listed below.
2.2.7. PLX-DAQ
The PLX-DAQ or the Parallax Data Acquisition System is an add-on to excel,
which helps us acquire data from any microcontroller from up to 26 channels. It
puts the incoming data into separate columns. This available data can be used for
analysis, monitoring and control [17] as in Fig 11.
As depicted in this chart, the relay sequence continues unless and until it
experiences a disturbance in the form of a water level or temperature hike. The
Arduino code is composed of 2 modules, namely setup and loop [6]. The setup
function initializes input/output pins, variables and serial ports for serial
communication. The loop function performs the repetitive action of monitoring the
water level and temperature, controlling the relay sequence accordingly and
recording the readings in the PLX-DAQ system. An additional set of code is
required to initialize the date and time on the RTC module, which can be then be
commented after its first use. The Arduino IDE interface can be seen in Fig. 13.
Program code
The code is composed of 2 modules, namely setup and loop [6]. The setup function
initializes input/output pins, variables and serial ports for serial communication.
The loop function performs the repetitive action of monitoring the water level and
temperature, controlling the relay sequence accordingly and recording the readings
in the PLX-DAQ system. An additional set of code is required to initialize the date
and time on the RTC module, which can be then be commented after its first use.
The code is outlined in Appendix A.
PLC’s and conventional industrial systems are built for the purpose, they have
built-in protocols and provide extensive resources to aid set-up and operation. An
Arduino in comparison would require additional hardware, programming skills
and technical support.
4. Conclusion
In this paper, a simple industrial system was implemented on a small scale. This
design can be modified as per needs and utilized in many small applications. It
depicts how simple control functions can be carried out using just a microcontroller
and a few sensors and actuators. This design could perform repetitive sequential
actions with great ease and could also take corrective actions in case of water level
or temperature disturbances. The LCD, Buzzer depicts the status of the process and
the PLX-DAQ helps with data logging.
Acknowledgement
The authors would sincerely like to thank Prof. R. N. Saha, Director, BITS Pilani,
Dubai Campus for his constant encouragement and support.
Abbreviations
DAS Data Acquisition System
DCS Distributed Control System
GSM Global System for Mobile Communications
ICSP In Circuit Serial Programming
LCD Liquid Crystal Display
LED Light Emitting Diode
MATLAB Matrix Laboratory
PI Proportional-Integral
PID Proportional-Integral-Derivative
PLC Programmable Logic Controller
PLX-DAQ Parallax Data Acquisition Tool
PWM Pulse Width Modulation
RTC Real Time Clock
SCADA Supervisory Control and Data Acquisition
SRAM Static Random-Access Memory
References
1. Javale, D.; Mohsin, M.; Nandanwar, S.; and Shingate, M. (2013). Home
automation and security system using android ADK. International Journal
of Electronics Communication and Computer Technology (IJECCT), 3(2),
382-385.
2. Zeebaree, S.R.M.; and Yasin, H.M. (2014). Arduino based remote controlling
for home: power saving, security and protection. International Journal of
Scientific and Engineering Research, 5(8), 266-272.
3. ElShafee, A.; and Hamed, K.A. (2012). Design and implementation of a WiFi
based home automation system. International Journal of Computer and
Information Engineering, 6(8), 1074-1080.
4. Bharathkumar. V; Irshad, S.M.; Gowtham, S.; and Geethamani, R. (2017).
Microcontroller based digital meter with alert system using GSM.
Proceedings of the 11th International Conference on Intelligent Systems and
Control (ISCO). Coimbatore, India, 444-448.
5. David, N.; Chima, A.; Ugochukwu, A.; and Obinna, E. (2015). Design of a
home automation system using Arduino. International Journal of Scientific
and Engineering Research, 6(6), 795-801.
6. Darandale, D.C.; and Gunjal, B.L. (2013). Development of web-based
SCADA like application using Arduino platform. International Journal of
Emerging Technology and Advanced Engineering, 3(8), 172-176.
7. Sobota, J.; Pisl, R.; Balda, P.; and Schlegel, M. (2013). Raspberry Pi and
Arduino boards in control education. IFAC Proceedings Volume, 46(17), 7-12.
8. Liu, C.; Ren, W.; Zhang, B.; and Lv, C. (2011). The application of soil
temperature measurement by LM35 temperature sensors. Proceedings of the
International Conference on Electronic and Mechanical Engineering and
Information Technology. Harbin, China, 1825-1828.
9. Abhimane, A.; Limkar, P.; Barate, B.; and Puranik, V.G. (2017). Iot based
vehicle traffic congestion control and monitoring system. Proceedings of the
Appendix A
Program Code
//Initilaising header files and variables required.
#include <LiquidCrystal.h>
#include <DS1302.h>
LiquidCrystal lcd(A5, A4, 8, 9, 10, 11); DS1302 rtc(A3, 3, 6);
#define RELAY1 4
#define RELAY2 7
#define RELAY3 12
#define RELAY4 13
#define RELAY5 5
int level = A0; int buzzer = 2; int tempPin = A1; int t=0;
int val; float temp; float voltage;
void setup()
{ //Initilaising input and output pins.
pinMode(level, INPUT);
pinMode(RELAY1, OUTPUT); pinMode(RELAY2, OUTPUT);
pinMode(RELAY3, OUTPUT); pinMode(RELAY4, OUTPUT);
pinMode(RELAY5, OUTPUT);
digitalWrite(RELAY5,LOW); digitalWrite(RELAY1,LOW);
digitalWrite(RELAY2,LOW); digitalWrite(RELAY3,LOW);
digitalWrite(RELAY4,LOW);
//Initialising the LCD
lcd.clear(); lcd.begin(16, 2); lcd.setCursor(0, 0);
lcd.print(" Setup running! "); delay(5000);
//Setting up the DAS - PLX-DAQ
Serial.begin(128000); Serial.println("CLEARDATA"); Serial.println("CLEARLABEL");