2017-01-20, 10:23 AM
(2017-01-19, 09:11 AM)ottow Wrote:I got myself a uninterrupted power supply (UPS Pico, http://pimodules.com) which initiates a graceful shutdown on battery power when the main power supply is cut off for more than 60 sec. So I don't have to worry about two switches to push in the right order - important with the kids on the boat ...(2017-01-17, 07:12 PM)Sailoog Wrote:(2017-01-17, 12:43 PM)dreuf Wrote: Normally when I leave my boat I flip the mainswitch to be shure all my 12v consumers are off.
I dont know how good this is for the ras-pi to be shut off by power and not by SW.
How do you do it?
Or do you leave ras-pi running all the time? Would the powerconsumption be so low so its better to connect it past the mainswitch?
I also like to view my temperatures and so on from home on the boat, so this winter my pi is running on the 230v..
During the summer I use the boat minimum one time ever week.
Cutting power is the worst thing you can do to your SD card. It will be dead soon. You must shut it off by SW to be sure is not writing and you cut power.
Consumption with no screen and minimal connected devices is really low, you can left connected if your power bank allow this or set some battery reading system to auto-shutting off when power is low.
Hi,
I actually played with this last night so I figured I might share my solution.
In Openplotter, I set up a Switch defined for GPIO27 on pin 13, pull down (as I recall, might have been pull up).
I then set up an Action (shutdown), defined for this new switch.
When I connect pin 13 to pin 17 (3V3), the system performs a graceful shutdown, which takes about 10 seconds. After this, power can be safely cut to the PI.
I plan on connecting a simple push-button (momentary close) to 13/17 and install it next to my power switch for the PI to facilitate easy and safe shutdowns.
For reference, here is the GPIO pinout: https://i.stack.imgur.com/sVvsB.jpg
Cheers,
Otto
fair winds
Christian