[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 77: Array to string conversion
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 77: Undefined variable $Array
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 77: Trying to access array offset on value of type null
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 77: Array to string conversion
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 77: Undefined variable $Array
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 77: Trying to access array offset on value of type null
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 77: Array to string conversion
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 77: Undefined variable $Array
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 77: Trying to access array offset on value of type null
[phpBB Debug] PHP Warning: in file [ROOT]/includes/mods/functions_karma.php on line 590: Undefined array key "enabled"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/mods/functions_karma.php on line 606: Undefined array key "enabled"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/mods/functions_karma.php on line 620: Undefined array key "enabled"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/mods/functions_karma.php on line 606: Undefined array key "enabled"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/mods/functions_karma.php on line 620: Undefined array key "enabled"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/mods/functions_karma.php on line 606: Undefined array key "enabled"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/mods/functions_karma.php on line 606: Undefined array key "enabled"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/mods/functions_karma.php on line 658: Undefined array key "enabled"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/mods/functions_karma.php on line 658: Undefined array key "enabled"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/mods/functions_karma.php on line 658: Undefined array key "enabled"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/mods/functions_karma.php on line 658: Undefined array key "enabled"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4727: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3857)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4729: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3857)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4730: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3857)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4731: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3857)
Club323F • View topic - Is it possible to create a live read of fuel economy?

It is currently Sat Nov 07, 2026 5:29 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
ArtistKS
PostPosted: Fri Sep 06, 2019 10:30 am 
Offline

Joined: Thu Oct 11, 2018 9:34 am
Posts: 310
Location: Malta
I'm quite interested to know if it's possible (easy enough) to somehow get a live reading of the fuel economy of my BA.

We've all seen this potato quality video of an apparent one
https://www.youtube.com/watch?v=Zxh_chaaGlY

But obviously no detail was ever given as to how it was made or if there are any alternatives.


Top
 Profile  
 
HughieW
PostPosted: Mon Sep 09, 2019 9:47 am 
Website Admin Offline
User avatar

My Car: Mazda 323F

Joined: Fri Feb 13, 2009 9:33 am
Posts: 8421
Location: Corby
You could use an Arduino to measure the frequency and duration of an injector pulse, and compare that to engine speed :dontknow:

So for example, at 2k rpm (30mph in 3rd), if a single 205cc injector has a pulse duration of 0.005 seconds (probably far too high), it will flow 34.166667 cc of fuel per minute, which is 0.00747895 imperial gallons. Multiply that by 4 (one for each cylinder), that'll give you 0.0299158 gallons per minute. At 30mph, you will travel 0.5 miles per minute, so you can divide 1 by your gallons, then multiply by 0.5, to give you 16.71 mpg. Which means my dwell time of 0.005 was too high (it was a random number less than 0.03, which would mean the injector is at 100% duty cycle).

So, if you tap into an injector wire (ideally a ground), measure the duration and frequency of the pulses, you can do a bit of maths to convert that into gallons per minute. Then tap into the VSS to work out the vehicle speed, then use that to convert your gallons per minute into miles per gallon :thumbleft:

You could also fit two flow sensors, one to the feed fuel line, and one to the return line, subtract the return from the feed to get the amount of fuel used, then do the same multiplication by the vehicle speed to get the same result :)

_________________
[img]http://hwsb.uk/hughiew-signature.jpg[/img]


Top
 Profile Facebook  
 
ArtistKS
PostPosted: Mon Sep 09, 2019 11:30 am 
Offline

Joined: Thu Oct 11, 2018 9:34 am
Posts: 310
Location: Malta
That's alot of numbers and words. :lol: thanks for the detailed response though


Top
 Profile  
 
HughieW
PostPosted: Mon Sep 09, 2019 11:44 am 
Website Admin Offline
User avatar

My Car: Mazda 323F

Joined: Fri Feb 13, 2009 9:33 am
Posts: 8421
Location: Corby
If you're confident programming an Arduino, it could be done :D

The maths isn't THAT complicated either, here's a bit of a more detailed breakdown:

30mph in 3rd gear is approximately 2000 rpm (nice easy number to work with).

I'm using a 205cc injector as an example (I believe that's what the 1.5 BA uses, but I could be wrong... if someone knows for sure, let me know and I'll update the figures). 205cc means it will flow 205 cc of fuel per minute, if continuously open. Injectors are pulsed by the ECU (it opens and closes them at the correct times to make the engine run). I believe our ECUs run paired injectors, so injectors 1 and 3 fire together, as do 2 and 4. This means each injector fires once per crank revolution (one correct time, one out of time but correct for the other paired cylinder). It may be that we have sequential injection, in which case each injector fires once every other crank revolution (which would double the MPG figure in my output earlier, so maybe that is correct?). MX5s had both, depending on engine/year.

So going with what I said earlier, at 2000rpm, a given injector would pulse 2000 times in one minute, or 33.3334 times per second. This gives an interval of 0.03 seconds (1 / 33.3334). So at 100% duty cycle, the injector would be open for that full time, 0.03 seconds. Cruising at 30mph, I've assumed a duration of 0.005 (for easy maths), which gives a duty cycle of 16.6667%. So you can use this percentage to work out how much fuel would flow per minute - given a 205cc injector, you can do 205 * 16.6667 / 100 to give you 34.1667cc.

At 2000rpm in 3rd gear, you should be traveling at approximately 30mph (woohoo, more easy maths). We're working in minutes here, not hours, so at 30mph, for one minute, you'll travel exactly half a mile. So we now know, that for 34.1667cc of fuel per injector, we will travel 0.5 miles at 30mph in 3rd gear. We have 4 injectors, so we'll multiply that amount by 4, to give 136.6667cc for 0.5 miles driven.

To convert CC into imperial gallons, you can divide the number by 4546.09. So let's do 136.6667 / 4546.09... that gives us 0.03006247 imperial gallons for 0.5 miles driven. So now, in order to get to a full gallon, we need to multiply 0.5 miles by the reciprocal of 0.03006247 (which is 1 / 0.03006247, or 33.264066518). That gives us 16.6320 MPG. Slightly different number to last time due to me rounding in different places this time, but approximately the same.

If we run fully sequential injection, rather than paired, then each injector fires half as often, which means you can half the amount of fuel consumed, or rather double the amount of miles travelled, which brings you back to 33.2641 MPG.

I think you'll actually find, that cruising at 30mph in 3rd would use a lot less fuel than I've suggested here - I think a 16.67% duty cycle is quite high for an engine under very little load, you might find it closer to 8% or 9%, which would give an MPG of 22.1760, which is more believable.

_________________
[img]http://hwsb.uk/hughiew-signature.jpg[/img]


Top
 Profile Facebook  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group