PiSupply / Pi-Supply-Switch

Pi Supply Switch On/Off Switch for Raspberry Pi
https://www.pi-supply.com/product/pi-supply-raspberry-pi-power-switch/
Other
58 stars 17 forks source link

Start up using pins ( from another pi) #13

Closed bortek closed 5 years ago

bortek commented 5 years ago

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

tvoverbeek commented 5 years ago

Since SW1 can be used to both shut down (and power off) the Pi (long press) and start it up (short press) you should be able to use the unpopulated header J5 which is in parallel to SW1. Provide a short 3.3V pulse to start it up and a long pulse for shutting it down. For timing see the SW1 settings in the GUI/CLI. Check which pin of J5 has the constant 3.3V and connect the other one to an GPIO output of the other Pi.

bortek commented 5 years ago

Hmm that should probably work. Let me get the board first and test it.

Do I need any resistors between GPIO and pins or can I connect them directly ?

tvoverbeek commented 5 years ago

The PiJuice already has a 3k9 resistor between the J5 pin and the sw input. Hence you should be able to connect the GPIO output from the other pi to the J5 pin directly.

bortek commented 5 years ago

I was planning to use PiSwitch only, without using PiJuice. Is it possible? And if yes then how do I do about 3.9 resistor?

tvoverbeek commented 5 years ago

@bortek That is something different from what you wrote originally. I understood that you wanted to use the main Pi + Pijuice combination controlled by a second RPi. Do you mean main Pi + PiSwitch controlled from a second RPi? I do not know the PiSwitch details, but after a quick look at the schematic and docs I do not think its possible.

bortek commented 5 years ago

Sorry for making a confusion. Let me rephrase my question. Is it possible to control Pi-Supply-Switch connected to RPi from a second RPi using for example GPIOs to signal Pi-Supply-Switch to turn off and on?