Repeater Power failure shutdown

General support for the Pi-Star System
Post Reply
KD4EG
Posts: 17
Joined: Thu Apr 12, 2018 11:42 am

Repeater Power failure shutdown

Post by KD4EG » Sat May 23, 2020 1:12 am

Greetings folks!

I am looking for a method to safety power down Raspberry Pi and Pi-Star on my repeater in the event of a power intruption. A shutdown board can be bought form this site https://technobygeorge.com However, I am not sure how to add code to be able to use the feature.

Anyone else have a solution?

Thanks
Ted

KE7FNS
Posts: 685
Joined: Wed Apr 17, 2019 11:11 pm

Re: Repeater Power failure shutdown

Post by KE7FNS » Sat May 23, 2020 2:29 am

KD4EG wrote:
Sat May 23, 2020 1:12 am
A shutdown board can be bought form this site https://technobygeorge.com However, I am not sure how to add code to be able to use the feature.
In order to get that specific device to work with pi-star you would have to identify, locate and strip out all of the scripts it uses (the support website says they are preloaded on the hamvoip image) and then there is no guarantee that it will even work because hamvoip uses a completely different operating system (Archlinux vs Raspbian). It might be easy to covert the scripts and it might not, its hard to say without physically seeing what the script is doing.

I would just search for a normal RPi UPS hat that has the features you want, which you haven't specified. 12V battery backup or 1 cell lithium backup etc. There are plenty of them out there some DIY some comercial.
All views, comments, posts and opinions shared are entirely my own.

KD4EG
Posts: 17
Joined: Thu Apr 12, 2018 11:42 am

Re: Repeater Power failure shutdown

Post by KD4EG » Sat May 23, 2020 10:33 am

Thanks for responding. Will look around for RPi UPS options.

User avatar
MW0MWZ
Site Admin
Posts: 1067
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: Repeater Power failure shutdown

Post by MW0MWZ » Sat May 23, 2020 3:46 pm

In essence, this isn't too hard, you need a method to detect the power failure, and then depending on how you do that, either use some of the Pi's GPIO pins to tell it that the power is out, or ssh to it and shut it down, or connect to the web server and post the form to turn it off... so options for shutdown, there are many, these are not the issues that you need to be too worried about honestly - the harder part is turning off the power supply to the Pi, and then turning it back on when the power is back...(since the Pi has no on button either).

Work out your options for actually monitoring the power, and go from there.
Andy

73 de MW0MWZ
http://pistar.uk

Post Reply