I2c adresse problem mlx90614 on wio terminal

#include <Adafruit_MLX90614.h>

Adafruit_MLX90614 mlx = Adafruit_MLX90614();

void setup() {
  Serial.begin(9600);
  while (!Serial);

  Serial.println("Adafruit MLX90614 test");

  if (!mlx.begin()) {
    Serial.println("Error connecting to MLX sensor. Check wiring.");
    while (1);
  };

  Serial.print("Emissivity = "); Serial.println(mlx.readEmissivity());
  Serial.println("================================================");
}

void loop() {
  Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempC());
  Serial.print("*C\tObject = "); Serial.print(mlx.readObjectTempC()); Serial.println("*C");
  Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempF());
  Serial.print("*F\tObject = "); Serial.print(mlx.readObjectTempF()); Serial.println("*F");

  Serial.println();
  delay(500);
}

I would like to operate an IR temperature sensor MLX90614 with Wio terminal - this sensor uses the I2C interface. I used pins 3 and 5 or 25 and 26 for SCL and SDA, but without result.

While it works very well with an arduino nano ble sense.

I use the "Adafruit_MLX90614" library. I tried to use an I2C scan program to get the sensor address.

I was able to get the address i2c but it didn't work

but if I use another i2c sensor it works perfectly with the wio terminal.

According to the pinout of your board (for such exotic boards you should definitely provide a link to the hardware documentation!) I2C0 is on 27 and 28.

1 Like

Thank you for your reply
that's right, I2C0 is on 27 and 28

Does it work on these pins?

No, it's the same

Post a wiring diagram and links to all components including breakout boards you might use (so if the MLX90614 is on a board we need a link to the schematics of that board).

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