Advice on ESP32 camera + GPIO capable module

Hi,
I would like to receive an advice about choosing ESP32 module that has camera and 1x analog read input, 3x GPIO input, 3x GPIO output and I2C available.
I found ESP32-S3 WROOM N16R8

and I don't need SD card. It's either something out there (maybe this one or you suggest) or I'll need to use MCP23017 expander with ESP32-Cam board, but would like to have it in one package.

Looking for your suggestions!

have a look at ESP32-CAM
I2C works on GPIO0 and GPIO16, e.g.

#define I2C_SDA 16
#define I2C_SCL 0

void setup() {
  Serial.begin(115200);
  Wire.begin(I2C_SDA, I2C_SCL);

and if not using SD card you have 6 GPIO pins available

There are several ESP32S3 boards that come with cameras, the ESP32S3 does have more IO pins avaialble versus the ESP32.

You might just get away with a standard ESP32CAM, but then sometime later you might find you need just one more IO pin.

That analog read probably going to be the issue..
If you're using WiFi and cam, then you might want to look into an i2c adc..

Cam uses adc1 and wifi ties up adc2..

good luck.. ~q

I need exactly 6 (input/output together).
The one that broke the back of my plans with ESP32Cam was GPIO16 on this device.

When you declare it as OUTPUT the mqtt connect breaks it (yes mqtt, wifi connects):

18:19:36.203 -> 
18:19:36.203 -> Core  1 register dump:
18:19:36.203 -> PC      : 0x40092ad1  PS      : 0x00060530  A0      : 0x80092e24  A1      : 0x3ffb1fa0  
18:19:36.203 -> A2      : 0xffffffff  A3      : 0x00060523  A4      : 0x00060520  A5      : 0x3f40d8d8  
18:19:36.203 -> A6      : 0x000000fd  A7      : 0xb33fffff  A8      : 0x00000001  A9      : 0x00000004  
18:19:36.235 -> A10     : 0x00060523  A11     : 0x000000a6  A12     : 0x00000bb8  A13     : 0x3f40d9d4  
18:19:36.235 -> A14     : 0x00000077  A15     : 0x6b00a8c0  SAR     : 0x0000001d  EXCCAUSE: 0x0000001c  
18:19:36.235 -> EXCVADDR: 0x0000000f  LBEG    : 0x4008b624  LEND    : 0x4008b63a  LCOUNT  : 0xffffffff  
18:19:36.235 -> 
18:19:36.235 -> 
18:19:36.235 -> Backtrace: 0x40092ace:0x3ffb1fa0 0x40092e21:0x3ffb1fc0 0x40092805:0x3ffb1fe0 0x4009297c:0x3ffb2000 0x40084232:0x3ffb2020 0x40084462:0x3ffb2050 0x400fd6c7:0x3ffb2070 0x400d5db6:0x3ffb20e0 0x400d5433:0x3ffb2140 0x400d92dd:0x3ffb2180 0x400d946e:0x3ffb21f0 0x400d3330:0x3ffb2220 0x400d3173:0x3ffb2240 0x400ed55b:0x3ffb2270 0x4009076a:0x3ffb2290
18:19:36.268 -> 
18:19:36.268 -> 
18:19:36.268 -> 
18:19:36.268 -> 
18:19:36.268 -> ELF file SHA256: f5b76daf6ab294ff
18:19:36.299 -> 
18:19:36.331 -> Rebooting...
18:19:36.331 -> ets Jul 29 2019 12:21:46
18:19:36.331 -> 

and then one analog read that is not available when connected on wifi -> but I solved that by temporarily disconnecting - reading - reconnecting, but also there are 2 more inputs that I didn't even tried since this one failed..

solved that one this way

1 Like

GPIO16 is the PSRAM select.

resorted to this one

yeah, unfortunately for me now

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.