Skip to content

mdeeg/uvc-gadget-subface

 
 

Repository files navigation

Subface Camera (Experimental UVC Gadget)

Subface Camera is an experimental UVC gadget based on the following uvc-gadget versions:

Hardware Requirements

  • Raspberry Pi or similar device with USB device controller (UDC)

Installation

Set dwc2 (DesignWare Core 2) as device tree overlay by adding the following line at the end of the file /boot/config.txt.

dtoverlay=dwc2

Load dwc2 and libcomposite during boot by adding the following line

modules-load=dwc2,libcomposite

after rootwait in the file /boot/cmdline.txt.

Build the UVC gadget via make:

git clone https://github.com/mdeeg/uvc-gadget-subface
cd uvc-gadget-subface
make

Usage

First, the USB gadget has to be configured via configfs, for example using one of the provided shell scripts.

sudo sh ./gadget-subface-rgb.sh

Then, the UVC gadget can be started with suitable parameters, for example

./uvc-gadget -i images/hello_robot_640x480.png -u /dev/video0

Disclaimer

Use at your own risk. Do not use without full consent of everyone involved. For educational purposes only.

About

Experimental uvc-gadget

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 79.5%
  • Shell 18.6%
  • Python 1.5%
  • Makefile 0.4%