View Single Post
Old 08-28-2008, 06:17 AM   #16 (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
Oh, a gauge, ok Can you confirm the voltage range of the pressure sensor @ 1350, and the correlation of voltage to displayed pressure?

It is just an analogRead to convert a 5 volt signal to a value from 0 to 1023. Recommend Analog Pin 2.

At the top of the loop, for a quick test anyway, you can do an

int press = analogRead(2) + 1;

then multiply the instant.injectorHiUS by press after copying it from temp but before updating the other trips.

Fudge microSecondsPerGallon to taste.

press *might* need an offset and a scaling factor, don't know yet.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote