Beruflich Dokumente
Kultur Dokumente
[ Smart Heart rate monitoring device which continuously monitors, notifies the patient’s
heart rate and alarm whenever necessary to the doctors and other personnel who takes care
of the patients through their personal mobile phones using cloud services and IOT]
[DONE BY]
[MDM17B008] MAHESH A
[MDM17B016] JASHWANTH
[MDM17B028] BHARATH
HEART RATE NOTIFCATION AND
ALARMING SYSTEM USING PULSE SENSOR
ABSTRACT
Pulse rate is the one of the crucial parameter which should be monitored
continuously for patients and they must be treated within time and with right
attention. The conventional heart rate measuring instrument gives alarming
sound when the patient’s pulse rate falls, only inside the patient's room and
some person like nurse has to find their way to the room only if they hear the
alarming sound or when notified by someone. This alarming system becomes out
of use when no nurse or doctors are nearby to hear the sound. In India, many
times it happens that the patient suffers severe health problem due to delay in
treatment and sometimes may also lose their lives. ICU patients in critical
condition need continuous attention. Their data of health has to be monitored
from time to time and timeliness of notification during emergency situation is
very crucial and very serious issues even loss of life could happen if the
notification of patient's emergency hasn't reached till the nurses or doctors
allotted to them within time. We present an effective solution to counter the
above mentioned problem by using pulse sensor and cloud to transfer the sensor
output continuously. In this project, by making use of IoT a patient's the patient's
health can be monitored continuously and information of the necessary
parameters of patient's health can be obtained and right action can be taken
within time even with remote control system.
1. Introduction
2. Materials Required
Pulse sensor:
Heart beat sensor is designed to give digital
output of heat beat when a finger is placed
on it. When the heart beat detector is
working, the beat LED flashes in unison with
each heart beat. This digital output can be
connected to microcontroller directly to
measure the Beats Per Minute (BPM) rate. It
works on the principle of light modulation
by blood flow through finger at each pulse.
The sensor consists of a super bright red
LED and light detector. The LED needs to be
super bright as the maximum light must
pass spread in finger and detected by detector. Now, when the heart pumps a
pulse of blood through the blood vessels, the finger becomes slightly more
opaque and so less light reached the detector. With each heart pulse the detector
signal varies. This variation is converted to electrical pulse. This signal is
amplified and triggered through an amplifier which outputs +5V logic level
signal. The output signal is also indicated by a LED which blinks on each heart
beat.
Features:
Bread board.
Sensor calibration:
The output of the pulse rate sensor is the voltage. This voltage output of the
sensor has to be calibrated with the heart rate, before actually using it to
measure the heart rate. We took about four different values of the heart rate by
simply placing the thumb over the arterial pulsation, and feeling, timing and
counting the pulses usually in a 30 second period. Heart rate (bpm) is then found
by multiplying the obtained number by 2. The voltage output of the pulse rate
sensor was also noted down and shown in Fig. 2. These sensor voltage and the
corresponding heart rate was used to fit a general curve to determine the heart
rate as a function of the voltage. This curve fitting process was done in LabVIEW
software using the circuit shown in Fig. 4. We tried for various curve fit such as
exponential, polynomial etc. But finally the linear curve fit was the optimal one.
The slope and intercept of the linear equation were found out and the equation
was validated by comparing the actual heart rate to that of the heart rate got
from the equation by substituting the output voltage of the sensor in the
equation. And the equation we got was,
Where H is the heart rate in BPM and V is the sensor output voltage in Volts.
Fig. 3. Front panel of the LabVIEW program (red colour line in the graph shows the function 3.1 the
white line shows the actual readings)
Fig. 4. Block diagram of the LabVIEW program
The connection is made according to the diagram shown in Fig. 5. The only
change we made is, we connected the yellow wire to digital port 7 and blue wire
to digital port 6.
The circuit connection between the pulse rate sensor and arduino was made
exactly as same as shown in Fig. 6.
To upload the data into the cloud we need to select the cloud server
to which we need to transfer the data. We chose the “Thing speak” cloud.
ThingSpeak is an open-source Internet of Things (IoT) application and API to
store and retrieve data from things using the HTTP and MQTT protocol over the
Internet or via a Local Area Network. ThingSpeak enables the creation of sensor
logging applications, location tracking applications, and a social network of
things with status updates. To upload data to the “Thingspeak” cloud we created
an account in “thingspeak.com” website from which we got our “channel ID” and
“API key”. These two are mandatory to transfer our heart rate data to the
“Thingspeak” cloud because the arduino code defined by the thingspeak library
to edit single a field requires these as inputs.
The next is to create an account in ifttt.com for using the IFTTT( if this then
that) services.
Coding :
Arduino Code
Secret.h header file code
Here in this code the inputs are taken in this secret.h file which is imported to the
main code. SECRET_SSID is the wifihotspot name and SECRET_PASS is the
password of that. SECRET_CH_ID is the channel number SECRET_WRITE_APIKEY
is the channel API key which we got while creating account in the
“thingspeak.com”
Conditioning :
For making the thinkspeak cloud to react to the data entered. We placed “react”
which can be accessed by clicking the “apps” after logging. In that react we
placed a condition that if the pulse rate is below 50 perform the “thing http”. This
is done every time when a new data is entered.
4. Working
When we place the pulse rate sensor on any vein, it gives some voltage signal as
output. This is read by the analog input port of the arduino and this converted
into heart rate by using the calibrated equation (3.1). This process happens for
every one second, since we gave the delay as one second. This heart rate reading
is averaged out for 30 seconds and this averaged heart rate is sent to the
“Thingspeak” cloud by the wifi module using the wifi connection and the
“Thingspeak” channel ID and API key. The Wifi module has a limitation of data
sending rate. It can send only one data per ten seconds. After the data is reached
the “react” checks for the condition (less than 50bpm or greater than 100bpm), if
the condition matches it calls the “Thinghttp” which in turn triggers the link of
the IFTTT which either sends us email or sms notification based on the trigger.
Fig. 8. Block diagram of the device
Also the Thingspeak cloud automatically plots the entered data with time which
can be viewed my multiple people even from remote location. This can be clearly
seen in Fig. 9.
5. Conclusion