Hello,
I am trying to prototype a solution that would eliminate kfr on my motor bike. What i intend to do is to read out the lambda sensor value, do some math, and send out a modified signal to the ecu.
For this prototyping, i want to log all sensor data for analysys afterwards. My plan is to log all kinds of values to the sd card in a file. So far this is all pretty standard.
Here comes the question(s):
-What happens when i cut of the power to the arduino? Specifically what happens to the sd card, and the file that is on it?
-Since i'll be writing multiple times a second to the sd card, I am guessing i will cut of power to the arduino while writing to the sd card.
-What happens to the file?
-Can i start appending without any issues, when i start the arduino again?
-will there be any kind of fat corruption to take care of?
-are there best practices? Such as never write to an existing file, but always start a new file when powering up?
-Are there any special considerations that i should be aware of?
-how stable is the arduino combined with the datalogger shield and the lcd shield when used in an electro-magnetic dirty environment such as an engine on a car or bike?
-Do i need to build special filters on the power supply,
-do i need a metal casing of some sort to protect this setup?
I would like to hear about the theoretical side, but more so if you have real world experiences in any of the above mentioned areas.
Thanks
Frank