Interfacing 2 cameras with an STM32
Hi!
I need to interface 2 VGA cameras with an STM32. The cameras are for snapshots only, so FPS and throughput are not issues, the only issues are:
- physical interfacing
- keeping up with received snapshot data
- retaining the data before storage
There doesn't seem to be much public info on the subject, so I came here.
From what I understand, I have several options:
- get a camera that has a simple serial interface (SPI / UART), where I can just configure and ask for snapshots. No luck finding anything like that from a known vendor
- get a camera that has some DCMI interface, with 18 pins and somehow bitbang with them
- some MIPI camera, which I know nothing about.
- get 2 USB cameras and work with them using USB OTG with 2 STM32 hosts - one main and one secondary, who sends the snapshot to the main over UART.
- Some other option I'm not aware of?
I can't find a good solution for 1.
The 2nd one - bitbanging DCMI seems dirty and doable, however, getting into a long adventure only to discover it was a poor choice is not good. Ann example or recommendation would be appreciated.
The 3rd solution -are the good examples? is it viable with STM32?
The 4rd one seems to be the simplest to integrate physically, the cheapest and with the most market variation, but how difficult is it to use USB OTG with a USB camera, really?
So, an input from you guys would be much appreciated - how would you go about connecting 2 cameras to an STM32 (or a couple of them)?
Thanks!