5

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.

Ingo
  • 40,606
  • 15
  • 76
  • 189
  • There is no polyfuse. The schematic shows 5V directly connected to the power management chip. – Milliways Jul 15 '19 at 07:21
  • @Milliways Really? The power connector of the RPi 4B does not have a polyfuse anymore? It is completely unprotected now? – Ingo Jul 15 '19 at 07: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 '19 at 07:32
  • @Milliways Thank for the information :-) But polyfuse or not - it doesn't affect the question. – Ingo Jul 15 '19 at 07:53
  • You can DIY your own polyfuse: https://raspberrypi.stackexchange.com/questions/98715/connecting-pi-zero-w-to-adafruit-powerboost-1000-through-extension-header-or-usb – tlfong01 Jul 15 '19 at 09:03
  • @tlfong01 polyfuse is not the issue. – Ingo Jul 15 '19 at 14:29
  • @Ingo, Well, then you can buy 2 USB-C sockets and 1 plug, and solder them together: https://raspberrypi.stackexchange.com/questions/100731/can-i-power-raspberry-pi-4-with-variable-power-supply – tlfong01 Jul 17 '19 at 04:29

2 Answers2

4

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.

Dmitry Grigoryev
  • 26,688
  • 4
  • 44
  • 133
  • If you add a diode to the connection between the PSU and the `red` wire, you will form a "wired OR" connection, and then no worries about back-feeding PSU from HOST or RPi. Also, many diodes (Si) have a 0.7 Volt drop which may be enough to "upset" the RPi. A Schottky diode will reduce this to ~0.3 V. – Seamus Apr 19 '20 at 01:07
  • remove the diode at all, PC supply is not enough to power the pi anyway, just plug the PI power supply BEFORE plugging it to the PC – Phil May 21 '20 at 16:50
  • made this, https://i.imgur.com/XaCSjMM.png it does not work so far... – Phil May 21 '20 at 18:53
  • @fdsfdsfdsfds: Did you ever get this cable to work as advertised? If not, what does "not work" mean exactly - have you taken measurements? – Seamus Mar 13 '21 at 07:00
1

Seamus is right mentioning the significant voltage drop across that diode. If you are concerned regarding D+ or D- getting a higher voltage than VBUS (which might indeed lead to a destructive effect called "latch-up"), I would recommend to use Schottky diodes (like Seamus suggested), but connect them like shown in this crude schematic:

schematic

simulate this circuit – Schematic created using CircuitLab

Midi
  • 19
  • 1
  • The voltage drop is only significant if there's current through the diode. In my answer, the diode is normally closed, it only opens if you forget to power the Pi properly. – Dmitry Grigoryev Mar 10 '21 at 07:59
  • 1
    Also, I bet you (and the person who upvoted your answer) didn't actually try this schematic, did you? Schottky diodes on USB data lines will exceed the allowed line capacitance by an order of magnitude. – Dmitry Grigoryev Mar 10 '21 at 09:35