Page 1 of 1

Stereopi power over gpio headers

Posted: Sun Jan 31, 2021 7:06 pm
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

Re: Stereopi power over gpio headers

Posted: Sun Feb 28, 2021 8:46 pm
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.

Re: Stereopi power over gpio headers

Posted: Tue Mar 16, 2021 2:03 pm
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!)