-
Notifications
You must be signed in to change notification settings - Fork 40
Closed
Description
Subject of the issue
I have connected a MAX30105 particle sensor breakout board to the QWIIC of the Redboard Artemis nano. I am uploading a sketch for simple serial reading. The upload fails every time.
workbench
*Arduino 1.8.9
- Redboard Artemis Nano and MAX30105 particle sensor breakout board (https://www.sparkfun.com/products/14045)
- qwiic connector: black- GND, red- 5V, blue- SDA, yellow- SCL
*Libraries used: https://github.com/sparkfun/SparkFun_MAX3010x_Sensor_Library
Steps to reproduce
`#include <Wire.h>
#include "MAX30105.h"
MAX30105 particleSensor;
#define debug Serial //Uncomment this line if you're using an Uno or ESPww d3
//#define debug SerialUSB //Uncomment this line if you're using a SAMD21
void setup()
{
debug.begin(115200);
if (particleSensor.begin() == false)
{
debug.println("MAX30105 was not found. Please check wiring/power. ");
while (1);
}
byte ledBrightness = 0x1F; //Options: 0=Off to 255=50mA
byte sampleAverage = 2; //Options: 1, 2, 4, 8, 16, 32
byte ledMode = 3; //Options: 1 = Red only, 2 = Red + IR, 3 = Red + IR + Green
int sampleRate = 400; //Options: 50, 100, 200, 400, 800, 1000, 1600, 3200
int pulseWidth = 69; //Options: 69, 118, 215, 411
int adcRange = 4096; //Options: 2048, 4096, 8192, 16384
particleSensor.setup(ledBrightness, sampleAverage, ledMode, sampleRate); //Configure
sensor.
Use 6.4mA for LED drive
}
void loop()
{
debug.print(millis());
debug.print(",");
debug.print(particleSensor.getRed());
debug.print(",");
debug.print(particleSensor.getIR());
debug.print(",");
debug.print(particleSensor.getGreen());
debug.println();
}`
Expected behaviour
The expected output should be serial reading on the serial monitor
Actual behaviour
Connecting over serial port COM16... Fail Fail Fail Tries = 3 Upload failed
Metadata
Metadata
Assignees
Labels
No labels