/UVC-Camera-and-MSC-LVGL-Example

Espressif's example for show video from USB UVC camera into LVGL canvas.

Primary LanguageCApache License 2.0Apache-2.0

Supported Targets ESP-BOX (ESP32-S3)

UVC Camera and MSC LVGL Example

This example shows video from USB (UVC) camera into canvas in LVGL. There can be changed size of video and canvas in settings tab on the screen. The size can be changed only to lower size.

On second tab, there is list of files and directories, when USB drive connected. When selected *.txt file, it shows content in a new window. When selected *.jpg image, it shows image in a new window. For files *.wav it shows media player.

Screenshots

Camera tab USB drive tab Settings tab
Camera tab USB drive tab USB drive tab
Image window Media player window Text file window
Camera tab USB drive tab USB drive tab

How to use the example

Hardware Required

  • ESP-BOX / ESP-BOX-3
  • USB (UVC) Camera
  • USB Drive
  • USB cable with bare wires on one side

Camera connection

USB-A Female ESP32-S3
VCC 5V (red) 5V
D- (white) GPIO 19
D+ (green) GPIO 20
GND (black) GND

USB/UART connection

USB/UART ESP32-S3
VCC 5V 5V
RXD GPIO 44
TXD GPIO 43
GND GND

Compile and flash

idf.py -p COMX flash monitor

Note 1: Before flashing firmware, there should be manually switched into BOOT mode: Hold BOOT button on ESP-BOX and push restart button.

Note 2: There cannot be used USB-C simultaneously with camera. The ESP-BOX must be powered from pins on the bottom side!

Recommended USB connection with custom board

Camera tab USB drive tab

This is a custom board which was made for connecting USB devices to ESP-BOX. All source files are saved in this folder.

Flash latest binary from browser

Try it with ESP Launchpad