Project showcase
MAX30100 And Blynk

MAX30100 And Blynk © GPL3+

An I2C interface with Blynk.

  • 4,600 views
  • 0 comments
  • 11 respects

Components and supplies

Necessary tools and machines

09507 01
Soldering iron (generic)

Apps and online services

About this project

I got bored one fine day and started to search about biomedical instrumentation and thought weather it's possible to calculate heart rate and oxygen readings using a single sensor. A series of turns later here I am.

Code

MAX30100raw and blynkArduino
I got intutive.
#include <Wire.h>
#include <MAX30100_PulseOximeter.h>
#include <SoftwareSerial.h>
SoftwareSerial DebugSerial(10, 11); //RX, TX
#define BLYNK_SERIAL DebugSerial
#include <BlynkSimpleStream.h>

//Auth
char auth[] = "66c8a1cf6ab64769889e1daf37aefb82";

//widget virtual pin goes here
WidgetLCD lcd(V5);

//default waiting period 
#define REPORTING_PERIOD_MS     1000

//Instantiate pulser oximeter
PulseOximeter pox;

uint32_t tsLastReport = 0;


void setup()
{
  DebugSerial.begin(19200);
  Serial.begin(9600);
  Blynk.begin(Serial,auth); //Session begins here
  pox.begin();
}


void loop()
{
  Blynk.run();
  pox.update();
  //lcd.clear();
  //lcd.print(0,0 ,"Heart Rate:");
  //timer.run();

  //Asyn data push
  if (millis() - tsLastReport > REPORTING_PERIOD_MS)
  {
    lcd.print(0, 0, "Heart Rate:");
    lcd.print(0,1 ,pox.getHeartRate());
    tsLastReport = millis();
  }
}

Schematics

Normal interface
Nothing special as I am using simple stream
Blob wwb6kn9muz

Comments

Similar projects you might like

Monitoring Temperature Remotely with Blynk for Dummies

Project in progress by Cmtelesann

  • 3,081 views
  • 4 comments
  • 11 respects

Intel Arduino 101 BLE Blynk Tank

Project tutorial by Johnathan Hottell

  • 10,439 views
  • 6 comments
  • 41 respects

Control Arduino Uno Using ESP8266 WiFi Module and Blynk App

Project tutorial by Adithya TG

  • 5,348 views
  • 10 comments
  • 19 respects
Add projectSign up / Login