ESP32-CAM I2C conflict

milkolik
Posts: 11
Joined: Thu Mar 03, 2022 10:48 pm

ESP32-CAM I2C conflict

Postby milkolik » 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

UncleRus
Posts: 6
Joined: Wed Dec 30, 2015 1:10 am

Re: ESP32-CAM I2C conflict

Postby UncleRus » Tue May 10, 2022 5:27 pm

Hi!

What do you mean by "fails"? How exactly? Do the pcf8574_...() functions return error codes? Which?

I suggest you write a simple program that uses a camera and pcf8574 and reproduce the error.
Then create an issue in my repository ( https://github.com/UncleRus/esp-idf-lib ), post the source of this program there and we will figure it out.

Who is online

Users browsing this forum: No registered users and 211 guests