Tuesday, April 12, 2022

[SOLVED] How to connect two MLX90614 sensors to Raspberry Pi 3 B+?

Issue

I connected one MLX90614 sensor to Raspberry Pi 3 (which communicate by i2c bus) according to videos on youtube. Everything was fine, it was working. But then a need connect the same MLX90614 sensor (i2c bus too). These sensors will be next to each other and they will be used for counting people in enclosed rooms. So, the first sensor will register people going into the rooms and the second sensor will register people going outside. Please, could you give me some advice, how to connect these sensors? For now, only one of them is working....Thank you.


Solution

Every MLX90614 has a default I2C address of 0x5A, but that address can be re-written -- one of the major features supported by the device. By reconfiguring the address of an MLX90614, you can add multiple devices (up to 127!) to the same bus to get a larger temperature map.

Please refer to here for details.



Answered By - balun
Answer Checked By - Katrina (WPSolving Volunteer)