Posts: 2
Joined: Wed May 23, 2018 1:53 pm

Doubt about Safe Shutdown

Sun Aug 09, 2020 3:21 pm

Hello guys,

I'm about to use a raspberry on my car, when the car turns on the raspberry should turns on to and turns off when the car turns off so... what is the best and safest way to do this ?

Posts: 4833
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Doubt about Safe Shutdown

Sun Aug 09, 2020 3:35 pm

include this IC to your possible solution:
DS1232N.jpg (17.39 KiB) Viewed 228 times
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

User avatar
Posts: 4259
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Doubt about Safe Shutdown

Sun Aug 09, 2020 3:46 pm

If you need to write to the Pi's storage some sort of UPS is the way to go. IF you don't need to write mount everything, including the root partition read only - there are options in raspi-config to do this with an overlay.

For the read only route, power your pi from any accessory live suupply via a suitable buck converter. It'l boot when you turn the key to the accessory position and power will be cut when you turn the car off. One caveat: most cars will briefly cut the accessory power when the starter is used so expect a reboot at that point.
Arguing with strangers on the internet since 1993.

All advice given is based on my experience. it worked for me, it may not work for you.
All GPIO pin numbers are BCM numbers.

Return to “General discussion”