RoninDusette
Posts: 10
Joined: Tue Mar 10, 2020 1:04 am

oddly specific question about powering pi4 without switching wires

Thu May 07, 2020 4:37 am

Ooo k. SO this should be relatively straightforward. This is what I have:

Raspberry pi 4 (4GB model)
4.5 inch touch screen (attached via GPIO, video coming from a small HDMI to micro HDMI jumper)
Macchina M2 (interface board and stock m2 cpu board)

Now, pin 16 coming from an OBD2 port is 12v, the macchina can handle it. The macchina also has a 5v output.

My Pi 4 requires 5v to run, and from what I have been reading, the pins for power and ground (4 and 6, respectively. Please correct me if I am wrong.) are connected to the same rail as the USB-C port it uses for power.

It stands to reason that I can power the Pi 4 via the 5v output on the macchina, which itself is powered by by the 12v power coming from the OBD2 port. I know it can work like this, and the 5v coming out of the Macchina is stable (well, as long as the car battery itself is), and has failsafes.

If I am wrong in the above conclusion, please correct me...

That being said, I also have a touchscreen sitting on the GPIO drawing power, but also taking up the pins I would use to pass the 5v power from the obd2 port to the macchina m2. Now, if I say tap the 5v pin and power the pie from the 5v output and leave it that way, I should be able to power up the device with no issues, correct? Essentially both the macchina m2 and Pi 4 with the screen will go in the same case (work in progress), so I will likely tap the underside of the one of the boards or make a reaallllly short header to go between the Pi 4 GPIO and the touchscreen's connection to the gpio, so that the Maccina, when it's plugged in to a car, will power the pi and screen, but still leave the stock power usb-c connection functional for power when I have it sitting on the bench and am developing/testing with it.

Lol. I know it sounds convoluted, but is my thinking above correct? I cannot find anything that says it will not work, and the numbers seem to match. Just don't want to fry the thing my first time hooking it up. It really shouldn't though, if those GPIO pins are on the same path as the usb-c power.... humor me. :) Thanks for your help in advance.

W. H. Heydt
Posts: 12648
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: oddly specific question about powering pi4 without switching wires

Thu May 07, 2020 4:42 am

How much current can the 5v pins supply? A Pi4B may need up to 3A.

RoninDusette
Posts: 10
Joined: Tue Mar 10, 2020 1:04 am

Re: oddly specific question about powering pi4 without switching wires

Thu May 07, 2020 4:48 am

I am not sure of the exact number, but I mean, it's coming from a 12v source (The m2 is made specifically for cars), and I know that using the 12v power from the obd2 port only, the macchina's GPIO can power the board itself, the CPU board (basically an arduino due), a pocketbeagle, and wifi and bluetooth cards at the same time, so I am fairly certain it can give the Pi what it wants in terms of current. Especially with the amount of outputs on the board, and the power coming from the car (which is stable, and has plenty of constant, reliable power, as long as the car itself is working fine, of course).

RoninDusette
Posts: 10
Joined: Tue Mar 10, 2020 1:04 am

Re: oddly specific question about powering pi4 without switching wires

Thu May 07, 2020 4:52 am

I just checked, and yes; it supplies right around 3 amps from that, so it should be good on that part.

Return to “General discussion”