Eric Nam Showcases the Espressif ESP32-S2’s USB Capabilities with a Webcam Streaming Mod



YouTuber Eric Nam has proven off the flexibleness of the native USB assist in Espressif’s ESP32-S2 system-on-chip (SoC), utilizing it to play host to a USB webcam — although warns that efficiency expectations must be tempered.

“[The] ESP32-S2 helps a local USB interface. It really works as a USB Host and permits information communication by connecting USB peripherals,” Nam explains in a video demonstrating the chip’s capabilities. “Sadly, it is an previous model of the USB interface which is 1.1 and the utmost velocity of this USB is 12Mbps, so you may’t count on [it to be] that quick.”

Eric Nam’s newest video reveals off the capabilities of the USB assist in Espressif’s ESP32-S2. (📹: That Mission)

Utilizing an ESP32 chip to show a digicam sensor right into a wi-fi system is a typical undertaking, however Nam has approached the issue differently: slightly than utilizing a TTL digicam sensor, he has chosen a webcam, which connects to the ESP32-S2 over USB.

“My present digicam decision is 320×240, and I used to be capable of get a body fee of roughly 15 [frames per second],” Nam says of his preliminary efforts. “Formally, it ought to output about 33 FPS at 320×240 decision, however with my digicam I could not scale back the interval between photos to the utmost.

“There are some things it’s essential to know first to do that out,” Nam notes. “You need to have an [ESP32-]S2 or [ESP32-]S3 with at the least 2MB of PSRAM [Pseudo-Static RAM], and your USB digicam should assist MJPEG [Motion JPEG] compression, It must be potential to set the packet measurement to not exceed the utmost of 512 bytes.”

“The picture transmission bandwidth should be lower than 4Mbps,” Nam continues, “[and] as a result of USB isochronous switch bandwidth limitations, the picture body fee and single picture measurement are mutually restricted. If the picture measurement is 25kB per body, the body fee can’t exceed 20 FPS.”

Nam’s full video demo is on the market on the That Mission YouTube channel, whereas the supply code on which it is based mostly comes from Espressif’s ESP IoT Resolution GitHub repository the place it is made accessible beneath the permissive Apache 2.0 license to be used with the ESP-IDF toolchain.

Leave a Reply