3 ms·
Maybe I missed it in the instructions, but how does the system handle the shutdowns? Does he manually shut it off each time, before USB power is turned off, or
by blisterpeanuts 11y ago
Maybe I missed it in the instructions, but how does the system handle the shutdowns? Does he manually shut it off each time, before USB power is turned off, or does it just handle the power cut-off gracefully? I worry that the file system will get corrupted after a while.
There was some discussion about this on a pi board a while back; it seems that the only safe way to handle power-off is to (1) have a battery on the pi, and (2) catch the USB power-off signal and then shutdown gracefully.
At least, that's how the Chinese dash cams seem to work. They all have rudimentary batteries that last about one minute unplugged from the power outlet.
- caffinatedmonk 11y agoHe wrote about handling shutdowns in another post on his blog.[1] > For the automatic shutdown I have used a 12V programmable timer in combination with an optocoupler. > When the car is powered the the timer gets triggered and is starting the power supply for the Raspberry pi, Dashcam pi will get started and will do its job. When the car is turned off the optocoupler triggers the GPIO pin of the raspberry and starts a shutdown. After 15 seconds the timer is shutting down and the raspberry pi is powerless. 1: http://pidashcam.blogspot.com/2016/03/cheap-solution-for-automatic-shutdown.html http://pidashcam.blogspot.com/2016/03/cheap-solution-for-aut...