to the M0X powered by USB. I connect 3v to the VCC, G to G, SDA to SDA and SLC to SLC.
At first, the board works, then it stops working.
in the guide, at "Using the MLX90614 Library" it says:
Code: Select all
temp.begin(); // Initialize I2C library and the MLX90614
if (temp.read()) // Read from the sensor
{ // If the read is successful:
float ambientT = temp.ambient(); // Get updated ambient temperature
float objectT = temp.object(); // Get updated object temperature
Serial.println("Ambient: " + String(ambientT));
Serial.println("Object: " + String(objectT));
Serial.println();
}
But for me, temp.read() works for a while, then fails, then I reset and temp.begin() locks up the board.
Sometimes it'll make it past that statement, and fail to read any temp, other times it works fine.
I've also tried https://www.amazon.com/HiLetgo-MLX90614 ... r_1_1_sspa, which is just the sensor plus the components for the I2C bus.
The only thing that is constant is the M0X board. I've tried multiple of those, but's the only component that has stayed the same. I'm wondering what could possibly be wrong with my minimal setup?