Library for interfacing with a 'Pulse Sensor Amped', from http://pulsesensor.myshopify.com

Dependents:   finalProject PulseSense HealthCare_Graduation 4180project ... more

Simple mbed application for monitoring a pulse sensor

#include "mbed.h"
#include "PulseSensor.h"

Serial pc(USBTX, USBRX);
    

/** Print the data in a format that can be parsed by the 
 *  Processing application available here: http://pulsesensor.myshopify.com/pages/code-and-guide
 */
void sendDataToProcessing(char symbol, int data)
{
    pc.printf("%c%d\r\n", symbol, data);
}



int main() {
    
    PulseSensor sensor(p15, sendDataToProcessing);

    pc.baud(115200);
    
    sensor.start();

    while(1) {
    }
}

/media/uploads/donalm/mbed_pulsesensor_scaled.png

Revisions of PulseSensor.h

Revision Date Message Actions
0:e80a245c4d0d 2014-02-09 Initial version. File  Diff  Annotate