adafruit / Adafruit-MLX90614-Library

Arduino library for the MLX90614 sensors in the Adafruit shop
Other
128 stars 97 forks source link

EEPROM registers address #11

Closed pcremades closed 4 years ago

pcremades commented 4 years ago

Dear developer, I think there is an error in the EEPROM registes address definitions. According to the MLX90614 datasheet: TOmax 0x00 TOmin 0x01 PWMCRTL 0x02 Ta_range 0x03 EmissCoef 0x04 ConfigReg 0x05

But in the Header file of the library these are defined as TOmax 0x20 TOmin 0x21 PWMCRTL 0x22 Ta_range 0x23 EmissCoef 0x24 ConfigReg 0x25

Am I missing something?

ladyada commented 4 years ago

image

ladyada commented 4 years ago

see datasheet for explaination

danial2016 commented 3 years ago

Ye, the datasheet was a bit misguiding concerning the EEPROM register addresses. But do the following to get the real EEPROM address (virtually adding 2 in the upper nibble): 0b0010_0000+ 0b000x_xxxx = 0b001x_xxxx where x_xxxx is the EEPROM reg address at the page OP refers to.

ladyada commented 3 years ago

its been a long time since we tried this chip, if you can submit a PR indicating the changes to use the EEPROM we'll take a look :)