[help needed] E85 / Flex fuel logic
- AndreyB
- Site Admin
- Posts: 14352
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
E85 / Flex fuel logic
As of Jan 2018 rusEfi has no e85/flex fuel specific logic but a few people have asked. We also have an older topic in Russan https://rusefi.com/forum/viewtopic.php?t=523
Let me go order a GM sensor and see if I can get it working as the first step
Sensor logic would be https://github.com/rusefi/rusefi/issues/540
Pin "#1" is the one closer to the connector.
GM 13507128
Let me go order a GM sensor and see if I can get it working as the first step
Sensor logic would be https://github.com/rusefi/rusefi/issues/540
Pin "#1" is the one closer to the connector.
GM 13507128
- Attachments
-
- flex_sensor.jpg (474.86 KiB) Viewed 43578 times
-
- flex_pinout.jpg (5.77 KiB) Viewed 43578 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Re: E85 / Flex fuel logic
E85 would be cool. Then I can cram corn cobb's down my gas hole and it runs extra nice. I understand that when you run E85, pop corn comes out the exhaust. So have your salt and butter ready.
Do you have a source of E85 in your neck of the woods? Could you make your own special blend, such that you get enough to test with? Can you simply dump a bunch of ethanol in your gas to make it E85? Also keep in mind that ethanol has a tendency to dry rot older gas lines, and older o-rings in your injectors, etc. If you get around to trying it out, you might want to replace your 0-rings on your injectors, and perhaps other o-rings if you have them.
Do you have a source of E85 in your neck of the woods? Could you make your own special blend, such that you get enough to test with? Can you simply dump a bunch of ethanol in your gas to make it E85? Also keep in mind that ethanol has a tendency to dry rot older gas lines, and older o-rings in your injectors, etc. If you get around to trying it out, you might want to replace your 0-rings on your injectors, and perhaps other o-rings if you have them.
Welcome to the friendlier side of internet crazy
- AndreyB
- Site Admin
- Posts: 14352
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: E85 / Flex fuel logic
My plan is to see something like 10% for my NJ, USA pump gas first in a test container. Where do I get ethanol? Does Home Depot sell ethanol? Too much effort to shop for actual E85 around 07306 too far from corn fields probably? Do not plan any ethanol into actual gas tank yet.
Maybe try with vodka just for fun.
Maybe try with vodka just for fun.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Re: E85 / Flex fuel logic
Hmmm, that seems easier than expected.
https://www.google.com/search?rlz=1C1AOHY_enUS708US709&biw=1280&bih=685&tbm=shop&ei=p5FmWuKBFYWnggemsaXICw&q=denatured+ethanol&oq=denatured+ethanol&gs_l=psy-ab.3.0.0.188905.190681.0.191728.10.10.0.0.0.0.98.815.10.10.0....0...1c.1.64.psy-ab..0.7.597...0i13k1.0.tN7JvPOn66w
About vodka, watch out for tail gaiters. As well I think distilling your own moon shine would work better. That's how Nascar got started after all. People started proving they have a higher proof because it would get them to the finish line first.
https://www.google.com/search?rlz=1C1AOHY_enUS708US709&biw=1280&bih=685&tbm=shop&ei=p5FmWuKBFYWnggemsaXICw&q=denatured+ethanol&oq=denatured+ethanol&gs_l=psy-ab.3.0.0.188905.190681.0.191728.10.10.0.0.0.0.98.815.10.10.0....0...1c.1.64.psy-ab..0.7.597...0i13k1.0.tN7JvPOn66w
About vodka, watch out for tail gaiters. As well I think distilling your own moon shine would work better. That's how Nascar got started after all. People started proving they have a higher proof because it would get them to the finish line first.
Welcome to the friendlier side of internet crazy
Re: E85 / Flex fuel logic
https://e85prices.com/e85map
Flex fuel is something I'd be quite interested in, especially for those running boosted setups.
Flex fuel is something I'd be quite interested in, especially for those running boosted setups.
Re: E85 / Flex fuel logic
I'm interested in this as well. I have installed a flex fuel sensor in my evo, and have been working on a flex fuel tune.
There is a lot of information on the evo logic here:
http://www.tephra.it/v3/
He has some cool features that i like:
- using two maps and having an adjustable interpolation curve for each map
- there is a warning (check engine light flash) for the ethanol reading changing too fast
- this is really nice when you change fuels at the gas station, when the check engine light stops flashing you know the fuel is mixed within a few
percent
- there are warnings/precations that take advantage of the GM sensor fail/error mode. When the sensor outputs it's 'error state' the ECU starts ignoring the ethanol % readings. I think it also flashes the engine light with the error.
There is a lot of information on the evo logic here:
http://www.tephra.it/v3/
He has some cool features that i like:
- using two maps and having an adjustable interpolation curve for each map
- there is a warning (check engine light flash) for the ethanol reading changing too fast
- this is really nice when you change fuels at the gas station, when the check engine light stops flashing you know the fuel is mixed within a few
percent
- there are warnings/precations that take advantage of the GM sensor fail/error mode. When the sensor outputs it's 'error state' the ECU starts ignoring the ethanol % readings. I think it also flashes the engine light with the error.
-
- kit assembler
- Posts: 145
- Joined: Wed Aug 08, 2018 6:05 pm
- Location: Brest, Britanny, France
Re: E85 / Flex fuel logic
Hi everyone !
Sorry to revive this, but are some still interested by Flexfuel logic ? In the future I plan to run on E85 as soon as the supercharger pushes boost in my engine.
I think the first step would be to implement a flexfuel sensor control.
The GM type sensor is frequency related, so using the frequency MAP logic (/firmware/controllers/sensors/map.cpp) it would not be so hard to implement it.
Can I help you in any way with this, or do you have more urgent needs ?
Have a nice day
CrazyStriker
Sorry to revive this, but are some still interested by Flexfuel logic ? In the future I plan to run on E85 as soon as the supercharger pushes boost in my engine.
I think the first step would be to implement a flexfuel sensor control.
The GM type sensor is frequency related, so using the frequency MAP logic (/firmware/controllers/sensors/map.cpp) it would not be so hard to implement it.
Can I help you in any way with this, or do you have more urgent needs ?
Have a nice day
CrazyStriker
- AndreyB
- Site Admin
- Posts: 14352
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: E85 / Flex fuel logic
can you write code? a github pull request or just a patch file would be helpful. its not just the sensor, its probably more code once sensor works?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
- kit assembler
- Posts: 145
- Joined: Wed Aug 08, 2018 6:05 pm
- Location: Brest, Britanny, France
Re: E85 / Flex fuel logic
Sure, I've programmed in C++ before and done a bit of Object programming, but I'm not very used to git and just made it work this afternoon.
I've compiled the firmware for the first time too.
I could not find a "tree" of the code structure on which I could work.
Does someone have that ?
Thanks
I've compiled the firmware for the first time too.
I could not find a "tree" of the code structure on which I could work.
Does someone have that ?
Thanks
-
- Posts: 32
- Joined: Mon Aug 19, 2019 10:40 pm
- Location: Los Gatos CA USA
Re: E85 / Flex fuel logic
A quick bit of research suggests the GM, Ford and most other FF sensors are similar
They have three pins, 12V power, ground and signal.
The nominal use is with a 12V polarity protected battery supply (main relay output). They appear to have an internal linear regulator and microcontroller that does all of the sensor-specific interpretation.
The output is an open collector digital signal. The ECU pulls up to 3.3V - 12V (usually 5V) with a 1.5 Kohm or greater resistor (usually 5 Kohm), or a current source.
The signal is PWM encoded, with a frequency of 50Hz to 150Hz indicating the percentage of alcohol in the fuel and the pulse width indicating the fuel temperature.
It's has been reported that most ECUs don't use the fuel temperature (pulse width) information. Some people claim that the FF sensor is mounted close to the engine so that it can report the best current estimate of mixture, but the mixture shouldn't change quickly enough for that to matter. It's likely that it's solely for wiring convenience.
What I haven't been able to figure out is what the FF sensor actually does that a wideband exhaust sensor couldn't do better. For an OEM it might let them avoid a previously-expensive wideband system, avoid raising long-term-fuel-trim errors, and perhaps optimize the power vs emissions if they know e85 is being used.
They have three pins, 12V power, ground and signal.
The nominal use is with a 12V polarity protected battery supply (main relay output). They appear to have an internal linear regulator and microcontroller that does all of the sensor-specific interpretation.
The output is an open collector digital signal. The ECU pulls up to 3.3V - 12V (usually 5V) with a 1.5 Kohm or greater resistor (usually 5 Kohm), or a current source.
The signal is PWM encoded, with a frequency of 50Hz to 150Hz indicating the percentage of alcohol in the fuel and the pulse width indicating the fuel temperature.
It's has been reported that most ECUs don't use the fuel temperature (pulse width) information. Some people claim that the FF sensor is mounted close to the engine so that it can report the best current estimate of mixture, but the mixture shouldn't change quickly enough for that to matter. It's likely that it's solely for wiring convenience.
What I haven't been able to figure out is what the FF sensor actually does that a wideband exhaust sensor couldn't do better. For an OEM it might let them avoid a previously-expensive wideband system, avoid raising long-term-fuel-trim errors, and perhaps optimize the power vs emissions if they know e85 is being used.
-
- running engine in first post
- Posts: 1494
- Joined: Mon Jan 30, 2017 2:05 am
- Location: Seattle-ish
Re: E85 / Flex fuel logic
That's exactly what some newer vehicles do (use the wideband instead of ethanol sensor). If there's a large change in LTFT, they throw a code. If there's a large change in LTFT just after the fuel level went up significantly, it means you increased/decreased the ethanol content in the tank.DonaldBecker wrote: ↑Mon Nov 11, 2019 9:02 pmWhat I haven't been able to figure out is what the FF sensor actually does that a wideband exhaust sensor couldn't do better. For an OEM it might let them avoid a previously-expensive wideband system, avoid raising long-term-fuel-trim errors, and perhaps optimize the power vs emissions if they know e85 is being used.
- AndreyB
- Site Admin
- Posts: 14352
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: E85 / Flex fuel logic
Not 100% sure what you mean Please elaborate at https://rusefi.com/forum/viewtopic.php?f=5&t=9 or https://rusefi.com/forum/viewtopic.php?f=5&t=10 or maybe let's chat at Slack see https://rusefi.com/forum/viewtopic.php?f=13&t=1198Crazy Striker wrote: ↑Mon Nov 11, 2019 5:20 pmI could not find a "tree" of the code structure on which I could work.
Does someone have that ?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Re: E85 / Flex fuel logic
Is this project dead? I don't know how to use Github, but I can write basic code (matlab & arduino) and have a basic understanding of teh GM Flex Fuel sensor (also have one installed on my Falcon right now). The logic could be very simple, just a fuel multiplier and spark adder. Of course eventually you'd want table blending, but it could be good to get a simple version up and running first.
1962 Ford Falcon 5.0L V8 / T5
- AndreyB
- Site Admin
- Posts: 14352
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: E85 / Flex fuel logic
This project is in deep hibernation. I have a flex sensor (unless I've lost it) I'd say first step is really getting a sensor wired into rusEfi and someone confirming that sensor works. I am probably available to write some code but too little time for any hands-on experimentation.
Please consider learning a bit about github.
Also we spend too much time on Slack chat see https://rusefi.com/forum/viewtopic.php?f=13&t=1198
Please consider learning a bit about github.
Also we spend too much time on Slack chat see https://rusefi.com/forum/viewtopic.php?f=13&t=1198
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Re: E85 / Flex fuel logic
Ok, that sounds like something I could help with eventually, once I get some hardware. I'm a terribly slow coder, but could definitely provide an outline of what the code would need to do in this case. I'll let you know once I get hardware, and I'll try to figure out how GitHub works.
1962 Ford Falcon 5.0L V8 / T5
- AndreyB
- Site Admin
- Posts: 14352
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: E85 / Flex fuel logic
Important update: my flex sensor is not lost, I've seen it today! First post now has a picture of it
That concludes the status update.
Not planning to work on any flex code in the foreseeable future but would love to review pull requests.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Re: E85 / Flex fuel logic
I'll see if I can put something together. It'll be a very basic fuel compensation strategy for now.Not planning to work on any flex code in the foreseeable future but would love to review pull requests.
1962 Ford Falcon 5.0L V8 / T5
- AndreyB
- Site Admin
- Posts: 14352
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: E85 / Flex fuel logic
first step is sensor logic and a gauge of fuel composition. There is slack talk of this at https://app.slack.com/client/T4NJHQ8QZ/CJTJ9CFJR/thread/
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Re: E85 / Flex fuel logic
It should as simple as:
Read fuel sensor
Interpolated between E10 and E85 tuning
There shouldn't be any more to it that that I don't think?
It my setup I use the stoich value and mass flow so I won't use 2 tuning tables, I'd use use the stoich values to calculate required fuel volume and get the injector time from that.
Again pretty straightforward....don't make it hard.
Read fuel sensor
Interpolated between E10 and E85 tuning
There shouldn't be any more to it that that I don't think?
It my setup I use the stoich value and mass flow so I won't use 2 tuning tables, I'd use use the stoich values to calculate required fuel volume and get the injector time from that.
Again pretty straightforward....don't make it hard.
Re: E85 / Flex fuel logic
Is the concern about how to actually read the sensor?
1962 Ford Falcon 5.0L V8 / T5
- AndreyB
- Site Admin
- Posts: 14352
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: E85 / Flex fuel logic
On the one hand, it's not complicated to actually read the sensor. On the other hand, there are only ~five software developers who made code changes in the last three months and each and every of these software developers had not yet implemented the software change necessary.
I would not call this a concern but... there must be a term for this?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
-
- running engine in first post
- Posts: 1494
- Joined: Mon Jan 30, 2017 2:05 am
- Location: Seattle-ish
Re: E85 / Flex fuel logic
That's the plan.
Today:
- Hardcoded stoichiometric AFR
- Hardcoded fuel density
- Stoichiometric AFR as a function of ethanol content
- Fuel density as a function of ethanol content and fuel temperature (these sensors do both)
Re: E85 / Flex fuel logic
winner winner chicken dinner.
Re: E85 / Flex fuel logic
You caught me, I don't play any games...they all bore the shit out of me, I just can't for the life of me understand the point of them. I make things that are real when I have time...today I'm working on retaining wall then a patio, killing time until the lockdown ends and I can take my crank to the shop and get back to the engine rebuild. No time for games......
Re: E85 / Flex fuel logic
Continental Ethanol Content Sensor / Flex Fuel Sensor Kit Part # SNSR-25032
https://www.bmotorsports.com/shop/product_info.php/cPath/129_479/products_id/3408?osCsid=rmmhj8iirftg46s1ft791vm894
-
- contributor
- Posts: 413
- Joined: Tue Jul 24, 2018 8:55 pm
- Github Username: Orchardperformance
- Slack: Orchardperformance
Re: E85 / Flex fuel logic
Just a general FYI, I am working on the framework for implementation and what code I am able to write so that it will only need integration from someone that knows the firmware better.
Now keeping MRE in stock in the UK - https://www.FutureProofPerformance.com
Re: E85 / Flex fuel logic
Hi all.. just a quick inquiry as to the progress on the flex?
Would be awesome if we could get it into the ecosystem real soon?....
Would be awesome if we could get it into the ecosystem real soon?....
- AndreyB
- Site Admin
- Posts: 14352
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: E85 / Flex fuel logic
Step 1: someone posts a picture of a vehicle with rusEFI ECU and flex sensor installed.
Step 2: developers increase the priority of sensor integration and overall fuel logic.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute