ESP32 with multiple cameras

I want to connect five OV2640 cameras via FPC to an ESP32 on a custom PCB. Is this generally possible and does the ESP32 have enough power for this or do I need an ESP32 for each camera? The frames per second are not so important as the cameras will be used as QR code scanners. Which components allow to run so many cameras with one ESP32?

ottk3,
@ottk3@discuss.tchncs.de avatar

Hijacking your post since I was wondering if the ESP32 is capable to use more than just one cam.

If not are there small wifi devices that are a better solution?

Rolive,

I don’t know if the ESP32 is ideal for that. A raspberry pi with a powered USB hub is probably better for this.

Saigonauticon,

I suppose you could use a bus or something to cycle through the cameras one at a time?

Why not use a lower-resolution I2C camera module? I2C allows multiple devices to be connected to the same I2C port, as long as they have different addresses. You can also use one with lower resolution for QR I suspect.

An alternate method would be to buy QR-code recognition modules, with some form of serial output. Then connect all of those to the ESP32, if you can do 5 software serial ports. More expensive this way though.

Susan_B_Good,

Usual situation - if I needed to interface to 5 cameras I wouldn’t start with ones that needed: “The DVP physical interface consists of a single, 100-conductor, 110-ohm cable organized. as 45 differential signal pairs. These signal pairs consist of the following: • 36 RGB data pairs. • 2 clock pairs.” So, you would be interfacing to 5 x 45 differential pairs. I’d be looking for camera modules with serial output…

Or, as you suggest, give each camera something that can convert that lot into a single serial data stream. Or even process it down to a QR code and just send that. Or even do what-ever it is that you want to do with that code, once received.

awwwa,

Thanks to everyone for the all helpful responses.

Connecting each camera to its own ESP32, which process the data and sends only necessary information to the main ESP32, I think is a cool idea.

I plan to use this Schamatic as a guide for building the ESP32 cam parts on my pcb, although I’m sure I’ll be using a slightly newer ESP32: github.com/SeeedDocument/…/ESP32_CAM_V1.6.pdf

It seems that the PINS U0TXD and U0RXD are free. Can I use these to connect them to the main ESP32 via UART or is there a better way to connect all ESP32 cams to the main ESP32?

And there is one more question. How can I program the ESP32 of the cams? The main ESP32 will be connected to a Micro-B SMD USB connector. Do I need another one for each ESP32 (for the cams) or is it possible to program all ESP32 via the same USB connector?

Susan_B_Good,

Depends on your programming abilities. You can set up a “1-Wire” bus and put the lot on that. You could have one microcontroller as master and the rest as slaves - your external USB connection would go to the master and it could, in theory at least, then pass on program upgrades to the others. Clearly they would all have to be programmed individually, originally. But, quite frankly, the investment in time and effort on setting all that up? If you had dozens, hundreds - then yes. But you only have a small hand full. I’d just bring out their USB connections and program them individually, via those. I think each one has a unique identifier, stored in ROM - so they could all run the same software and include that identifier in messages on the bus.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • askelectronics@discuss.tchncs.de
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #