0

Problem Description

I'm working on a project that requires a Raspberry Pi 5 to function as a USB OTG/gadget device (specifically as a UVC device) while being powered by an external power supply. I previously had this working with a Raspberry Pi 4, but I'm encountering issues getting it to work with the Pi 5.

My Setup

  1. Hardware:

    • Raspberry Pi 5
    • External 5V 10A bench power supply
    • USB-C breakout board (female port with all 24 pads including VBUS, GND, D+, D-, CC1, CC2, etc.)
    • Standard USB cable for data connection
  2. Connections:

    • CC1: Connected to ground via 5.1kΩ resistor
    • CC2: Connected to ground via 5.1kΩ resistor
    • VBUS & GND from breakout board: Connected to positive and ground terminals of power supply
    • D+ & D- and GND: Connected to a 4-pin USB cable (with VBUS not connected on the cable)
  3. Goal:

    • Have the Pi 5 operate in OTG/gadget mode as a UVC device
    • Power the Pi from an external power supply instead of the USB host
    • Eventually integrate with a battery charger with power path management and C-type plug detection

Issues

  1. Main problem: The Pi 5 is not being detected as a UVC device by the host computer
  2. Important note: The exact same setup works correctly with a Raspberry Pi 4

What I've Tried

  1. Added 5.1kΩ pulldown resistors on CC1 and CC2 to ground (standard UFP/device mode signaling)
  2. Confirmed power supply is adequate (5V 10A)
  3. Checked that data lines (D+/D-) are properly connected
  4. Verified the setup works on Raspberry Pi 4 with identical connections

Questions

  1. Does the Raspberry Pi 5 require different configuration for USB OTG/gadget mode compared to the Pi 4?
  2. Is there a specific software configuration needed for the Pi 5 to enable proper UVC gadget functionality?
  3. Are there different USB-C CC pin requirements for the Pi 5 vs Pi 4 when operating in device mode?
  4. How can I verify if the Pi 5 is properly entering gadget mode through system logs?

Any help or guidance would be greatly appreciated. I need this setup for a project where the Pi needs to operate both as a USB device connected to a computer and as a standalone unit with external power.

System Information

  • Raspberry Pi 5
  • Raspberry Pi OS (raspbian latest lts version)
TIdo
  • 1

0 Answers0