follow ft86club on our blog, twitter or facebook.
FT86CLUB
Ft86Club
Delicious Tuning
Register Garage Members List Calendar Search Today's Posts Mark Forums Read

Go Back   Toyota GR86, 86, FR-S and Subaru BRZ Forum & Owners Community - FT86CLUB > Technical Topics > Software Tuning

Software Tuning Discuss all software tuning topics.


User Tag List

Reply
 
Thread Tools Search this Thread
Old 10-09-2013, 01:21 AM   #1
boredom.is.me
Custom User Title
 
boredom.is.me's Avatar
 
Join Date: Jun 2012
Drives: Asphalt FR-S MT
Location: Buford, GA/Daytona Beach, FL
Posts: 2,790
Thanks: 394
Thanked 1,182 Times in 697 Posts
Mentioned: 49 Post(s)
Tagged: 0 Thread(s)
Garage
How does the ECU learn?

Pretty much all modern ECU's are self learning. I'm wondering how far would our ECU go, and how long is this learning curve? For example, would your ECU learn that it has a higher/better inlet airflow if you swap the filter or intake setup? If you drive your car hard, will the ECU better calibrate itself for performance? If you drive like a granny, will it calibrate itself for efficiency?

I really no nothing about this and am very curious.

Kev
__________________
boredom.is.me is offline   Reply With Quote
Old 10-09-2013, 10:36 AM   #2
King Tut
NASA SpecE30 Racer
 
King Tut's Avatar
 
Join Date: May 2012
Drives: 2006 Honda S2000
Location: Gulf Breeze, FL
Posts: 7,279
Thanks: 607
Thanked 5,759 Times in 3,055 Posts
Mentioned: 274 Post(s)
Tagged: 10 Thread(s)
Send a message via AIM to King Tut
Our ECU has both short term and long term fuel trims that make adjustments to the fuel tables to try and achieve what the ECU feels is the correct air fuel trim. It makes these adjustments based on what it reads on the O2 sensor. It also has short term and long term knock control where it listens for knock on the knock sensor and pulls or adds timing from the timing maps.
__________________
King Tut is offline   Reply With Quote
The Following 2 Users Say Thank You to King Tut For This Useful Post:
boredom.is.me (10-09-2013), whitefrs (10-10-2013)
Old 10-09-2013, 12:16 PM   #3
jamesm
Banned
 
Join Date: Mar 2013
Drives: 2013 FR-S
Location: Orlando, FL
Posts: 2,929
Thanks: 1,166
Thanked 2,293 Times in 1,180 Posts
Mentioned: 313 Post(s)
Tagged: 4 Thread(s)
short term fuel trims are applied in closed loop to correct the afr to 14.7 based on feedback from the car's o2 sensor. long term fuel trims are stored (i presume) based on the short term trims over time. long term trims within +/- 5% are considered ideal, with +/- 10% being acceptable. these can be brought down by adjusting maf and injector scaling to better approximate reality.

you don't want to rely on ecu learning algorithms to optimize for performance. the reason for this is that fuel trims are calculated in closed-loop where you aren't concerned with making power. long term trims do apply to open loop fueling as well (where there is no feedback loop to let it know it's screwing your pooch), which can wreak havoc, so the best bet is always to achieve the best maf/injector scaling possible (and consequently, the lowest trims possible).

the stock ecu has a trim limit of 40%, so it will no add or subtract more than 40% ipw at any time. if you're trimming that high you've got some issues to resolve before going further.

fbkc (feedback knock correction) is similar only it uses the knock sensor feedback and a counter. basically the first time it sees knock it pulls some amount (defined in the rom) of timing, then for every counter interval that it sees no knock it adds back some smaller amount. all of this is configurable with any of the available tuning solutions.

to answer your question more directly: your ecu is always optimizing for efficiency in closed loop. when those corrections are too high, they can effect open loop (where you make your power), ruining your day.
jamesm is offline   Reply With Quote
The Following 4 Users Say Thank You to jamesm For This Useful Post:
Anthony (10-10-2013), boredom.is.me (10-09-2013), RedAlert (10-09-2013), u/Josh (10-10-2013)
Old 10-09-2013, 03:09 PM   #4
Circuit Motorsports
Senior Member
 
Circuit Motorsports's Avatar
 
Join Date: Jan 2012
Drives: 2013 Subaru BRZ
Location: Orlando, FL
Posts: 4,353
Thanks: 294
Thanked 495 Times in 259 Posts
Mentioned: 35 Post(s)
Tagged: 2 Thread(s)
Send a message via AIM to Circuit Motorsports
Just chiming in here...as said, the ECU can "learn" or adjust closed loop fueling and timing within limits. Also, the ECU has the ability to make compensations based on altitude, temperature, engine warm-up period, etc.

The ECU definitely does not learn based on your driving habits. The ECU always strives to keep the engine happy with regard to fueling and knock based on feedback from the engine's sensors.

An example would be if you install an intake system that is different from the stock system (diameter, bends, etc.). The new intake will not perfectly match the stock intake calibration, so the ECU will make fueling adjustments at idle and cruise (closed loop) to compensate for the difference (within limits). The ECU can also set a long-term fuel adjustment that also affects open loop (when the ECU detects a certain engine load like hard acceleration). If these limits are exceeded, the ECU will generate a check engine light and code.

Now, this long-term fueling adjustment may or may not be proper for the open-loop running (higher engine load up through higher RPMs). This could cause the engine to run too rich, or too lean under hard acceleration. Neither case is desirable, and too lean can be dangerous to your engine's health (by inducing knock). In reality, too rich can produce knock as well. In this situation, you would need a tune to properly calibrate the ECU for that intake.

So, while the ECU can "learn", depending on the design of that intake, the ECU may or may not properly learn and adjust for that intake. Data logging at least AFR would be the only way to really tell. When the tuner recalibrates the ECU for that intake, the ECU only needs to make minor adjustments and the AFR will remain in the proper range.

The ECU can also adjust timing within limits to prevent knock. So, if you get a tank of crappy gas for example, the knock sensor may pick up on knock and reduce timing to prevent the knock. Or if you accidentally put low octane fuel in the car. Once you filled up with good premium fuel, the ECU would detect no knock (or noise) and raise the timing back up.

Hope this helps and I'm not muddying the water in my effort to explain. I've heard folks express concern that the ECU would unlearn what a tuner has done, and the ECU just does not work that way either. Just think about it as the ECU can and does adjust things + or - within limits to keep the engine running optimally.

-- Bob

Last edited by Circuit Motorsports; 10-09-2013 at 04:22 PM.
Circuit Motorsports is offline   Reply With Quote
The Following 2 Users Say Thank You to Circuit Motorsports For This Useful Post:
boredom.is.me (10-09-2013), Marchy (10-09-2013)
Old 10-09-2013, 03:38 PM   #5
qoncept
Senior Member
 
qoncept's Avatar
 
Join Date: May 2013
Drives: 2013 BRZ
Location: Iowa
Posts: 928
Thanks: 135
Thanked 298 Times in 202 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Garage
More on knock/timing here:
http://www.romraider.com/RomRaider/H...ndKnockControl
http://www.romraider.com/forum/topic1840.html
__________________
qoncept is offline   Reply With Quote
The Following 2 Users Say Thank You to qoncept For This Useful Post:
boredom.is.me (10-09-2013), gdrider77 (10-09-2013)
Old 10-09-2013, 03:51 PM   #6
boredom.is.me
Custom User Title
 
boredom.is.me's Avatar
 
Join Date: Jun 2012
Drives: Asphalt FR-S MT
Location: Buford, GA/Daytona Beach, FL
Posts: 2,790
Thanks: 394
Thanked 1,182 Times in 697 Posts
Mentioned: 49 Post(s)
Tagged: 0 Thread(s)
Garage
Wow guys, thanks. That explains a lot. I was always wondering if the ECU would eventully unlearn, but that got answered as well.
__________________
boredom.is.me is offline   Reply With Quote
Old 10-09-2013, 09:49 PM   #7
arghx7
Senior Member
 
Join Date: Nov 2011
Drives: car
Location: cold
Posts: 599
Thanks: 72
Thanked 607 Times in 185 Posts
Mentioned: 33 Post(s)
Tagged: 0 Thread(s)
One more thing to keep in mind: the feedback systems also have to account for production variations in parts, and changing engine friction. For example, electronic throttle control systems have a learning capability to account for how broken in the engine is. If they didn't, you could have too much air entering the engine at idle as engine friction decreases with mileage accumulation.

Quote:
Originally Posted by Circuit Motorsports View Post
I've heard folks express concern that the ECU would unlearn what a tuner has done, and the ECU just does not work that way either. Just think about it as the ECU can and does adjust things + or - within limits to keep the engine running optimally.
Just an FYI here about where this idea of an ECU "unlearning your tune" comes from. When we tune cars now, the majority of solutions involve reprogramming the stock ECU by flashing it through the diagnostic port like a dealership would. A lot of older cars have memory chips on the ECU circuit board that can be reprogrammed with aftermarket tools (old Hondata for 90s Honda, Moates Quarterhorse for old 5.0 Mustang, etc).

Piggybacks, which alter what goes into the ECU or alter what the ECU puts out, can be "unlearned." A simple piggyback will change the MAF sensor signal to the ECU. On say late 80s/early 90s cars, the ECU was too dumb to even notice, so you could lean out the engine and advance the timing. Once you tried doing that on OBD II cars or later, if you're not careful the ECU will use the fuel trims and knock learning to effectively "undo" your tune. It just sees the piggybacks' changes to the ECU inputs and compensates for them.

That doesn't mean all piggyback systems on every car are useless though. They have to be set up right, and generally speaking they don't work well with heavily modified engines. Also, depending on what exactly the situation is in question, the stock ECU might be able to "unlearn" a reflash if the new programming made a sort of odd change (like a MAF scaling mistake, or a correction table used as a bandaid) that the fuel trims and knock learning can compensate for. I'm more of splitting hairs here though. A properly reprogrammed stock ECU tune won't be "unlearned," although engine behavior can still vary with weather etc.
arghx7 is offline   Reply With Quote
Old 10-10-2013, 12:42 AM   #8
u/Josh
Senior Member
 
Join Date: Jan 2013
Drives: GBS Limited 6MT
Location: Phoenix
Posts: 200
Thanks: 186
Thanked 69 Times in 42 Posts
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
I have sort of a followup question to this one. Can the typical Ecutek, openflash tablet, etc tunes change when the car goes into open loop? What is the reason we don't always operate in closed loop mode?
u/Josh is offline   Reply With Quote
Old 10-10-2013, 02:23 AM   #9
Dephective
Senior Member
 
Join Date: Mar 2013
Drives: '13 Whiteout FRS
Location: Bay Area, Florida
Posts: 233
Thanks: 110
Thanked 79 Times in 58 Posts
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by u/Josh View Post
I have sort of a followup question to this one. Can the typical Ecutek, openflash tablet, etc tunes change when the car goes into open loop? What is the reason we don't always operate in closed loop mode?
Yes they can adjust "when" the car would switch over to open loop. You can set it to happen based on load, RPM, throttle position, etc. At least theoretically, as I have no experience with ECUtek's program, but I imagine it would.

Closed loops is like a circuit, and as long as you stay inside a set of parameters (throttle position, rpm, load, etc.), your ECU will try to reach lamda or 14.7:1 AFR based on what the O2 sensor reads. If these values parameters are exceeded, the ECU looks "outside the loop" to take into account other sensors to detect how much air is present, temperature of that air, knock, and also the O2 sensor as well as "look up maps" inside the ECU to know how much fuel to use to reach a set value AFR. This AFR will be richer than 14.7:1 because at WOT that will be far too lean. This targeted AFR is an absolute value, but your ECU may only be able to approximate that. Knock for example can cause your ECU to pull timing and throw more fuel into the mix to enrich the mixture as a failsafe against deadly detonation. Your tuner would be making adjustments to "open loop" settings to make the power and hopefully do it safely with the modifications present.

A full standalone like Hydra EMS with a proper wideband O2 setup can actually be ran in closed loop all the time. This takes a decent amount of tuning skill to make this safe and efficient though. I'm not sure if they have that set up on this platform, but yet again I don't see why not. Element Tuning I believe had it set up on their STi before they had their Twin.
__________________
Previous:

'01 Accord-daily
'93 Rx7-fire breathing track monster 545hp 397tq 2300lb.
'06 Mazdaspeed6 one helluva love-hate relationship
Dephective is offline   Reply With Quote
Old 10-10-2013, 09:20 AM   #10
jamesm
Banned
 
Join Date: Mar 2013
Drives: 2013 FR-S
Location: Orlando, FL
Posts: 2,929
Thanks: 1,166
Thanked 2,293 Times in 1,180 Posts
Mentioned: 313 Post(s)
Tagged: 4 Thread(s)
i'll add that it's not just as straightforward as saying 'i want open loop above 20% throttle and 3000rpm'. there are lots of delay counters and conditions that have to be considered and adjusted. it can certainly be adjusted, but it's not a simple thing to do. @mad_sb wrote an excellent post on the subject.
jamesm is offline   Reply With Quote
Old 10-10-2013, 09:36 AM   #11
ft_sjo
Banned
 
Join Date: Oct 2012
Drives: GT86
Location: The Motherland
Posts: 1,398
Thanks: 140
Thanked 473 Times in 271 Posts
Mentioned: 22 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by jamesm View Post
i'll add that it's not just as straightforward as saying 'i want open loop above 20% throttle and 3000rpm'. there are lots of delay counters and conditions that have to be considered and adjusted. it can certainly be adjusted, but it's not a simple thing to do. @mad_sb wrote an excellent post on the subject.
You can achieve that, though.
ft_sjo is offline   Reply With Quote
Old 10-10-2013, 09:45 AM   #12
u/Josh
Senior Member
 
Join Date: Jan 2013
Drives: GBS Limited 6MT
Location: Phoenix
Posts: 200
Thanks: 186
Thanked 69 Times in 42 Posts
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by Dephective View Post
Yes they can adjust "when" the car would switch over to open loop. You can set it to happen based on load, RPM, throttle position, etc. At least theoretically, as I have no experience with ECUtek's program, but I imagine it would.

Closed loops is like a circuit, and as long as you stay inside a set of parameters (throttle position, rpm, load, etc.), your ECU will try to reach lamda or 14.7:1 AFR based on what the O2 sensor reads. If these values parameters are exceeded, the ECU looks "outside the loop" to take into account other sensors to detect how much air is present, temperature of that air, knock, and also the O2 sensor as well as "look up maps" inside the ECU to know how much fuel to use to reach a set value AFR. This AFR will be richer than 14.7:1 because at WOT that will be far too lean. This targeted AFR is an absolute value, but your ECU may only be able to approximate that. Knock for example can cause your ECU to pull timing and throw more fuel into the mix to enrich the mixture as a failsafe against deadly detonation. Your tuner would be making adjustments to "open loop" settings to make the power and hopefully do it safely with the modifications present.

A full standalone like Hydra EMS with a proper wideband O2 setup can actually be ran in closed loop all the time. This takes a decent amount of tuning skill to make this safe and efficient though. I'm not sure if they have that set up on this platform, but yet again I don't see why not. Element Tuning I believe had it set up on their STi before they had their Twin.
Thanks for the reply. I was under the impression that this car had an almost wideband O2 sensor and thus assumed that the car did target some values other than 14.7:1 under closed loop operation. Is that incorrect?

What are the reasons OEM dont use wideband sensors and closed loop under all conditions? Is it just the cost and life of the sensors?
u/Josh is offline   Reply With Quote
Old 10-10-2013, 10:01 AM   #13
ft_sjo
Banned
 
Join Date: Oct 2012
Drives: GT86
Location: The Motherland
Posts: 1,398
Thanks: 140
Thanked 473 Times in 271 Posts
Mentioned: 22 Post(s)
Tagged: 0 Thread(s)
It can have closed-loop target AFR's outside of stoich. These wide range sensors are not super accurate or repeatable at richer than stoich mixture which is why manufacturers don't tend to use them for that.
ft_sjo is offline   Reply With Quote
Old 10-10-2013, 11:36 AM   #14
jamesm
Banned
 
Join Date: Mar 2013
Drives: 2013 FR-S
Location: Orlando, FL
Posts: 2,929
Thanks: 1,166
Thanked 2,293 Times in 1,180 Posts
Mentioned: 313 Post(s)
Tagged: 4 Thread(s)
one of the conditions for open loop is minimum target afr, set to 14.0 on a stock rom. so, you can pretty much target anything above 14.0 and stay in closed loop. of course there's a lot more to it than just that, but it is possible to target equivalence ratios other than 14.7:1 in closed loop operation.
jamesm is offline   Reply With Quote
 
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where/How did you learn to drift? DommerEOD Off-Topic Lounge [WARNING: NO POLITICS] 8 06-20-2013 03:22 PM
what did you learn to drive on? 7thgear Off-Topic Lounge [WARNING: NO POLITICS] 31 08-10-2012 10:39 PM
Simulator to learn MT fastdrivingjr Other Vehicles & General Automotive Discussions 46 05-29-2012 08:49 PM
Learn to Drive MtnDrvr86 Other Vehicles & General Automotive Discussions 102 03-14-2010 08:46 AM


All times are GMT -4. The time now is 03:51 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
User Alert System provided by Advanced User Tagging v3.3.0 (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.

Garage vBulletin Plugins by Drive Thru Online, Inc.