Since the Pi doesn't have an RTC, it needs to be powered on to maintain the correct time.thomasbrentnall wrote:Hello all, I am working on a little project using a rpi.
I plan to have my pi connected to a car stereo harness (like this http://www.nexxia.co.uk/pics/CT20FD10.jpg). There is three wires used for power in this harness, Ground (black), 12v+ (red), and Ignition. I realise that these will all need to be stepped down to 5 volts. Any way, what I want to do is to have the ground and 12+ constantly connected so the device does not lose time settings etc, however I only want the device to physically switch on when the ignition is turned on, and then power off when the ignition is switched off.
However I want the device to power off correctly instead of switching off instantly, like this:
1) Ignition is switched off and power is cut from the ignition cable
2) 'sudo shutdown now' command is issued
3) Device safely powers off using power from the ground and 12v+
Is this possible? I understand that the ignition will have to be connected to a GPIO header. Thank you in advance
Note to admin; sorry if this is in the wrong section of the forum, I could not find an exact place to post this
Users browsing this forum: No registered users and 23 guests