Hello everyone,
I am fairly new to Arduino, but I am running across a problem with my Arduino Micro.
I have two MLX90614 IR sensors and I want to measure two temperatures at the exact same time. (Or split seconds between) Is there a way to do this as the Micro only has 1 SDL and SDA?
Here is my problem - How do I assign an address in EEPROM to each device?
I have been searching and there are no real solutions for what I am doing. It is even possible?
Thank you in advance!
Cheers,
You can change the slave address of one of the sensors. See the data sheet. I've seen example code on the web to accomplish the change.
You cannot read them out at the exact same time because the bus addresses only one device at a time.
You said that I cannot read two devices at the same time...
Does that mean I am allowed to read device one, then device two, then back to device one and so on?
Correct.
Keep in mind that the Arduino can do only one thing at a time, and that the sensor response is hardly instantaneous.