Raspberry PI based Data Sensing and Logging System using Wireless Sensor Nodes (WSN) and Local Area Network (LAN)

DOI : 10.17577/IJERTV4IS051318

Download Full-Text PDF Cite this Publication

Text Only Version

Raspberry PI based Data Sensing and Logging System using Wireless Sensor Nodes (WSN) and Local Area Network (LAN)

Ravi M S

Dept. of Electronics and Communication Engg.

Bangalore Institute of Technology Bengaluru, India

K V Muralidhar

Dept. of Electronics and Communication Engg.

Bangalore Institute of Technology Bengaluru, India

Abstract In these days automation using wireless communication has made the systems more smart and automated. The use of wireless communication has made the monitoring remote parameters easy. In medical domain, monitoring the patients parameters play an important role in diagnosing and giving appropriate treatment. In the existing system patient is monitored using bedside monitoring station with wired sensors, which makes the patients to be periodically monitored by the doctors/ nurses. This paper describes system which uses sensors to measure various parameters of the patient like temperature, Blood pressure wirelessly using Wireless Sensor Nodes (WSN) and update the status to Raspberry PI based server. The server updates the information using Local Area Network (LAN), so that the doctor can monitor the patients status anywhere within the Local Area Network and also sends an alerting SMS to a predefined mobile number if a parameter crosses the threshold.

Keywords Local Area Network (LAN), Automation, Wireless Sensor Nodes (WSN), Blood Pressure (BP).

  1. INTRODUCTION

    Nowadays, wireless communication is more popular and powerful communication technique over the wired communication. In medical science, wireless application rapidly increased with number of advantages over the wired connection such as, its ease to use, its reduced risk of infection, failure and patient discomfort, to enhance mobility. The low cost portable devices like heart rate monitors, temperature monitoring and Blood Pressure(BP) monitors are essential instruments in intensive care.It is difficult to monitor the patients continuously so normally, this kind of patients attached with relevant sensors to the body and the patient become sequentially bed bound with sensors. Earlier the patient is monitored from ICU and sends the patient condition to the bed side PC through wired communication. Whenever patient needs to be moved from bed, all patient monitoring device has to be disconnected and then need to be reconnected it later. The use of Wireless Sensor Nodes (WSN) will make patients monitoring systems more effective. The WSN can be mode more effective by using zigbee S2 and GSM. Here Raspberry Pi is used to continuously update patients data to the LAN server. WBAN is the base concept to develop the patient monitoring system.

    Wireless Sensor Network (WSN) to monitor the patients physiological conditions continuously using Zigbee technology. The ZigBee based sensor network makes the transmission of patients data to a remote central station. The use of zigbee makes it a low power device [1,2]. A patient monitoring system during the critical situation plays a vital role in every house. Point-of-care (POC) patient monitoring refers to near patient testing, usually outside the central hospital or primary care facility [3]. The remote monitoring of patients health using Wireless Sensor Networks (WSNs) makes the system more centralized and makes the sensing wireless. AARM embedded web server based on Raspberry Pi makes the system to update the data acquired using WSN to the server using which a central monitoring of patients is done[10].

    In the proposed system, the patients physiological conditions are acquired by the wireless sensors nodes attached on the patient body, and are then transmitted to the remote base-station. The base station is designed using a Raspberry Pi. The Raspberry Pi is basically ARM 11 processor with features like serial communication and Ethernet and so on. These features are explored to communicate with the WSN designed to acquire data and update the status to doctors chamber using LAN.

    This paper is organized as follows. The section 2 gives overview of the proposed system, section 3 introduces the System Architecture and the hardware design. The section 5 deals with software implementation of the architecture, section 6 covers results and discussions and section 7 deals with conclusions.

  2. DESIGN & IMPLEMENTATION

    A.Block diagram:

    Wireless Sensor Nodes: The wireless sensor nodes are basically designed using ZigBee technology, The ZigBee modules are reconfigurable devices which can be configured to operate as router, coordinator or end devices. The patient nodes are configured are Routers in API mode which configures the ZigBee module to read analog or digital sensor status and convert them in digital form using ZigBee and transmit it as a frame. The frame basically comprises the information like Node number and the converted data. System block diagram is shown in figure 1.

    Transmitter section Server section Fig 1. Block diagram

    Raspberry Pi as Server: The Raspberry Pi server section basically has a ZigBee configured as coordinator to receive the data coming from different nodes. The frames coming from different nodes is received and stored, from the received data the required information is extracted and display in the server which acts as Central Monitoring station. The Raspberry pi unit does the additional function of updating the status using a Local Area Network, this helps the doctors to monitor the patient status sitting at their chamber and also has the feature of sending SMS using GSM SIM900 when the parameter under monitoring condition are above the threshold value defined.

    1. Hardware Requirements:

      • Temperature Sensor: We will use the LM35 Temperature sensor and which is most accurate with an accuracy of +/-0.4C.and working based on the principal of thermocouple. LM35 temperature sensor is shown in figure 2.

        Advantages of LM 35 sensor

        • It measures temperature more accurately than thermistors.

        • It is sealed and does not undergo oxidation.

        • It does not require output voltage to be amplified.

          Fig 2. LM35 Temperature Sensor

          The output voltage of LM35 sensor is proportional to Celsius temperature.

          BP sensor: Sphygmomanometer- Blood pressure is the force of blood against the walls of arteries. Blood pressure is recorded as two numbersthe systolic pressure (as the heart beats) over the diastolic pressure (as the heart relaxes between beats). The measurement is written one above or before the other, with the systolic number on top and the diastolic number on the bottom. For example, a blood pressure measurement of 120/80 mmHg (millimeters of mercury) is expressed verbally as 120/80. The Sphygmomanometer is shown in figure 3.

          In this System we are not using Full Sphygmomanometer, Half part only, Remaining Electronics parts which creates analog O/p As per Increasing the AIR.

          Fig 3. Sphygmomanometer

      • XBEE S2 modules: It is a Technological Standard Created for Control and Sensor Networks, based on the IEEE 802.15.4 Standard. In particular we are using series 2 over series 1. The reason behind this is that we can implement star topology only in series 2.operating at 2.4 GHz and range up to 100 meter. Here using mesh topology. There are two types of communication modes API mode and AT mode. Zigbee router is AT mode and zigbee coordinator as API mode.

        • Created by the ZigBee Alliance.

        • Low power consumption because it has inbuilt ARM7 core.

        • Small packet devices.

        X- CTU software used for zgbee configuration .shown in figure 4.

      • Raspberry Pi: Its credit card sized computer board operating in LINUX operating system with 700 MHz. This is miniaturized processor which is capable of handling a number of applications just like CPU of a desktop computer. It has a Rasbian OS and it is introduced by Raspberry Pi foundations UK in 2012. It can be configured to develop games, web server etc. and available 3000 to 4000 thousands. Its running on Python programming language. Raspberry Pi Board Module B+ is shown in figure 5.

        Fig 4. Zigbee pin structure and module

        Fig 5. Raspberry Pi Board Module B+

      • GSM modem: This is used to send SMS to doctor if the health parameter exceeds normal value.

    2. Software Requirements:

    X-CTU tool: This is a software utility tool given by DIGI internationals for configuring XBEE chips.

    Python Programming: Python is an interpreted language which is very easy to read and write. It has a vast Libraries and it is platforms independent. Hence this programming is used in the project.

    HTML scripting: This scripting is used to design web page.

  3. ALGORITHM FOR THE MODEL

    1. The proposed system first collects the patients data through sensors.

    2. The collected data may be in analog form so they are converted to digital form using ADCs present in ZigBee modules. This makes the ZigBee to be used efficiently and act as sensor node.

    3. The sensed data using WSN is transmitted to the coordinator node zigbee.

    4. At the doctor site the data are received by receiving module and it feeds the data to processor at the doctor site.

    5. The processor is pre-programmed to

      • Update the received data to the server and update the status to Local Area Network.

      • It compared the data received with base values the vital parameters. If any of the parameter or parameters exceeds the normal value then an alerting SMS is sent to doctor.

  4. RESULTS & DISCUSSION

The figure shows intermediate values between zigbee router and zigbee co-coordinator. Pointer value shows input pin select and transmitted values. Temperature sensor Result is shown in figure 6.

Fig 6.Temperature sensor Result

The above figure shows the sample digital values obtained from temperature sensor. The output is in HEX format which consists of frame of data involving handshaking signals along with the actual temperature sampled values. Later these sampled values are averaged

and is converted into temperature in Celsius format. . Actual Temperature sensor results from Raspberry pi shown in figure 7.

VI. FUTURE SCOPE

We use the temperature sensor and BP sensors to obtain patient conditions instead of those possible to use heart beat sensor, pressure sensor and here we use medical application only instead of this field use industrial, irrigation and electronic display applications. We done only LAN network to see the patient condition continuously, we buy the web site its possible to see patient condition in world wide. We use LAN only because of cost estimation.

REFERENCES

Fig 7. Actual Temperature sensor results from Raspberry pi

The above screen shot show exact value of LM35 temperature sensor and its obtain from run Python programming language for temperature sensor. The below graph shows varied temperature and Blood pressure obtained from LAN network. The same data obtain within LAN network in any PC. The Temperature & B.P display at doctors desktop is shown in figure 8.

Fig 8. Temperature & B.P display at doctors desktop

V. CONCLUSION

Wireless Sensor Nodes designed using ZigBee is emerging as a significant element of next generation healthcare services. In this paper we proposed a mobile physiological monitoring system, which is able to continuously monitor the patients heart beat, blood pressure and other critical parameters in the hospital. The entire system consists of a router node to acquire the patients physiological data. The transmitted data from the router node is received by the coordinator node. The coordinator node connected to the server. The server nodes designed to update the data using LAN which helps is easy way to monitor the patient at their chamber and helps doctors to take immediate actions. The GSM technology helps the server to update the critical conditions directly to the doctor mobile to avoid further damages.

  1. K. Navya and Dr. M. B. R. Murthy, AZigbee Based Patient Health Monitoring System Int.Journal of Engineering Research and Applications,Vol. 3, Issue 5, Sep-Oct 2013, pp.483-486.

  2. LipikaChatterjee, M.K.Nallakaruppan, M.Senthilkumar and G.Jagdeesh, International Journal of Advanced Research in Computer Science and Software Engineering, Volume 3, Issue 5, May 2013.

  3. A. B. Tagadand P. N. Matte, Design and Development of a Wireless Remote POC Patient Monitoring System Using Zigbee,International Journal of Emerging Technology and Advanced Engineering, Volume 3, Issue 12, December 2013).

  4. Alumona T.L, Idigo V.E and Nnoli K.P, Remote Monitoring of Patients Health using Wireless Sensor Networks (WSNs),IPASJ International Journal of Electronics & Communication (IIJEC), Volume 2, Issue 9, September 2014.

  5. RoozbehJafari, Andre Encarnacao, Azad Zahoory, FoadDabiri, HydukeNoshadi, MajidSarrafzadeh, Wireless Sensor Networks For Health Monitoring, CustoMedjournel paper for medica 20l2.

  6. Ramanathan.P and PradipManjrekar.P, Wireless Sensor Network for Continuous Monitoring a Patients Physiological Conditions Using ZigBee , Computer and Information Science, Vol. 4, No. 5; September 2011 104 ISSN.

  7. Altir Christian D. Bonganay, JosefC. Magno, Adrian G. Marcellana, John Marvin E. Morante, Noel G. Perez, Automated Electric Meter Reading and Monitoring System using ZigBee-Integrated Raspberry Pi Single Board Computer via Modbus.

  8. Vladimir vujovic and mirjanmaksimovic, Raspberry Pi as a Wireless Sensor Node: Performances and Constraints, MIPRO 2014, 26-30 May 2014, Opatija, Croatia.

  9. Sarthak Jain, AnantVaibhav, Lovely Goyal, Raspberry Pi based Interactive Home Automation System through E-mail, 2014 International Conference on Reliability, Optimization and Information Technology. India, Feb 6-8 2014.

  10. NakulPadhye and PreetJain, Implementation Of Arm Embedded Web Server For Das Using Raspberry Pi, International Journal of Electrical, Electronics & Communication Engineering, Vol. 3 No. 4 April 2013.

  11. N.Suresh, E.Balaji,K.JeffryAnto, J.Jenith, Raspberry Pi Based Liquid Flow Monitoring And Control,International Journal of Research in Engineering and Technology,Volume:03 ,Issue:07,Jul- 2014.

  12. Purnima, Neetu Rout, Rahul Tiwaryand, RenukaBhandari, Zigbee And Gsm Based Patient Health Monitoring System, International Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering,Vol. 3, Issue 1, January 2014.

  13. Harish Rohith.I, Ashik Ahmed.P, Jayashree.K And Mohana Jaishankar, Patient Monitoring In Ambulance Using Body Sensor Networks,International Journal of Advanced Computational Engineering and Networking, ISSN: 2320-2106, Volume-2, Issue-4, April-2014.

  14. Media Aminian and Hamid Reza Naji, A Hospital Healthcare Monitoring System Using Wireless Sensor Networks,Health & Medical Informatics, Aminian and Naji, J Health Med Inform 2013, 4:2.

  15. Rajasekaran.S, Kumaran.P, Premnath.G and Karthik.M, Human Health Monitoring Using Wireless Sensors Network (Wsn), International Journal of Application or Innovation in Engineering & Management (IJAIEM), Volume 2, Issue 12, December 2013.

  16. Home monitoring projects for Raspberry Pi, http://www.projects.privateeyepi.com/home.

  17. F. Ali, A Middleware to Connect Software Applications ith Sensor Web, The International Journal of Technology, Knowledge and Society Volume 6, Number 5, pp. 27-35, 2010.

  18. Data acquisition and control using Arduino-Android platform: Smart plug, Shajahan, A.H et al, IEEE Conference Publications, 2013.

  19. Jiang.J.N, Peng D.G, Zhang.H, (2008) Design and Realization of Embedded Web Server Based on ARM and Linux. Mechatronics, Vol.14 (10):37-40.

  20. Xiaodong Cheng, 2010 2nd International Conference on Industrial Mechatronics and Automation Design and Implementation of Embedded Web Server Based on ARM and Linux, Yakun Liu RTLinux http://www.rtlinux.org.

  21. Saito T., Tomoda I., Takabatake Y., Ami J. and Teramoto K., "Home Gateway Architecture and Its Implementation", IEEE International Conference on Consumer Electronics, pp. 194- 195, 2000.

  22. L. Quan-Xi and L. Gang, "Design of remote automatic meter reading system based on ZigBee and GPRS," in Third futernational Symposium on Computer Science and Computational Technology, P. R China, 2010, pp. 186-189.

RAVI M S received the B.E. degree in Electronics and Communication Engineering in Govt College of Engineering, Raichur, Karnataka, India from Visvesvaraya Technological University, Karnataka, India in 2013. Presently he is pursuing his final year M.Tech with specialization in Digital Electronics and Communication Engineering in Bangalore Institute of Technology (BIT), Bengaluru, Karnataka, India from Visvesvaraya Technological University, Karnataka, India. The proposed research work in this paper is part of his M.Tech thesis.

K.V.MURALIDHAR received BE Degree in UVCE from Bangalore University, India and M.E in Power electronics from Indian Institute of Science, Bangalore, India. Presently he is the associate professor of Electronics and Communication Department in Bangalore Institute of Technology (BIT), Bengaluru, Karnataka, India.

Leave a Reply