-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CAN MAX30102 DO THE SPO2, HEARTBEAT AND TEMPERATURE AT THE SAME TIME? #33
Comments
Hi, I got this code for measuring bpm and spO2 at the same time from some youtube channel. Hope it helps you! :) #define REPORTING_PERIOD_MS 1000 PulseOximeter pox; void onBeatDetected() void setup()
} void loop()
} |
@tusharshawarma it doesnt helped. Because it was asked to read hearrate + temperature rate at the same time.... You had gave an example for heartrate + SPo2 readings .... |
I can help you to solve this qusetion. |
I'm doing a project with MAX30102 to detect SPO2, heartbeat and temperature at the same time. In the example of lib if I run it separately it will run as normal, but when I combine that two example, the heartbeat always 0. Can anyone help me with this?
Here is the code:
#include <Wire.h>
#include "MAX30105.h"
#include "heartRate.h"
MAX30105 particleSensor;
const byte RATE_SIZE = 4; //Increase this for more averaging. 4 is good.
byte rates[RATE_SIZE]; //Array of heart rates
byte rateSpot = 0;
long lastBeat = 0; //Time at which the last beat occurred
float beatsPerMinute;
int beatAvg;
float temperature;
void setup()
{
Serial.begin(115200);
Serial.println("Initializing...");
}
void loop()
{
temperature = particleSensor.readTemperature();
long irValue = particleSensor.getIR();
}
The text was updated successfully, but these errors were encountered: