2022-01-01, 09:21 AM
threadjacking for a related issue
I have openplotter running on a RPi4B. Power supply is 12v>UPS>12v:5vstep-down>RPi
I want to shut the RPi power off completely following a shut down to save power (I don't have a lot of battery capacity or charging capacity so every bit counts).
I have this switch unit. It will sit electrically between the UPS and the 12v:5v converters ie 12v>UPS>Power Switch>12v:5vstep-down>RPi
It can switch on and off triggered by a pulse of >1v. On is easy - a simple momentary switch is all I need there So my hardware solution exists, I now need to implement the software bit so that the system automatically shuts off the power after a shut-down command.
I understand I can use a GPIO pin to provide the "off" trigger by making a GPIO pin go high on a shut down command. But I am clueless as to how to do this.
Helpful suggestions that assume I am a total beginner on RPi and anything to do with coding would be really appreciated!
I have openplotter running on a RPi4B. Power supply is 12v>UPS>12v:5vstep-down>RPi
I want to shut the RPi power off completely following a shut down to save power (I don't have a lot of battery capacity or charging capacity so every bit counts).
I have this switch unit. It will sit electrically between the UPS and the 12v:5v converters ie 12v>UPS>Power Switch>12v:5vstep-down>RPi
It can switch on and off triggered by a pulse of >1v. On is easy - a simple momentary switch is all I need there So my hardware solution exists, I now need to implement the software bit so that the system automatically shuts off the power after a shut-down command.
I understand I can use a GPIO pin to provide the "off" trigger by making a GPIO pin go high on a shut down command. But I am clueless as to how to do this.
Helpful suggestions that assume I am a total beginner on RPi and anything to do with coding would be really appreciated!