2

I'm trying to power my new Raspberry Pi 4 via an external power supply, that only has positive and negative leads coming out of it. So I can set that to 5 volts, but then I need to connect it to the Pi somehow.

The new Raspberry Pi 4 is using USB C. I have a cut USB C 3.1 cable here:

USB-C cut cable

I'm not sure which of the wires is the power in the cable. I thought it would be the red one that doesn't have shielding around it, but when I plugged the other end into my USB C wall wart, I wasn't getting 5 volts on that line when I measured.

So, which wire is power, that I should attach to my variable power supply to get 5 volts to my Pi? And if it is supposed to be the red one, why wasn't I getting power before? Is the USB C standard expecting some sort of handshake to occur before it supplies power? I know the cable was good before I cut it, because I was using it to power the raspberry pi from my USB C wall wart previously.

Or alternatively, is there a better way to accomplish what I'm trying to do? Any help would be appreciated, thank you.

Edit: Ended up just supplying power through the GPIO header. I never got it working with the spliced USB-C cable, and the breakout board I got did not allow enough current for the Pi to run (I should have checked that before ordering it).

  • google "usb-c cable wiring" and hope your particular cable colour scheme shows up – Jaromanda X Jul 17 at 0:04
  • I suspect you need to also provide some "smarts" over the power negotiation wire and/or configuration data channels to coax 5v from your wall wart, this is part of the "USB Power Delivery 2.0 specification". There's some sort of guide on pinoutguide.com to the connector. – Roger Jones Aug 1 at 11:03
1

I would strongly suggest you DON'T use a variable power supply!

If you do want to take the risk, and use an external supply you can power the Pi through the +5V and Gnd pins on the header; that way you can use suitable sized cables.

My approach is to attach a USB2 socket to an external (non-variable) power supply and use an appropriate USB power cable.

Cutting a USB-C cable is vandalism, but judging from your picture the wires in that cable are inadequate.

  • Unfortunately the power supply is non-negotiable, for what I'm trying to do. I didn't want to go into all the details, because it would make the post unnecessarily long. Going through GPIO might work, but I saw on some other post that it wasn't recommended, because then you're bypassing some protections on the board. And since my power supply might have regulation issues, so I was hoping it wouldn't come to that. I'll try that if I get more desperate though. – Matt Lyons Jul 17 at 19:32
  • 1
    The Pi4 has no “protection” – Milliways Jul 17 at 22:07
3

I would honestly suggest getting a USB-C breakout board so you can test which wires are your power wires. You can get one like this one, plug the usb c on one side, while providing power to the breakout board.

On the other side of the cable (where you spliced it or cut it), if you have a multimeter, you can check for GND and +V, and thus that is where you could apply the power supply voltage.

A small advice, once you’ve figured out the pins you need to use to connect your benchtop or other powersupply, make sure you have the right amount of current, 500mA will probably not suit most uses on the Pi... I would be safe to put 2000mA.. My current power supply is 4000mA..

Let us know if you get it resolved.https://www.sparkfun.com/products/15100

1

I was able to do this with a USBC -> USB2 cable. I cut the USB2 end, which has red, black, green and white wires. Then I just connected the red and black to a battery.

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.