Custom datalogger circuit using SD card, running on switched automotive power.
It's cheerfully writing data to the card and the power quits (user turns key off, accidently pulls off power connector, engine stalls, car crashes, whatever - this could even be the preferred method for stopping it if it's robust). Up to three blocks worth of cached data need to be saved in the card (data block, FAT block, block w/ directory entry) before the system can die cleanly.
Easy solution if there's a connection to unswitched (battery) power too, but that makes using the device as a consumer plug-in impossible.
So, you need some short-term energy storage. Choices, as I see it:
1) Batteries. You'd need some circuitry to keep them from discharging after power-down. Expensive unless heavy (some cellphone-like thing vs AA's, for instance), requires user replacement occasionally.2) Super-capacitor. Enough energy storage to do the job for a reasonable volume and cost, but poor ESR - may not be good enough to hold the supply voltage up above minimum required by SD card.
3) Standard electrolytics. Good ESR, but physically big ones required to supply enough power over required shutdown (SD card block write x 3) time.Looking for guidance from anyone who's familiar with flash cards and powering (and unpowering!) devices that use them in automotive applications.
-- Silvar Beitel