We may need another value for the total number of injector pulses (RPM would be nice).
parsed into about 26 once a second data values (has an injector on one channel and a vss on the other). It should be possible to play inj.wav into the freeduino signal processor and come up with similiar numbers on the serial port.
Code:
//tCycles and injHIMS in microseconds, injCount can help with RPM, vssCount for speed/distance
unsigned long tCycles[]={1000000,1500000,1000000,1000000,1000000,1500000,1000000,1000000,1000000,1000000,1500000,1000000,1000000,1000000,1000000,1500000,1000000,1000000,1000000,1000000,1500000,1000000,1000000,1000000,1500000,684965};
unsigned long injHIms[]={69002,168956,115736,105510,201632,188231,164693,165873,176190,113628,212222,86780,48253,39501,38049,55941,37006,37142,39433,62879,107392,72993,89047,92562,115170,47891};
unsigned int injCount[]={37,55,42,42,43,71,50,42,46,68,37,38,39,38,55,36,34,33,32,47,32,31,32,32,49,22};
unsigned int vssCount[]={0,8,11,14,26,20,22,25,38,28,28,29,28,42,26,26,25,24,35,24,23,24,24,36,17};
I will attempt to add these to a dummy freeduino program that spits these 4 values out the serial port once a second, as soon as I figure out timer interrupts. It may be that tCycles isn't necessary, but the samples from the soundcard were not so predictable in size.