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

MLX90640 not detected at default I2C address #1

Open
ArshyaL opened this issue Mar 2, 2023 · 0 comments
Open

MLX90640 not detected at default I2C address #1

ArshyaL opened this issue Mar 2, 2023 · 0 comments

Comments

@ArshyaL
Copy link

ArshyaL commented Mar 2, 2023

Hi,

I am getting the following error while compiling the code :

In file included from C:\Users\Arshya\Documents\Arduino\libraries\MLX90640_I2C_Driver\MLX90640_I2C_Driver.cpp:19:0:
C:\Users\Arshya\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\Wire\src/Wire.h: In function 'int MLX90640_I2CRead(uint8_t, unsigned int, unsigned int, uint16_t*)':
C:\Users\Arshya\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\Wire\src/Wire.h:103:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)
uint8_t requestFrom(int address, int size);
^
C:\Users\Arshya\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\Wire\src/Wire.h:101:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)
uint8_t requestFrom(uint8_t address, uint8_t size);

Yet, I am able to compile it

image

When I try to upload and run it on serial monitor, I get the following line printed :

MLX90640 not detected at default I2C address. Please check wiring. Freezing

This seems to be from the if statement in the code.

Wire.beginTransmission((uint8_t)MLX90640_address);
if (Wire.endTransmission() != 0) {
Serial.println("MLX90640 not detected at default I2C address. Please check wiring. Freezing.");
while (1);

Any way to resolve this?

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

1 participant