Published by : International Journal of Engineering Research & Technology (IJERT) http://www.ijert.org ISSN: 2278-0181 Vol. 8 Issue 07, July-2019 Smart Real Time Data Logging System for Industrial Automation using I2C Protocol

R. Sarojini1 M. Vijayakumar2 Assistant Professor, Assistant Professor, Department of ECE, Department of ECE, Government College of Engineering Srirangam Government College of Engineering Dharmapuri

S. Ramalingam3* Research Scholar, Department of EEE, Alagappa Chettiar Government College of Engineering and Technology Karaikudi

Abstract- This proposed paper work aims to develop a I2C is superior among all this these technologies. As I2C has the protocol based industrial machine status and data monitoring feature of low cost, easy to implement, Error checking, high system. It was the I2C bus for addressing the machines and it data transmission rate. Hence this project describes the I2C also has the capability of connecting up to 256 machines. We based communication between the electronic devices for can do this in a single I2C chip. In order to reduce the cost, industrial automation [2]. manual work and interfaced with ATmega 328 microcontroller and to improve the efficiency by using I2C bus. The industrial In general industrial machine monitoring is a process remote machine monitoring system plays an important role in of periodically monitoring the status of the machine to industrial application and they are to a large extent reinforce the overall products productivity. The information universally. sent by the machine monitoring system is incredibly The aim of the present work was to design and important for the managers and higher officials to analyses implement completely machine-controlled microcontroller- the production factors and also to resolve problems like based data acquisition system to measure the temperature and production delay, production misfortune, and improper appreciate monitoring the switching status of the machine sustenance as the breakdown takes an extended time to get ON/OFF and also the data is hold on in memory with date and reported and fixed. This delay leads the devices to be unused time in an exceedingly working environment for industrial application using ARDUINO. The system consists of a for several days. Such issues are resolved by this machine temperature sensing element (LM35), bus protocol, RTC monitoring system which monitors the status of the machine module, data logger with a memory card for storing data and from any locations. Industrial automation expedites to time and additionally note that time at which the machine stops extend the product quality, irresponsibleness and production the function. The sensor and machine on/off status circuits are rate. This paper work is to enhance a completely arduino interfaced to the arduino and the processing data will stored in machine-controlled data acquisition system for factory micro memory Card (SD card) and all data send to an android automation. The projected system is the industrial based app or web server using the Ethernet connection machine status monitoring using data logging system [6]. synchronously. The collected data will be displayed on the webpage and also the user allows downloading the information directly from the web server. Such an intelligent smart system 2. RELATED WORK diminishes human effort and automates the repeated tasks in In the existing systems we used the CAN protocol, industrial applications. web based applications, ZIGBEE and GSM protocol to monitor the machine status, temperature and other physical Keywords: Data logger, SD Card, ARDUINO, RTC, I2C, parameters [2]. In CAN based system it provides the Industrial automation communication between the electronic devices for industrial automation. And in ZIGBEE and GSM, the machines 1. INTRODUCTION temperature, voltage, humidity and ON-OFF status of the As the advancement in the technology is happening machine were monitored and recorded. all the system in the industries are becoming complex [1] and are also being used in the harsh environment. Because They will be updated on the web server and later of the Complexity of the system and the environmental downloaded by the user at any time. Further they also used condition human intervention to know the system status is remote based machine status monitoring system. The difficult. The Proposed system will be used to know the limitations of the existing system includes that the CAN bus processing status of the system and to control it if the system are costlier and we can't interface many machines at a time. is in critical condition. Moreover in the existing system only the switching status of The has to work in real time and must be the machine, temperature and humidity levels were low cost providing high performance. Industry automation measured [6]. can be possible in either wired or wireless. Many technologies are available for industry automation. But I2C

IJERTV8IS070402 www.ijert.org 885 (This work is licensed under a Creative Commons Attribution 4.0 International License.) Published by : International Journal of Engineering Research & Technology (IJERT) http://www.ijert.org ISSN: 2278-0181 Vol. 8 Issue 07, July-2019

But in the proposed system we can monitor and store the date and time, machines ON-OFF status. And also we can monitor the more number of industrial machines at a time without any manual control. Here the data are stored automatically in the SD card and computer terminal. And we retrieve the data whenever it is needed. So it reduces the time consumption, man power and also avoids the manual errors.

3. PROPOSED SYSTEM 3.1 System Design This project “Real Time Data Logging System for Industrial Application using I2C” mainly projects on both the hardware as well as software. The hardware implementation is done using the ARDUINO microcontroller, Toggle switches, RTC, LCD and I2C and the software implementation is done using ARDUINO IDE software and it is simulated, uploaded to the in the ARDUINO controller. This method enables data analysis which would be useful in storing the data in micro SD card. Using the SD card we can retrieve the data at any cost. In this system we use RTC module for displaying the data and time and also note that time at which the machine stops the function. Fig.2 Flow diagram of proposed system

3.2 WORKING PRINCIPLE 3.3 DATA LOGGER This project "Real Time Data Logging System for The ability of data logger system is automatically Industrial Application using I2C" as the various hardware collect data of machine on/off status on a every 24-hour per components such as the Microcontroller, LCD, relay, SD day .the information are stored and retrieved in SD card and card module, RTC and I2C bus. The Design Flow of Data also sent the data to web server using Ethernet protocol. all Logger shown in Fig 1. Such an advanced technology data are written with date and time using RTC module in SD system reduces human work and automates the repeated card. tasks in industrial applications. Fig 2 shows the proposed industrial data logger system. We use various loads for the industrial applicants such as light, fan, machines, A.C, exhaust fan, fire extinguisher and motor. We use ARDUINO Microcontroller as the main controller unit where the input and the output interface can be used. We use12V D.C adapter where the loads can be simultaneously accessed by using the relays an d this can be both automatically as well as manually controlled and it can be turned on and off. It is used as an embedded server with all data back up in an SD Card.

Fig.3Circuit for Microcontroller interfacing with I2C Bus

3.4 ARDUINO The ATMEGA328 has 14 I/O lines, serial communication and 6 ADC(A0 to A5) converter. The device operates in 5v. RTC module, SD card and I2c chip are interfaced with microcontroller chip.

Fig.1 Block diagram of proposed system

IJERTV8IS070402 www.ijert.org 886 (This work is licensed under a Creative Commons Attribution 4.0 International License.) Published by : International Journal of Engineering Research & Technology (IJERT) http://www.ijert.org ISSN: 2278-0181 Vol. 8 Issue 07, July-2019

Fig.4 Arduino Microcontroller

Fig 6. RTC DS1307 Modules 3.5 I2C (INTER-INTEGRATED CIRCUIT) The I2C chip has remote I/O growth for arduino 3.8 Liquid Crystal Display: microcontroller by victimization serial clock (SCL) and The LCD is a alpha numeric display .it has 16 serial information (SDA) line. it has 8bit I/O expander for 2 character and 2 row line. it is interfaced with arduino line biface bus (I2C) is meant for 5v VCC operation. The microcontroller. It has three command line RS,R/W and device i2c chip is an 8-bit-bidirectional Input and output enable line .it has 4 bit data lines are connected to arduino port (P0–P7), as well as secured outputs with high-current I/O pins. the LCD data is programmed by embedded C drive capability. language. The microcontroller sends the information to LCD.

Fig 5. Microcontroller interfacing with I2C Bus

3.6 MICRO SD CARD It is the tiniest memory card which will be bought; at fifteen millimeter x eleven millimeter (about the scale of a fingernail), it's a few quarter of the scale of the traditional sized sd card. This module uses the quality SPI interface for communication, that associate SPI buses, MISO, MOSI, SCK, and a Cs signal pin through programming, the information will simply be browse and compose into sd Card by exploitation the ARDUINO or alternative microcontrollers.

3.7 RTC MODULE: The RTC module DS1307 works on I2C protocol. Using I2C communication, all Data from different registers can be read by accessing their addresses for reading the module supported DS1307, it may be a low-power, and binary-coded decimal and SRAM is 56 bytes. The RTC Fig 7. Circuit diagram for Interfacing LCD module provides the information of year, month, date, seconds, minutes, hours and day. The tip of the month date 4. RESULTS AND DISCUSSION is mechanically adjusted for months with fewer than thirty 4.1 IMPLEMENTATION: one days, together with corrections for intercalary year. The In machinery industry there is a necessity to check real time clock ds1307 module working in either the 12-hour all of the machines are working or not working. So here we or 24-hour schedule with AM/PM. In order to use an RTC module, we need to first program it with the default present have to provide a system to monitor whether all machines date and time. Once this is done, the RTC registers can be are working or not working (i.e) working status. In read any time to process the time and date. industrial automation, we use I2C that reduces large amount of man power because in this method single person

monitor the entire network by a system. It is also reduce the time consumption. It checks the previous status of all

IJERTV8IS070402 www.ijert.org 887 (This work is licensed under a Creative Commons Attribution 4.0 International License.) Published by : International Journal of Engineering Research & Technology (IJERT) http://www.ijert.org ISSN: 2278-0181 Vol. 8 Issue 07, July-2019 machines by using data base and to increase the speed of officials can able to view the status of the machine at their data transmission. place, they can also able to analyses the profit loss of the products production. The managers of the particular organization need not to be depending upon any supervisors bug report. In future work we have to implement the data logging system using FPGA and internet of things.

REFERENCE:

[1] K. C. Lee and H.-H. Lee, “Network-based Fire-Detection System via Controller Area Networkfor Smart Home Automation”, 0098 3063/04/$20.00 © 2004 IEEE [2] Jadsonlee Silva Sá and JaidilsonJó da Silva, “Monitoring of Temperature Using Smart Sensors Based on CAN Architecture”, 0-7695-2283-1/05 $20.00 © 2005 [3] Zhu Qishen and Zhu Dongmei, “Distributed Remote Temperature Monitoring and AcquisitionSystem Based on CAN Bus”, 978-1-4244-4758-9/10/$26.00 © 2010 [4] Minu A Pillai and SrideviVeerasingam, “CAN Based Smart Sensor Network for Indoor Air Quality Monitoring,” 978-1- 4244-5540-9/10/$26.00 ©2010 [5] Nhivekar, G. S. &Mudholker, R. R. 2011. Data Logger and Fig.8 Hardware Implementation Remote Monitoring System for Multiple Parameter Measurement Applications. e-Journal of Science & Technology, vol.3, no.6,pp. 55-62 [6] Singh, J. S. &Padmalatha, L. 2013. Development of Http Server for Remote Data Monitoring and Recording System. International Journal of Computer & Technology, vol. 11,no. 4, pp. 2440-2445 [7] Ghayvat, H., Mukhopadhyay, S., Gui, X., &Suryadevara, N. 2015. WSN- and IOT-Based Smart Homes and Their Extension to Smart Buildings. Sensors 2015, vol. 15, no., pp. 10350-10379 [8] Lazarescu, M. T. 2015. Design and Field Test of a WSN Platform Prototype for Long-Term Environmental Monitoring. Sensors 2015, vol.15, no., pp. 9481-9518 [9] Ling, N. & Mei-Xia, D. 2015. Design of a Remote Data Monitoring System based on Sensor Network. International Journal of Smart Home, vol. 9, no. 5, pp. 23-30 [10] Mahboob Imran Shaik, “ Design& Implementation of Arm Based Data Acquisition System” IEEE ,2011. Fig. 9 SD card and Machine ON-OFF status output [11] A.Manikandan, J.Sakthivel, “Solid Waste Bin Management System”, Journal of Advanced Research in Dynamical and Control Systems, ISSN:1943-023X , pp 29-33, 2017. 4.2 ADVANTAGE OF USING I2C [12] K.Bommaraju, A. Manikandan, S.Ramalingam, “Aided System for • More than one master device can be used in the circuit. Visually Impaired People in Bus Transport using Intel Galileo • I2C requires only two wires for communication Gen-2” International Journal of Vehicle Structures & Systems, Online ISSN:0975-3540, Volume 9, Issue 2,pp 110-112,2017. • This results into smaller and less expensive PCBs. [13] NirmalKumar p,A.Manikandan, “Zigbee Based Online Air • Addition of any extra device is very easy Pollution Monitor” Journal of Chemical and Pharmaceutical Sciences, ISSN:0974-2115, pp 230-232, Feb 2017. 5. CONCLUSION [14] A.Manikandan, S.Tamilselvan, “RFID Based Voice Bank Alert System for Blind People” Journal of Chemical and Pharmaceutical This project concluded that automated industrial Sciences, ISSN:0974-2115, pp 308-310, Feb 2017. data logging system which it is used to monitor the machine [15] A.Manikandan, J.Sakthivel, “IoT Based Real Time Traffic status and also store the data regarding to the machines Analyzer” Journal of Chemical and Pharmaceutical Sciences, status from on to till off. It was the I2C bus for addressing ISSN:0974-2115, pp 139-142, Dec 2016. the machines and it also has the capability of connecting up to 256 machines. We can do this in a single I2C chip. In order to reduce the cost, manual work and interfaced with atmega 328 microcontroller and to increase the efficiency by using I2C bus.In this project, a data logger system has been used for recording the measurements at set the interval over the period of time. Micro SD card is used for storing the data and we can also retrieve the data. Thus it reduces the manual errors. RTC is used to provide the real time, date and month. LCD displays the machines on-off status with perfect date and time. All these data are stored in the SD card which is connected to the computer terminal through USB port. By using this project, the managers or higher

IJERTV8IS070402 www.ijert.org 888 (This work is licensed under a Creative Commons Attribution 4.0 International License.)