Hi all, first time poster so please be gentle! ;)
I'm currently designing my first Arduino project; it will be a combination dashboard/display and data logger for my drag car. It's all only in thin air and on paper yet, nothing has been constructed or coded (waiting for hardware to get here!).
This unit will basically monitor several inputs (engine RPM, driveshaft RPM, oil pressure, fuel pressure pre/post regulator, coolant temp etc etc), display them (probably on a 20x4 LCD untill I find my feet and get a glcd working), and also log this captured data to SD card for review later.
I'm semi-confident I can get the sensors in and scaled correctly (perhaps not the RPMs yet, need to look more into frequency measurement), and semi-confident I can get the display and some kind of writing to SD card working, by using parts of various example sketches.
One thing that has me puzzled, though, is whether there is a way to write a time value (similar to millis) to the data, with the zero point set by an event (ie. input going high or low). Basically, we use the captured data to analyse the car setup, track conditions and tune up info, but this has to be relevant to the run, so simply using millis (who's 0 is when the unit starts) won't work, I need a zero point set the instant the car leaves the starting line on the run. This is because the electronics will all be on and operating for fire up, burnout and staging procedures, but this data is not really needed. I need to be able to plot the graphs (mainly the RPMS and the fuel pressure) against time of the run, not time since the unit started. I have a trigger source (transbrake release - +12v until the transbrake is released and the car launches, where it goes to 0) but don't know how to reference this so in my data, i can see some kind of time reference from that 0 point to the end of the run (9 seconds). Needs to be actual time (not just samples, unless that can be accurately bought back to actual seconds), so when we get the time card for the run, we can see, for example at the 60ft point we reached it in 1.2 seconds into the run, we can look at the data at 1.2 seconds to see what the driveshaft vs engine RPM is. . to judge torque converter efficiency or whether the car spun the tyres etc.
Any help would be muchly appreciated!!
Cheers, Ryan.