srspinho
- 8th November 2007, 17:15
Hello friends,
after some time, I finally put the new version of my on-board computer on my Opel, and it is workng very fine.
But (there´s always something to do...), I´m measuring just the Instant consumption.
Now, I would like to measure the average consumption, just like on Opel Zafira or VW Golf.
I know it´s easy to calculate : Average = Distance_Traveled (km) / Amount_of_Fuel_Used (liters)
My injectors can bleed 17 ml / s (each one, there are 4 injectors)
I read the time that one injector keep open in 500 ms.
My digital odometer gives me the distance in 100 meters steps
I would like to calculate the Average of consumption for each 100 meters
For example : When my car is stopped, It waste around 1.9 Litters / Hour :
Gasoline = 40 (or 0.004 s) * 17 ml/s (injector flow) * 4 (number of injectors) * 2 (1 second) Gasoline = 0.54 ml / s or 1.9 litters / hour
When the car is in movement, the formula is a bit different and also takes the distance traveled do calculate the instant consumption.
My problem is : How to work with big numbers when, for example, I´m stopped in the traffic for, let´s say 10 minutes (very common here in Sao Paulo, Brazil) and the calculation of the amount of gasoline used goes over the 65535 limit ?
Is there another way of doing this math ?
If I was not that clear, let me know and I will try to explain it better .
Thanks guys !
Sérgio
after some time, I finally put the new version of my on-board computer on my Opel, and it is workng very fine.
But (there´s always something to do...), I´m measuring just the Instant consumption.
Now, I would like to measure the average consumption, just like on Opel Zafira or VW Golf.
I know it´s easy to calculate : Average = Distance_Traveled (km) / Amount_of_Fuel_Used (liters)
My injectors can bleed 17 ml / s (each one, there are 4 injectors)
I read the time that one injector keep open in 500 ms.
My digital odometer gives me the distance in 100 meters steps
I would like to calculate the Average of consumption for each 100 meters
For example : When my car is stopped, It waste around 1.9 Litters / Hour :
Gasoline = 40 (or 0.004 s) * 17 ml/s (injector flow) * 4 (number of injectors) * 2 (1 second) Gasoline = 0.54 ml / s or 1.9 litters / hour
When the car is in movement, the formula is a bit different and also takes the distance traveled do calculate the instant consumption.
My problem is : How to work with big numbers when, for example, I´m stopped in the traffic for, let´s say 10 minutes (very common here in Sao Paulo, Brazil) and the calculation of the amount of gasoline used goes over the 65535 limit ?
Is there another way of doing this math ?
If I was not that clear, let me know and I will try to explain it better .
Thanks guys !
Sérgio