Beruflich Dokumente
Kultur Dokumente
Section ‘B’
Team #11
Pulse rate and body temperature readings are recorded over ThingSpeak and Google sheets so that
patient health can be monitored from anywhere in the world over internet.
A panic will also be attached so that patient can press it on emergency to send email/sms to their
relatives.
ThingSpeak platform
Pulse Rate Sensor
Pulse Sensor is a well-designed plug-and-play heart-rate
sensor for Arduino. The sensor clips onto a fingertip or
earlobe and plugs right into Arduino. It also includes an
open-source monitoring app that graphs your pulse in real
time.
By using ThingSpeak site, we can monitor our data and control our system over the
Internet, using the Channels and webpages provided by ThingSpeak.
ThingSpeak ‘Collects’ the data from the sensors, ‘Analyze and Visualize’ the data
and ‘Acts’ by triggering a reaction.
We will use ThingSpeak to monitor patient heartbeat and temperature online using
internet.
Create a new channel containing pulse rate, temperature and panic and save it.
Use ThingHTTP app of the server to trigger the IFTTT applet for data entry to Google sheets and send email/sms.
Make New ThingHTTP, using the URL for triggering which we will get from IFTTT.
Configure IFTTT for triggering Mail/SMS based on ThingSpeak Values with the help of webhooks.
Make Applet to link ThingHTTP to Google sheet and to send Email/SMS when panic button is pressed.
Instance is made for timer, SoftwareSerial and pulse sensor to use in our code.
Set-up low-level interrupts for most accurate BPM match and enable DEBUG
to show ongoing commands on serial monitor
Set the WiFi name , password and IP of thingspeak.com
Declare String to update information on ThingSpeak channel. You will need API key
for this,
which can be found from your ThingSpeak channel-> API key . Copy Write API key
and paste here.
Variables in the code:
Setup:
Loop: Functions:
Functions(Continued)
getReadings() function is made.
Function to take pulse sensor and LM35 readings and convert them to string is dtostrf(); function.
Libraries/Files included:
Event.h
Event.cpp
Timer.h
Timer.cpp
OUTPUTS
Data stored in the spreadsheet
A GPS module can be added to the pre-existing module to facilitate the tracking
of a patient suffering from Alzheimer’ as well as to monitor patients outside of
their home. A patient’s family or caretaker can set up a geofence, which is a
specific boundary around the patient's home or neighbourhood. Whenever a
patient wearing the module crosses a geofence, healthcare professionals and
family members receive an alert so they can quickly find the patient to return
them to their home safely.
References
https://github.com/WorldFamousElectronics/PulseSensorPlayground
https://github.com/JChristensen/Timer/blob/master/Timer.h
https://github.com/libevent/libevent/blob/master/include/event2/event.h
Thank you