Skip to content
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

Start up using pins ( from another pi) #18

Closed
bortek opened this issue Jan 10, 2019 · 13 comments
Closed

Start up using pins ( from another pi) #18

bortek opened this issue Jan 10, 2019 · 13 comments

Comments

@bortek
Copy link
Contributor

bortek commented Jan 10, 2019

I understand that OnOffShim can be used to cut the power off but is there a way to start up pi using Pins and not a buttom? My intention is to use another pay to control "main" pi both cutting power and starting it up (cold reset).

@Gadgetoid
Copy link
Member

There's no reason why this couldn't work- the + and - terminals for an external button on OnOff SHIM are merely the power button signal and Ground. Tie the - to Ground on your controlling Pi, and the + to a spare GPIO pin and pulling that pin LOW should have exactly the same result as a button press.

@bortek
Copy link
Contributor Author

bortek commented Jan 18, 2019

OK that sounds like it could work. Need to get the board and test it.

Do I need any resistors between spare GPIO and + or can I connect it directly ?

@Gadgetoid
Copy link
Member

Looks like the power button + terminal is pulled up to the +5v pin so a 2k Ohm resistor between the + line and Ground (ergo a 2k resistor across the + and - terminals of the button) should be added to protect your Pi's GPIO pin. You could use 1.8k in a pinch.

I might have to grab an OnOff SHIM and test this, though!

@bortek
Copy link
Contributor Author

bortek commented Jan 18, 2019

Would be good if you could test and add some pics :)

@Gadgetoid
Copy link
Member

I'm not having much luck getting it to work via the power button contacts- the latching switch used on the OnOff SHIM can be a little finickity. I suspect you'd need either a transistor or a relay, at which point the OnOff SHIM starts to become a little redundant.

For example the relays on Automation HAT are good for 2A so they could switch the power to another Pi directly and completely at will.

A Darlington Array should work, too.

My setup is frustratingly weird because my HDMI display keeps back-powering the Pi! grumble

@bortek
Copy link
Contributor Author

bortek commented Jan 20, 2019

Thanks for testing. Automation HAT would still be more expansive and bulky than OnOffShim and a transistor. I would love to lab with it but my local store is out of stock. Need to wait for some time before I can get it and will report the progress.

@bortek
Copy link
Contributor Author

bortek commented Jan 20, 2019

Is there any schematic available for this board ?

@Gadgetoid
Copy link
Member

We don't publish them (because we need to spend the time cleaning them up) but here's a screengrab:

onoff-shim-schematic

@bortek
Copy link
Contributor Author

bortek commented Jan 23, 2019

Thanks for the screen shot. I received my shim yesterday and will be labbi g in weekend!

@bortek
Copy link
Contributor Author

bortek commented Jan 26, 2019

An update. All is good. :) I have managed to get it working with shim just as I wanted it to work.

I can turn on and off Pi2 using Pi1. Done by sending high or low signal from Pi1 to Shim using GPIO4 which turns on or off Pi2. I have cross connected GND between Pi1, Pi2 and shim. 5V is connected to Pi2. I never needed to use the buttons.

@bortek
Copy link
Contributor Author

bortek commented Feb 1, 2019

For the benefit to the community I am updating the docs and will soon make a PR. I made a drawing of OnOffShim Fritzing and will submit it the parts DB shortly.

Closing this Issue now.

@bortek bortek closed this as completed Feb 1, 2019
@bortek bortek mentioned this issue Feb 1, 2019
@bortek
Copy link
Contributor Author

bortek commented Feb 14, 2019

Can @Gadgetoid or someone else take a look at this PR #20 ?

@yuergen
Copy link

yuergen commented Dec 16, 2020

I made a drawing of OnOffShim Fritzing and will submit it the parts DB shortly.

Do you have a link to the part? I cannot seem to find it. Thank you! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants