# Set up USB webcam Source: [https://docs.qualcomm.com/doc/80-88500-5/topic/set_up_uvc_usb_camera.html](https://docs.qualcomm.com/doc/80-88500-5/topic/set_up_uvc_usb_camera.html) ## About this task The RB5 development kit supports USB-based cameras. This support is enabled as a USB/UVC gadget device. To set up the USB/UVC camera on the RB5 development kit, do the following: ## Procedure 1. Locate the USB port on the RB5 device and connect the USB-based camera. 2. If the USB/UVC camera connection is successful, the software creates two v4l2 device nodes. Confirm that additional `/dev/video*` is created by running the following commands before and after connecting the USB camera: adb rootCopy to clipboard adb shellCopy to clipboard adb shell ls -l /dev/video*Copy to clipboard 3. If the camera enumeration is successful, try starting the camera by running a program such as [Yavta](https://git.ideasonboard.org/yavta.git). 4. To build Yavta, run the following commands: cd pokyCopy to clipboard MACHINE=qrb5165-rb5 DISTRO=qti-distro-ubuntu-debug . qti-conf/set_bb_env.sh (choose target accordingly)Copy to clipboard bitbake yavtaCopy to clipboard 5. Push Yavta to the RB5 development kit. adb push yavta /usr/bin/Copy to clipboard To push the Yavta application manually to the `/sbin/` folder: adb push yavta /sbin/Copy to clipboard adb shell chmod 777 /sbin/yavtaCopy to clipboard 6. Connect the USB camera to the device with USB3.0 COM, and then run the following command to verify the device ID of the USB camera: adb shell ls -l /dev/video*Copy to clipboard 7. To verify if the Yavta application exists on the device, run the following command: adb shell ls -l /usr/bin/Copy to clipboard 8. To echo parameter definitions, run the following command: yavta –helpCopy to clipboard For example: -F, --file[=name] Read/write frames from/to disk -f, --format format Set the video format -c, --capture[=nframes] Capture frames -t, --time-per-frame num/denom Set the time per frameCopy to clipboard 9. Run the following command to preview and dump: yavta -f YUYV -s 1280x960 -t 1/30 -c18000 /dev/video2 -F/data/test.yuvCopy to clipboard 10. To verify if the camera launched successfully using the generated file inside `/data`, run the following command: ls -l /data/*.yuvCopy to clipboard 11. To retrieve the YUV file, run the following command: adb pull /data/test.yuvCopy to clipboard You can use the 7yuv player to display the YUV file on the host machine. **Parent Topic:** [Set up camera](https://docs.qualcomm.com/doc/80-88500-5/topic/set_up_camera.html) Last Published: Nov 25, 2025 [Previous Topic Set up camera](https://docs.qualcomm.com/bundle/publicresource/80-88500-5/topics/set_up_camera.md) [Next Topic Set up MIPI camera](https://docs.qualcomm.com/bundle/publicresource/80-88500-5/topics/set_up_mipi_camera.md)