OpenMarine

Full Version: Power off the pi.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Another way to shut down the Pi without use of hardware is to install Node-Red and add a button to the dashboard that triggers a system call for "shutdown now" so you can safely power off remotely using simply your cellphone web browser over the boat/Pi wifi AP. Once the dashboard webpage becomes unavailable (Pi powered off) you are free to kill the main power switch
(2017-03-24, 02:31 PM)atsakir Wrote: [ -> ]Another way to shut down the Pi without use of hardware is to install Node-Red and add a button to the dashboard that triggers a system call for "shutdown now" so you can safely power off remotely using simply your cellphone web browser over the boat/Pi wifi AP. Once the dashboard webpage becomes unavailable (Pi powered off) you are free to kill the main power switch
Yep, works fine. See here..
http://forum.openmarine.net/showthread.p...74#pid1274

Sent from my SGP511 using Tapatalk
It would seem that if we have an adc in the system, we could also program an action or a node red script to shut down the pi when the house battery volts are below a threshold.

If we find a simple USB power bank that offers pass through charging and has enough power for the Pi 3, it would seem that we are there:

https://www.amazon.com/TeckNet-Universal...79PQYA9VM0

The input voltage is only 2A though. Not sure what that would mean in practice.  I do like hardware that can be pressed into other uses instead of being only useful with the pi.

Some people have said that the trick is to use a very short cable between the power bank and the Pi 3. I think this may be the solution to my struggles powering the Pi 3 on my existing PSU.


This is pretty clever, using an ethernet switch to trigger shutdown:
http://raspi-ups.appspot.com/en/index.jsp


Has anyone tried this board?

http://www.banggood.com/Geekworm-UPS-HAT...mds=search

http://www.raspberrypiwiki.com/index.php...via_driver
This looks promising.

On the rather "low-tec" side, I found and implemented this one as well :

https://www.raspberrypi.org/forums/viewt...28#p969579

-> shutdown is triggered via udev when a special USB-Stick is inserted. Works on headless installations even without keyboard

fair winds
Christian
(2017-03-24, 06:40 PM)Saqqara Wrote: [ -> ]Has anyone tried this board?

http://www.banggood.com/Geekworm-UPS-HAT...mds=search

http://www.raspberrypiwiki.com/index.php...via_driver

I bought one, but haven't tried it yet. The implementation seems relatively straightforward, and I like the idea that the PI will run for a decent amount of time before it detects a low battery and initiates a shutdown. 

I'll post when I get time to put it all together. The hat comes with pointers to python scripts that do the shutdown. At the moment, I'm trying to come up with a good enclosure for everything, as the UPS won't fit inside of the PI cases that are normally used.

EDIT: Well, I guess you'll have to wait a bit longer for that review. I plugged in the unit, it seemed to working correctly and my PI started up, then the PI went dark. I fiddled with it all for a few minutes, looked underneath and realized that my nice cooling fins stuck to the top of the PI processor were touching the circuit board for the UPS. Oops. I must have shorted something out. It appears that my UPS is still charging the battery but not supplying power to my PI. Lesson learned. I'll order another board and start again!
Just saw this: https://www.tindie.com/products/xorbit/lifepo4weredpi3/

I like it - it uses easily replaceable batteries, and rather than making everything higher, it just makes it wider. It also looks a little more robust than the hats from Bang good. It will run the RPI for 9 hours on battery alone.

Looks like an order is in my future.
(2017-01-19, 09:11 AM)ottow Wrote: [ -> ]
(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


Are the 3.3v and 5V pins powered when the pi is powered but the pi is shut down?  I want to use a illuminated momentary switch that will tell me the pi is booted up or shutdown

Thanks
[quote pid='13376' dateline='1587099870']

Are the 3.3v and 5V pins powered when the pi is powered but the pi is shut down?  I want to use a illuminated momentary switch that will tell me the pi is booted up or shutdown


[/quote]

Yes, it appears that when the PI is halted, the 3.3v and 5v supplies continue to supply power to the appropriate pins. I have small fans connected to my 3.3v supply, and they continue to work after a shutdown command is given. I put a GPIO command in rc.local to turn on an indicator light when the PI up, and another GPIO command in ... (darn it, I can't remember where I put it!) to shut off the indicator when the PI is shut down.

I also added a power button that shuts the PI down cleanly, and also brings it up from halt when shorted to ground. Works great.
Pages: 1 2