Page 1 of 2
ESP32-S2 supports USB Camera or not
Posted: Mon Mar 01, 2021 9:38 am
by Ritesh
Hello Espressif Team,
We have one product requirements in which we want to USB Endoscope Type low dimension camera for one of our product.
So, I just want to know that ESP32-S2 chip/modules supports USB 1.1 Specifications based OTG support and fully provide supports for USB Endoscope Camera or any other USB Camera from hardware and software side?
Let me know if need anything else from my end.
Re: ESP32-S2 supports USB Camera or not
Posted: Mon Mar 01, 2021 10:33 am
by chegewara
At this moment S2 does not have USB host/OTG API yet. There is no official timeline yet.
I cant answer if USB camera will be supported when API will be released.
Re: ESP32-S2 supports USB Camera or not
Posted: Mon Mar 01, 2021 12:17 pm
by Ritesh
chegewara wrote: ↑Mon Mar 01, 2021 10:33 am
At this moment S2 does not have USB host/OTG API yet. There is no official timeline yet.
I cant answer if USB camera will be supported when API will be released.
Thanks for your quick answer and it is really appreciated.
Do you have any idea like apart from ESP32-S2, is there any other variant of ESP32 Chip or Module which has full support of USB host/OTG from hardware and software side?
If no any variant then I need to move to some other controller for time being till it is not fully supported for my prototype and product as well.
Re: ESP32-S2 supports USB Camera or not
Posted: Mon Mar 01, 2021 4:10 pm
by chegewara
Currently only S2 has hardware support for USB and next will be S3, at least it is announced.
I would like to convince you to stay with esp32, but if you need it now then stm32 or rpi pico, maybe other chips with support here:
https://github.com/hathach/tinyusb
Of course there are other usb host stacks.
Re: ESP32-S2 supports USB Camera or not
Posted: Tue Mar 02, 2021 4:16 am
by Ritesh
chegewara wrote: ↑Mon Mar 01, 2021 4:10 pm
Currently only S2 has hardware support for USB and next will be S3, at least it is announced.
I would like to convince you to stay with esp32, but if you need it now then stm32 or rpi pico, maybe other chips with support here:
https://github.com/hathach/tinyusb
Of course there are other usb host stacks.
Thank you very much for your quick response.
Sorry but Right now i need to move with some other MCU at-least for prototype perspective because I need to prepare and deliver it to client ASAP.
Once ESP32-S2 support USB Host fully from software side then i will move into ESP32-S2 as well.
Do you have any idea like which STM32 or RPI will be fulfilled as per my requirements?
FYI - I have provided few details with reference product image into
viewtopic.php?f=12&t=19474 thread.
Let me know if need anything else from my end to understand my overall product requirements as well.
Re: ESP32-S2 supports USB Camera or not
Posted: Tue Mar 02, 2021 5:58 am
by ESP_Sprite
Also note that the S2 and S3 are low/full-speed, not high-speed USB; this means you can get a datarate of 12MBit/second at absolute max. You may want to find out if that is enough for your requirements (FPS, resolution, encoding etc) before deciding to wait for this.
Re: ESP32-S2 supports USB Camera or not
Posted: Tue Mar 02, 2021 4:35 pm
by Ritesh
ESP_Sprite wrote: ↑Tue Mar 02, 2021 5:58 am
Also note that the S2 and S3 are low/full-speed, not high-speed USB; this means you can get a datarate of 12MByte/second at absolute max. You may want to find out if that is enough for your requirements (FPS, resolution, encoding etc) before deciding to wait for this.
Thanks. I will note for that as well.
Is it 12 or 1.2 MByte per second? Also we need to support max 720P resolution at max.
Re: ESP32-S2 supports USB Camera or not
Posted: Wed Mar 03, 2021 1:35 am
by ESP_Sprite
Whoops, fixed the notation, I meant 12MBit which would be 1.2MByte/sec-ish. I don't think there is much chance you can get 720P to run at any decent framerate, unless your USB camera happens to do great compression (to e.g. h.264/h.265) in-camera, and you don't need to decompress that in your ESP32. (For instance, for uncompressed YUV422 video, you would get (1280*720*1.5)/1200000=1.5FPS; you're lucky if your camera allows you to set that framerate at all.)
Re: ESP32-S2 supports USB Camera or not
Posted: Wed Mar 03, 2021 3:46 am
by Ritesh
ESP_Sprite wrote: ↑Wed Mar 03, 2021 1:35 am
Whoops, fixed the notation, I meant 12MBit which would be 1.2MByte/sec-ish. I don't think there is much chance you can get 720P to run at any decent framerate, unless your USB camera happens to do great compression (to e.g. h.264/h.265) in-camera, and you don't need to decompress that in your ESP32. (For instance, for uncompressed YUV422 video, you would get (1280*720*1.5)/1200000=1.5FPS; you're lucky if your camera allows you to set that framerate at all.)
Thanks for providing quick response.
Yes. I understood your calculation for the same. Still I will check little bit into details with different camera and USB specification and will let you know if any query for the same.
Re: ESP32-S2 supports USB Camera or not
Posted: Wed Mar 10, 2021 10:51 am
by chegewara
I didnt have chance to test it yet, but is looking interesting:
https://github.com/sdima1357/esp32_usb_soft_host