View Single Post
Old 03-31-2008, 09:27 AM   #125 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 Posts
We may need another value for the total number of injector pulses (RPM would be nice).

Here is http://planetchampions.org/diympggauge/i1.wav 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.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!

Last edited by dcb; 03-31-2008 at 10:11 AM..
  Reply With Quote