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

Download repository: zip gz

Files at revision 0:e80a245c4d0d

Name Size Actions
[up]
PulseSensor.cpp 6119 Revisions Annotate
PulseSensor.h 3507 Revisions Annotate