Things used in this project

Code

Untitled fileC/C++
#include "mbed.h"
#include "MAX30101.h"


DigitalOut led1(LED_BLUE);

Serial pc(USBTX, USBRX);// Initialize Serial port

MAX30101 SPO2(PTB1, PTB0);

int main() {
    
    pc.printf("MAX301010 sensor test....\r\n\r\n");
    wait(0.5);
    
    SPO2.enable();
    
    while (1) {
        led1 = !led1;
        // Example data printing
        pc.printf("ID 0x%02x\r\n", SPO2.getRevisionID());
        
        Thread::wait(500);
    }
}

Credits

Vicky
Vignesh

Student(Engineer) Socialist, Ideologist & Sports freak!!

Replications

Did you replicate this project? Share it!

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

ProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login