Ah okay, thanks for sharing! When changing the slave-address, it is just necessary to calculate the PEC of Command (EEPROM address) + 2 bytes of data to make it work. But very good to know, that I have to consider this when dealing with emissivity. A...
Hi Thomas,I'm glad that it worked! Are you sure, it was not "just" the "deleting"(the first part of the code)-process that caused your sensor to work? Because I'm pretty sure that the PEC only has to be calculated for the data to be written (excludin...
Also remember to DELETE the values EEPROM-cells first! In my code I did that with:i2cdata[0] = 0x2E; //EEPROM-address
i2cdata[1] = 0x00; //Delete-Byte, low
i2cdata[2] = 0x00; //Delete-Byte, high
i2cdata[3] = 0x6F; //PEC -> CRC8-checksum for 2E0000, c...
No, I meant you have to unplug it from the power source and then plug it again, so it has the written settings updated.No, in this form it won't work for oyu, because you have to customize the code to your needs. But the writing process is identical....
Hi Thomas,in my experience the sensor needs to be plugged of the power supply to "update" values, written in the EEPROM since it was the case when I changed the slave-address of my sensor.The code snippet is something I wrote to change the slave addr...