I am doing a school work, and my group wants to use a ESP32-Cam and a MLX90614 IR sensor.
We are using Arduino Uno.
We took it step by step:
First a clean project the for the sensor, and it worked;
Then a new project for the camera, and it worked as we wanted them to do.
Now we are trying to join them together, in a new project, but the sensor doesn't work.
When we select Arduino Uno on the Tools -> Board option, it works. But then, when we switch to "ESP32 Wrover Board" (the one we use to make the camera work), the sensor just doesn't work.
Even in a new project, only with the MLX sensor's code, it doesn't work.
Does anyone know if there is any problem with working with both of this together?
I have both the ESP32-Cam and the sensor connected to the Arduino Uno.
I can upload the code to the Arduino, no errors there.
The only thing that happen is that the sensor doesn't read any values.
When i have the tools window like this, the sensor read the values all good.
Board: "Arduino Uno"
The camera settings we use are this ones: (image on other reply, only can embed on image)
If we setup those settings, the sensor doesn't work.
So, I'll try to be more clear.
I have 3 different projects. For all the projects, I never switch any cable on the connections, or configuration (post #4 and #6) .
Project A: A project with only the code to make the MLX sensor read and write values (post #4). When I select the Arduino Uno, it reads and prints the values, all good. When I select the ESP32 Wrover Module, the project uploads, runs, but it shows "Error connecting to MLX sensor. Check wiring." on Serial.
Project B: A project with the code to make the camera work (a pretty long code). I need to chose the ESP32 board, and everything works fine. Code uploads, camera works, shows image, etc.
Project C: A project where i tried to merge the project A and B. The camera works, but when i start the ESP32-camera, the error "Error connecting to MLX sensor. Check wiring." shows up on Serial. The camera still works, but the sensor don't read anything.
Here is a print after compiling and uploading Project C. As I said, the camera is working and getting image, but the sensor just gives an error. (ignore the code itself)