Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/espzav/uvc-camera-and-msc-lvgl-example
Espressif's example for show video from USB UVC camera into LVGL canvas.
https://github.com/espzav/uvc-camera-and-msc-lvgl-example
esp-box esp32-s3
Last synced: about 1 month ago
JSON representation
Espressif's example for show video from USB UVC camera into LVGL canvas.
- Host: GitHub
- URL: https://github.com/espzav/uvc-camera-and-msc-lvgl-example
- Owner: espzav
- License: apache-2.0
- Created: 2023-01-04T14:13:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-27T06:59:29.000Z (about 1 year ago)
- Last Synced: 2023-10-27T07:36:50.923Z (about 1 year ago)
- Topics: esp-box, esp32-s3
- Language: C
- Homepage:
- Size: 2.95 MB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
| 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](/doc/images/camera_tab.jpg) | ![USB drive tab](/doc/images/files_tab.jpg) | ![USB drive tab](/doc/images/settings_tab.jpg) || Image window | Media player window | Text file window |
| :------------: | :-------------------: | :--------------: |
| ![Camera tab](/doc/images/image_window.jpg) | ![USB drive tab](/doc/images/media_player.jpg) | ![USB drive tab](/doc/images/text_file.jpg) |## 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](doc/images/custom_pcb.jpg) ![USB drive tab](doc/images/custom_pcb_1.jpg)
This is a custom board which was made for connecting USB devices to ESP-BOX. All source files are saved in [this folder](doc/hardware/).
# Flash latest binary from browser