In this project my aim was to make heart rate abnormality informer.So whenever the heart beat rises above or below a certain limits a notification is send to the devices with the help IFTTT(if this, then that).
So the initial challenge was to obtain the pulse from the analog pin . Even though some errors occur ,i found out an algorithm to obtain the beats per minute.The algorithm is to calculate the number of beats per 10 second and multiply it to 6 to obtain bpm.
this image shows how heartbeat signal look.It is very hard to obtain a image like this with noises from outside.I choose a point says 550 on the graph. It will come 2 times per a single beat . Then calculated the number of times the value appeared per 10 seconds.The heart beats will be half of that one.Then stored the beats to a variable in cloud (using particle.variable()) ,which can be accessed by IFTTT.
In IFTTT make an applet which monitor the variable and send the notification to a phone where the IFTTT app is installed.
Comments