Here is how I've put it together right now (using a lm2931 voltage regulator). I've put the diode and cap after the voltage regulator so that I can use just one voltage regulator (both to power the attiny and to signal that power is on).
Turns out that the reduction in juice in the cap (going from 12V to 5V) is mirrored by the drop in power consumption by not powering the lm2931 from the cap. So I still get 5-6sec run time after the power is cut.
On the diagram/board I've also added a voltage divider so I can monitor the battery and I'm considering adding some sort of reverse polarity protection, while still trying to keep the overall print as small as possible (In the board ignore the overlapping screw terminals, I intend to solder the wires directly onto the board and not actually use the screw terminals)
-Jacob
Turns out that the reduction in juice in the cap (going from 12V to 5V) is mirrored by the drop in power consumption by not powering the lm2931 from the cap. So I still get 5-6sec run time after the power is cut.
On the diagram/board I've also added a voltage divider so I can monitor the battery and I'm considering adding some sort of reverse polarity protection, while still trying to keep the overall print as small as possible (In the board ignore the overlapping screw terminals, I intend to solder the wires directly onto the board and not actually use the screw terminals)
-Jacob