Heartbeat and Temperature Monitoring System
Heartbeat and Temperature Monitoring System
College of Engineering
School of Electrical and Nuclear
Engineering
Prepared By:
1. Adil Omer Hamid Mohammed
2. Ibrahim Ismail Ibrahim
3. Mohammed Abdalgader Yagob
4. Mohammed Abdulkarim Awnsa
i
Dedication
We dedicate this project to our great families and friends who
exerted valuable efforts to enrich our spirits and reinforce our wills
and energies and constantly work to support us, to all the engineers
whose knowledge and wisdom represented rich source of
illumination and ideas for us and skillfully guided us through this
project in the same way our families guided us through life, we highly
appreciate their efforts and energies that they spent to raise and
improve our skills and capabilities. To all those we forgot to mention
Thank you.
ii
ACKNOWLEDGMENT
Thanks first and last to ALLAH who enable us to complete this
work with his grace and donated us strength. For all those who have
stood by us, helped us in this research, we send our thanks and
deepest gratitude. Special and deepest regards are to our supervisor
Eng.: T. Galal Abdalrahman Mohammed for his assistance and
supervision.
Sincere thanks to everyone who stood beside us &helped us
with great faith Thank you all.
iii
Abstract
This project is therefore designed to ease the burden on the doctors, nurses
and patient in terms of watching and testing of body temperature and heartbeat.
Equally it would be used to monitor the sick and the aged at home especially in
the absence of guardian or a relative. The simulation of the GSM based
heartbeat and body temperature circuit is done by the Proteus program the
circuit is being designed which the data collected by the heart beat and LM35
sensors then are sent to Arduino Uno. The Arduino processes then transmits
the data over the air via GSM to doctors, nurse's or a relative's phone and also
displays the same information on LCD.
iv
المستخلص
تم تصميم هذا المشروع للتقليل من العبء على االطباء والمرضى لفحص ومراقبة
درجة حرارة المريض ومعدل نبضات القلب وايضأ مراقبة المرضى عن بعد في
المنازل والمناطق النائية أو عدم توفر االطباء او االقرباء بقرب المريض.تمت محاكاة
الدائرة المراد تصميمها باستخدام برنامج موحسب لمحاكاة الدوائر االلكترونية.تم تصميم
الدائرة بعد التاكد من نتائج المحاكاة واستخدام حساس لقياس درجة الحرارة واخر قياس
معدل نبضات القلب لتجميع البيانات ومن ثم معالجتها باستخدام معالج رقمي يقوم بتحويل
االشارات من اشارات تناظريه الى اشارات رقميه ومن ثم عرضها في شاششة العرض
وارسالها عبر تقنية النظام العالمي للموبايل للطبيب.
v
TABLE OF CONTENTS
االية i
DEDICATION ii
ACKNOWLEDGEMENT iii
ABSTRACT iv
المستخلص v
TABLE OF CONTENTS vi
LISTOF FIGURES viii
LIST OF TABLES x
LIST OF ABBREVIATION xi
CHAPTER ONE
INTRODUCTION
1.1 General Idea 1
1.2 Problem Statement 2
1.3 Objective 2
1.3.1 General Objective 2
1.3.2 Specific Objective 2
1.4 Methodology 3
1.5 Layout 3
CHAPTER TWO
GENERAL INFORMATION
2.1 Introduction 4
2.2 Heart Rate 4
2.3 Body Temperature 5
2.4 History of Monitoring 6
2.5 GSM Monitoring 9
2.6 Microcontroller 9
vi
2.7 Sensors 11
2.7.1 Classification of sensors 11
2.7.2 Different types of sensors 12
2.8 Literature Review 13
CHAPTER THREE
MODELING AND CIRCUIT COMPONENTS
3.1 Introduction 14
3.2 Hardware Requirement 14
3.2.1 Arduino Uno 15
3.2.2 GSM module (SIM900A) 16
3.2.3 IC LM35 temperature sensor 17
3.2.4 Heart beat sensor 19
3.2.5 LCD display 20
3.2.6 Connecting wires 22
3.3 Flow Chart 23
CHAPTER FOUR
SIMULATION AND PRACTICE
4.1 Introduction 24
4.2 Simulation 24
4.3 System Implementation 29
4.4 Operation 32
CHAPTER FIVE
CONCLUSION AND RECOMMANDATION
5.1 Conclusion 33
5.2 Recommendation 33
REFERENCES 34
APPENDIX 35
vii
LIST OF FIGURES
Figure No. Title Page NO.
2.1 Intensive-care unit in 1960s and 1970s 6
2.2 ECG screen 8
2.3 Different types of sensors 12
3.1 Block diagram of the system 14
3.2 Arduino Uno 16
3.3 GSM (Sim900A) 16
3.4 Interface Arduino with GSM (sim900A) 17
3.5 LM35 temperature sensor 18
3.6 Interfacing Arduino with LM35 18
3.7 Heartbeat sensor 19
3.8 Interfacing Arduino with Heartbeat sensor 20
3.9 #2*16 LCD display 21
3.10 Interfacing Arduino with LCD display 21
3.11 Jumping wires 22
3.12 Flow chart of the system 23
4.1 The Proteus Interface 25
4.2 Proteus File Menu 26
4.3 Proteus Default Template Select 26
4.4 Proteus Design Sheet 27
4.5 Component Mode & Pick from Libraries 27
4.6 LM35 Selection 28
4.7 Component Selection 28
4.8 Simulation of The System 29
4.9 Arduino configured with pulse sensor 30
4.10 LM35 interface with Arduino 30
4.11 Arduino configured with GSM 31
viii
4.12 LCD connection 31
4.13 Circuit result 32
4.14 Result in monitor’s phone (SMS) 32
ix
LIST OF TABLES
Table No. Title Page No.
2.1 Body temperature chart for children 5
2.2 Body temperature chart for adults 6
3.1 The connection between Arduino UNO’s pin and 17
GSM (SIM900A) pins
3.2 The connection between Arduino UNO’s pin and 18
LM35 pins
3.3 The connection between Arduino UNO’s pin and 20
Pulse sensor’s pins
3.4 The connection between Arduino UNO’s pin and 22
LCD display pins
x
LIST OF ABBREVIATION
xi
CHAPTER ONE
INTRODUCTION
1.1 General Idea
1
processed using the Arduino to determine the heart beat rate and body
temperature per minute. Then, it sends short message service (SMS) alert to
the mobile phone of medical experts or patient's family members, or their
relatives about the condition of the patient and abnormal details via SMS. Thus,
doctors can monitor and diagnose the patient's condition continuously and
could suggest earlier precaution for the patients themselves. This will also alert
the family members to quickly attend to the patient [1].
1.3 Objectives
The objectives are divided into two subjects
1.3.1 General objective
To develop a cheap prototype of a system that can monitor heart beats and
body temperature of the patient at home and send the data remotely through a
GSM module to the monitor.
1.3.2 Specific objectives
❖ Design and implement a pulse heartbeat detector.
❖ Interface the LM35 temperature sensor.
❖ Design and implement a wireless communication circuit between the
patient and physician.
❖ Simulate the circuit using proteus ISIS.
❖ Test and calibrate the circuit.
2
1.4 Methodology
The methodology starts by collecting information about the heart rate and
temperature signals and how to deal with them, then the way to design and
implement a circuit capable of detecting signals and best technology GSM to
transmit the signals in SMS in text format. A simulation to the circuit is done
to ensure that the design succeeds, then an implementation to the circuit was
done with a test and calibration.
1.5 Layout
Chapter one includes the general idea introduction about the heart beat
monitor system, and stating the problems and its objective and then
methodology of the project. chapter two is a brief detail about the heart rate,
body temperature, history of monitoring, GSM monitoring and past studies
(literature review). While chapter three the modeling and circuit
components, contains the hardware components and the flow chart of the
system. Then chapter four this chapter explains the operation of the project,
and shows the simulation. Finally, chapter five which contains the
conclusion and the recommendation.
3
CHAPTER TWO
GENERAL INFORMATION
2.1 Introduction
Patient Monitoring System is a process in which a doctor can constantly
supervise more than one person, in excess of one parameter at a time in a remote
area [2]. Advancement in medical technologies have made rapid changes in e-
health care system. An innovative and effective e-health monitor model with
wireless technology can be a great help for the people of developing countries.
5
Table2.2: Body temperature chart for adults
6
The types of units include burn, coronary, general surgery, open-heart
surgery, pediatric, neonatal, respiratory, and multipurpose medical-surgical
units. [5]
Teams from several cities in the United States introduced computers for
physiological monitoring into the ICU, beginning with Shubin and Weil (1966)
in Los Angeles and then Warner and colleagues (1968) in Salt Lake City. Each
7
of these teams developed its application on a mainframe computer system,
which required a large computer room and special staff to keep the system
operational 24 hours per day. The computers used by these developers cost over
$200,000 each in 1965 dollars! Other researchers were attacking more specific
challenges in patient monitoring. For example, Cox and associates (1972) in St.
Louis developed algorithms to analyze the ECG for heart rhythm disturbances
in real-time. The arrhythmia-monitoring system, which was installed in the
coronary-care unit of Barnes Hospital in1969, ran on a relatively inexpensive
microcomputer. Systems with database functions, report-generation systems,
and some decision-making capabilities are usually called computer-based
patient monitors.[5]
Today, systems with database functions, report generation systems, and some
decision-making capabilities are called computer- based patient monitors,
while the basic signal conversion and storage is built into monitors and
considered “patient monitoring”.[5]
8
2.5 GSM Monitoring
GSM based system using microcontroller and LM35 sensor which is low-
cost and use-friendly. Here, a heartbeat sensor is used to detect the heart rate
and an LM35 sensor to sense the body temperature. These signals are processed
by a PIC microcontroller. Then an SMS alert will be sent to the medical expert
by using a GSM module. Thus, doctors can monitor the health condition of a
patient continuously from a remote place and can suggest the patient about
taking an immediate remedy. As a result, we can save many lives by providing
them a quick service using this system.
2.6 Microcontroller
The term microcontroller or microcomputer is used to describe a system
that includes a minimum of a microprocessor, program memory, data memory,
and input–output (I/O). Some microcontroller systems include additional
components, such as timers, counters, analog-to-digital (A/D) converters, and
so on. Thus, a microcontroller system can be anything from a large computer
having hard disks, floppy disks, and printers to a single-chip embedded
controller. Microcontrollers are dedicated to one task and run one specific
program. The program is stored in ROM (read-only memory) and generally
does not change.
➢ Bits:
➢ Memory:
➢ Instruction Set:
❖ CISC- CISC means complex instruction set computer, it allows the user
to apply 1 instruction as an alternative to many simple instructions.
➢ Memory Architecture:
10
2.7 Sensors
Sensor can be defined as an input device which provides an output (signal)
with respect to a specific physical quantity (input). The term “input device” in
the definition of a Sensor means that it is part of a bigger system which provides
input to a main control system (like a Processor or a Microcontroller). Sensor
can also be defined as device that converts signals from one energy domain to
electrical domain
The final classification of the sensors is Analog and Digital Sensors. Analog
Sensors produce an analog output i.e. a continuous output signal with respect
to the quantity being measured. Digital Sensors, in contrast to Analog Sensors,
work with discrete or digital data. The data in digital sensors, which is used for
conversion and transmission, is digital in nature.
11
2.7.2 Different Types of Sensors
The following is a list of different types of sensors that are commonly used
in various applications. All these sensors are used for measuring one of the
physical properties like Temperature, Resistance, Capacitance, Conduction,
Heat Transfer etc.
❖ Temperature Sensor
❖ Proximity Sensor
❖ Accelerometer
❖ Pressure Sensor
❖ Light Sensor
❖ Ultrasonic Sensor
❖ Touch Sensor
❖ Color Sensor
❖ Humidity Sensor
❖ Tilt Sensor
12
2.8 Literature Review
This paper proposes a system to monitor the patient’s conditions by
monitoring the body temperature and pulse rate. The system consists of a pulse
rate monitoring software and a wearable device that can measure a subject’s
temperature and pulse rate only by using a fingertip. The device is able to record
the measurement data and interface to PC via Arduino microcontroller. The
recorded data can be viewed as a historical file or can be archived for further
analysis. This work also describes the preliminary experimental results of the
selected sensors to show the usefulness of the sensors for the proposed patient
monitoring system.[6]
An advanced technology has been created for patient monitoring those who
are suffered from heart diseases & physical disorder. Therefore, heart rate
sensor and temperature sensor are used for patient monitoring. Sensors gives
accurate output therefore it rules out the use of traditional medical instruments
such as thermometer and other devices. For continuously sending message
from patient’s location to medical advisory GSM modem used. This module
provides relief to medical advisory for patient monitoring and also to patients
for freedom of movement.[7]
13
CHAPTER THREE
MODELLING AND CIRCUIT COMPONENTS
3.1 Introduction
The main objective is to design such type of device which is used for
continuous monitoring of patients. There will be few sensors like temperature
sensor, pulse sensor to detect patient’s temperature and heart rate. For
implementing this system sensors are needed, Arduino UNO and a power
source. The sensors dedicate the patient’s temperature and pulse rate then
transfer the data to the Arduino then to the LCD display and doctor’s phone
number through the GSM modem. GSM modem is used to make the device
wearable. The patient can move from one place to another with the device and
this will not cause the doctor any problem to monitor.[8]
14
3.2.1 Arduino Uno
15
Figure 3.2: Arduino UNO
The table below shows the hardware connection between Arduino and
GSM pins
Table 3.1: The connection between Arduino UNO’s pin and GSM (SIM900A)
pins
17
accurately, output voltage must be multiplied with 100. For example, if we read
0.50V that would be 50 degrees Centigrade.[8]
The table below shows the hardware connection between Arduino and
LM35 pins
Table 3.2: The connection between Arduino UNO’s pin and LM35 pins
18
3.2.4 Heartbeat sensor
19
Figure 3.8: Interfacing Arduino with heartbeat sensor
The table below shows the hardware connection between Arduino and
heartbeat sensor pins
Table 3.3: The connection between Arduino UNO’s pin and Pulse sensor’s
pins
Unit liquid crystal display (LCD) modules that display characters such as
text and numbers are the cheapest and simplest to use of all LCDs. They can
be purchased in various Sizes, which are measured by the number of rows and
columns of characters they can display. Any LCD with an HD44780-or
KS0066-compatible interface is compatible with Arduino. A 16x2 LCD
display is very basic electronic module and is very commonly used in various
devices and circuits. These modules are preferred over seven segments and
other multi segment LEDs because they are economical, easily programmable,
has no limitation of displaying special and even custom characters (unlike in
seven segments), animations and so on. A 16x2 LCD means it can display 16
20
characters per line and there are 2 such lines. In this LCD each character is
displayed in 5x7 pixel matrix. This LCD has two registers, namely, Command
and Data. The command register stores the command instructions given to the
LCD. A command is an instruction given to LCD to do a predefined task like
initializing it, clearing its screen, setting the cursor position, controlling display
etc. The data register stores the data to be displayed on the LCD. The data is
the ASCII value of the character to be displayed on the LCD.[8]
Table 3.4: The connection between Arduino UNO’s pin and LCD display pins
22
3.3 Flow Chart
A flowchart is a picture of the separate steps of a process in sequential order.
It is a generic tool that can be adapted for a wide variety of purposes, and can
be used to describe various processes
23
CHAPTER FOUR
SIMULATION AND PRACTICE
4.1 Introduction
There will be few sensors like temperature sensor pulse sensor to detect
patient’s temperature and heart rate. For this we will need sensors, Arduino uno
and a power source. After taking the reading from the patient, the data will be
sent to the database through GSM module. All data along with patient’s, would
be displayed in the LCD. Both the patient and the doctor mobile application
will show the patient’s, state use this system. GSM modem is used to. The
patient can move from one place to another with the device and this will not
cause the doctor any problem to monitor. And the system is simulated in
proteus to make sure the circuit is working.
4.2 Simulation
The Proteus Design Suite is a Windows application for schematic capture,
simulation, and PCB (printed circuit board) layout design. It can be purchased
in many configurations, depending on the size of designs being produced and
the requirements for microcontroller simulation. All PCB Design products
include an autoroute and basic mixed mode Spice simulation capabilities. The
proteus contain
❖ ISIS is the software used to draw schematics and simulate the circuits in
real time. The simulation allows human access during run time, thus
providing real time simulation.
❖ ARES is used for PCB designing. It has the feature of viewing output in
3D view of the designed PCB along with components.
❖ The designer can also develop 2D drawings for the product.
24
Figure 4.1 the proteus interface
ISIS has wide range of components in its library. It has sources, signal
generators, measurement and analysis tools like oscilloscope, voltmeter,
ammeter etc., probes for real time monitoring of the parameters of the circuit,
switches, displays, loads like motors and lamps, discrete components like
resistors, capacitors, inductors, transformers, digital and analog Integrated
circuits, semi-conductor switches, relays, microcontrollers, processors, sensors
etc.
ARES offers PCB designing up to 14 inner layers, with surface mount and
through hole packages. It is embedded with the foot prints of different category
of components like ICs, transistors, headers, connectors and other discrete
components. It offers Auto routing and manual routing options to the PCB
Designer. The schematic drawn in the ISIS can be directly transferred ARES.
25
Step 1: Open ISIS software and select New design in File menu
Step 2: A dialogue box appears to save the current design. However, we are
creating a new design file so you can click Yes or No depending on the content
of the present file. Then a Pop-Up appears asking to select the template. It is
similar to selecting the paper size while printing. For now, select default or
according to the layout size of the circuit.
26
Step 3: An untitled design sheet will be opened, save it according to your wish,
it is better to create a new folder for every layout as it generates other files
supporting your design. However, it is not mandatory.
27
Step 6: Select the components from categories or type the part name in
Keywords text box.
Step 7: The selected components will appear in the devices list. Select the
component and place it in the design sheet by left-click.
After Place all the required components and route the wires i.e., make
connections. Double click on the component to edit the properties of the
components and click on Ok.
28
Step 8: After connecting the circuit, click on the play button to run the
simulation.
29
.
The LM35 temperature sensor has three pins, the first pin is connected with
the ground, the second pin is connected with the output pin in the Arduino
board., which basically gives the temperature result. The last pin is connected
with the 5volt pin in the Arduino. LM35Temperature requires One Wire and
LM35Temperature libraries in the Arduino library folder as well.
The GSM modem, SIM900A used in our project is first configured with the
Arduino so that it is able to send data over the internet connectivity. A GSM
modem works like any other typical mobile phone. Since our GSM SIM900A
30
also comes with GPRS enable it has the criterion to provide inter connectivity.
We have inserted a sim card activated with internet connectivity in the GSM
modem. GSM modem sends data over the internet connection to a database
created by us. The database is stored in a webserver which has a particular
address. When the GSM modem is put together with the Arduino in the Arduino
IDE software, the address of that particular webserver is mentioned there so
that the data can be transmitted to exactly the webserver we want it to. The
ground pin is connected with the ground. Pin coming from Arduino. The
Arduino and GSM modem need to be supplied power which can be given by
either connecting those to batteries or using adapters.
31
4.4 Operation
After connecting the circuit, with the patient the vital signals have been
detected by the sensors and then the data has been sent to specified phone
number (the monitor’s number) and shown in LCD display.
The figures (4.13) and (4.14) showing the result of the system of heartbeat
and body temperature.
32
CHAPTER FIVE
CONCLUSION AND RECOMMENDATIONS
5.1 Conclusion
The system was implemented also the simulation was done all according to
the theoretical concept of the problem which includes the heart most common
problems and body temperature, the hospitals monitoring routines and the
history of monitoring, the microcontroller and the sensors which the system
was based on, all briefly. To implement the system a heartbeat (pulse) sensor,
temperature sensor (lm35) and Arduino Uno were used, first the simulation was
done by using proteus program then the system which detect body temperature
as an analog signal to the Arduino analog to digital converter, and then the data
is transmitted via GSM to the monitor’s phone was designed and tested. The
results of the system weren’t accurate due to a noise occurred in the sensors.
The cost of the system was satisfying and approximately 10 times cheaper
compared to the cost of the specialized monitor devices.
5.2 Recommendation
➢ More accurate results can be detected by using the original pulse sensor
from www.pulsesensor.com for better quality with less noise.
➢ IOT platform can be used to view and store the data for more
flexibility.
33
REFERENCES
[1] Uroaroh S.U, Oranugo C.O. (2015. August). “Nnamdi azikwe university,
Awka, Nigeria” “heart beat monitoring and alert system using GSM
technology”,
[2] Pratiksha W. Digarse, Sanjaykumar L.Patil, Arduino UNO and GSM Based
Wireless Health Monitoring System for Patients, Dept. of Instrumentation And
Control College of Engineering, Pune
[3] Anika Tasniem, Nura Jamil ,Tabassum Khan, Development of Application
based Health Monitoring System using GSM module .
[4] Haslton, JR; Solomon, IC; Motekaitis, AM; Kaufman, MP (September
1992).”Pronchomotor vagal preganglionic cell bodies in the dog: an anatomic
and functional study”. Journal of applied physiology. 73(3):1122-9. PMID
1400025.
[5] REED M.GARDNER AND M.MICHAEL SHABOT, Patient-Monitoring
Systems.
[6] Azara hazwanie azizulkarim “Design and development of patient
monitoring system” (2017 IOP Conf. Ser.: Mater. Sci. Eng. 226 012094.
[7] Miss. Supriya D. Gawade, Miss. Sayali Y. Jadhav, (2015. April). “GSM
Based Heart Rate and Temperature Monitoring System” International Journal
of Engineering Research & Technology (IJERT) ISSN: 2278-0181
[8] Ashutosh Kumar Ray, Debojit Mondal, Debojit Mondal, GSM Based
Patient Monitoring System Using Biomedical Sensors, DEPARTMENT OF
APPLIED ELECTRONICS & INSTRUMENTATION ENGINEERING,RCC
INSTITUTE OF INFORMATION TECHNOLOGY, CANAL SOUTH
ROAD, BELIAGHATA, KOLKATA –700015, May 2018
34
APPENDIX
System Code
#include <LiquidCrystal.h>
#include<SoftwareSerial.h>
void Send_an_sms(void);
int HR = 0;
int oldA = 0;
int oldC;
unsigned long T;
double HR1;
double temp;
const int rs = 9, en = 8, d4 = 7, d5 = 6, d6 = 5, d7 = 4;
void setup()
Serial.begin(9600);
gsm.begin(9600);
lcd.begin(16, 2);
35
lcd.setCursor(0, 1);lcd.print("Temperature: ");
void loop()
int B = analogRead(0);
temp = (B * 5) / 10.23;
int A = analogRead(1);
if(C2 == 1)
T = millis();
Dur = T - oldT;
HR1 = 60000/Dur;
Serial.println(HR);
oldT = T;
36
lcd.setCursor(13, 0); lcd.print(" ");
lcd.setCursor(13, 0);lcd.print(HR);
Serial.println("Sending");
Send_an_sms();
Serial.println("Sent");
oldA = A;
oldC = C;
delay(50);
void Send_an_sms(void)
delay(100);
gsm.println ("AT+CMGF=1");
delay(200);
37
gsm.println("AT+CMGS=\"+249117076852\"\r");
delay(200);
gsm.print("Temp = ");
delay(200);
gsm.print(temp);
delay(200);
delay(200);
gsm.println(HR);
delay(10000);
38