Stereopi power over gpio headers

StereoPi hardware discussion
Post Reply
bensailor
Posts: 17
Joined: Thu Mar 05, 2020 9:46 pm

Stereopi power over gpio headers

Post by bensailor »

Hi,

I plan to enclosure my Stereopi and need a button to turn it on and off. I will have no access to the power switch.

My first plan has been to use the onoff shim by pimoroni (https://shop.pimoroni.com/products/onoff-shim) which powers the stereopi through the gpio headers, with a button to shutdown and kill power. I have had some unreliability with it so far (failing to kill power, or scripts crashing). Is there anything I need to be aware of?

The second option was to use a button on GPIO headers to do a shutdown and start up, with power via jst connector, however this wont remove the power so the stereopi remains in idle, which isn't ideal.

Is there a third way that I haven't thought of?

Thanks for any suggestions

stereomaton
Posts: 215
Joined: Tue May 21, 2019 12:33 pm
Location: France

Re: Stereopi power over gpio headers

Post by stereomaton »

Hi. I looked at the link you gave, and it seems to do what you are looking for.
The install script is full of unrelated things so that I did not have the patience to read all. Thus I do not know how it starts, but I have seen that the code is actually hosted there: https://github.com/pimoroni/clean-shutdown

By the way, if you think that the way they do it is not correct for you, the README says that the button is connected to pin "BCM 17" (and the led too) and that the power signal is on "BCM 4" (probably shut down when set to output 0, but not full checked). So you could write your own code to use their hardware directly, to have a solution similar to your option 2, but with cut power.
Stereophotographer and hacker
Despite my quite active participation in the forum, I am not in the StereoPi team
StereoPi (v1) Standard Edition + CM3Lite module + a few cameras

Sharrio
Posts: 2
Joined: Thu Jan 21, 2021 1:52 pm

Re: Stereopi power over gpio headers

Post by Sharrio »

bensailor wrote:
Sun Jan 31, 2021 7:06 pm
The second option was to use a button on GPIO headers to do a shutdown and start up, with power via jst connector, however this wont remove the power so the stereopi remains in idle, which isn't ideal.
Hello!
Your ideas are good enough, on the whole. And why don't you flip the switch over to some sort of sensor that would short-circuit when needed. It might be complicated, but it's fashionable and works ;) The only thing I will point out is that I buy similar sensors from sourceme.com, they have connections with suppliers. And I've never had a problem with them, maybe the problem is with your vendor? At least that's an option too.
GL!)

Post Reply