How to set the address
The address is stored in the chip’s EEPROM and can be reprogrammed; 0x33 is the factory default.
Devices that use the same addresses
None of the other 75 devices in our list use these addresses, so the MLX90640 rarely clashes with anything.
Check your whole bus →Add the MLX90640 and your other modules: the checker finds conflicts, suggests free addresses and sizes the pull-ups.
7-bit and 8-bit address
I²C addresses are 7 bits long. Some datasheets and libraries write them as 8-bit numbers, with the read/write bit added on the right: that is why the same chip can appear as 0x33 or 0x66. Arduino’s Wire library and ESPHome use the 7-bit form.
| 7-bit | Binary | 8-bit write | 8-bit read |
|---|---|---|---|
| 0x33 | 0110011 | 0x66 | 0x67 |
Check that it answers
Upload this sketch with the MLX90640 wired to SDA and SCL: it tries every address the chip can use and prints the one that answers. On an ESP32 the default pins are GPIO21 (SDA) and GPIO22 (SCL); on an Arduino Uno, A4 and A5.
#include <Wire.h>
const byte ADDRS[] = {0x33};
void setup() {
Serial.begin(115200);
Wire.begin();
for (byte a : ADDRS) {
Wire.beginTransmission(a);
if (Wire.endTransmission() == 0) {
Serial.print("MLX90640 answers at 0x");
if (a < 0x10) Serial.print('0');
Serial.println(a, HEX);
return;
}
}
Serial.println("No answer: check the wiring");
}
void loop() {}
In ESPHome the bus is scanned at boot (scan: true is the default): the log lists every address that answers.
i2c:
sda: GPIO21
scl: GPIO22
scan: true
Pull-up resistors
SDA and SCL need pull-up resistors to the supply. Many breakout boards already carry them, often 4.7 kΩ or 10 kΩ, and with several boards on the bus they add up in parallel. The I²C checker works out the allowed range for your bus voltage and speed.
Frequently asked questions
What is the I2C address of the MLX90640?
0x33 by default. The address is stored in the chip’s EEPROM and can be reprogrammed; 0x33 is the factory default.
Can I use more than one MLX90640 on the same bus?
Yes, once each one has its own address.
Why doesn’t the MLX90640 show up in an I2C scan?
Check, in this order: SDA and SCL not swapped; ground shared between the boards; pull-up resistors on SDA and SCL; the module powered at the voltage it is made for; and that your code uses the 7-bit address (0x33), not the 8-bit one (0x66).
Similar devices
Addresses checked against the MLX90640 datasheet.