this post was submitted on 30 Jun 2023
8 points (100.0% liked)
Ask Electronics
63 readers
1 users here now
For questions about component-level electronic circuits, tools and equipment.
Rules
1: Be nice.
2: Be on-topic (eg: Electronic, not electrical).
3: No commercial stuff, buying, selling or valuations.
4: Be safe.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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: https://github.com/SeeedDocument/forum_doc/blob/master/reg/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?
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.