3

According to the answer to Where is the USB2 OTG port on the RPi 4 Model B located? the Raspberry Pi 4B has a "hidden" OTG port in the USB-C power connector. I found at Very simple OTG on pi4 and at 4 ways to connect your Raspberry Pi 4 to the internet how to use the USB2 OTG port just with a simple USB cord. But this is very unstable because the USB port on the connected laptop cannot provide enough power (2.5A - 3.0A).

My first idea to use this port was to power the RasPi through the +pin and GND pin on the GPIO pins to use the OTG port. But I don't want to bypass the polyfuse on the USB-C power connector. I also do not have a POE (power over ethernet) HAT to power the pi this way. So I'm looking for an Y splitter cable for this port so I can power the RasPi with the power supply but also can use the OTG port.

Is it possible to make such an Y splitter cable? If so, how to make it? Or is there a better alternative? A simple drawing would be nice.

  • There is no polyfuse. The schematic shows 5V directly connected to the power management chip. – Milliways Jul 15 at 7:21
  • @Milliways Really? The power connector of the RPi 4B does not have a polyfuse anymore? It is completely unprotected now? – Ingo Jul 15 at 7:25
  • 1
    Well I haven't examined the board, but there is none shown on the schematic between VBUS and the transient protection diode (which is the only place it would make sense). Frankly, it never made much sense from an engineering point on any of the current series. – Milliways Jul 15 at 7:32
  • @Milliways Thank for the information :-) But polyfuse or not - it doesn't affect the question. – Ingo Jul 15 at 7:53
  • You can DIY your own polyfuse: raspberrypi.stackexchange.com/questions/98715/… – tlfong01 Jul 15 at 9:03
3

The problem here is that the RPi 4 USB-C connector is hard-wired as an upstream-facing port, which urges the host device on the other side to provide power. Yet if you power the RPi from an independent power supply (using an Y-cable or via the 5V pin), this supply will be connected in parallel to the host device's 5V output, which is problematic.

The simplest solution would be to make a cable which only conveys USB data signals (and ground) but not 5V. However, such a cable wouldn't behave in strict compliance with USB if plugged into an unpowered RPi, because signals on D+/D- lines may then have higher voltage levels that VBUS. Personally I'd add a diode feeding some voltage from host to the RPi (which, as you said, won't likely be enough to power the RPi anyway), just to cover this case. Here's how an Y-cable could look like:

schematic

simulate this circuit – Schematic created using CircuitLab

You still shouldn't plug the cable in the RPi while the PSU is off, because that would result in the overcurrent on the host USB port, but at least that won't damage the RPi. If you're careful about always plugging the PSU first, you could omit the diode (leaving VBUS line disconnected).

The power cable could also be connected to 5V/GND pins on the GPIO connector, which will correspond to the same circuit when the USB-C connector is plugged in.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.