Thursday, 14 February 2013

Coding


We have found an open source program that allows us to connect up our pulse sensor and this program will use minim to output a frequency. 






 if (second() < 59){
    if(f > 9){
       heartbeat++;
    } 
  }else{
    println("number of heartbeats that happened this minute: " + heartbeat);
    heartbeat = 0; 
  }
  println(heartbeat); 

Me and Iain wrote this in so processing will look at the computers clock, and every 59 seconds the program will take down an accurate heart rate.




No comments:

Post a Comment