Vous êtes sur la page 1sur 7

See

discussions, stats, and author profiles for this publication at: https://www.researchgate.net/publication/304297196

Continuous heart rate and body temperature


monitoring system using Arduino UNO and
Android device

Conference Paper · December 2015


DOI: 10.1109/EICT.2015.7391943

READS

19

4 authors, including:

M. A. H. Akhand
Khulna University of Engineering and Tech…
85 PUBLICATIONS 123 CITATIONS

SEE PROFILE

Available from: M. A. H. Akhand


Retrieved on: 17 August 2016
2015 International Conference on Electrical Information and Communication Technology (EICT)

Continuous Heart Rate and Body Temperature


Monitoring System using Arduino UNO and Android
Device
Md. Asaduzzaman Miah, Mir Hussain Kabir, Md. Siddiqur Rahman Tanveer and M. A. H. Akhand
Dept. of Computer Science and Engineering
Khulna University of Enginnering & Technology
Khulna-9203, Bangladesh

Abstract—An integrated portable device for continuous heart so that blood flow to his/her skin gets reduced to conserve body
rate and body temperature monitoring system development heat. As a result he/she starts shivering and it is an involuntary,
is presented in this paper. Heart related diseases are rapid contraction of the muscles.
increasing day by day; therefore, an accurate, affordable
Timely measurement of heart rate and body temperature is
and portable heart rate and body temperature measuring
important for better treatment. In this era of polluted
device is essential for taking action in proper time. Such a
environment, concern regarding human health is top priority
device is more essential in a situation where there is no
than ever before. Everything gets meaningless if one is sick or
doctor or clinic nearby (e.g., rural area) and patients are
dead. Now a days, people spend a lot of money to keep sound
unable not recognize their actual condition. The developed
health. Unfortunately, most of the cases it is found that it is too
system of this study consists of Arduino UNO
late to receive proper medical treatment and things are non-
microcontroller system, transmission system and Android
invertible. So that unexpected incident happens for being
based application. The system gives information of heart
delayed treatment. Since heart rate and body temperature are the
rate and body temperature simultaneously acquired on the
most vital notable indexes of the human health, an affordable
portable device in real time and shows it through the
connected Android application instantly. The developed device to measure such indexes will be helpful for human health.
In general, medical equipment is expensive. Moreover, some
system is more affordable with low price compared to other
devices can provide raw medical calculation of data to patients
developed devices due to use of easy available Arduino UNO
and doctors, but the patients can’t always interpret the medical
and smart phone as Android device. The developed device is
measurement into meaningful diagnosis as they have simple/no
shown acceptable outcomes when compared with other
medical background. In emergency situation, time should not be
measuring devices.
wasted. Sometimes continuous assessment is also necessary.
Keywords—Arduino UNO, Heart Rate, Body Tempareture, Pulse Therefore, an automated system for continuous measuring of
Detection, Pulse Amplification, Signal Extraction. heart rate and body temperature is very much essential.
I. INTRODUCTION In this study, an android assistive integrated heart rate and
body temperature measuring embedded system is developed.
Heart rate simply indicates the soundness of our heart. It
Since the system provides the information about both heart rate
helps assessing the condition of cardiovascular system [1].
and body temperature through android application, anyone can
Human's heart pounds to pump oxygen-rich blood to muscles. It
monitor physical status easily. Moreover, the system may be
carries cell waste products away from tissues [2]. Heart rate
useful for monitoring condition of vary seek patents from
varies according to the demand of muscles to absorb oxygen and
remote place. Rest of the paper explains existing approaches,
excrete carbon dioxide changes such thing happen during
our system model, system development and finally system
exercise or sleep [3]-[5]. Normally the heart rate which is
performance measurement.
calculated for a resting person is about to 70 bpm for adult males
and 75 bpm for adult females. A heart rate monitor is simply a II. EXISTING APPROACHES
device that takes a sample of heartbeats and calculates the heart
beats per minute and the information can easily track the current There are some existing approaches designed and developed
heart condition [6]. for measuring heart rate. At present, the recent technologies for
measuring heart rate are consist of several methods using
On the other hand, body temperature is also a general optical and electrical methods. Casually electrical method
indication of body condition. Normal human body temperature provides a bulky strap around one’s chest [7]. But the optical
is (98.6 ° F ± 0.7°F) and it varies activity of the person as well method requires no such strap and it can be used more
as place of measurement. When a person is too hot, the blood effectively. Low cost heart rate measuring devices were
vessels in his/her skin expand to carry the excess heat to his/her developed using optical technology. In optical method powerful
skin's surface. And for this reason the person begins to sweat. LED and Light Dependent Resister (LDR) are used to sense
Then the sweat evaporates and this process helps to cool his/her pulses [8]. The pulse signals are then amplified by an amplifier
body. When a person is too cold, his/her blood vessels narrow circuit and filtered through a band pass filter. The amplified and

978-1-4673-9257-0/15/$31.00 ©2015 IEEE 189


filtered pulse signals are sent to the microcontroller. The III. HEART RATE AND BODY TEMPERATURE MONITORING
microcontroller checks the analog signals whether they are SYSTEM USING ARDUINO UNO AND ANDROID DEVICE
valid or not comparing with a standard voltage. Microcontroller
To construct an efficient and affordable device for measuring
counts the heart rate and displays the result in a LCD display.
heart rate and temperature, an infrared Tx and Rx have been used
There exists another approach where infrared Tx and Rx are
to measure the pulse by measuring the change in blood flow
used. In that system it senses pulses, amplifies the pulses and
through one of the fingers. A noise filter has been designed to
filters pulses by a low pass filter. Finally, the pulse signal is sent
filter out any unwanted noise and interference, due to small
to a microcontroller [9], [10]. The microcontroller also give
movement of finger causes excess noise. A temperature sensor
output comparing with a reference voltage. Both the approaches
has been used to measure body temperature. The microcontroller
give inaccurate result in many cases because analog signal of
of the Arduino UNO board is programmed to count the pulse
pulse varies from person to person and the approaches fail to
rate and to measure the body temperature and to send the
calibrate analog signal of pulses for each person.
information to the developed “Heartmate” android application
M. M. A Hashem et al. [8] developed a device which uses via Bluetooth module. Fig. 1 shows the working diagram of the
infrared technology to measure heart rate and use analog system and the Fig. 2 represents the functional block diagram of
temperature sensor to measure body temperature. This the system. The following sections briefly explains of the
approach can calibrate analog signal of pulses for each person. system.
It uses wireless terminal to send data and wireless receiver to
receive the data. The data are then sent to the computer using
serial port. Data is then sent to the web server using the internet
and can be viewed from anywhere in the web browser. The
main drawback of this approach is that it needs a computer to
send data to the web server through the internet.
A telemedicine system is presented by N. Navale et al. in
[11]. In the system, the user carries a hardware device
connected with an android application through Bluetooth
connection. The device continuously measures the heart rate
and body temperature and sends these information to the
android application. Android application sends the information Figure 1. System diagram of the proposed system.
to the server and if the user has any problem like heart attack
then it sends an emergency message to the patient’s doctor and
guardians containing the current location of the patient. N.
Indumathy, and K. K. Patil [12] developed an android based
patient health care monitoring system using several sensors like
temperature, heart rate measuring sensor, eye blink detection
sensors to detect the current condition of the patient. The system
is developed such a way that if patients can’t speak or move his
hand or body then just blink his/her eyes 5 times then a message
send to the caretaker about the current situation of the patient
and continuously send the information about heartbeat and
body temperature to the server. An android application running Figure 2. Functional block diagram of the system.
in the caretaker phone receive the message and generates voice
sound so that caretaker can recognizes the patient’s current A. Heart Rate and Body Temperature Sensing
situation. At the same time, doctor can realize the current With a view to measuring the alteration in blood volume at
situation of the patient accessing the server. fingertip with each heartbeat optical sensor has been used to
The aim of our study is to develop a device which is perform this task. The sensor unit consists of an IRTx and IRRx,
interfaced with an Android application so that the heart rate and placed side by side. An infrared light is transmitted by IRTx into
body temperature are monitored easily. The exiting remote the fingertip, and the IRRX senses the portion of the light which
health monitoring system described above are fully dependent is reflected back. The intensity of the reflected light depends
on proper communication between the server and client. So it upon the blood volume inside the fingertip. As a result each
may arise severe condition that server connection gets congested heartbeat slightly alters the amount of reflected infrared light
and patient’s situation is serious then it creates a problem to that can be detected by IRRx. Through proper signal
recognize the present situation of the patient. For this reason the conditioning this little change in the amplitude of the reflected
goal of our project is to design a portable Android assistant heart light is converted into pulse. The sensor used in this project is
rate and body temperature monitoring device which is affordable TCRT5000 which is a reflective optical sensor that contains both
and user friendly, at the same time inexpensive, accurate, and the infrared light emitter and phototransistor placed side by side.
durable. They are enclosed inside a leaded package as a result the effect
of surrounding visible light is minimum. Connecting the Enable
pin to 5V of Arduino will turn the IR emitter LED on and
activate the sensor. A fingertip placed over the sensor will act as

190
a reflector of the incident light. The amount of light reflected potentiometer is placed at the output of the first signal
back from the fingertip is monitored by the photo transistor. The conditioning stage in case the total gain of the two stages is
output (VSENSOR) shows in Fig. 3 from the sensor is a periodic required to be less than 10201. If a heartbeat is detected then an
physiological waveform attributed to small variations in the LED connected to the output of the second stage of signal
reflected IR light and it is caused by the pulsating tissue blood conditioning will blink. The final stage a simple non-inverting
volume inside the finger. buffer is implemented so that output impedance will be lower.
While reading the amplified PPG signal through the ADC
channel of a microcontroller is used to then it helps much. After
that the output is connected to the Digital Pin 8 of Arduino
UNO. The diagram shows the configuration of the IR emitter
and IR receiver in relation to the finger. They are placed in such
a way that the infrared light reflects from the finger to the to the
IR receiver.

Figure 3. Pulse Detection Circuit

The waveform is synchronous with the heartbeat. This weak


signal contains a lot of noise superimposed on the AC signal
which is then filtered through a series of signal processing
circuits via a Quad OP-AMP LM324N. To get rid of the DC
component the signal is first passed through a RC high-pass
filter (HPF) showed in Fig. 4. The cut-off frequency of the HPF
is set to 0.7 Hz. An active low-pass filter (LPF) which is made Figure 5. Second Stage Signal Conditioning Circuit
of an Op-Amp circuit is on the next stage. The gain and the cut-
off frequency of the LPF are set to 101 and 2.34 Hz respectively. A high frequency noise is caused due to a small movement
As a result the combination of both HPF and LPF helps to of finger. For this concern the pulse rate signal filtering is
remove unnecessary DC signal and high frequency noise which important to block any higher frequency noises present in the
includes 50 Hz mains interference, while amplifying the low signal. Using a low pass filter the desired signal can be extracted
amplitude pulse signal (AC component) 101 times. In Fig. 5 from the noisy signal. The equation for cut-off frequency of the
shows the further filtering and amplification of the output from low pass filter is represented through eqn. 1.
the first signal conditioning stage goes to a similar HPF/LPF
combination. For this reason the total voltage gain achieved Cut-off Freq. = 1 / (2π RC) (1)
from the two cascaded stages is 101*101 = 10201. The two 2.34 Hz is the cut off frequency of the filter which is
stages of filtering and amplification converts the input signals to designed for our system. If it is not amplified then the signal
near Transistor–Transistor Logic (TTL) pulses which are found from the filter circuit which amplitude is in mV level.
synchronous with the heartbeat. A 10K With a view to understanding and counting pulse rate by the
microcontroller it is must to amplify the signal. For this purpose
a two stage signal filter and amplifier circuit using LM354
OpAmp is designed. This OpAmp is operated through 5 volts.
Gain of each stage of the low pass filter is represented through
the eqn. 2.
Gain at each stage = 1+ (Rf / Cf ) (2)
In the circuit, total gain is 10201. Values of Rf and Ri are
680 KΩ and 6.8 KΩ respectively. The 4.7uF capacitors are
connected in series to the inputs of each filter blocks and they
must be able to stand some reverse bias. For this purpose they
should be non-polarized.
Figure 4. First Stage Signal Conditioning Circuit

191
LM35 sensor has been used for measuring body temperature.
According to body temperature the sensor outputs an analogue
voltage. To reduce output drift due to noise in input voltage a
1uF capacitor is connected across the Vin and ground of the
sensor. The temperature sensor circuit diagram is shown in Fig.
6.

Figure 6. Temperature Sensing Circuit

For basic Centigrade temperature sensor whose rating is


(+2˚Cto +150˚C). And its temperature vs. voltage relation is in
represented throuh eqn. 3.
Vout = 0 mV + 10.0mV/˚C (3)

B. Data Processing through Arduino UNO


In this project we used the Arduino UNO development board
which contains ATmega328 microcontroller and the
microcontroller is used to calculate the number of heart beats per
minute. It also measures the body temperature and sends the
calculated values to the android application via HC-05 Bluetooth
module. A thread continuously takes the analogue signal of heart
condition and body temperature and sends the values to the
android application. If the signal voltage is above the threshold
voltage, then it is considered as a heartbeat as detected and
counts up to 30 beats. A timer counts the time (t30) for 30 beats
and calculates heart rate using eqn. 4.The program
Beats per minute (BPM) = 30×f (4) Figure 7. Algorithm for Measuring Heart rate and Body Temperatur

also takes the analogue voltage output (Vout) of the temperature D. System Overview
sensor and measures the body temperature by the following eqn Fig. 7 shows the system flow chart. At first the system
5 and 6. checks the bluetooth connection between the processing unit
and microcontroller and the Android device. If the connection
temp = temp × 0.48828125 (5) is ok then placing the finger in the infrared sensor the
tempf = (temp×1.8) + 32 (6) microcontroller gets the some analog frequency for
corresponding blood flow. Placing the finger infront of the
infrared sensor an the receiver gets the transmitted signal from
C. Android Application Development to Store and Display transmitter. After that, using both high pass filter, low pass filter
In our system, development of android application, called and amplifier circuit shown in Fig. 3 and Fig. 4 the signal is
“Heartmate”, is a vital portion. We monitor the heart rate and made computable by the microcontroller used in Arduino UNO.
body temperature through this application. When the heartbeat The temperature sensor also outputs an analog signal in parallel
and body temperature are measured the microcontroller sends while the heart beat signal is captured is shown in Fig. 5. For
the result to the application through the HC-05 Bluetooth getting good performance 30 values are taken then the average
module. Instantly the current condition of the patient is values is considered the appropriate ones. When the signals are
displayed in the application interface. So that anyone can easily digitized by the microcontroller sends the heart rate and body
understand the present situation of the patient and can take temperature to the android “Heartmate” application through
immediate action. HC-05 Bluetooth module. Through this approach it is now
become very easy for continuous heart rate and body
temperature monitoring

192
E. Significance of the System For performance checking of our system, we measured the heart
In this system we have tried to implement a low cost heart rate for a person for 20 minutes and the result is shown in the
rate and body temperature monitoring system. We have Fig. 10. In this process we measured the heartbeat through
implemented the system in Android platform since Android Sphygmomanometer which represents the actual measurd heart
devices are available in cheap price. The device is portable and rate in the Fig. 10. At the same time we measured the heart rate
light weight so that it can be carried easily anywhere. Through placing our device in the left thumb of the person. Since a little
this system it is possible to monitor the heart rate and body movement of the fingure while measuring heart rate through our
temperature continuously. As a result for those patients for system the the analog value for corresponding blood flow is
whom it is must to monitor the heart rate and body temperature affected by noise. As a result we got some errors in our
continuously then in that condition the system can be adopted experimental results. For this reason we got appropriate value
easily. The system can provide much support to know the at beginning of our experiment then after passing several
present condition of the patient if there is no doctor or clinic minutes the result deviated much from the original value. While
nearby. measuring body temperature we measurd the actual temperature
through clinical Thermometer. And along with this we also
IV. PERFORMANCE MEASUREMENT measured the body temperature with our device. Fig. 11 shows
the actual and measured body temperature. We got some
Fig. 8 represents the bread board implementation of heart
varriance in the measured value.
rate and body temperature measuring hardware module unit of
our implemented system. In our implemented system the user
has to start the hardware module first then run the Heartmate 85
android application. The IR transmitter and receiver are

Heart Rate(Bpm)
83

81

79
Measured
77 Actual
75
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Time (Minute)
Figure 10. Actual vs. Measured Heart rate measured for 20 minutes

99
Measued
Figure 8. Heart rate and body temperature measuring device bread board Actual
98.5
Teperature

implementation.

mounted in a finger ring. Then touching the temperature sensor 98


the module begin to measure both heart rate and body
temperature. Fig. 9 shows the measured result in “Heartmate” 97.5
application.
97
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Time (Minute)

Figure 11. Actual vs. Measured Body Temperature for 20 minutes

V. CONCLUSION
In this paper, we have shown a design of a heart rate and
body temperature measuring embedded system. The final
outcome of our approach is an android based portable heart rate
and body temperature measurement system with a suitable
architecture which can be applicable in medical and home
appliances in patient health monitoring system. The system has
been tested for some valid signal such as heart rate and body
Figure 9. Measuring Heart Rate and Body Tempearture temperature. The system gives comparatively better
performance than old hand measuring system.

193
REFERENCES [8] M. M. A. Hashem, R. Shams, Md. A. Kader and A. Sayed, “Design and
development of a heart rate measuring device using fingertip,” 3rd IEEE
[1] R. G. Landaeta, O. Casas, and R.P. Areny, “Heart rate detection from International Conference on Computer and Communication Engineering
plantar bioimpedance measurements”, 28th IEEE EMBS Annual (ICCCE'10), Kuala Lumpur, Malaysia, May 11-12, 2010.
International Conference, USA, 2006, pp. 5113-5116.
[9] Heart rate measurement from fingertip, August 24, 2015
[2] How the Heart Works, August 24, 2015 http://embeddd-lab.com/blog/?p=1671
http://www.webmd.com/heart-disease/guide/how-heart-works
[10] Wireless Human Health Online Monitor, March 20, 2015
[3] Heart Rate During Exercise, August 24, 2015 http://people.ece.cornell.edu/land/courses/ece4760/FinalProjects/s2011/
http://btc.montana.edu/olympics/physiology/cf02.html xy222_yw437_ha245/xy222_yw437_ha245/index.html
[4] Heart Rate Variability During Sleep, August 24, 2015 [11] M. Navale, S. Damare, R. Chavan, R. Dube, and S. Patil “Android Based
http://www.livestrong.com/article/134189heart-ratevariability-during- Heart Monitoring and Reporting System”, International Journal of
sleep/ Advanced Research in Computer and Communication Engineering Vol.
[5] Heart Rate Should Slow During Sleep, July 15, 2015 3, Issue5, May 2014
http://www.healthandage.com/your-heart-rate-shouldslow-during-sleep [12] N. Indumathy and K. K. Patil “Medical Alert System for Remote Health
[6] Heart Rate Monitors, July 17, 2015 Monitoring Using Sensors and Cloud Computing” International Journal
http://www.walmart.com/browser/sportsoutdoors/heartmonitors/41254 of Research in Engineering and Technology, vol. 3, no. 04, pp. 884-888,
13410781041078145 2014.

[7] Determining Heart Rate from the Electrocardiogram, August 24, 2015 [13] Pulse oximetry explained, August 24, 2015
http://www.cvphysiology.com/Arrhythmias/A020.htm http://www.howequipmentworks.com/physics/respi_measurements/oxy
gen/oximeter/pulse_oximeter.html

194

Vous aimerez peut-être aussi