T
tehtehteh
I have a raspberry pi running in my car with a cheap buck converter providing 5v from the ignition, I would like to do something more advanced with the shut-down but I can't think up anything ideal in my head, my knowledge is too limited, I was hoping someone here could help
currently power is cut when the engine is switched off, to delay this I would run the pi off the battery instead, but I don't want it to be continuously running
I have picaxe 8 and 14 programming boards, my first thought would be to have a picaxe running off the battery controlling a relay between the battery and the pi's buck converter. I would have the ignition on one of the inputs, the picaxe will switch on the power relay when it gets the ignition signal, then when the car is turned off the ignition signal will end, the picaxe will send a signal to the pi to commence shutdown and then the pi will send a signal back to the picaxe when it's ready and that will turn off the relay again
the problem with this is it will always be drawing a bit of battery power, also I can't get away with a simple voltage divider to turn the 12v into 5v for the picaxe because power fluctuates too much on startup, I don't want the buck converter running the whole time either so putting this before the relay is out of the question
does anyone here know a good solution?
currently power is cut when the engine is switched off, to delay this I would run the pi off the battery instead, but I don't want it to be continuously running
I have picaxe 8 and 14 programming boards, my first thought would be to have a picaxe running off the battery controlling a relay between the battery and the pi's buck converter. I would have the ignition on one of the inputs, the picaxe will switch on the power relay when it gets the ignition signal, then when the car is turned off the ignition signal will end, the picaxe will send a signal to the pi to commence shutdown and then the pi will send a signal back to the picaxe when it's ready and that will turn off the relay again
the problem with this is it will always be drawing a bit of battery power, also I can't get away with a simple voltage divider to turn the 12v into 5v for the picaxe because power fluctuates too much on startup, I don't want the buck converter running the whole time either so putting this before the relay is out of the question
does anyone here know a good solution?