Professional Documents
Culture Documents
7real timeLocationTrackerforCriticalHealth
7real timeLocationTrackerforCriticalHealth
net/publication/342323553
Real-time Location Tracker for Critical Health Patient using Arduino, GPS
Neo6m and GSM Sim800L in Health Care
CITATIONS READS
11 3,503
2 authors:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Pratik Kanani on 30 January 2021.
Abstract—Internet of Things (IoT) is the technology that sensors chosen are based on their efficiency, compactness and
helps in communication between machines, circuits, and different of course the cost. GPS Neo 6m is the sensor used to sense the
types of devices. This feature has applications in the health care GPS coordinates and GSM Sim800L sends the data over the
industry to benefit as sensors, actuators, and hardware support cloud using the mobile network and acting as a gateway. Data
the technology behind IoT. In the health care sector, in case of an is sensed and till it is being sent to the cloud, the interfacing is
emergency, it is very crucial to know the exact location of the served by Arduino. By using IoT technology, Different sensors
patient so that different critical health care services can be made and APIs, many systems can be developed for different
available at the right time and place. This problem can be solved
domains like health care [3], security, supply chain
by using GPS coordinates. In this paper, an IoT device is made
management to monitor, control [4] track and analyze different
which locates the exact GPS coordinates of the patients to the
server. Moreover, using the web interface on the server and
physical entities.
Google Maps, doctors and hospital staff can track the exact Arduino is available in different shapes and sizes and one
location of the patient and serve him. This system made can also can use it as per their application needs. In this paper, Arduino
be used on wild animals, school students and transport services Uno is explained because it has more capabilities and one can
where the location is an essential parameter. The system is made understand it easily and varied applications. To build the
using sensors like GPS Neo 6m, Arduino, GS M S im800L. Here, system, the Arduino Nano can be used due to its compactness
different IoT platforms, Different IoT tools, sensors, different
and efficiency in serving the purpose. Also, different AT
programming libraries, APIs usages, server hosting and needed
AT commands with website interface are implemented and commands are needed to boot up the system. These commands
will make the flag ready when the device is powered on and
discussed in detail to make a low-cost GPS tracker.
started to get the signals. AT commands will help when a
Keywords— Arduino, Google Map, GPS Neo 6m, GSM network connection is set up. Normally, Arduino gets
Sim800L, Health care, IoT, ThingSpeak. connected to a sensor and it works fine. But when more sensors
are attached to Arduino Uno, it does not perform read readings
as expected. So, here the same problem is solved by using
I. INT RODUCT ION
different library [5-9] functions available.
IoT Technology is the layered technology architecture,
where one-layer acts as a sensing data, the second layer can Without the visual appearance of the location, the system
put/process the data in the needed form, the third layer can will not be efficient and useful as hospital staff cannot
define different high-end protocols and interfacing logic which understand the GPS coordinate numerical values. Here the
helps to send the data. The data is sent to the server where ThingSpeak cloud is used to receive the GPS coordinates and a
different channels on the server keep on receiving different website is designed. This website will fetch the coordinates
data from different applications. The server processes the data, from the ThingSpeak cloud and by using the Google M ap API
and the decision made on the data values is conveyed back to [10], it will display the live location of the patient on Google
the user. To build any IoT based system, the developer has to Map. All terms and technologies discussed above are explained
understand the different layer phases of IoT. IoT architecture in brief and also important coding snaps are shared, to help the
and different layers are explained in section 3. reader for understanding the given system in a better way.
rized licensed use limited to: SVKM's NMIMS Mukesh Patel School of Technology Management & Engineering. Downloaded on June 25,2020 at 05:06:37 UTC from IEEE Xplore. Restrictions a
Proceedings of the International Conference on Intelligent Computing and Control Systems (ICICCS 2020)
IEEE Xplore Part Number:CFP20K74-ART; ISBN: 978-1-7281-4876-2
industries and health care industries. When such system is A. IoT Elements
made using display units [12] and all it increases the system
A present-day IoT architecture [1, 15] of the Platform
cost, processing load and reduces the battery life. When such
consists of 8 elements. The architecture consists of the
GPS based tracking system is integrated with RFID, database
connectivity between the devices or the ‘things. In addition to
systems and made it centralized [13], it can be used for
that, it also consists of an analytics platform, an application
security services to keep track of the systems with actively
development platform or a software platform. The figure is
moving units. But such system is oversize, needs RFID, DB,
shown below consists of eight essential architectural building
centralized control and GPS trackers. GPS sensor gives
blocks. It is called a true end to end IoT platform.
effective coordinates describing our altitude, longitude and
latitude position on the earth [14]. The basic aim of this paper
is to make a GPS tracking system which can be used to track
real time position of patients. The problem in other GPS
sensors are they continuously monitor the patient which is not
energy efficient and the other such available products are
costly and proprietary. The GPS tracker should be flexible in
terms of monitoring time to save the energy, it should take
reading after a particular time interval only based on the
systems need. System design should be as much as compact.
To make the system compact and cost effective Arduino is
used but whenever Arduino is interfaced with more than one
sensor, the communication issue arises. Here that problem is
solved and system is made up of such hardware and software Fig. 1. T he 8 elements of an IoT Application Enablement Platform [1]
which are easily available and cost effective.
1) Database: Hybrid cloud-based databases have a vast
III. PROBLEM ST AT EMENT requirement concerning data veracity, velocity, variety and
volume due to scalable storage of data.
Consider an IoT based Health Care system, which tracks
2) External interfaces: Built-in software development kits
and reports the real-time location of the patient to the cloud.
(SDK), gateways and application programming interfaces
The response team can locate the user based on his live
location and provide emergency services. Assume that you are (API) can be used to merge with third party systems and the
a technology manager and the VP of technology has asked you whole IT-ecosystem.
to carry out a research study to know about the increased 3) Analytics: To draw out the most value from the IoT
competitive advantages and new business values and also, data stream, an array of compound analysis from deep
about the IoT technology. The initial tasks include: machine learning and fundamental data clustering to a range
of analytical and statistical techniques performed to develop
1. Comprehending the technology models.
2. Development tools of IoT 4) Additional tools: It creates platform ecosystem apps for
contemplating and administrating connected devices so that
3. Connectivity in IoT
the developers can create a preliminary version, experiment
4. Privacy and Security challenges in IoT and sell the IoT use case.
5) Visualization: Data is portrayed in detail through line
5. Cloud Services of IoT
models, pie charts, 2D models, 3D models or stacked models
6. Platforms, Providers and Devices of IoT to enable us to observe patterns and perceive tendencies from
visualization dashboards.
IV. INT ERNET OF THINGS 6) Processing & action management: Enables the
“Internet of Things” (IoT) refers to objects, mechanical and implementation of smart actions based on certain sensors with
digital machines or a system of interrelated devices that rule-based event-action-triggers to bring data to life.
communicate with each other through the Internet without any 7) Device management: Makes sure that the interacting
interaction with a computer or another human. “Things” in IoT devices work appropriately, ideally running patches and
may include virtually any object such as vehicles, appliances, updates for applications and software on the device or edge
medical devices or building systems for which remote gateway.
communication, data collection, or control might be useful. 8) Connectivity & normalization: To ensure accurate data
streaming and interaction with all devices, different protocols
In other words, the IoT extends to a diverse range of
and data formats are brought into one “software” interface in
devices and everyday things .
this block.
rized licensed use limited to: SVKM's NMIMS Mukesh Patel School of Technology Management & Engineering. Downloaded on June 25,2020 at 05:06:37 UTC from IEEE Xplore. Restrictions a
Proceedings of the International Conference on Intelligent Computing and Control Systems (ICICCS 2020)
IEEE Xplore Part Number:CFP20K74-ART; ISBN: 978-1-7281-4876-2
V.DAT A DESCRIPT ION A ND SENSORS INVOLVED development platform. It is also compatible with other
The data to be collected will be the GPS coordinates of the microcontroller boards. The low power consumption needed
user. GPS is the abbreviation of the Global Positioning System for Neo 6m is due to the presence of a power save mode
that is a network of satellites that are orbiting in the space and (PSM) that allows a reduction in the power consumption of
sends exact and error-free positions. It is important because it the system by carefully and selectively switching parts of the
has the potential to determine locations until three dimensions: receiver on and off.
the longitude, altitude, and latitude.
A. GPS Neo 6m
GPS stands for the global positioning system. GPS was first
used by the United States military in the 1960s. A GPS is a
global navigation satellite system that provides geolocation and
time to a GPS receiver anywhere on Earth. Today, GPS Fig. 2. GPS Neo 6m sensor
systems are extensively used all over the world and can be
found in many versatile devices ranging from mobile phones to B. Arduino Uno
automobiles to smartwatches. Developed by u-blox, NEO-6 Arduino is an open-source electronics prototyping platform
module series is a family of stand-alone GPS receivers. This
that enables users to develop interactive electronic objects.
series of GPS receivers has many advantages that make it They produce single-board microcontrollers and
suitable for use across various applications. It has been microcontroller kits. Arduino is a single-board microcontroller
designed with a goal of low power consumption as well as low
used to make the applications more interactive, accessib le and
cost in mind. However, it has been ensured that the intuitive. Arduino Uno [16] is the most used and famous
performance of this series is not compromised. GPS Neo 6m is microcontroller of the Arduino family. It is an ATmega328
a part of this series featuring the high-performance u-blox 6
chip based on microcontroller.
positioning engine. It offers various connectivity options in a
miniature 16 x 12.2 x 2.4 mm package. Due to its low cost and The specifications of Arduino Uno are:
power consumption, as well as small size, GPS Neo 6m is used
● Its input voltage range is 6-20V
in devices like smartphones where the amount of space and
power available is less. ● It consists of 14 digital I/O pins.
The specifications of GPS Neo 6m are as follows: ● It consists of 6 analog pins.
● The Neo 6m is a GPS receiver that uses a 2.7 - 3.6V ● Tx and Rx pins are used for serial communication.
power supply.
● It consists of a USB interface.
● It consists of four interfaces namely- UART, USB, SPI,
● EEPROM Data Memory is of 1KB
DDC and an antenna supply and supervisor when provided
with the necessary external components and integration on the The Arduino Uno has a lot of features and is quite user-
application processor. friendly. The board can be powered using either battery, USB,
AC or DC adaptor. Information can be stored in the micro SD
● Its features also include an RTC crystal and time pulse
card that can be added to the board. In order to transfer code to
and it consists of 3 configuration pins and has anti-jamming
the controller using an Integrated Development Environment
technologies.
software, USB cable is used. This software is supported across
● It is a 50- channel positioning system of u-blox 6, with all major operating systems like Windows, Linux and Mac.
more than 2 million effective correlators. The code can be written in either C or C++ programming
languages.
● A key feature is the presence of an EEPROM to save
settings and has a 25x25 ceramic antenna One of the most significant features it has is that it is open
source. This enables people from across the world to contribute
GPS Neo 6m takes 27 seconds for a cold and warm start to the platform and make it more efficient. Arduino Uno can be
and only 1 second for a hot start. Aided starts taking less than interfaced across various platforms which include
3 seconds. The operating temperature is from -40° to 85°C. It microcontrollers, computers and other Arduino boards. Here,
contains both, a passive and an active antenna along with a the Arduino board will fetch GPS coordinates from the GPS
crystal oscillator. It is fully compatible with the Arduino Neo 6m Module. [17]
rized licensed use limited to: SVKM's NMIMS Mukesh Patel School of Technology Management & Engineering. Downloaded on June 25,2020 at 05:06:37 UTC from IEEE Xplore. Restrictions a
Proceedings of the International Conference on Intelligent Computing and Control Systems (ICICCS 2020)
IEEE Xplore Part Number:CFP20K74-ART; ISBN: 978-1-7281-4876-2
D. Interfacing
● Supply voltage: 3.8V - 4.2V (Recommended supply SoftwareSerial, available, begin, isListening, overflow,
voltage: 4V) peek, read, print, println, listen and write.
rized licensed use limited to: SVKM's NMIMS Mukesh Patel School of Technology Management & Engineering. Downloaded on June 25,2020 at 05:06:37 UTC from IEEE Xplore. Restrictions a
Proceedings of the International Conference on Intelligent Computing and Control Systems (ICICCS 2020)
IEEE Xplore Part Number:CFP20K74-ART; ISBN: 978-1-7281-4876-2
rized licensed use limited to: SVKM's NMIMS Mukesh Patel School of Technology Management & Engineering. Downloaded on June 25,2020 at 05:06:37 UTC from IEEE Xplore. Restrictions a
Proceedings of the International Conference on Intelligent Computing and Control Systems (ICICCS 2020)
IEEE Xplore Part Number:CFP20K74-ART; ISBN: 978-1-7281-4876-2
{ myGsm.println();
gps.encode(mygps.read()); //Feeds the serial myGsm.println("AT+HTTPACTION=0");//submit the
NMEA data into the library one character at a time GET request
} delay(8000);//the delay is important if the return datas
are very large, the time required longer.
//if (gps.location.isUpdated()) //Updation happen only
when a package of NMEA data arrives printSerialData();
//{ delay(30000);
//Gets the most recent information from the GPS object }
which it obtained from the data directed by the GPS unit
void printSerialData()
Serial.println("Satellite Count:");
{
Serial.println(gps.satellites.value());
while (myGsm.available() != 0)
Serial.println("Latitude:");
Serial.write(my Gsm.read());
Serial.println(gps.location.lat());
}
Serial.println("Longitude:");
Serial.println(gps.location.lng());
B. Website Code
Serial.println("Speed MPH:");
It is using Google Map API to display the Google map with
Serial.println(gps.speed.mph()); red marker. [18]
Serial.println("Altitude Feet:"); <script
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC2s
Serial.println(gps.altitude.feet());
aU82JSCHoMwhQEEgJJQkOaZIIcd4ZE"></script>
Serial.println("");
<script
//} src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.
min.js"></script>
Serial.print("latitude :");
<script>
latitude=String(gps.location.lat(),6);
var map;
Serial.println(latitude);
var x;
Serial.print("longitude :");
//field1 returns the latitude of the given location using
longitude=String(gps.location.lng(),6);
the api from Google Maps in the form of JSON objects.
Serial.println(longitude); function loadmaps(){
url =
$.getJSON("https://api.thingspeak.com/channels/623933/fie
"http://api.thingspeak.com/update?api_key=9CU0ND0CSVW
lds/1/last.json?api_key=B1BX3YKOYNM830A9",
HBEZH&field1="; function(result){
url+=latitude;
var m = result;
url+="&field2=";
x=Number(m.field1);
url+=longitude; //alert(x);
Serial.println("url is :"+url);
});
myGsm.listen();
//field2 returns the longitude of the location using the
myGsm.println("AT+HTTPPARA=\"URL\"," + url); api from Google Maps in the form of JSON objects.
//myGsm.println("AT+HTTPPARA=\"URL\",\"http://api.thing
$.getJSON("https://api.thingspeak.com/channels/623933/fie
speak.com/update?api_key=9CU0ND0CSVWHBEZH&field1
lds/2/last.json?api_key=B1BX3YKOYNM830A9",
=22.29787923113943&field2=73.196746408939\""); function(result){
delay(1000);
var m = result;
printSerialData();
rized licensed use limited to: SVKM's NMIMS Mukesh Patel School of Technology Management & Engineering. Downloaded on June 25,2020 at 05:06:37 UTC from IEEE Xplore. Restrictions a
Proceedings of the International Conference on Intelligent Computing and Control Systems (ICICCS 2020)
IEEE Xplore Part Number:CFP20K74-ART; ISBN: 978-1-7281-4876-2
C. Different AT commands
AT+CREG? Fig. 6. Read and write API Keys to send and receive the data to the
T hingSpeak cloud
AT+CGATT?
E. Hardware Interfacing
AT+CIPSHUT
The final hardware consists of GPS, GSM, and Arduino.
AT+CIPSTATUS
Connecting wires are used for the interfacing purpose and it is
AT+CIPMUX=0 powered by the adapter. It can also be powered by mobile
batteries. The entire system fits in one plastic box. The system
AT+CSTT="airtelgprs.com"
can be made more compact by designing a particular hardware
AT+CIICR case to carry the system components .
AT+CIFSR
AT+CIPSTART="TCP","api.thingspeak.com","80"
AT+CIPSEND
GET
https://api.thingspeak.com/update?api_key=IRTL4GSAKX5G
Y2VS&field1=19.380391&field 2=72.822509
D. Thingspeak Output
ThingSpeak is a free cloud service. Here, developers can
Fig. 7. T he Final GPS tracker implemented Model
host their applications and naïve users can use it. After logging
rized licensed use limited to: SVKM's NMIMS Mukesh Patel School of Technology Management & Engineering. Downloaded on June 25,2020 at 05:06:37 UTC from IEEE Xplore. Restrictions a
Proceedings of the International Conference on Intelligent Computing and Control Systems (ICICCS 2020)
IEEE Xplore Part Number:CFP20K74-ART; ISBN: 978-1-7281-4876-2