View Single Post
Old 08-07-2008, 10:54 AM   #478 (permalink)
drivenByNothing
EcoModding Lurker
 
Join Date: Jun 2008
Location: Orlando, FL
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
I've been trying to figure out a way to keep track of the tank mileage and possibly a tank odometer via eeprom automatically, but with a limited number of writes.

I'm thinking that this can be accomplished if it writes when the speed is at 0 for 1/2 a second and the number of miles traveled is different than the stored value (of course, other conditions can be used so that it doesn't continuously write to the eeprom while at a stop light or something).

This would also tell us if we're in the ball park because we can check it against the old-school "fill up and check and divide by number of miles" test.

I'm still learning how to program this thing whenever I have some spare time, but I'd be happy to attempt to code something up.

Matt
  Reply With Quote