Posts: 2
Threads: 1
Joined: Jun 2026
Reputation:
0
Hi all,
Sorry for this very simple question I guess...
I just setup my new macarthur hat with power module, setting up also the GPIOs as mentionned in the doc for safe shut down
I powered my pi from the hat, and added a +12V SW connection. However, when I disconnect the 12V SW, the pi just shuts down brutally, not triggering a proper shutdown procedure.
Looks like the powermodule / hat is not configured correctly, but I don't know where to start the investigations
Many thanks for your advices !
Xavier
Posts: 604
Threads: 68
Joined: Nov 2016
Reputation:
23
In order to do a clean shutdown after a power loss, you need some sort of storage to keep the PI working while the shutdown is in progress. There are a number of supercapacitor and even some lithium based systems that are used for this. I use a Sailor Hat from Hatlabs, which has 20F of supercapacitors and does and automatic shutdown in case of power loss.
MacArthur Hat's optional buck converter will provide the appropriate 5.1V to your RPI from a 12V supply, but it doesn't provide any power storage. Disconnecting 12V from the hat shuts down the 5v supply to the RPI immediately.
Posts: 179
Threads: 2
Joined: Mar 2023
Reputation:
16
2026-06-30, 12:52 AM
(This post was last modified: 2026-06-30, 12:54 AM by Adrian.)
(2026-06-29, 09:24 PM)xavgui Wrote: Hi all,
Sorry for this very simple question I guess...
I just setup my new macarthur hat with power module, setting up also the GPIOs as mentionned in the doc for safe shut down
I powered my pi from the hat, and added a +12V SW connection. However, when I disconnect the 12V SW, the pi just shuts down brutally, not triggering a proper shutdown procedure.
Looks like the powermodule / hat is not configured correctly, but I don't know where to start the investigations
Many thanks for your advices !
Xavier
That sounds like the POWER OFF pin isn't asserted high by the Pi, which means disconnecting 12V SW will immediatly disable the power module. If that was on your first try: It may be necessary to reboot before the new GPIO configuration is applied. Does shutdown still not work after the Pi restarted?
If it doesn't work, can you share a screenshot of your GPIO settings?
(2026-06-29, 09:43 PM)abarrow Wrote: In order to do a clean shutdown after a power loss, you need some sort of storage to keep the PI working while the shutdown is in progress. There are a number of supercapacitor and even some lithium based systems that are used for this. I use a Sailor Hat from Hatlabs, which has 20F of supercapacitors and does and automatic shutdown in case of power loss.
MacArthur Hat's optional buck converter will provide the appropriate 5.1V to your RPI from a 12V supply, but it doesn't provide any power storage. Disconnecting 12V from the hat shuts down the 5v supply to the RPI immediately.
The MacArthur HAT keeps 12V always connected, but lets the Pi control when the 5V is turned off. This feature is not for handling unexpected power loss.
Posts: 3,206
Threads: 66
Joined: Mar 2016
Reputation:
310
(2026-06-29, 09:24 PM)xavgui Wrote: Hi all,
Sorry for this very simple question I guess...
I just setup my new macarthur hat with power module, setting up also the GPIOs as mentionned in the doc for safe shut down
I powered my pi from the hat, and added a +12V SW connection. However, when I disconnect the 12V SW, the pi just shuts down brutally, not triggering a proper shutdown procedure.
Looks like the powermodule / hat is not configured correctly, but I don't know where to start the investigations
Many thanks for your advices !
Xavier
You need to connect 12V, GND and 12V SW:
Posts: 3,206
Threads: 66
Joined: Mar 2016
Reputation:
310
(2026-06-29, 09:43 PM)abarrow Wrote: In order to do a clean shutdown after a power loss, you need some sort of storage to keep the PI working while the shutdown is in progress. There are a number of supercapacitor and even some lithium based systems that are used for this. I use a Sailor Hat from Hatlabs, which has 20F of supercapacitors and does and automatic shutdown in case of power loss.
MacArthur Hat's optional buck converter will provide the appropriate 5.1V to your RPI from a 12V supply, but it doesn't provide any power storage. Disconnecting 12V from the hat shuts down the 5v supply to the RPI immediately.
This is not correct. The MacArthur HAT keeps the power using the boat's battery during the shutdown. After that the buck converter cuts the power consumption and stays in standby mode.
the problem with supercapacitors is that sometimes you need more time to shutdown than the capacitor can serve.
Posts: 2
Threads: 1
Joined: Jun 2026
Reputation:
0
Thanks all for your replies,
Adrian you helped me getting on track, actually I think the issue was the following
When I did the GPIO setup, my pi was running on a ssd drive, but I had a microSD card plugged in, with copy of my system image on it
I checked multiple times after reboot, the GPIO settings looked all ok...
But today, I started my pi without the microSD in the slot, and here the GPIO setup was missing
So I did the setup again, reboot, and tried the safe shutdown by disconnecting only the 12V SW ; all good now
Do you think it is an option that the first settings were saved on the mircoSD instead of the SSD ? will never have both connected now...
cheers
Posts: 604
Threads: 68
Joined: Nov 2016
Reputation:
23
Sorry, I misunderstood what he was doing. I assumed he was just turning off the 12v supply to the Hat.
Mia culpa!
|