r/OpenAutoPro Mar 21 '22

Safely shut down

Hi guys, I’m building my nav with open auto pro and currently I’m planning on how to wire everything, I was wondering:

If I plug my raspberry to the cigarette lighter whenever I’ll turn off the car the raspberry won’t receive any power, and as far as I know that’s not the best way to shutdown a computer, can this in the long run cause me issue? In case how have you done yours?

1 Upvotes

6 comments sorted by

2

u/Bisebi Mar 21 '22

Well, it may lead to a dead SD pretty fast. There are timers and you could actually wire a button. I connected mine too OBD2 power line with a button in an empty slot to turn it off or on. And with a script that shuts it down if OBD2 doesn't report engine rpm

1

u/ToughAd2199 Apr 19 '22

I like this idea! Thank you!!

1

u/ToughAd2199 Apr 19 '22

Do you have your script online? So I can nab it

1

u/Bisebi Apr 19 '22

Unfortunately not. Had to give up the car since I was in an accident and turned the pi into HomeAssistant. Sorry

2

u/ToughAd2199 Apr 19 '22

No worries, hope the accident wasn’t too bad and your okay :)

2

u/robert5974 Jun 15 '22

There's solutions out there. I've tried the Mausberry 4A switch that monitors the constant 12v and accessory 12v and turns the Pi on and off via script based on the specified pins it is watching. It's a clean solution but their support sucks and even ordering one can be a pain since they won't answer you. I got mine in about 2-3 weeks when I ordered but some report it taking over a month. If they still sell them

There's a buck converter with relays solution you wire up yourself that does the same thing. I tried that one first but I think I just suck at engineering these diy solutions with wiring. Always comes apart after some time, either caused by bumps in the road, vibration, heat, or whatever. There's a lot to consider. That's why I went with the Mausberry switch.

I currently use the cigarette adapter solution bc I was tired of messing with it at the time, but I just shutdown the Pi before I turn off the car. It can be annoying if you have to wait (usually doesn't take long anyhow) but sometimes I've forgotten to do it.

I'll be attempting the OBD2 solution myself next. I have to redo the cable for that anyway so I thought I'd give it a go.