Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MLX90614_SMBusWrite Not working #1

Open
pollockDeVis opened this issue May 25, 2020 · 3 comments
Open

MLX90614_SMBusWrite Not working #1

pollockDeVis opened this issue May 25, 2020 · 3 comments

Comments

@pollockDeVis
Copy link

MLX90614_SMBusWrite() is not working. I tried to change the emissivity using this function but it doesn't change the emissivity.
Also in the MLX90614_SetEmissivity(uint8_t slaveAddr, float value) function, may I know why you included these functions? What purpose do they serve?

error = MLX90614_SMBusRead(slaveAddr, 0x2F, &data);
error = MLX90614_SendCommand(slaveAddr, 0x60);
error = MLX90614_SMBusWrite(slaveAddr, 0x2F, 0x0000);
error = MLX90614_SMBusWrite(slaveAddr, 0x2F, data);
error = MLX90614_SendCommand(slaveAddr, 0x61);

@dane-allison
Copy link

I also have the same issue. Unable to set the emissivity.

@JustinAdmin
Copy link

I also have the same problem and the manufacture doesn't support the IDF but does support Arduino ESP32 here

Its document here
https://www.melexis.com/en/documents/documentation/application-notes/application-note-mlx90614-changing-emissivity-setting

Step Command
Read the current value of emissivity MLX90614_SMBusRead(slaveAddr, 0x2F, &data);
Unlock the EEPROM to be able to write a new E values MLX90614_SendCommand(slaveAddr, 0x60);
Clear the EEPROM with all zeros MLX90614_SMBusWrite(slaveAddr, 0x2F, 0x0000);
Write new value to EEPROM for Emissivity MLX90614_SMBusWrite(slaveAddr, 0x2F, data);
Lock EEPROM to save new E value MLX90614_SendCommand(slaveAddr, 0x61);

@JustinAdmin
Copy link

@mistak1992

I rewrote the driver with the help of someone from Melexis and upload the PR's #2 and #3

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants