This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New to GPIO and RaspPi - how to implement an on/off button? #444
Comments
OK, as far as I read - sorry, I was to fast to post, I just connect Pin 5 and 6 with a button for shutdown? |
Hello and welcome, Yeah, with These Pins you could Shutdown, but the power goes to Pi in Standby Mode. That's why most users are using some ATX Board like OnOff Shim. And please Look at the Raspberry Forum, there are most questions answered: |
Thank you. Can you recommend a ATXBoard which is easy available in germany? |
Look in my Blog Post, there are different solution for the ATX Boards. But i also wait for YKRUD3 and OnOff Shim because of the prices... |
Thank you, So I connect the Shim with the button and with the power input of the PI? The power supply is my biggest problem at the moment because I want it be easy to turn of and on. Especially when using the power bank. |
Yeah, the OnOff Shim goes on different GPIOs, because you have to communicate with the OS. It is not just pressing on or off, maybe you want to idle Shutdown? And the Controller Shutdown means, that the OS will halt before the power cut. That's why you need different GPIOs. |
I used onoffshim and supercaps (and a small resistor - without one my powerbank would detect a short immediately when switched on) Powerbank------switch(4 pin on/off switch - 1 for the shim, the other one to cut the power)----supercaps---raspi The (my) Problem with the shim was - if I only power down the pi with the shim, my powerbank will go into standby after some time, and that causes some unwanted behaviour. wired like this, the pi has enough time to power down after it gets the signal from the shim due to the supercaps, And it will turn on again. |
@puked79 |
@splitti same "problem" as the one you mentioned in your (nice - i read it before I started my build) blog. A better and easier solution would be to find a suitable powerbank. Well - maybe not easier ;) edit - I see, you found one that works. |
Ok, ty for the Info. I just search for other Powerbanks. So, i am interested, if the problem is also there with my Bank an the Shim. |
Try it, I guess :/ |
Hi @puked79, could you add a link to the supercaps please? Do you have a photo of the wiring by chance? Many thanks |
@iwishitwassummer no photos of the wiring - it |
@puked79 thanks. Just that I get your wiring right: the powerbank is plugged with USB into the shim, the OnOff shim is placed at the top of the GPIO pins (pin 1 to 12). You added the supercaps one after the other on raspi pins 1,4,6 and 12? |
@iwishitwassummer no - that won the shim triggers a script that shuts down the raspi and afterwards it cuts the power. first: like this: Powerbank---switch circuit 1-------small resistor---supercaps------XL6009 DC-DC boost module-----shim at switch circuit 2------raspi I connected the shim via jumper cable - you only need 4 pins connected - you`ll find the used pins on their homepage in the comments (or via google i guess) |
supercaps have to be in row! |
I am using ATXRaspi instead of on / off shim. Here are my experience with this product: I had the same problem that my powerbank went in standby and I wasn't able to wake the powerbank by using the ATXRaspi. |
Hello, do you experience a real power drop by that? And is there a way to get such a stick? I don't have the equipment to build it myself (or is there a blueprint for - ehr - Lochplatinen (?!?)? Edit: The powerbank / powersupply is the last part I need to solve before getting all together for a casing. |
Hi, |
@derOger My Powerbottun is connected to the ATXRaspi board. When I press the button longer then 2s the ATXRaspi will shutdown the Pi and if this is finised the ATXRaspi board disconnect the power supply to the pi. |
@SpookyFishes Thank you. I fear that I will run into the same problems (Powerbank goes to sleep) so I want to bypass this problem early on. So I search for a prooved solution I can use. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hello, can you help me with that? I want to build a Jukebox myself and think about the hardware needed.
I would prefer to use a small screen for informations or at least some 8-segment-displays for track number if possible.
Also since I want to use a powerbank I wonder how to implement a power button. For shutdown a simple halt would be enough but I think since there are speakers and other involved maybe this isn't enough. So there are cables which cut of the power via power switch so maybe using this between bank and RaspPi would be an option - but would that harm the OS when used often since they just cut of the power to the Pi while running.
How do you solved this?
Regards and sorry for posting on issues - I don't know where to ask elsewhere ...
The text was updated successfully, but these errors were encountered: