Hi!
I hope someone could help me, I’m using Blynk for a project with ECG displaying, heart rate and SpO2. For the heart rate and the SpO2 i’m using the sensor MAX30100, but I couldn’t find a way to creat a ECG from that sensor.
So, I bought this pulse sensor ([this])(https://pulsesensor.com/) but when I connect it the graph isn’t good. I’ve been seeing videos and reading articles/papers but I don’t no if i’m doing something wrong…
I’ve been reserching but I didn’t find anything, I hope someone could help me
I’m very very desesperate…
--> It’s suppoust to look like this, but it doesn’t.
{
Serial.println("Beat!");
}
void setup()
{
Serial.begin(9600);
pinMode (16, OUTPUT); //MAX30100
Blynk.begin(auth, ssid, pass);
timer.setInterval(1000L, myTimerEvent);
pox.begin();
pox.setOnBeatDetectedCallback(onBeatDetected);
// sensor.setLedsCurrent(IR_LED_CURRENT, RED_LED_CURRENT);
pox.setIRLedCurrent(MAX30100_LED_CURR_11MA); //14_2MA
}
void loop()
{
Blynk.run();
timer.run();
pox.update();
int value = analogRead(A0);
BPM = pox.getHeartRate();
SpO2 = pox.getSpO2();
if (millis() - tsLastReport > REPORTING_PERIOD_MS) {
Serial.print("Heart rate:");
Serial.print(BPM);
Blynk.virtualWrite(V4, BPM);
Serial.print(" / SpO2:");
Serial.print(SpO2);
// Blynk.virtualWrite(V5, SpO2);
Serial.println("%");
}
Serial.println(value);
Blynk.virtualWrite(A0, sensor);
//Blynk.analogWrite(A0,value);
delay(20);
if ((BPM > 100) & (BPM < 60)) {
led.on();
}
}