Problem with 12C address of MLX contactless infrared sensor

Good day! Can you please help me in how to identify the 12C address of my MLX contactless infrared sensor?

I am using an Arduino UNO. My sensor keeps on giving data more than 1000 Celsius. I've checked the wirings multiple times, I used a 100uF capacitor yet nothing of these worked. I was advised to scan the 12C address of my device yet I have no knowledge about it. I am new in using the arduino. Please, help me. Advance thank you to those who will reply. Thank you and stay safe always.

The MLX90614 sensor has I2C address 0x5A.
Do you have pull-up resistors on the I2C lines ?
Caution : there are 2 versions of this sensor, a 5V and a 3V3 version.
Your Arduino UNO is a 5V device, if your sensor is 3V3 then you should put a logic level shifter between the UNO and the sensor.
Guy

I don't have a pull-up resistor. Should I have one?.

The VIN of my sensor is connected to 3.3V. I used it because I am using a 100uF capacitor and based on the circuit that I saw on the web, it is connected to 3.3V pin. Should I use the 5V pin instead of the 3.3V pin?

You have first to find out if you have a 5V or a 3V3 sensor.
Is here a marking or label on the sensor ?
MLX90614Axx is 5V, MLX90614Bxx is 3V3.
In function of that you have to connect VIN to 5V resp. 3V3.
And if your device is 3V3 you have to put a level shifter on the I2C lines between the Arduino UNO and the sensor.
Yes you need external pull-up resistors, as the MLX90614 does not have internal pull-ups.

My sensor is
MLX90614 GY-906 MLX90614ESF BAA BCC DCI IR Infrared Temperature Sensor Module Temperature Picker Contactless Temperature Sensor Module
is that 5V or 3V3? It has B and A in it so I'm not sure. I'm sorry.
Noted! I will use a pull-up resistor. Thank you!

The option code BAA indicates B(3V3 type) A(Sngle zone measurement) A(Standard package).
See MLX90614 atasheet on the 1st page.
You have the 3V3 type.
So connect VIN to 3V3, and a 4k7 resistor between 3V3 and SCL, and another 4k7 between 3V3 and SDA.
It might work that way, but your UNO is a 5V device, it is generally advised to use a level shifter between a 5V device and a 3V3 sensor (or vice versa) : see e.g. Sparkfun bi-directional level shifter .
To read up on I2C communication, there is a wiki by Koepel, one of the experts on this forum : Koepel's I2C wiki . It refers also to another tutorial by Nick Gammon.

Thank you so much for your help and advice! I already bought a level shifter for my project and I am hoping that this time, my project will work. Thank you and Have a nice day!

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