Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
Sriram MN
Created June 30, 2018

Heartbeat Abnormality Informer

This product will send a notification to your smartphone when the pulse rate falls or rise above a certain limit.

IntermediateWork in progress48
Heartbeat Abnormality Informer

Things used in this project

Hardware components

Photon
Particle Photon
×1
heart beat sensor
×1

Software apps and online services

Maker service
IFTTT Maker service

Story

Read more

Code

heatbeat informer

C/C++
This code will expose bpm to cloud.Which can be accessible by IFTTT system .
int data=A0;
int bpm=0;
int count=0;
unsigned long temp=0;




void setup()
           {
           pinMode(data,INPUT);
          
           
    Particle.variable("bpm", &bpm, INT);
          }



void loop()
          
          {
          temp=millis();
          
            while(millis()<(temp+10000))
              {
               if(analogRead(data)==450)
                   {
                   count=count+1;
                   }
              }
          
         bpm=(count*6)/2;
          count=0;
          
          
    
          }

Credits

Sriram MN

Sriram MN

5 projects • 8 followers
A Engineering student who just stepped into the world of electronics. Interested in Astronomy,Robotics,Iot,Quantum phenomenon,Ml and AI .

Comments