Merge pull request #29 from OrchardPerformance/master

Start of fuel info
This commit is contained in:
rusefi 2020-04-23 17:43:20 -04:00 committed by GitHub
commit 349e841cb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 140 additions and 0 deletions

7
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,7 @@
{
"cSpell.words": [
"adjsuting",
"adjusutng",
"methotd"
]
}

View File

@ -0,0 +1,5 @@
TPS-based table fuel lookup with interpolation (Alpha-N)
fuel_squirt_duration = injector_lag_curve_lookup(V_BATT) + warm_up_curve_lookup(COOLANT_TEMPERATURE) * intake_air_correction_curve_lookup(INTAKE_AIR_TEMP) * fuel_table_lookup(RPM, TPS)
where TPS is the reading at the start of engine cycle

76
Fuel/Fuel_Control/MAF.md Normal file
View File

@ -0,0 +1,76 @@
# Current Status
The MAF based fueling of rusEFI is still undergoing development, the current status has the fueling functioning correctly but presents a few tuning challenges due to TunerStudio integration and the Spark Table still being reliant on the old engine load math.
This is an evolving situation at present and thus MAF fueling is still considered experimental.
**Please only use for development work at your own risk.**
# MAF fuel theory - The detail
The implementation of the MAF in rusEFI is intended to replicate the functionality of OEM systems and as such is more complex than some other systems.
The foundation of the MAF system is the Mass Air Flow sensor itself, this is a device using a hot wire, hot film or vane to directly measure the flow of air into the engine.
Obviously this sensor does not give out an airflow value, it gives us a voltage, current or PWM signal that represents the flow. rusEFI can interpret a voltage or current MAF at this time via a transfer function table.
[//]: # "Insert the MAF transfer function screen shot"
The Transfer function table is used to convert the raw MAF sensor reading into a Kg/h (Kilogram Per Hour) airflow.
This Kg/h value is then processed into a required fuel quantity by the following calculations:
g/s = Kg/h * 1000 / 3600
n/s = rpm / 60
airPerRevolution = g/s / n/s
cylinder Airmass = airPerRevolution / half Cylinder number
In rusEFI we use a correction factor table to modify this measured air mass to allow correction of any errors in the measurement due to dynamic air flow effects.
To do this we to have a "load" value that allows us to have a Load Vs Speed fuel table.
StandardAirCharge = engine displacement / number of cylinders * 1.2929
This produces the air mass for cylinder filling at 100% VE under standard SAE conditions.
Using this we can relate our cylinder air mass back to a standardised 100% cylinder filling and this we have a "load" value to use when tuning.
airChargeLoad = 100 * cylinder Airmass / Standard AirCharge
The required fuel is now simply corrected by adjusting the measured air by the value in the VE table, this value is simply a %.
corrected Cylinder Airmass = cylinder Airmass * (VE map value / 100)
fuelMassGram = corrected Cylinder Airmass / desired AFR
pulse Width = fuelMass / injector flow (in g/s)
Using this method rusEFI is able to directly measure the air flow into an engine and calculate the required fuel with minimal tuning.
# MAF fuel tuning - The quick version
To tune rusEFI using the MAF is probably the quickest and easiest method provided you have a working MAF sensor and the correct information to input in the Transfer Function Table.
The first thing to do is input the voltage (or current) to Kg/h information into the Transfer Function Table in tuner studio.
Secondly you will need to decide what Air/Fuel ratio you would like your engine to run at and input this into the AFR table in tuner studio.
For a first start a value of 14 is perfectly acceptable for gasoline.
This table is the primary source of the desired fuel mixture, it will be this table that is tuned to decide the engines target AFR.
A future update will make this fueling table dynamic so that an input % of ethanol in the main fueling dialog will change the fuel density and thus the required fuel mass injected. The result of this will be that users can leave this table tuned as though it were for pure gasoline (14.7:1 stoiciometric) and the % ethanol input will make sure the fuelling stays at the same Lambda value.
This has the advantage of working well with aftermarket wideband controllers that generally work in AFR using pure gasoline as the standard.
[//]: # "Add AFR table picture"
Before starting the engine for the first time it is wise to ensure the Fuel Table is filled with values of "100", a value of 100 means that the fuel calculation uses 100% of its measured air mass to decide on the fuel injection pulse.
Tuning this table will adjust for dynamic airflow effects that happen in the inlet of an engine and will allow small (or large but hopefully not) corrections to the fuel injection which may be required to have the engine meet it's desired air/fuel target.
This table should only be tuned if the engine is not meeting the desired air/fuel target under relatively steady state conditions (i.e. without any acceleration enrichment or overrun fuel cut).
If a different air/fuel ratio is desired at a specific load or RPM then the AFR Table is the correct table to adjust instead.
[//]: # "Add VE table picture"
# Obsolete information below
MAF-based table fuel lookup with interpolation
fuel_squirt_duration = injector_lag_curve_lookup(V_BATT) + warm_up_curve_lookup(COOLANT_TEMPERATURE) * intake_air_correction_curve_lookup(INTAKE_AIR_TEMP) * fuel_table_lookup(RPM, MAF)
where MAF is the reading at the start of engine cycle

View File

@ -0,0 +1,34 @@
The Air Fuel Ratio (AFR) is controlled by how much fuel is delivered to the cylinder for combustion. There are many factors and many sensors that come into play when trying to determine how much O2 is in the cylinder. RusEFI collects this information and makes a guess about how much O2 is in the cyl, then rusEFI has to determine how much fuel is needed to get the expected AFR and deliver that fuel charge. Below is a graphic that shows some common differences in AFR for a particular Toyota engine. Other engines are similar to this, but may have a different peak power area, or peak efficiency area, etc. To know this information for your particular setup you would need to run it on a Dyno, and determine the exact AFR's.
Airfuel.jpg
[//]: # "Add picture"
Original graphic found here [1]
Most people who are installing tune-able ECU's like rusEFI are looking for more power at the track. However your fuel weight advantage is also commonly important. So it is common that an engine will be tuned for peak power when over a certain load, and peak economy when at a cruise load. OEM's are often concerned with minimal environmental impact, so they may tune to a different AFR. Once you have decided on what your AFR strategy is going to be, you'll have to tune rusEFI to deliver that strategy. As well you will probably use an wide band oxygen sensor to measure your AFR and ensure that your are meeting your desired AFT plan.
RusEfi supports mono, individual/sequential and batched fuel injection using one of the following fuel control algorithms:
1) MAF-based or MAP-based table fuel lookup with interpolation - these algorithms are pretty rough since they do not account for ambient air temperature but not many sensor are required to run.
2) TPS-based table fuel lookup with interpolation (Alpha-N)
3) MAP-based Speed Density model, with fuel auto-tune provided by a fully registered copy of TunerStudio
Wideband Oxygen Sensor is pretty much a requirement for both manual and auto-tuning.
T4dv3ed.png
[//]: # "Add picture"
Within each fuel calculation mode there is coolant temperature correction ("warm-up mode"), battery voltage correction and injector open time ("injector lag") correction.
rusEfi could be used with MAF sensors sending out voltage (like Mazda Miata) or current (like Ford Aspire).
NXe9uWH.png
[//]: # "Add picture"
(also some content at http://rusefi.com/forum/viewtopic.php?f=2&t=1124)

View File

@ -0,0 +1,18 @@
# Speed Density
Speed Density is probably the most popular algorithm since with knowing MAP calibration, CLT, IAT and TPS and injector flow rate we get a good enough tune without much tuning (tuning would obviously be needed anyway)
fuel_squirt_duration = injector_lag_curve_lookup(V_BATT) + warm_up_curve_lookup(COOLANT_TEMPERATURE) * (cylinder_displacement * VE_table_lookup(RPM, MAP) * MAP / GAS_R * charge_temp(COOLANT_TEMPERATURE, INTAKE_AIR_TEMP, TPS)) / target_afr_table_lookup(RPM, MAP) / injector_flow
where
MAP is the average of multiple 10KHz ADC readings within specified camshaft angle range, kPa
VE is intake volumetric efficiency coefficient
GAS_R is gas constant
Speed Density calculation: http://rusefi.com/docs/html/speed__density_8cpp.html
MAP sensor processing: http://rusefi.com/docs/html/map__averaging_8cpp.html
charge_temp is charge temperature heuristic formula: Tcharge = CLT * (1 - Tcharge_coff) + IAT * Tcharge_coff Where Tcharge_coff is interpolated between 0.25 if RPMs are low or throttle is closed to 0.9 if RPMs are high and wide open throttle. See http://rusefi.com/math/t_charge.html