Max30102 heartrate sensor problem

My below code spits out

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 3584, room 16
tail 0
chksum 0xb0
csum 0xb0
v2843a5ac
~ld

#include <Wire.h>
#include "MAX30105.h"

MAX30105 particleSensor;

#define debug Serial //Uncomment this line if you're using an Uno or ESP
//#define debug SerialUSB //Uncomment this line if you're using a SAMD21

void setup()
{
debug.begin(9600);
debug.println("MAX30105 Basic Readings Example");

// Initialize sensor
if (particleSensor.begin() == false)
{
debug.println("MAX30105 was not found. Please check wiring/power. ");
while (1);
}

particleSensor.setup(); //Configure sensor. Use 6.4mA for LED drive
}

void loop()
{
debug.print(" R[");
debug.print(particleSensor.getRed());
debug.print("] IR[");
debug.print(particleSensor.getIR());
debug.print("] G[");
debug.print(particleSensor.getGreen());
debug.print("]");

debug.println();
}

And the question is ?

Hi @sandeshg

A good answer will always be given to a good question ....
What is your platform, Arduino , esp8266, esp32......???
Help us to help you .. Show us your schematic ...

please, read How to get the best out of this forum
RV mineirin

Maybe the "while(1);" ?

Try a serial flush after each print.

Why the error is coming and how to resolve it? Im new to arduino.
Im interfacing esp8266 with max30102 heart rate sensor.

Sir Im using esp8266.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.