/*
 MAX30105 Breakout: Output all the raw Red/IR/Green readings
 By: Nathan Seidle @ SparkFun Electronics
 Date: October 2nd, 2016
 https://github.com/sparkfun/MAX30105_Breakout
 Outputs all Red/IR/Green values.
 Hardware Connections (Breakoutboard to Arduino):
 -5V = 5V (3.3V is allowed)
 -GND = GND
 -SDA = A4 (or SDA)
 -SCL = A5 (or SCL)
 -INT = Not connected
 The MAX30105 Breakout can handle 5V or 3.3V I2C logic. We recommend powering the board with 5V
 but it will also run at 3.3V.
 This code is released under the [MIT License](http://opensource.org/licenses/MIT).
*/
#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();
}[code][code]
[/code][/code]
I can successfully upload the code to the Uno.
When I open the Serial Monitor I get the message:
MAX30105 Basic Readings Example
MAX30105 was not found. Please check wiring/power.
I know the MAX30105 is powered as I can use Matlab to read the voltage from A4 and A5.
I know the MAX30105 is powered as I can use Matlab to read the voltage from A4 and A5.
What is the use of reading A4 and A5 in matlab? And what are the readings that you get?
MAX30105 was not found. Please check wiring/power.
You will have to check your wiring; you might have a bad contact or a broken cable (between MAX and RedBoard). Or maybe swapped SDA and SCL by accident.