Issue connecting MLX90614 to Circuit Playground Express

I have an issue connecting the MLX90614 to the Adafruit Circuit Playground Express. I have attached my code below. None of my flags were triggered, so I assume the program simply does not work (but does compile).

#include <Wire.h>
#include <Adafruit_MLX90614.h>
#include <Adafruit_CircuitPlayground.h>
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
float temp;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  CircuitPlayground.begin();
  Serial.println("Connecting");
  mlx.begin();
  Serial.println("Starting");
}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.println("Reading...");
  temp = mlx.readObjectTempC();
  Serial.println(temp);
}

The MLX90614 is connected normally, as it is the only sensor being used. I'm not sure what the issue is since the MLX90614 worked perfectly fine with my Uno and Wemos boards.

I guess a hardware problem but you failed to provide a wiring diagram. Are you using the MLX90614 on a breakout board or connected directly? In the former case we need a link to the schematics of that board, in the later case we need a sharp picture of the connections.

Ok, I rechecked the sensor on my Uno, and, as it turns out, it does not work. I tried a different MLX 90614 sensor and that worked on the Uno as well as the Playground. Looks like we are in the clear. Thanks for the help, though.

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