I am looking for a complete library with all dependent header files, examples of code etc. I have downloaded and tried running the Adafruit and other MLX90614 examples off git hub, Arduino site (here) etc. Each time ther eis a "begin()" error I have not been able to find / fix.
I am just trying to compile the code (not upload it yet). Once it will compile, then I can upload it to the Mega2560 and try the sensor.
I am new to the sensor and not a professional programmer so any help is much appreciated!
Its looking like it needs AsyncDelay.h and SoftWire.h I downloaded both and it compiles fine (once I comment out "DisableJTAG.h").
The board is hooked up and the code is running.I am using the stock sample code in the library i downloaded here (Arduino.cc) with the exception of the "JTAG" I mentioned above. No other code changes.
Here is the code:
I notice the numbers are all the same. From my experience with these, I'd think you have a communication error of some type with the device. Since all the numbers are the same.
327 C is pretty warm for either temperature...
If the libraries are working, then I'd guess the device and micro are not talking as expected. And I'd double check the interface... scope would be nice...
I'm not familiar with these libraries, I use the I2C libraries. Can you get to the 'raw' data to examine?
One issue I did encounter was that a lot of the devices I purchased, upon POR, default of pwm output, not the SMBus. I found a sketch to change it back, so I'm not the only one that's had that occur.
Data sheet... says...
The factory default POR setting is SMBus.
Although the SMBus is commonly used with an I2C, there are differences. The SMBus can time out and I don't think the I2C bus can. How could you check?