ESP32-CAM I2C conflict
Posted: Wed Apr 06, 2022 11:21 pm
Hi, I have a ESP32-CAM I am using for taking pictures. I am also using a PCF8574 for GPIO expansion connected via I2C.
Both the camera and the expansion chip work when ran independently but not at the same time.
I've configured the camera to use I2C Port1 and PCF8574 to use Port0. The code starts with the PCF8574 doing some stuff with LEDs but as soon as it starts the camera init process it fails. It fails when running the SCCB_Probe() function where it detects the model of the connected camera sensor via I2C.
I find this puzzling since they are suppsed to be using separate I2C ports. Hopefuly someone has already been through this
For driving the PCF8574 I am using code from this repo: https://github.com/UncleRus/esp-idf-lib
Camera code: https://github.com/espressif/esp32-camera
Both the camera and the expansion chip work when ran independently but not at the same time.
I've configured the camera to use I2C Port1 and PCF8574 to use Port0. The code starts with the PCF8574 doing some stuff with LEDs but as soon as it starts the camera init process it fails. It fails when running the SCCB_Probe() function where it detects the model of the connected camera sensor via I2C.
I find this puzzling since they are suppsed to be using separate I2C ports. Hopefuly someone has already been through this
For driving the PCF8574 I am using code from this repo: https://github.com/UncleRus/esp-idf-lib
Camera code: https://github.com/espressif/esp32-camera