Using Two or More Melexis MLX90614 Infrared Thermometers with Arduino

Using Two or More Melexis MLX90614 Infrared Thermometers with Arduino

This code is to connect three or more MLX90614 to an Arduino. The sensor is explained; the datasheet is reviewed; wiring and code are shown and demonstrated by measuring surface temperature; then, using a heat gun, temperature is measured; then, the temperature of a heater is measured. Arduino code is provided. See link below.

If you need to connect only one MLX90614 to the same Arduino, see the code here.

This code has not been tested. Study it fully, and you will understand how it works, and you can find and fix any issues.

In the datasheet on page 42 (Melexis MLX90614 Datasheet (pdf)), it says: The MLX90614 supports a 7-bit slave address in EEPROM, thus allowing up to 127 devices to be read via two common wires. With the MLX90614xBx, this results in 254 object temperatures measured remotely and an additional 127 ambient temperatures, which are also available.

For I2C addresses, I have started with 0x5A, then 5A, 5C. You can go to 5E, 5F, and because it is a hexadecimal value, use 6A, 6B...etc.

You may learn how to connect multiple items on the same I2C bus from this video.

309-Resources for this sketch
زبان: C++
کپی شد!

فایل‌ها📁

هیچ فایلی موجود نیست.