Method and system for estimating the ethanol content of the fuel and for engine control
Patent Information
- Application Number
- DE102016102545
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2015-02-19
- Filing Date
- 2016-02-15
- Publication Date
- 2024-10-31
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Field of InterestThe present application relates generally to an exhaust gas sensor coupled to an exhaust system of an internal combustion engine.It is known from DE 10 2010 021 281 A1 and DE 10 2014 119 377 A1 to estimate the alcohol content of the fuel of an engine based on a first or second estimated air-fuel ratio, which is obtained with an exhaust gas oxygen sensor using a first or second reference voltage, respectively, and to set the engine operation based thereon. In DE 10 2014 100 411 A1, the modulation of a reference voltage of an exhaust gas oxygen sensor is dealt with.Background / SummaryAn exhaust gas sensor (e.g., an exhaust oxygen sensor) may be positioned in an exhaust system of a vehicle and operated to provide indications of the various exhaust constituents. In one example, the exhaust gas sensor may be used to detect an air-fuel ratio of exhaust exhausted from an internal combustion engine of the vehicle. The measurements of the exhaust gas sensor may then be used to control operation of the internal combustion engine to propel the vehicle. Additionally, based on the air-fuel ratio, a first estimate of an alcohol content of fuel burned in the engine may be determined. For example, document US 6 016 796 A describes a method for determining an air-fuel ratio after a refueling event and then updating an estimate of an ethanol content of the fuel based on the determined air-fuel ratio.In another example, the outputs of the exhaust gas sensor may be used to estimate a water content in the exhaust gas. The water content estimated using the exhaust oxygen sensor may be used during engine operation to infer ambient humidity. Still further, the water content may be used to infer a second estimate of an ethanol content of the fuel. Under selected conditions, the exhaust gas sensor may be operated as a variable voltage oxygen (VVs) sensor to more accurately determine the water content of the exhaust gas and the ethanol content of the fuel. When operating in the VVs mode, a reference voltage of the exhaust gas sensor is increased from a lower, base voltage (e.g., about 450 mV) to a higher, target voltage (e.g., in the range of 900-1100 mV). In some examples, the higher target voltage may be a voltage at which water molecules at the oxygen sensor are partially or fully dissociated, while the base voltage is a voltage at which water molecules at the sensor are not dissociated.However, the inventors herein have recognized that each of the methods described above for estimating the ethanol content of the fuel may have different noise factors (e.g., ambient humidity, pressure, air-fuel ratio) that may reduce the accuracy of the estimation under certain operating conditions. Further, operation of the exhaust oxygen sensor in VVs mode may not be possible until engine temperatures have increased above a threshold level. Still further, continuously operating the exhaust oxygen sensor in the VVs mode, and particularly at the higher target voltage, may result in sensor degradation. The inaccurate estimates of the fuel ethanol content may result in reduced engine control.In one example, the issues described above may be addressed by a method for estimating a first alcohol content of the fuel based on an air-fuel ratio estimated with an exhaust oxygen sensor; after an engine temperature has increased above a threshold, estimating a second alcohol content of the fuel based on a change in sensor output during modulating a reference voltage of the exhaust oxygen sensor between first and second voltages; and adjusting engine operation based on a difference between the first and second alcohol contents of the fuel. In this way, errors in fuel alcohol content estimation may be reduced and a more accurately estimated fuel alcohol content may be selected for engine control, thereby increasing engine performance and fuel economy.As one example, in response to modulating the voltage of the exhaust oxygen sensor between the first and second voltages, first and second pumping currents may be generated. The first pumping current may indicate an amount of oxygen in a sample gas, while the second pumping current may indicate an amount of oxygen in the sample gas plus an amount of oxygen contained in the water molecules in the sample gas. The first and second pumping currents may then be corrected based on the deviations of an expected air-fuel ratio (assuming the engine is operating at) from an estimated air-fuel ratio (at which the engine is actually operating) and / or an ambient humidity and / or a pressure and / or water vapor environment of the sensor (e.g., whether the engine is currently injecting fuel or not). The corrected values may then be used to calculate a water content and infer an alcohol content of the burned fuel with higher accuracy and reliability. However, because operating the oxygen sensor at the higher second voltage may degrade sensor time, it may be desirable to adjust engine operation based on the first alcohol content of the fuel determined while the oxygen sensor is operating at the first voltage. If the difference between the first and second fuel alcohol content estimates is less than a threshold, the engine controller may adjust engine operation based on the first fuel alcohol content and not the second. Conversely, if the difference between the first and second fuel alcohol content estimates is greater than the threshold, the engine controller may adjust engine operation based on the second fuel alcohol content and not the first. In this way, after an engine refueling event, an estimate of the alcohol content of the fuel may be determined. By comparing the two different estimates, the most accurate estimate of the alcohol content of the fuel may be selected and used for increased engine control while simultaneously reducing the amount of time the sensor spends when operating in a variable voltage mode.It should be understood that the summary above is provided to introduce in simplified form a selection of the concepts that are further described in the detailed description. It is not intended to identify key or essential features of the claimed subject matter, the scope of which is clearly defined by the claims that follow the detailed description. Moreover, the claimed subject matter is not limited to implementations that eliminate all of the disadvantages recited above or in any part of this disclosure.Brief Description of the DrawingsFIG. 1 shows a schematic diagram of an engine including an exhaust system and an exhaust gas sensor. FIG. 2 shows a schematic diagram of an example exhaust gas sensor. FIGS. 3A-B show a flow chart illustrating a routine for adjusting engine operation based on an error between two different estimates of the alcohol content of fuel burned in the engine. FIG. 4 shows a flow chart illustrating a routine for accurately estimating an amount of alcohol in fuel with an exhaust gas sensor operating in a variable voltage mode. FIGS. 5-6 show flowcharts illustrating routines for estimating ambient humidity. FIG. 7 is a flowchart illustrating a routine for learning an air-fuel ratio correction factor. FIG. 8 is a flowchart illustrating a dry air pumping current estimation routine with an oxygen sensor. FIG. 9 shows a flow chart illustrating a routine for determining a pressure correction factor for an exhaust oxygen sensor. FIG. 10 shows a flowchart illustrating a routine for controlling an engine based on an exhaust oxygen sensor.DETAILED DESCRIPTIONThe following description relates to systems and methods for determining an amount of alcohol in a fuel mixture (e.g., ethanol and gasoline) based on outputs from an exhaust oxygen sensor, such as an oxygen sensor as shown in FIGS. 1-2 (referred to herein as an exhaust oxygen sensor). As shown in FIGS. 3A-B, during a first condition, the exhaust oxygen sensor may be used to determine an air-fuel ratio and then determine a first alcohol content of the fuel mixture based on the air-fuel ratio. The first alcohol content may be determined while the exhaust oxygen sensor is operating in a base mode where the reference voltage of the sensor is maintained at a lower first level. During a second condition, as shown in FIG. 4, the exhaust gas sensor may be used to determine an amount of water in a sample gas that represents an amount of water in the exhaust gas at the time of measurement. For example, first and second voltages (where the second voltage is higher than the first voltage) may be alternately applied to the sensor to generate first and second pumping currents (e.g., sensor outputs). The change in pumping current between the first and second pumping currents may then be used to determine the amount of water in the exhaust gas and then a second alcohol content of the fuel mixture. In some embodiments, the change in pump current may be corrected for various noise factors including ambient humidity, air-fuel ratio, and / or pressure. The corrected change in pump current may then be used to determine a more accurate second alcohol content of the fuel mixture. The methods for determining the various correction factors for the output of the exhaust oxygen sensor are shown in FIGS. 5-9. By comparing the first and second estimates of alcohol content to each other, the most accurate alcohol content may be selected and used for engine control. In one example, as shown in FIG. 10, engine operating parameters such as spark timing and / or fuel injection amount may be adjusted based on the detected amount of alcohol in the fuel. In this way, engine performance, fuel economy, and / or emissions may be maintained or improved regardless of varying amounts of alcohol in the fuel.Illustrated in FIG. 1 is a schematic diagram showing one cylinder of a multi-cylinder engine 10, which may be included in a propulsion system of a motor vehicle. The engine 10 may be controlled at least in part by a control system including a controller 12 and by input from an operator 132 of the vehicle via an input device 130. In this example, the input device 130 includes an accelerator pedal and a pedal position sensor 134 for generating a proportional pedal position signal PP. A combustion chamber 30 (i.e., a cylinder 30) of the engine 10 may include the combustion chamber walls 32 in which a piston 36 is positioned. The piston 36 may be coupled to a crankshaft 40 such that reciprocating motion of the piston is converted to rotational motion of the crankshaft. The crankshaft 40 may be coupled to at least one drive wheel of a vehicle via an intermediate transmission system. Further, a starter motor may be coupled to crankshaft 40 via a flywheel to enable a starting operation of engine 10.Combustion chamber 30 may receive intake air from intake manifold 44 via intake passage 42 and may exhaust combustion gases via exhaust passage 48. Intake manifold 44 and exhaust passage 48 may selectively communicate with combustion chamber 30 via intake valve 52 and exhaust valve 54, respectively. In some embodiments, combustion chamber 30 may include two or more intake valves and / or two or more exhaust valves.In this example, intake valve 52 and exhaust valve 54 may be cam actuated via respective cam actuation systems 51 and 53. Each cam actuation system 51 and 53 may include one or more cams and may use a cam cam switching (CPS) system and / or a variable cam timing (VCT) system and / or a variable valve timing (VVT) system and / or a variable valve lift (VVL) system that may be operated by the controller 12 to vary valve operation. The positions of the intake valve 52 and the exhaust valve 54 may be determined by the position sensors 55 and 57, respectively. In alternative embodiments, the intake valve 52 and / or the exhaust valve 54 may be controlled by electric valve actuation. For example, cylinder 30 may alternatively include an intake valve controlled via electric valve actuation and an exhaust valve controlled via cam actuation including CPS and / or VCT systems.In some embodiments, each cylinder of engine 10 may be configured with one or more fuel injectors to provide fuel thereto. As a non-limiting example, cylinder 30 is shown including fuel injector 66. Fuel injector 66 is shown coupled directly to cylinder 30 to inject fuel directly therein in proportion to the pulse width of a signal FPW received from controller 12 via electronic driver 68. In this manner, fuel injector 66 provides what is known as direct injection (also referred to as "DI" below) of fuel into combustion cylinder 30.It will be appreciated that in an alternative embodiment, the injector 66 may be a port injector that provides fuel in the intake port upstream of the cylinder 30. It will also be appreciated that cylinder 30 may receive fuel from multiple injectors, e.g., multiple port injectors, multiple direct injectors, or a combination thereof.A fuel tank in a fuel system 172 may contain fuels with different fuel qualities, such as different fuel compositions. These differences may include a different alcohol content, octane number, heat of vaporization, fuel mixtures, and / or combinations thereof, etc. The engine may use an alcohol-containing fuel mixture such as E85 (consisting of about 85% ethanol and 15% gasoline) or M85 (consisting of about 85% methanol and 15% gasoline). Alternatively, the engine may operate with other ratios of gasoline and ethanol stored in the tank, including 100% gasoline and 100% ethanol, and variable ratios therebetween depending on the alcohol content of the fuel supplied to the tank by the operator. In addition, the fuel properties of the fuel tank may change frequently. In one example, a driver may refill the fuel tank with E85 on a day, closest with E10, and closest with E50. As such, based on the level and composition of the fuel remaining in the tank at the time of refueling, the fuel tank composition may change dynamically.The daily variations in tank fill may thus result in a frequently changing fuel composition of the fuel in the fuel system 172, thereby affecting the fuel composition and / or quality supplied by the injector 66. The various fuel compositions injected by the injector 166 may be referred to herein as a type of fuel. In one example, the various fuel compositions may be qualitatively described by their evaluation of the studied octane number (ROZ), alcohol percentage, ethanol percentage, etc.It will be appreciated that while in one embodiment the engine may be operated by injecting the variable fuel mixture via a direct injector, in alternative embodiments the engine may be operated using two injectors and varying a relative injection amount of each injector. It is further recognized that when the engine is operated with boost pressure from a boosting device (not shown), such as a turbocharger or supercharger, the boost limit may be increased as an alcohol content of the variable fuel mixture is increased.Continuing with FIG. 1, intake passage 42 may include a throttle 62 having a throttle plate 64. In this particular example, the position of the throttle plate 64 may be varied via a signal provided by the controller 12 to an electric motor or actuator included in the throttle 62, a configuration generally referred to as electronic throttle control (ETC). In this manner, throttle 62 may be operated to vary the intake air provided to combustion chamber 30 among the other engine cylinders. The position of the throttle plate 64 may be provided to the controller 12 by a throttle position signal TP. Intake passage 42 may include a mass airflow sensor 120 and a manifold air pressure sensor 122 to provide signals MAF and MAP, respectively, to controller 12. In one embodiment, the intake passage 42 may also include a humidity sensor 121 for measuring ambient humidity. In another embodiment, the moisture sensor 121 may additionally or alternatively be disposed in the outlet channel 48.An ignition system 88 may provide spark to the combustion chamber 30 via the spark plug 92 in response to an ignition advance signal SA from the controller 12 under selected operating modes. Although spark ignition components are shown, in some embodiments, combustion chamber 30 or one or more other combustion chambers of engine 10 may be operated in a compression ignition mode with or without spark.Exhaust gas sensor 126 (e.g., an oxygen sensor) is shown coupled to exhaust passage 48 upstream of emission control device 70. The sensor 126 may be any suitable sensor for providing an indication of the exhaust gas air / fuel ratio, such as a linear oxygen sensor or UEGO (universal or wide range exhaust gas oxygen), a two-state oxygen sensor or EGO, a HEGO (heated EGO), a NOx, HC, or CO sensor. Exhaust purification device 70 is shown disposed along exhaust passage 48 downstream of exhaust gas sensor 126. The device 70 may be a three-way catalyst (TWC), NO x- trap, various other exhaust gas purification devices, or combinations thereof. In some embodiments, during operation of engine 10, emission control device 70 may be periodically reset by operating at least one cylinder of the engine within a particular air / fuel ratio.Further, in the disclosed embodiments, an exhaust gas recirculation (EGR) system may route a desired portion of the exhaust gas from the exhaust passage 48 to the intake passage 44 via an EGR passage 140. The amount of EGR provided to intake passage 44 may be varied by controller 12 via EGR valve 142. Further, an EGR sensor 144 may be disposed within the EGR passage and may provide an indication of the pressure and / or temperature and / or concentration of the exhaust gas. Under some conditions, the EGR system may be used to regulate the temperature of the air and fuel mixture within the combustion chamber, and thus provide a method of controlling the timing of ignition during some combustion modes. Further, during some conditions, a portion of the combustion gases may be retained or trapped in the combustion chamber by controlling exhaust valve timing, such as by controlling a variable valve timing mechanism.Controller 12 is shown in FIG. 1 as a microcomputer, including microprocessor unit 102, input / output ports 104, an electronic storage medium for executable programs and calibration values shown as read only memory chip 106 in this particular example, random access memory 108, keep alive memory 110, and a data bus. Controller 12 may receive various signals from sensors coupled to engine 10, in addition to those signals previously discussed, including measurement of inducted mass air flow (MAF) from mass air flow sensor 120; engine coolant temperature (ECT) from temperature sensor 112 coupled to cooling sleeve 114; a profile ignition pickup signal (PIP) from Hall effect sensor 118 (or other type) coupled to crankshaft 40; throttle position (TP) from a throttle position sensor; and absolute manifold pressure signal (MAP) from sensor 122. An engine speed, RPM, may be generated by the controller 12 from the signal PIP.Storage medium read-only memory 106 may be programmed with computer readable data representing instructions executable by processor 102 for executing both the methods described below and other variants that are anticipated but not specifically listed.As described above, FIG. 1 shows only one cylinder of a multi-cylinder engine, and each cylinder may similarly include its own set of intake / exhaust valves, a fuel injector, a spark plug, etc.Next, FIG. 2 shows a schematic view of an example embodiment of a UEGO sensor 200 configured to measure a concentration of oxygen (O2) in an exhaust stream. For example, sensor 200 may operate as UEGO sensor 126 of FIG. 1. The sensor 200 includes multiple layers of one or more ceramic materials arranged in a stacked configuration. In the embodiment of Figure 2, five ceramic layers are shown as layers 201, 202, 203, 204 and 205. These layers contain one or more layers of a solid electrolyte capable of conducting ionic oxygen. Examples of suitable solid electrolytes include, but are not limited to, zirconia-based materials. In some embodiments, a heater 207 may be disposed in thermal communication with the layers to increase the ionic conductivity of the layers. While the illustrated UEGO sensor is formed from five ceramic layers, it will be appreciated that the UEGO sensor may include other suitable numbers of ceramic layers.Layer 202 includes a material or materials that create a diffusion path 210. The diffusion path 210 is configured to introduce the exhaust gases into a first internal cavity 222 via diffusion. The diffusion pathway 210 may be configured to allow one or more components of the exhaust gases, including but not limited to a desired analyte (e.g., O2), to diffuse into the interior cavity 222 at a more limiting rate than the analyte can be pumped in or out by the pump electrode pair 212 and 214. In this way, a stoichiometric level of the O2in the first internal cavity 222 may be obtained.The sensor 200 further includes a second internal cavity 224 within the layer 204 separated from the first internal cavity 222 by the layer 203. The second internal cavity 224 is configured to maintain a constant oxygen partial pressure equivalent to a stoichiometric state, for example, an oxygen level present in the second internal cavity 224 is equal to that that the exhaust gas would have if the air-fuel ratio was stoichiometric. The oxygen concentration in the second internal cavity 224 is maintained constant by a pump voltage Vcp. Here, the second internal cavity 224 may be referred to as a reference cell.A pair of sensing electrodes 216 and 218 are disposed in communication with the first internal cavity 222 and the reference cell 224. The sensing electrode pair 216 and 218 detects a concentration gradient that may develop between the first internal cavity 222 and the reference cell 224 due to an oxygen concentration in the exhaust gas that is higher than or lower than the stoichiometric level. A high oxygen concentration may be caused by a lean exhaust mixture, while a lower oxygen concentration may be caused by a rich mixture.A pair of pump electrodes 212 and 214 are disposed in communication with the interior cavity 222 and are configured to electrochemically pump a selected gas component (e.g., O2) from the interior cavity 222, through the layer 201, and out of the sensor 200. Alternatively, the pair of pump electrodes 212 and 214 may be configured to electrochemically pump a selected gas through the layer 201 and into the interior cavity 222. Here, the pump electrode pair 212 and 214 may be referred to as an O2pump cell.The electrodes 212, 214, 216, and 218 may be made of various suitable materials. In some embodiments, electrodes 212, 214, 216, and 218 may be made at least in part from a material that catalyzes dissociation of the molecular oxygen. Examples of such materials include, but are not limited to, electrodes containing platinum and / or silver.The process of electrochemically pumping the oxygen out of or into the interior cavity 222 includes applying a voltage Vp (e.g., a reference voltage) across the pump electrode pair 212 and 214. The pump voltage Vpapplied to the O2pump cell pumps oxygen into or out of the first internal cavity 222 to maintain a stoichiometric oxygen level in the cavity pump cell. The resulting pumping current Ip is proportional to the concentration of oxygen in the exhaust gas. A control system (not shown in FIG. 2) generates the pump current signal Ip as a function of the intensity of the applied pump voltage Vp required to maintain a stoichiometric level within the first internal cavity 222. Thus, a lean mixture causes oxygen to be pumped out of the inner cavity 222, while a rich mixture causes oxygen to be pumped into the inner cavity 222.It should be appreciated that the UEGO sensor described herein is merely an example embodiment of a UEGO sensor, and that other embodiments of UEGO sensors may include additional and / or alternative features and / or designs.In this manner, the oxygen sensor of FIG. 2 may be a variable voltage oxygen sensor configured to operate at a first, lower voltage (e.g., a reference voltage) at which water molecules are not dissociated and a second, higher voltage (e.g., a reference voltage) at which water molecules are completely dissociated. As such, the second voltage is higher than the first voltage.As will be worked out below, the UEGO sensor of FIG. 2 may be advantageously used to estimate both an amount of alcohol in fuel burned in the engine and ambient humidity. In particular, a change in the pump current output (delta-Ip) from the sensor at two different reference voltages is used to determine the amount of oxygen coming from the water and / or CO2 dissociation. However, continuously operating the oxygen sensor in the variable voltage (VVs) mode, and particularly at the higher second voltage, may degrade the oxygen sensor and thereby reduce longevity of the sensor. Consequently, it may be advantageous to reduce the amount of time the oxygen sensor spends operating at the higher, second voltage. As a result, sensor degradation may be reduced, thereby increasing sensor longevity and generating more accurate sensor outputs for engine control.In another example, the exhaust oxygen sensor (e.g., the UEGO sensor of FIG. 2 and / or the exhaust gas sensor 126 of FIG. 1 ) may operate as a conventional oxygen sensor (e.g., air-fuel sensor) only at the lower, first reference voltage (e.g., about 450 mV). This lower voltage may be referred to herein as a base reference voltage. In other words, the UEGO may be operated as an air-fuel sensor to determine an air-fuel ratio of the exhaust gas. An estimate of the alcohol content of the fuel combusted in the engine (e.g., an EtOH estimate) may then be estimated based on the air-fuel ratio.As such, a first estimate of the ethanol content of the fuel may be determined based on an estimate of the air-fuel ratio from an exhaust oxygen sensor operating in a base non-VVs mode, while a second estimate of the ethanol content of the fuel may be determined based on a change in pump current output from the exhaust oxygen sensor when operating in a VVs mode (e.g., while modulating a reference voltage of the sensor between lower and higher voltages). In one example, the EtOH estimate of fuel may be determined during cold conditions when the exhaust oxygen sensor is operating in the non-VVs mode, but not during the VVs mode. In addition, various noise factors that may reduce the accuracy of the EtOH estimates of the fuel may be present for each of the non-VVs and VVs estimation methods. Fuel ethanol estimates during VVs operation may be corrected for, for example, ambient humidity, air-fuel ratio, pressure, etc. The first and second EtOH estimates of the fuel may be compared, and an error between the measurements may be used to determine which of the two estimates to use for engine control. In this way, a more accurate estimate of the fuel ethanol content may be estimated using an exhaust oxygen sensor, thereby increasing the accuracy of engine control, such as fuel injection, based on the estimate of the fuel ethanol content.The systems of FIGS. 1-2 provide for a system comprising: an exhaust passage including an exhaust oxygen sensor; and a controller including computer readable instructions for estimating a first estimate of the ethanol content of the fuel based on an air-fuel ratio estimated with the exhaust oxygen sensor after a refueling event; estimating a second estimate of the ethanol content of the fuel based on a change in pump current output from the exhaust oxygen sensor upon application of a lower first voltage and a higher second voltage to the exhaust oxygen sensor when the engine is fueled and an engine temperature is greater than a threshold; and adjusting an operating parameter of the engine based on either the first fuel ethanol content estimate or the second fuel ethanol content estimate, wherein a selection of the first or second fuel ethanol content estimates is based on a difference between the first and second fuel ethanol content estimates relative to a threshold error. The computer readable instructions further include adjusting the engine operating parameter based on the first fuel ethanol content estimate and not the second fuel ethanol content estimate when the difference between the first and second fuel ethanol content estimates is less than the threshold error, and adjusting the engine operating parameter based on the second fuel ethanol content estimate and not the first fuel ethanol content estimate when the difference between the first and second fuel ethanol content estimates is greater than the threshold error.Referring now to FIGS. 3A-B, a method 300 is shown for adjusting engine operation based on an error between two different estimates of an alcohol content of fuel burned in the engine (referred to herein as an ethanol content of fuel or EtOH estimate). As described above, an exhaust oxygen sensor (such as the exhaust oxygen sensor 126 shown in FIG. 1 and the sensor 200 shown in FIG. 2 ) may be a variable voltage (VVs) sensor operable at a lower, base voltage and a higher, target voltage. As described above, the exhaust oxygen sensor may operate as a conventional air-fuel sensor with the sensor's reference voltage maintained at the lower base voltage (e.g., about 450 mV) at which no water and carbon dioxide molecules are dissociated at the sensor (referred to herein as the non-VVs operation). A first ethanol content of the fuel may be determined based on the exhaust gas air-fuel ratio estimated from the output of the exhaust gas oxygen sensor during non-VVs operation. Then, under selected conditions, the exhaust oxygen sensor reference voltage may be increased from the lower, base voltage (e.g., the first voltage) to a higher, target voltage (e.g., a second voltage) at which water molecules and / or carbon dioxide molecules are dissociated. In one example, the second voltage may be in a range of about 900-1100 mV. A second ethanol content of the fuel may then be determined based on a change in pump current output from the exhaust oxygen sensor between the first voltage and the second voltage during operation in the VVs mode. A difference between the first and second fuel ethanol content estimates may then be used to determine which of the two estimates should be used for engine control. The instructions for executing the method 300 (and the other methods described below with respect to FIGS. 4-10 ) may be stored in a memory of a controller (e.g., the controller 12 shown in FIG. 1 ). As such, the method 300 may be performed by the controller.The method 300 begins at 302 by estimating and / or measuring engine operating conditions. Operating conditions of the engine may include engine speed and / or load, engine temperature, exhaust gas air-fuel ratio, ambient humidity, ambient temperature, mass airflow rate, exhaust gas recirculation (EGR) flow, etc. At 304, the method includes determining whether a refueling event has occurred since a previous estimate of the fuel ethanol content (or since the last run of method 300). Different geographic areas and different fuel manufacturers may use different ethanol-fuel mixtures. The changes in the ethanol concentration of the fuel may occur when a fuel with a different ethanol mixture is used to fuel the engine. Thus, after each refueling event, a new estimate of the fuel ethanol content may be required to accurately adjust engine operation (e.g., fuel injection amount). Fueling may be determined based on a fuel level sensor disposed within a fuel tank of the vehicle. If a refueling event is not detected at 304, the method continues to 306 to continue operating the exhaust oxygen sensor in the non-VVs mode (as an air-fuel sensor) and not to perform the learning of the ethanol of the fuel (EtOH).Alternatively, if the controller determines at 304 that a refueling event has occurred since the last estimate, the method continues to 308 to operate the exhaust oxygen sensor at the first reference voltage, V 1, ( e.g., the base voltage) and determine an air-fuel ratio of the exhaust gas. The exhaust gas air-fuel ratio may be based on, for example, the pumping current output from the exhaust gas oxygen sensor. Continuing to 310, the method includes determining a first estimate of the ethanol content of the fuel (EtOH) based on the determined exhaust gas air-fuel ratio. The ethanol content of the fuel may be a percentage or fraction of the ethanol (or other alcohol) in the fuel. The first estimate of the fuel ethanol content may be a function of the air-fuel ratio determined based on the output of the exhaust oxygen sensor. The function may be, for example, a predetermined relationship between the air-fuel ratio (or changes in air-fuel ratio from stoichiometry) and the fuel ethanol content stored in the memory of the controller. The method may include, at 310, updating a previously stored first estimate of the fuel ethanol content with the newly determined first fuel ethanol content. For example, at 310, the method may include updating the first estimate of the ethanol content of the fuel stored in the memory of the controller. The controller may use the updated first fuel ethanol content estimate to adjust fuel injection, as further described below.At 312, the method includes determining if an engine temperature is greater than a threshold temperature. In one example, the threshold temperature may be based on a temperature at which the exhaust oxygen sensor may effectively operate in the VVs mode. In this way, some of the exhaust oxygen sensor system noise factors related to colder engine temperatures may be reduced. For example, during engine cold start conditions, engine temperature may be below the threshold temperature, where operating the exhaust oxygen sensor at a higher than the base reference voltage may not be possible or may result in inaccurate pumping current outputs. However, the estimates of the ethanol of the fuel with the exhaust oxygen sensor based on the air-fuel ratio during the non-VVs operation may have increased accuracy over the estimates of the ethanol of the fuel with the exhaust oxygen sensor during the VVs operation. Thus, if the engine temperature is not greater than the threshold temperature at 312, the method continues to 314 to continue operating the exhaust oxygen sensor at the first voltage and wait until the engine temperature increases to operate the sensor in the VVs mode. In another embodiment, the method 312 may occur simultaneously with the methods in steps 304- 310. As such, once the engine temperature is above the threshold temperature, the VVs oxygen sensor may operate in VVs mode and the controller may request ethanol detection via the VVs oxygen sensor once the selected conditions (as will be further described below) are met. As such, the controller may not wait until the AFR estimate of the fuel's ethanol is determined prior to determining the fuel's ethanol content via the exhaust oxygen sensor. Thus, both methods for learning the ethanol of the fuel (via the AFR and via the exhaust oxygen sensor) may occur relatively simultaneously, or may occur one before the other.Alternatively, if the engine temperature is greater than the threshold at 312, the method continues to 316 to request an estimate of the ethanol content of the fuel in the VVs mode. For example, at 316, the method may include setting a diagnostic flag in the controller to initiate VVs operation of the exhaust oxygen sensor and estimate ethanol content of the fuel during VVs operation once the selected conditions are met. As such, the method continues to 318 to determine if the engine is operating under the fueled conditions. For example, the engine may operate under the fueled conditions if fuel is injected into one or more engine cylinders. If the engine is not currently being fueled (e.g., fuel is injected into engine cylinders), the method continues to 320 to not perform fuel ethanol detection and maintain the non-VVs operation of the exhaust oxygen sensor (e.g., maintain the sensor's reference voltage at the lower, first voltage). However, if the engine is fueled, the method instead proceeds to 322 to operate the exhaust oxygen sensor in VVs mode and determine a second estimate of the fuel ethanol content based on a change in pump current output from the sensor between the first and second reference voltages and various correction factors. For example, if the selected conditions are met in addition to the engine being fueled, the oxygen sensor may increase its reference voltage from the lower, first voltage to a higher, second voltage at which water molecules and / or carbon dioxide are dissociated at the sensor. The change in the pumping current between the two voltages may indicate a water content of the exhaust gas. This value of water content may then be corrected for ambient humidity, pressure, and / or air-fuel ratio. Finally, the second fuel ethanol content estimate may be determined based on the corrected water content estimate. Further details of the method at 322 are shown in FIG. 4, which is discussed further below.After determining both the first and second fuel ethanol estimates, the method continues to 324 to determine an error between the first and second fuel ethanol estimates. For example, the method at 324 may include determining a difference between the first fuel ethanol estimate determined based on the air-fuel ratio determined during non-VVs operation of the exhaust oxygen sensor and the second fuel ethanol estimate determined based on the change in pump current output from the exhaust oxygen sensor during VVs operation when the sensor reference voltage is modulated between the first and second voltages. The method then continues to 326 to determine if the error (e.g., difference) between the first and second fuel ethanol content estimates is greater than a threshold error (e.g., a threshold difference). If the error between the first and second fuel ethanol content estimates is not greater than the threshold, the method continues to 328 to adjust engine operation based on the first fuel ethanol content estimate. In one example, adjusting engine operation may include an amount of fuel injection to the engine cylinders based on the first estimate of the ethanol content of the fuel. The method for adjusting engine operation based on the selected fuel ethanol content estimate is shown in FIG. 10 and is further described below. Further, in one example, the method may include, at 328, continuing to adjust engine operation based on the first estimate of the ethanol content of the fuel until the next refueling event. As a result, the amount of time spent operating the exhaust oxygen sensor in the VVs mode may be reduced, thereby increasing sensor longevity (through the reduction in sensor degradation).Otherwise, if the error between the first and second fuel ethanol content estimates is greater than the threshold, the method continues to 330 to operate the exhaust oxygen sensor in VVs mode and repeat the second fuel ethanol content estimate. For example, at 330, the method may include increasing the sensor reference voltage from the first voltage to the second voltage and repeating the second estimate of the ethanol content of the fuel based on the change in pump current between the first and second voltages. Thus, the method 330 may include a repetition step 322 as described above. At 332, the controller determines the error between the original first fuel ethanol content estimate and the new, repeated second fuel ethanol content estimate. If the error at 334 is not greater than the threshold error, the method continues to 328 to adjust engine operation (e.g., fueling of the engine) based on the first fuel ethanol content estimate and not the second fuel ethanol content estimate. For example, at 328, the method may include adjusting fueling of the engine based only on the first ethanol content of the fuel.Alternatively, if the error between the original first fuel ethanol content estimate and the new, repeated second fuel ethanol content estimate is still greater than the threshold error, the method continues to 336 to adjust engine operation based on the second fuel ethanol content estimate and not the first fuel ethanol content estimate. For example, the controller may adjust fueling of the engine based only on the second estimate of the ethanol content of the fuel, as the second estimate may have increased accuracy over the first estimate of the ethanol of the fuel. In this way, the amount of fuel injected into the engine may be determined more accurately, and the resulting engine control may be improved.Referring now to FIG. 4, a flowchart illustrating an estimation routine 400 for an exhaust gas oxygen sensor, such as the UEGO 200 shown in FIG. 2 is shown. Specifically, routine 400 determines an amount of alcohol in fuel injected into the engine (e.g., an estimate of the ethanol content of the fuel) based on the voltages applied to a pump cell of the sensor during selected engine fueling conditions and further based on a plurality of correction factors calculated as described below with respect to FIGS. 5-9.At 410 of routine 400, engine operating conditions are determined. Engine operating conditions may include, but are not limited to, air-fuel ratio, amount of EGR entering the combustion chambers, and fueling conditions, for example.Once the engine operating conditions have been determined, routine 400 proceeds to 412 where it is determined whether the engine is under the non-fueling conditions. The non-fueling conditions include the deceleration conditions of the vehicle and the operating conditions of the engine where fuel delivery is discontinued but the engine continues to rotate and at least one intake valve and one exhaust valve are operating; thus, air flows through one or more of the cylinders but no fuel is injected into the cylinders. During non-fueling conditions, combustion is not performed and ambient air may move from the intake to the exhaust through the cylinder. In this way, a sensor, such as a UEGO sensor (e.g., an exhaust oxygen sensor), may receive ambient air at which measurements, such as detection of ambient humidity, may be performed.As indicated, the non-fueling conditions may include, for example, deceleration fuel shut-off (DFBO). A DFBO occurs in response to the operator's pedal (e.g., in response to a driver's tip-out and when the vehicle is accelerating greater than a threshold amount). The DFBO conditions may occur repeatedly during a drive cycle, and thus, during the drive cycle, such as during each DFBO event, numerous indications of ambient humidity may be generated. As such, the type of fuel may be accurately identified based on an amount of water in the exhaust gas regardless of the fluctuations in humidity between the drive cycles or even during the same drive cycle.Continuing with FIG. 4, if it is determined that the engine is under the non-fueling conditions, such as a DFBO, routine 400 proceeds to 418 to determine the ambient humidity using the methods of FIGS. 5-6, as further described below. Alternatively, if it is determined that the engine is not under the non-fueling conditions, routine 400 of FIG. 4 proceeds to 420, where it is determined whether sensor-based air-fuel ratio control or alcohol detection by the sensor is desired or is to be performed. The selection may be based on operating conditions such as duration since a last determination of the alcohol or based on whether the air-fuel ratio control is enabled. For example, if air-fuel ratio control is disabled, the routine may continue to determine the alcohol content, whereas the routine may continue to perform such air-fuel ratio control (without determining the alcohol content) if air-fuel ratio feedback is commanded or enabled. For example, if there is a request for VVs detection of the fuel ethanol content at step 316 of method 300, the alcohol detection may be selected versus air-fuel ratio regulation. If it is determined that control is desired, routine 400 proceeds to 436, where the sensor is operated as an oxygen sensor (e.g., O2sensor) in a non-VVs mode (e.g., at the lower, base voltage) to determine an oxygen concentration and / or an air-fuel ratio of the exhaust gas, and the routine ends.If alcohol detection is desired, routine 400 proceeds to 421 where it is determined whether crankcase ventilation (PCV) is at a desired level. In one example, the PCV level may be based on engine speed and / or operation of the turbocharger (e.g., boosted versus non-boosted operation). For example, if engine speed is high, it may be estimated that there may be increased PCV flow. Other example conditions include increased manifold vacuum, increased crankcase pressure, high ambient conditions, combinations thereof, etc. If engine speed is relatively low, the PCV level may be further based on whether the turbocharger is on and the engine is boosted. If the engine is under non-boosted conditions, PCV flow may be increased. On the other hand, if the engine is boosted, flow from the PCV valve may be sufficiently low. If it is determined at 421 that the amount of PCV is above a desired level (e.g., PCV flow is high), routine 400 proceeds to 436, where the sensor operates as an oxygen sensor (in non-VVs mode) to determine, e.g., an oxygen concentration of the exhaust gas for air-fuel control, where the routine ends.On the other hand, if the PCV is at a desired level (e.g., PCV flow is low), routine 400 proceeds to 422 where it is determined whether the exhaust gas recirculation (EGR) valve is open. If it is determined that the EGR valve is open, routine 400 proceeds to 423 where the EGR valve is closed. Once the EGR valve has been closed at 423, or if it is determined at 422 that the EGR valve is closed and thus the amount of EGR entering the combustion chamber is substantially zero, routine 400 proceeds to 424 where it is determined whether the fuel vapor purge valve is open.If it is determined that the fuel vapor purge valve is open, routine 400 proceeds to 425, where the fuel vapor purge valve is closed. The fuel vapor stored in the fuel vapor canister may have an alcohol content different from that of the fuel currently located in the fuel tank. As such, fuel vapor entering the combustion chamber may affect the amount of alcohol detected by the exhaust oxygen sensor (e.g., UEGO), resulting in inaccurate estimation.Once the fuel vapor purge valve has been closed at 425 or if it is determined at 424 that the fuel vapor purge valve is closed, routine 400 proceeds to 426 where a first pumping voltage (V1) (e.g., also referred to herein as a reference voltage) is applied to the exhaust gas sensor and a first pumping current (Ip1) is received. The first pump voltage may pump oxygen from the oxygen pump cell, but may have a sufficiently low value to not dissociate water molecules (e.g., H2O molecules) in the pump cell (e.g., V1=about 450 mV). In some examples, the first pump voltage applied to the sensor at 426 may be the same as the first pump voltage applied to the sensor during operation in the non-VVs mode. When the first voltage is applied to the pump cell, the first pump current (Ip 1) is generated. In this example, because fuel is injected into the engine and combustion is performed, the first pumping current may indicate an amount of oxygen in the exhaust gas.At 428 of routine 400, a second pumping voltage (V 2) (e.g., also referred to herein as the second reference voltage) is applied to the pumping cell of the exhaust gas sensor and a second pumping current (Ip 2) is received. The second pump voltage may be greater than the first pump voltage, wherein the second voltage may be high enough to dissociate the oxygen compounds, such as the water molecules. Applying the second pumping voltage across the oxygen pumping cell generates the second pumping current (Ip2). The second pumping current may indicate an amount of oxygen and water in the sample gas (e.g., the oxygen already present in the sample gas plus the oxygen from the water molecules that are dissociated when the second pumping voltage is applied).At 430, the first pumping current and the second pumping current are corrected with an learned air-fuel ratio correction factor. Learned air-fuel ratio correction may be determined at 720, for example, of routine 700 described below with respect to FIG. 7. Additionally, at 430, the first pumping current and the second pumping current may be corrected for pressure and water vapor environment, as determined in routines 800 and 900 described below with reference to FIGS. 8-9.The routine further includes, at 431, correcting the change in pump current (e.g., the difference between the first and second pump currents) between the two voltages based on the ambient humidity. For example, the ambient humidity may be inferred from the change in pump current, which is indicative of a total amount of water in the exhaust (including humidity). In one example, the ambient humidity may be determined based on the output of the exhaust oxygen sensor during non-fueling conditions. In another example, the ambient humidity may be determined using an alternative method based on engine operating conditions. The method may include immediately determining the ambient humidity or looking up a latest estimate of the ambient humidity in the memory of the controller at 431. The method for determining ambient humidity is further described below with respect to FIGS. 5-6.Once the first and second pumping currents have been generated and corrected based on the various learned correction factors, an amount of water in the sample gas may be determined at 432 of routine 400 of FIG. 4. For example, the first pumping current may be subtracted from the second pumping current and then corrected based on the air-fuel ratio correction factor, the pressure correction factor, and / or the ambient humidity to determine a value corresponding to an amount of water.Finally, the amount of alcohol in the fuel (e.g., referred to herein as the ethanol content of the fuel) may be identified at 434. For example, the amount of water in the exhaust gas may be proportional to an amount of alcohol (e.g., one percent of ethanol) in the fuel injected into the engine. In some embodiments, the computer readable storage medium of the control system receiving the communication from the sensor may include instructions to identify the amount of alcohol. For example, a relationship between the post-combustion water (e.g., a percent of the exhaust water) and the percent of the fuel ethanol may be stored in the computer readable storage medium, e.g., in the form of a look-up table. As the amount of ethanol in the fuel increases, the amount of water in the exhaust gas increases.Thus, based on the outputs of the exhaust oxygen sensor (e.g., the pumping currents) generated by two different voltages sequentially applied to the oxygen pumping cell of the exhaust gas sensor during engine fueling conditions and the various correction factors described above, the amounts of water in the exhaust gas may be determined. In this manner, an accurate indication of the amount of alcohol (e.g., the percent of ethanol) in the fuel may be identified. The amount of alcohol in the fuel determined at 434 may be the second estimate of the fuel ethanol content used at 322 of method 300 described above.Referring now to FIG. 5, a method 500 for estimating ambient humidity with a VVs exhaust oxygen sensor (such as exhaust oxygen sensor 126 shown in FIG. 1 and 200 shown in FIG. 2 ) is shown. The method begins at 502 by determining whether it is time for an estimate of the ambient humidity. In one example, method 500 may proceed from 418 of method 400, as described above. As such, if the engine is operating under the non-fueling conditions, the method may proceed to 504. In another example, method 500 may be performed after a duration, such as after a period of engine operation, a number of engine cylinders, a duration of vehicle travel, or after a distance of vehicle travel. In another example, method 500 may be performed at engine start-up. If it is not time for an estimate of the ambient humidity, the method continues to 503 to not estimate the ambient humidity, and the method ends. If the measurement of ambient humidity is requested by another control routine, the controller may look up a previously stored estimate of the ambient humidity.At 504, the method includes determining if there is an incoming transmission shift. An incoming transmission shift may be predicted based on whether or not a shift request flag has been set, and / or based on observation of one or more operator pedals, and / or based on vehicle acceleration. During transmission shifts after non-fueling conditions (e.g., deceleration fuel shut-off), moisture detection using the exhaust oxygen sensor may not be possible due to the need to reduce the load during transmission shift (and due to moisture detection using the exhaust oxygen sensor may include opening the throttle to reduce PCV noise). Thus, if a transmission shift is predicted at 504, the method continues to 506 to determine the ambient humidity using an alternative method, as shown in FIG. 6.From 506 to FIG. 6, method 600 continues at 602 by determining if an ambient humidity sensor is available. For example, in one embodiment, the engine may include a humidity sensor, such as humidity sensor 121 shown in FIG. 1, for directly measuring ambient humidity (e.g., for measuring humidity in the incoming intake air). If an ambient humidity sensor is present and available for use, the method continues to 604 to measure the ambient humidity with the humidity sensor. At 606, the method includes determining an equivalent pumping current, Ip, for an oxygen sensor based on the humidity measurement and a current exhaust oxygen sensor voltage setpoint used for the fuel alcohol determination in FIG. 4. The output of the humidity sensor may be used, for example, as an input to a look-up table stored in a memory of the controller. The look-up table may relate the humidity measurements (e.g., the raw humidity measurements from the humidity sensor) and the voltage of the oxygen sensor to the pumping current. In one example, the resulting pumping current may be used as the humidity correction for water estimation for fuel ethanol determination in FIG. 4. The method may then proceed to 608 to refine the humidity correction determined at 606 based on an available variable voltage humidity estimate, as will be further described below with continued reference to FIG. 5. For example, the humidity estimates using the variable voltage exhaust oxygen sensor during non-fueling conditions when a transmission shift is not expected may be stored in the memory of the controller and used to further refine the humidity correction. In alternative embodiments, method 600 may proceed from 606 directly to 610.At 610, the method includes correcting the exhaust water estimate for the fuel alcohol determination at 431 of method 400 based on the determined humidity correction. The method at 610 may be included as part of step 431 of method 400, for example. As such, the method at 610 may include subtracting the equivalent pump current determined at 606 (or refined at 608) from the change in the measurement of the pump current in method 400. In this way, the ambient humidity may be subtracted from the estimate of total exhaust water prior to determining the percentage of ethanol in the fuel.Returning to 602, if an ambient humidity sensor is not available (e.g., the engine does not include a dedicated ambient humidity sensor), the method continues to 612 to estimate the ambient humidity based on the temperature of the ambient air. For example, the ambient humidity may be estimated based on the temperature of the ambient air and a saturation vapor pressure estimated using a 50% relative humidity assumption. Similar to the method at 606, at 614, an equivalent pumping current may be determined based on the humidity estimate. The method then proceeds to 608 as described above. Estimating the ambient humidity based on the temperature of the ambient air may not be as accurate as using a dedicated humidity sensor or the variable voltage exhaust oxygen sensor. As such, the controller may, if possible, preferably determine the humidity based on the outputs of the VVs exhaust oxygen sensor, as further described below.Returning to FIG. 5, at 504, if there is no predicted oncoming transmission shift, the method continues to 508 to open the intake throttle (e.g., throttle 62 shown in FIG. 1 ) to further reduce the amount of hydrocarbons flowing past the exhaust oxygen sensor (e.g., exhaust oxygen sensor 126 shown in FIG. 1 and / or 200 shown in FIG. 2 ). Opening the throttle may, for example, decrease the amount of hydrocarbons from the PCV coming through the outlet. More specifically, if the intake throttle is closed during the engine non-fueling condition, a large intake manifold vacuum is generated that may draw crankcase ventilation (PCV) hydrocarbons. As such, even if a PCV port is closed during DFBO, the vacuum may be sufficiently high to draw in the PCV hydrocarbons through the piston rings. The inducted PCV flow may be exacerbated in an aging engine due to the leakage of the PCV gases past the piston rings and valves. The collected hydrocarbons may affect the output of the exhaust oxygen sensor and may upset the humidity readings. In particular, the effect of hydrocarbons results in a sensor output that overestimates the ambient humidity.At 510, the method includes determining if the exhaust oxygen sensor should be operated in a variable voltage (VVs) mode. As described above, the VVs mode includes adjusting the reference voltage (also referred to herein as the pump voltage) of the oxygen sensor from a lower, base voltage (e.g., about 450 mV) to a higher, target voltage at which water molecules at the sensor are dissociated. In some examples, operating in the VVs mode may include continuously modulating the reference voltage between the base voltage (e.g., the first voltage) and the target voltage (e.g., the second voltage). In some examples, continuously operating the oxygen sensor in the VVs mode, and particularly at the higher, second voltage, may degrade the sensor over time. Consequently, it may be advantageous to reduce the amount of time the sensor spends when operating in the VVs mode. In one example, the sensor may be operated in VVs mode only if a duration has elapsed since a previous VVs operating period. In another example, the sensor may be operated in VVs mode only if a total duration of operation in VVs mode during a period of engine use is below an upper threshold level. In yet another example, the sensor may operate in VVs mode based on a duration (e.g., a past time period) since a previous measurement. The sensor may also be turned off if a total threshold period has elapsed since a measurement. In another embodiment, continuously operating the oxygen sensor at the higher, second voltage may not degrade the sensor if the gas composition and the second voltage are within certain threshold ranges that reduce the degradation. In this embodiment, if the gas composition and the second voltage of the sensor are maintained within their threshold ranges, it may be predetermined that the sensor is operating in VVs mode, and the method may proceed to 512.If the controller determines that it may operate the exhaust oxygen sensor in the VVs mode, the method continues to 512 to modulate the exhaust oxygen sensor reference voltage between the first voltage (V 1) and the second voltage (V 2). For example, at 512, the method includes first applying the first voltage (V 1) to the oxygen pumping cell of the exhaust oxygen sensor and receiving the first pumping current (Ip 1). The first reference voltage may have a value such that oxygen is pumped from the cell, but low enough that the oxygen compounds, such as H2O (e.g., water), are not dissociated (e.g., V1=about 450 mV). The application of the first voltage generates an output of the sensor in the form of the first pumping current (Ip1) indicative of the amount of oxygen in the sample gas. Because the engine is under the non-fueling conditions in this example, the amount of oxygen may correspond to the amount of oxygen in the fresh air surrounding the vehicle. The method at 512 further includes at 516 applying the second voltage (V 2) to the oxygen pump cell of the sensor and receiving a second pump current (Ip 2). The second voltage may be greater than the first voltage applied to the sensor. In particular, the second voltage may have a value high enough to dissociate a desired oxygen compound. For example, the second voltage may be high enough to dissociate H2O molecules into hydrogen and oxygen (e.g., V2=about 1.1 V). The application of the second voltage generates the second pumping current (I 2) indicating the amount of oxygen and water in the sample gas. It will be appreciated that the term "water" in the "amount of oxygen and water" as used herein refers to the amount of oxygen from the dissociated H2O molecules in the sample gas. In some examples, the first pumping current and the second pumping current may be corrected with an learned air-fuel ratio correction factor. Learned air-fuel ratio correction may be determined, for example, at 720 of routine 700 described below with respect to FIG. 7.The ambient humidity (e.g., the absolute humidity of the fresh air surrounding the vehicle) may be determined at 518 of routine 500 based on the first pumping current and the second pumping current (or the correction of the first and second pumping currents). For example, the first pumping current may be subtracted from the second pumping current to obtain a change in the pumping current indicative of the amount of oxygen from the dissociated water molecules (e.g., the amount of water) in the sample gas. This value may be proportional to ambient humidity. The value of the ambient humidity may be used to correct the water estimate at 431 of method 400, and / or may be stored in the memory of the controller. In some examples, engine operation may be adjusted based on the determined ambient humidity.Returning to 510, if operating the exhaust oxygen sensor in VVs mode is not desired, the method may instead include determining the ambient humidity based on an output of the exhaust oxygen sensor at the first voltage and a value of dry air pumping current. Specifically, at 520, the method includes determining the dry air pumping current. A method for determining a dry air pumping current of the exhaust oxygen sensor is shown in FIG. 8, which is described in more detail below. The method may include operating the exhaust oxygen sensor at a first, lower voltage to include a first output indicative of a wet air oxygen measurement. The sensor may then be operated at a second, higher voltage to include a second output indicative of a wet air oxygen reading when all moisture in the air has been dissociated at the oxygen sensor. An average voltage between the first, lower voltage and the second, higher voltage may generate an output of the oxygen sensor indicative of an oxygen reading in dry air, wherein a partial dissociation of the moisture occurs. A dry air oxygen measurement may then be estimated by a ratio between the first output and the second output. In this way, the dry air oxygen reading may be determined by operating the oxygen sensor in the VVs mode. At 520, the controller may look up the latest stored value of dry air pumping current (determined by routine 800) for use at 520.The method continues to 522 to apply the first, lower reference voltage (e.g., the base voltage, V 1) to the exhaust oxygen sensor, wherein a pumping current (IpB) is received. As such, the method at 522 includes not operating the oxygen sensor in the VVs mode and instead maintaining the reference voltage of the sensor at a lower, base level that reduces oxygen sensor degradation. In other words, the method at 522 does not include modulating the oxygen sensor reference voltage between a lower first voltage and a higher second voltage. The resulting pumping current may indicate the amount of oxygen in the sample gas.Then, the routine continues to 524 to determine the ambient humidity based on the IpB (the pump current determined at 522 during non-VVs sensor operation) and the dry air pump current determined (and looked up at 520) during routine 800. The reduction in oxygen amount due to the dilution effect of the ambient moisture may then be determined based on the difference between the dry air pumping current and the pumping current IpB determined at 522. By multiplying by a conversion factor, this difference may then be converted from a pump current to a moisture percentage. In this way, by comparing the output of the oxygen sensor operating in the non-VVs mode at the base reference voltage with a stored value of dry air pumping current, ambient humidity may be determined while continuously operating the oxygen sensor in the VVs mode. The value of the ambient humidity determined at 524 may then be used to correct the water estimate at 431 of method 400, and / or may be stored in the memory of the controller. In other examples, engine operation may be adjusted based on the determined ambient humidity.Referring now to FIG. 7, a flowchart is shown illustrating a routine 700 for learning an air-fuel ratio correction factor. Specifically, routine 700 experiences an error between an expected air-fuel ratio and an actual air-fuel ratio under engine fueling conditions. For example, the expected air-fuel ratio may be determined based on the operating parameters, while the actual air-fuel ratio is determined based on the output of an exhaust oxygen sensor, such as the universal exhaust oxygen sensor 200 described above with respect to FIG. 2. The air-fuel ratio correction learned during routine 700 may be used at 430 in routine 400 to correct the exhaust oxygen sensor pumping current outputs, as described above with respect to FIG. 4.At 710, engine operating conditions are determined. Engine operating conditions may include, but are not limited to, air-fuel ratio, amount of EGR entering the combustion chambers, and fueling conditions, for example.Once the operating conditions have been determined, routine 700 proceeds to 712 where the expected air-fuel ratio is calculated in a ladder fashion. The expected air-fuel ratio may be calculated based on, for example, the operating parameters such as the amounts of fuel injection and air flow.At 714, it is determined whether the engine is under the fueled conditions. For example, the engine may be determined to be under the fueled conditions if fuel is supplied to at least one cylinder of the engine for combustion. If it is determined that the engine is not under the fueled conditions (e.g., the engine is under the non-fueled conditions), the routine ends.On the other hand, if it is determined that the engine is under the fueled conditions, the routine continues to 716, where a first pumping voltage (V 1) is applied to the oxygen pumping cell of the exhaust gas sensor. The application of the first voltage generates an output of the sensor in the form of a first pumping current indicative of an amount of oxygen in the sample gas. In this example, because fuel is injected into the engine and combustion is performed, the first pumping current may indicate an amount of oxygen in the exhaust gas. Thus, at 718, the actual air-fuel ratio is determined based on the sensor output (e.g., in response to the application of the first pump voltage).Once the actual air-fuel ratio has been determined, the correction factor is learned at 720 based on a difference between the expected air-fuel ratio (determined at 712) and the actual air-fuel ratio (determined at 718).In this way, the air-fuel ratio correction factor may be determined. As such, the estimates of the water content of the exhaust gas and the alcohol content of the fuel may be accurately determined, as described in detail above with respect to FIG. 4, without requiring the air-fuel ratio to be accurately controlled to a target value.Referring now to FIG. 8, a flowchart illustrating a routine 800 for determining a dry air oxygen measurement with an oxygen sensor, such as oxygen sensor 200 described above with respect to FIG. 2 is shown. Specifically, routine 800 determines the dry air oxygen measurement based on various voltages (e.g., reference voltages) applied to a pump cell of the oxygen sensor during selected engine operating conditions. The resulting dry air oxygen measurement may then be used along with the subsequent outputs of the oxygen sensor during additional selected operating conditions to estimate the ambient humidity, as described above with respect to FIG. 5.At 810 of routine 800, engine operating conditions are determined. Engine operating conditions may include, for example, but are not limited to, air-fuel ratio, amount of EGR entering the combustion chambers, and fueling conditions.Once the engine operating conditions have been determined, routine 800 proceeds to 812 where it is determined whether the selected conditions are met. The selected conditions may include, for example, engine non-fueling conditions. The non-fueling conditions include the deceleration conditions of the vehicle and the operating conditions of the engine where fuel delivery is discontinued but the engine continues to rotate and at least one intake valve and one exhaust valve are operating; thus, air flows through one or more of the cylinders but no fuel is injected into the cylinders. During non-fueling conditions, combustion is not performed and ambient air may move from the intake to the exhaust through the cylinder. In this way, a sensor, such as an exhaust oxygen sensor, may receive ambient air at which measurements, such as detection of ambient humidity, may be performed.As indicated, the non-fueling conditions may include, for example, deceleration fuel shut-off (DFBO). DFSO is responsive to the operator's pedal (e.g., responsive to a driver tip-out and responsive to the vehicle decelerating greater than a threshold amount, or responsive to a duration without an operator pedal application). The DFSO conditions may occur repeatedly during a drive cycle, and thus numerous indications of ambient humidity may be generated during the drive cycle, such as during each DFBO event. As such, the type of fuel can be accurately identified based on the amount of water in the exhaust gas regardless of the fluctuations in humidity between the drive cycles or even during the same drive cycle.Further, at 812, the selected conditions may also include following an engine start or duration of engine operation (e.g., a number of miles driven, a period of time, or a number of engine cycles). The selected conditions at 812 may include, for example, following an engine start (or after a duration of engine operation) during engine non-fueling conditions (e.g., when fueling is disabled, as described above). In this way, learning the dry air oxygen measurement, as further described below, may occur periodically only after each engine start or after a duration of engine operation when the flow of hydrocarbons past the oxygen sensor is decreased. In this way, a more accurate sensor reading may be obtained while decreasing a period of operating the oxygen sensor in the VVs mode.Continuing with FIG. 8, if it is determined that the selected operating conditions are not met, routine 800 proceeds to 813 to continue current operation of the oxygen sensor (at the current pumping voltage, such as at the base or lower first reference voltage) and determine the ambient humidity based on a predetermined dry air pumping current (e.g., the dry air oxygen measurement). As such, the method at 524 in FIG. 5 may include determining ambient humidity using a previously stored dry air oxygen reading from a previous routine of learning a dry air oxygen reading. For example, after each execution of routine 800, where a dry air oxygen reading is determined, the resulting dry air oxygen reading (e.g., the value of the pump current) may be stored in a memory of the controller. Then, during the routine of FIG. 5, the latest stored dry air pumping current may be looked up in the controller's memory and used to determine the ambient humidity. The method may include, at 813, not operating the oxygen sensor in the VVs mode and instead, continuing to operate the oxygen sensor at the lower, first reference voltage, also referred to herein as the base reference voltage. Operating the oxygen sensor at the base reference voltage may result in less sensor degradation than when the sensor is operated at the higher, second reference voltage.Conversely, if it is determined at 812 that the selected operating conditions are met, routine 800 proceeds to 814 where a first pumping voltage (V 1) (e.g., the first reference voltage) is applied to the oxygen pumping cell of the oxygen sensor and a first pumping current (Ip 1) is received. The first pump voltage may have a value such that oxygen is pumped from the cell, but low enough that the oxygen compounds, such as H2O (e.g., water), are not dissociated (e.g., V1=about 450 mV). At the first pump voltage, the oxygen sensor cannot dissociate water molecules, for example. The application of the first voltage generates an output of the sensor in the form of the first pumping current (Ip1) indicative of the amount of oxygen in the sample gas. In this example, because the engine is under the selected conditions (such as the non-fueling conditions), the amount of oxygen may correspond to the amount of oxygen in the fresh air surrounding the vehicle or a wet air oxygen reading.Once the amount of oxygen has been determined, routine 800 proceeds to 816 where a second pumping voltage (V 2) (e.g., a reference voltage) is applied to the oxygen pumping cell of the oxygen sensor and a second pumping current (Ip 2) is received. The second voltage may be greater than the first voltage applied to the sensor. In particular, the second voltage may have a value high enough to dissociate a desired oxygen compound. For example, the second voltage may be high enough to dissociate all H2O molecules into hydrogen and oxygen (e.g., V2=about 1.1 V). The application of the second voltage generates the second pumping current (I 2) indicating the amount of oxygen and water in the sample gas. It will be appreciated that the term "water" in the "amount of oxygen and water" as used herein refers to the amount of oxygen from the dissociated H2O molecules in the sample gas.In a particular example, the second voltage (e.g., the second reference voltage) may be 1080 mV at which the water in the air is completely (e.g., completely) dissociated (e.g., 100% of the water in the air is dissociated at 1080 mV). This second voltage may be greater than a third, average voltage at which the water in the air is partially dissociated (e.g., about 40% of the water in the air is dissociated). In one example, the third, average voltage may be about 920 mV. In another example, the third average voltage may be about 950 mV. As an example, the sensor output at 920 mV may correspond to a dry air measurement under a range of humidity conditions. The sensor output at 1.1 V may correspond to a wet air reading when all water in the air has been dissociated at the sensor, while the sensor output at 450 mV may correspond to a wet air reading when no water in the air has been dissociated. Thus, the oxygen measurement value in dry air can be obtained by the ratio of the outputs of the oxygen sensor when the oxygen sensor is operated at 450 mV and at 1.1 V. In an alternative embodiment, the oxygen reading may be obtained in dry air by a ratio of the outputs of the oxygen sensor when the oxygen sensor is operated at a voltage below 0.92 V where water is not dissociated (e.g., not even partially dissociated) and at a voltage above 0.92 V where water is completely dissociated (e.g., 100% dissociated).At 818, the dry air oxygen measurement and the related correction factor are determined based on the first pumping current and the second pumping current. For example, as described above, by operating the sensor at 450 mV (or similar voltage where no water is dissociated at the sensor), a lower pump current and oxygen reading may be obtained, while by operating the sensor at 1080 mV (or similar voltage where all water is dissociated at the sensor), a higher pump current and oxygen reading may be obtained. The dry air pumping current, which is indicative of a dry air oxygen reading, may then be estimated from a ratio between the lower, first pumping current and the higher, second pumping current. For example, a sum of 40% of the higher, second pumping current and 60% of the lower, first pumping current may be substantially equal to the pumping current and the oxygen reading in dry air. In an alternative example, other percentages of the higher and lower pumping currents may be added to determine the dry air pumping current. For example, if the higher or lower voltages are different from 450 mV and 1080 mV, respectively, the corresponding percentages used to determine the ratio between the higher and lower pump currents may be proportionally different.The estimated dry air oxygen measurement based on the ratio between the higher and lower pumping currents (e.g., the higher and lower oxygen sensor outputs corresponding to the higher and lower voltages) may then be used at 820 to determine an estimate of the ambient humidity, as described above with respect to FIG. 5. For example, the method at 820 may include storing the determined dry air oxygen measurement (e.g., as a value of dry air pump current) in a memory of the controller. Then, during the routine of FIG. 5 (e.g., at steps 520- 524), the controller may look up the latest stored dry air oxygen measurement and compare it to another output of the oxygen sensor under the selected engine operating conditions to determine the estimate of the ambient humidity. Further, at 820, the method may include updating a previously stored dry air oxygen reading with a new dry air oxygen reading in memory of the controller. For example, the stored dry air oxygen reading may be updated after each engine start.Referring now to FIG. 9, a method 900 for determining a pressure correction factor for an output of the exhaust oxygen sensor is shown. Oxygen sensors may have a pressure dependence that may affect the diffusion properties of the sensing element and thus result in a gain error in the output pumping current (Ip) of the sensor. This may be a significant noise factor for the variable voltage (VVs) measurements and may also affect the air-fuel controller when operating in the non-VVs mode. As a result, both fuel economy and emissions and drivability may be degraded. In addition, this may result in reduced accuracy of the estimates of the water content of the exhaust gas used to determine the amount of alcohol in the fuel as described above with respect to FIG. 4. As introduced above, the exhaust oxygen sensor pumping current outputs may be corrected based on various correction factors including a pressure correction factor (as shown at step 430 in FIG. 4 ). The resulting corrected pump current outputs may then be used to determine a more accurate estimate of the ethanol content of the fuel. The dry air pump current correction determined in method 800 may provide compensation for the total oxygen sensor gain error including part-to-part variability, aging, and pressure. However, the dry air pumping current learning routine (as shown in FIG. 8 ) is executed during the non-fueling conditions (e.g., DFBO events) that is a relatively high oxygen environment. However, the fuel ethanol estimates are performed during combustion and, consequently, the fueled conditions that are a relatively high water vapor environment. However, the pressure dependencies of the exhaust oxygen sensor are different in these two different environments. Consequently, an error may result in the dry air pumping current correction applied during both conditions.Instead, pressure correction curves defining a relationship between a measured pressure and a pressure correction factor for the exhaust oxygen sensor for each water vapor environment (e.g., fueling and non-fueling) may be used. Each of these relationships may be based on a different factor of pressure dependence (e.g., k-factor). For example, a pressure correction for the exhaust oxygen sensor water vapor environment may be determined based on the following relationship: where P meas is a current measurement of atmospheric pressure determined by an engine atmospheric pressure sensor, P ref is a selected reference pressure (e.g., sea level reference pressure), and the k-factor is a predetermined factor of pressure dependence for either a higher water vapor environment (e.g., a fueled condition) or a higher oxygen environment (e.g., a non-fueled condition). In another embodiment, P meas may be a modeled value based on additional operating parameters. The predetermined k-factors may be predetermined during oxygen sensor testing and then stored in the memory of the engine controller. The k factors may be set to a known sensor average, for example, for a group of oxygen sensors. In another example, the k-factors may be learned during use of the vehicle in the vehicle. In yet another example, the k-factors for the water and oxygen environments may have substantially the same value.A total pressure compensation (e.g., a total pressure correction factor) may then be determined based on the k-factor relationships and the dry air pump current correction factor experienced during method 800. The resulting final pressure corrected pump current outputs for the exhaust oxygen sensor may be, for example, where Ip meas is the pump current output from the exhaust oxygen sensor, the dry air correction factor is the correction factor experienced during method 800, the pressure correction wv( k-factor_O2, P meas) is the pressure correction factor for a higher oxygen environment (e.g., a lower water vapor environment and non-fueling conditions) based on the k-factor of the oxygen environment and the measured atmospheric pressure, and the pressure correction wv( k-factor_H2O, P meas) is the pressure correction factor for a higher water vapor environment (e.g., the fueled conditions), which is based on the k-factor of the water environment and the measured atmospheric pressure. In this way, the output of the exhaust oxygen sensor may be corrected based on a current measured pressure, a dry air correction factor, and a pressure dependence factor based on the water vapor environment around the exhaust oxygen sensor.With respect to method 900, the method begins at 910 by determining operating conditions. Operating conditions may include engine air-fuel ratio, speed and / or load, ambient temperature, atmospheric pressure, fuel injection amount, etc. At 912, the method includes determining if the non-fueled conditions are present. If the engine is not currently being fueled (e.g., no fuel is injected into any of the engine cylinders), the method continues to 912 to obtain the dry air pump current correction factor. The method at 912 may include, for example, executing method 800 shown in FIG. 8, as described above. In another example, at 912, the method may include looking up the latest determined and stored dry air pumping current determined during the method 800 in the memory of the controller. After obtaining the dry air pump current correction factor, the method continues to 916 to obtain a second pressure correction factor based on the current pressure, a reference pressure, and a pressure dependence factor (e.g., the k-factor) for a higher oxygen environment. The method of 916 may include determining a pressure correction factor for a higher oxygen environment, as shown by Equation 1 above. The method then proceeds to 918 to determine the final pump current pressure correction factor by multiplying the dry air pump current correction factor determined at 912 by the second pressure correction factor determined at 916. At 920, the method includes applying the final pump current pressure correction factor to the output of the oxygen sensor. For example, the method at 920 may include inputting the pump currents measured in steps 426 and 428 of method 400 to Equation 3 shown above. The resulting pressure corrected pump current determined at 920 (and thus at step 430 in method 400) may then be used in method 400 to determine a more accurate estimate of the ethanol content of the fuel.Returning to 912, if the engine is currently being fueled (e.g., fuel is injected into one or more engine cylinders), the method continues to 922 to obtain a predetermined dry air pump current correction factor. For example, at 922, the method may include looking up a latest stored dry air pump current correction factor determined during the last execution of method 800 in the memory of the controller. The method then continues to 924 to obtain a second pressure correction factor based on the current pressure, a reference pressure, and a pressure dependence factor (e.g., the k-factor) for a higher water vapor environment. The method may include determining the pressure correction factor for a higher water environment at 924, as shown by Equation 2 above. Then, the method proceeds to 918 and 920, as described above, to determine and apply the final pumping current pressure correction factor to the output of the exhaust oxygen sensor.Referring now to FIG. 10, a flowchart depicting a general control routine 1000 for adjusting engine operating parameters based on an amount of alcohol in fuel injected into the engine (also referred to herein as the alcohol content of the fuel or the ethanol content of the fuel) is shown. Specifically, one or more engine operating parameters may be adjusted according to a change in the amount of alcohol in the fuel. Fuels containing different amounts of alcohol may, for example, contain various properties such as viscosity, octane number, latent enthalpy of vaporization, etc. As such, engine performance, fuel economy, and / or emissions may be degraded if one or more suitable operating parameters are not adjusted.At 1010 of routine 1000, engine operating conditions are determined. Engine operating conditions may include, for example, air-fuel ratio, fuel injection timing, and spark timing. For example, the air to fuel ratio that is stoichiometric may change for different types (e.g., 14.7 for gasoline, 9.76 for E85), and the fuel injection timing and spark control may need to be adjusted based on the fuel type.Once the operating conditions have been determined, at 1012, routine 1000 determines an updated amount of alcohol in the fuel mixture and the ambient humidity. After the alcohol content of the fuel is known, routine 1000 proceeds to 1014, where under selected operating conditions, such as a cold start or fueling transition conditions, one or more desired operating parameters are adjusted based on the amount of alcohol in the fuel. For example, the system may adjust the stoichiometric air-fuel ratio based on the amount of alcohol in the fuel. Further, the air-fuel ratio feedback gains may be adjusted based on the amount of alcohol in the fuel. Still further, the desired air-fuel ratio during the cold start may be adjusted based on the amount of alcohol in the fuel. Still further, the spark angle (such as spark retard) and / or boost levels may be adjusted based on the amount of alcohol in the fuel.For example, in some embodiments, the timing and / or amount of fuel injection to one or more cylinders may be adjusted. For example, if it is determined that the amount of alcohol in the fuel is increased during cold start conditions (e.g., from 10% ethanol to 30% ethanol), the amount of fuel injected into the engine may be increased.As another example, spark timing may be adjusted based on the detected amount of alcohol in the fuel. For example, if the detected percentage of alcohol is lower than previously detected (e.g., from 85% ethanol to 50% ethanol), spark timing may be retarded to achieve higher engine output or boost without knock.Thus, various engine operating parameters may be adjusted during selected operating conditions based on a detected amount of alcohol in fuel injected into the cylinders of the engine. In this way, both engine and / or emissions efficiency and fuel economy may be maintained or improved.In this way, by comparing two different fuel alcohol content estimates determined with an exhaust oxygen sensor, the most accurate fuel alcohol content estimate may be selected and used for engine control. As described above, a first estimate of the alcohol of the fuel after a refueling event may be determined based on an air-fuel ratio determined by the sensor when the exhaust oxygen sensor is operating at a lower, first voltage (e.g., operating as a conventional air-fuel sensor). As such, the first estimate of the alcohol of the fuel may be updated each time there is a refueling event, so that a more accurate estimate of the amount of alcohol in the fuel is learned. Then, during engine fueling conditions, by modulating the exhaust oxygen sensor between the first voltage and a second, higher voltage (e.g., the second voltage may be a voltage at which water molecules at the sensor are dissociated) and determining a change in pump current during the modulating, a second estimate of the alcohol of the fuel may be determined. The change in the pumping current may then be corrected for various factors including humidity, pressure and air-fuel ratio. This may further increase the accuracy of the second fuel alcohol estimate based on the corrected change in pump current. In one example, the second estimate of the alcohol of the fuel may be determined only when the engine temperature has increased above a threshold, while the first estimate of the alcohol of the fuel may be determined when the engine temperature is below the threshold, such as during a cold start. As such, determining the first estimate of the alcohol of the fuel may take place prior to determining the second estimate of the alcohol of the fuel. If the difference between the first and second fuel alcohol content estimates is greater than a threshold error, the controller may not adjust engine operation based on the first fuel alcohol estimate, and instead may adjust engine operation based on the second fuel alcohol estimate, or repeat the second fuel alcohol estimate and compare the first to the updated second fuel alcohol estimate. Otherwise, if the difference between the two fuel alcohol estimates is less than the threshold, the controller may adjust engine operation based on the first and not the second fuel alcohol estimate. As such, a technical effect of estimating the first fuel alcohol estimate and the second fuel alcohol estimate and adjusting engine operation based on an error between the first and second fuel alcohol estimates is increasing an accuracy of the fuel alcohol estimate used for engine control, and thereby increasing fuel efficiency and improving overall engine control.As one embodiment, a method comprises: estimating a first alcohol content of the fuel based on an air-fuel ratio estimated with an exhaust oxygen sensor; after an engine temperature has increased above a threshold, estimating a second alcohol content of the fuel based on a change in sensor output while modulating a reference voltage of the exhaust oxygen sensor between first and second voltages; and adjusting engine operation based on a difference between the first and second alcohol contents of the fuel. The method may further comprise, responsive to the difference between the first and second alcohol contents of the fuel being greater than a threshold level, modulating the reference voltage of the exhaust oxygen sensor between the first and second voltages and repeating estimating the second alcohol content of the fuel to determine a new second alcohol content of the fuel. The method further comprises, responsive to a difference between the first alcohol content of the fuel and the new second alcohol content of the fuel being greater than the threshold level, adjusting engine operation based on the second alcohol content of the fuel and not on the first alcohol content of the fuel. Alternatively, in response to the difference between the first and second alcohol contents of the fuel being less than the threshold level or the difference between the first alcohol contents of the fuel and the new second alcohol contents of the fuel being less than the threshold level, the method includes adjusting engine operation based on the first alcohol contents of the fuel and not the second alcohol contents of the fuel. For example, the first voltage is a lower base voltage at which water molecules are not dissociated at the exhaust gas oxygen sensor, while the second voltage is a higher target voltage at which water molecules are dissociated at the exhaust gas oxygen sensor. In addition, the first and second alcohol contents of the fuel are the first and second amounts of alcohol in the fuel injected into the engine cylinders.As one example, modulating includes transitioning between applying the first voltage and the second voltage to the exhaust oxygen sensor, and estimating the second alcohol content of the fuel includes averaging a change in pump current output from the exhaust oxygen sensor during the modulating. In another example, estimating the first alcohol content of the fuel is performed after a refueling event, including operating the exhaust oxygen sensor at the first voltage, determining the air-fuel ratio based on a pumping current output from the exhaust oxygen sensor while operating at the first voltage, determining the first alcohol content of the fuel based on the determined air-fuel ratio, and updating a previous first alcohol content of the fuel determined before the refueling event with the first alcohol content of the fuel determined after the refueling event.Additionally, estimating the second alcohol content of the fuel may be performed after the engine temperature has increased above the threshold and during engine fueling conditions, including operating the exhaust oxygen sensor in a variable voltage mode by transitioning between applying the first voltage and the second voltage to the exhaust oxygen sensor. The method may further comprise correcting the sensor outputs at the first voltage and the second voltage based on an air-fuel ratio correction factor and / or a total pressure correction factor, the air-fuel ratio correction factor based on a difference between an expected air-fuel ratio calculated based on the amounts of fuel injection and air flow in a cam chain and an actual air-fuel ratio measured based on an output of the exhaust oxygen sensor upon application of the first voltage during the engine fueling conditions. The method may further include, for example, during engine non-fueling conditions, applying both the first voltage and the second voltage to the exhaust oxygen sensor, the first voltage being a voltage at which water molecules are not dissociated and the second voltage being a voltage at which water molecules are fully dissociated, and learning a first pressure correction factor for the exhaust oxygen sensor based on a ratio of the first and second outputs generated upon application of the first and second voltages, respectively; learning a second pressure correction factor based on a current atmospheric pressure and a factor of pressure dependence based on a water vapor environment of the exhaust oxygen sensor; and determining the total pressure correction factor by multiplying the first pressure correction factor by the second pressure correction factor.The method may further comprise correcting the change in sensor output during the modulating based on the ambient humidity. In one example, during engine operation without fueling, if a transmission shift is not predicted, the method may include opening an intake throttle and then applying both the first and second voltages to the exhaust oxygen sensor and estimating an ambient humidity based on a change in pump current output from the exhaust oxygen sensor between the application of both the first and second voltages. In another example, during engine operation without fueling, if a transmission shift is not predicted, the method may include opening an intake throttle and applying the first voltage to the exhaust oxygen sensor and estimating the ambient humidity based on a pump current output from the exhaust oxygen sensor when applying the first voltage and based on a dry air pump current. In yet another example, when a transmission shift is predicted, the method may include estimating the ambient humidity based on either an output of an ambient humidity sensor or based on a temperature of the ambient air.As another embodiment, a method for an engine includes: during a first condition after a refueling event, estimating an air-fuel ratio based on an output of an exhaust oxygen sensor operating at a lower first voltage, and determining a first estimate of the ethanol content of the fuel based on the air-fuel ratio; after an engine temperature has increased above a threshold while the engine is being fueled, determining a second estimate of the ethanol content of the fuel based on a change in the sensor output when a reference voltage of the exhaust oxygen sensor is modulated between the first voltage and a higher second voltage; and adjusting an operating parameter of the engine based on an error between the first and second estimates of the ethanol content of the fuel.In one example, the first condition includes a cold start and the error includes a difference between the first and second fuel ethanol content estimates. The method may further include: during a first condition, if the error is less than a threshold, adjusting the engine operating parameter based on the first ethanol content estimate of the fuel; and during a second condition, if the error is greater than the threshold, repeating the determining of the second ethanol content estimate of the fuel to determine an updated second ethanol content estimate of the fuel. If the error between the first fuel ethanol content estimate and the updated second fuel ethanol content estimate remains above the threshold, then the method may include adjusting the engine operating parameter based on either the second fuel ethanol content estimate or the updated second fuel ethanol content estimate. Otherwise, if the error between the first fuel ethanol content estimate and the updated second fuel ethanol content estimate is not greater than the threshold, the method may include adjusting the engine operating parameter based on the first fuel ethanol content estimate. As one example, the engine operating parameter includes a fuel injection amount and / or spark timing. The method may further comprise adjusting the change in sensor output when modulating the reference voltage based on a first pressure correction factor based on a dry air pumping current of the exhaust oxygen sensor and / or a second pressure correction factor based on a water vapor environment of the exhaust oxygen sensor and / or an air-fuel ratio correction factor based on a measured and an expected air-fuel ratio and / or an ambient humidity.It should be noted that the example control and estimation routines included herein may be used with various configurations of the engine and / or vehicle system. The control methods and routines disclosed herein may be stored as executable instructions in non-transitory memory and may be executed by the control system including the controller in combination with the various sensors, actuators, and other engine hardware. The specific routines described herein may represent one or more of any number of processing strategies such as event-driven, interrupt-driven, multi-tasking, multi-threading, and the like. As such, the various acts, operations, and / or functions illustrated may be performed in the order illustrated, performed in parallel, or in some cases omitted. Likewise, the order of processing is not necessarily required to achieve the features and advantages of the exemplary embodiments described herein, but is provided for ease of illustration and description. One or more of the illustrated acts, operations, and / or functions may be repeatedly performed depending on the particular strategy being used. Further, the described acts, operations, and / or functions may graphically represent code to be programmed into the non-transitory memory of the computer readable storage medium in the engine control system, wherein the described acts are performed by executing the instructions in a system including the various components of the engine hardware in combination with the electronic controller.It is understood that the configurations and routines disclosed herein are exemplary in nature and that these specific embodiments are not to be considered in a limiting sense because numerous variations are possible. The above technique can be applied to, for example, V-6, I-4, I-6, V-12, Boxer-4, and other engine types. The subject matter of the present disclosure includes all novel and non-obvious combinations and sub-combinations of the various systems and configurations and other features, functions, and / or characteristics disclosed herein.The following claims particularly point out certain combinations and sub-combinations which are considered novel and not obvious. These claims may refer to "a" element or "a first" element or its equivalent. Such claims should be understood to include inclusion of one or more such elements and neither require nor exclude two or more such elements. Further combinations and sub-combinations of the disclosed features, functions, elements and / or characteristics may be claimed through alteration of the present claims or through presentation of novel claims in this or a related application. Such claims, whether broader than, narrower than, or equal to the scope of the original claims, or different from the scope of the original claims, are also considered to be included within the scope of the present disclosure.
Claims
A method for an engine, comprising: estimating a first alcohol content of the fuel based on an air-fuel ratio estimated with an exhaust oxygen sensor; after an engine temperature has increased above a threshold, estimating a second alcohol content of the fuel based on a change in sensor output during modulating a reference voltage of the exhaust oxygen sensor between first and second voltages; and adjusting engine operation based on a difference between the first and second alcohol contents of the fuel.The method of claim 1, further comprising, responsive to the difference between the first and second alcohol contents of the fuel being greater than a threshold level, modulating the reference voltage of the exhaust oxygen sensor between the first and second voltages and repeating estimating the second alcohol contents of the fuel to determine a new second alcohol content of the fuel.The method of claim 2, further comprising, responsive to a difference between the first alcohol content of the fuel and the new second alcohol content of the fuel being greater than the threshold level, adjusting engine operation based on the second alcohol content of the fuel and not on the first alcohol content of the fuel.The method of claim 2, further comprising adjusting engine operation based on the first alcohol content of the fuel and not on the second alcohol content of the fuel, in response to the difference between the first alcohol content of the fuel and the new second alcohol content of the fuel being less than the threshold level.The method of claim 1, wherein modulating includes transitioning between applying the first voltage and the second voltage to the exhaust oxygen sensor, and wherein estimating the second alcohol content of the fuel includes averaging a change in pump current output from the exhaust oxygen sensor during the modulating.The method of claim 1, wherein estimating the first alcohol content of the fuel is performed after a refueling event and includes operating the exhaust oxygen sensor at the first voltage, determining the air-fuel ratio based on a pumping current output from the exhaust oxygen sensor during operating at the first voltage, determining the first alcohol content of the fuel based on the determined air-fuel ratio, and updating a previous first alcohol content of the fuel determined before the refueling event with the first alcohol content of the fuel determined after the refueling event.The method of claim 1, wherein estimating the second alcohol content of the fuel is performed after the engine temperature has increased above the threshold and during engine fueling conditions, and includes operating the exhaust oxygen sensor in a variable voltage mode by transitioning between applying the first voltage and the second voltage to the exhaust oxygen sensor.The method of claim 7, further comprising correcting the sensor outputs at the first voltage and the second voltage based on an air-fuel ratio correction factor and / or a total pressure correction factor, wherein the air-fuel ratio correction factor is based on a difference between an expected air-fuel ratio calculated based on the amounts of fuel injection and air flow in a cam chain and an actual air-fuel ratio measured based on an output of the exhaust oxygen sensor upon application of the first voltage during the engine fueling conditions.The method of claim 8, further comprising: during non-fueling conditions of the engine, applying both the first voltage and the second voltage to the exhaust oxygen sensor, wherein the first voltage is a voltage at which water molecules are not dissociated and the second voltage is a voltage at which water molecules are completely dissociated, and learning a first pressure correction factor for the exhaust oxygen sensor based on a ratio of the first and second outputs generated upon application of the first and second voltages, respectively; learning a second pressure correction factor based on a current atmospheric pressure and a factor of pressure dependence based on a water vapor environment of the exhaust oxygen sensor; and determining the total pressure correction factor by multiplying the first pressure correction factor by the second pressure correction factor.The method of claim 7, further comprising correcting the change in sensor output during the modulating based on the ambient humidity.The method of claim 10, further comprising, during engine operation without fueling, when a transmission shift is not predicted, opening an intake throttle and subsequently applying both the first and second voltages to the exhaust oxygen sensor and estimating an ambient humidity based on a change in pump current output from the exhaust oxygen sensor between the application of both the first and second voltages.The method of claim 10, further comprising, during engine non-fueling operation, when a transmission shift is not predicted, opening an intake throttle and applying the first voltage to the exhaust oxygen sensor and estimating the ambient humidity based on a pump current output from the exhaust oxygen sensor upon application of the first voltage and based on a dry air pump current.The method of claim 10, further comprising, when a shift of the transmission is predicted, estimating the ambient humidity based on either an output of an ambient humidity sensor or based on a temperature of the ambient air.The method of claim 1, wherein the first voltage is a lower base voltage at which no water molecules are dissociated at the exhaust oxygen sensor and the second voltage is a higher target voltage at which water molecules are dissociated at the exhaust oxygen sensor, and wherein the first and second alcohol contents of the fuel are the first and second amounts of alcohol in the fuel injected into the engine cylinders.A method for an engine, comprising: during a first condition after a refueling event, estimating an air-fuel ratio based on an output of an exhaust oxygen sensor operating at a lower first voltage, and determining a first estimate of the ethanol content of the fuel based on the air-fuel ratio; after an engine temperature has increased above a threshold while the engine is being fueled, determining a second estimate of the ethanol content of the fuel based on a change in sensor output when a reference voltage of the exhaust oxygen sensor is modulated between the first voltage and a higher second voltage; and adjusting an operating parameter of the engine based on an error between the first and second estimates of the ethanol content of the fuel.The method of claim 15, wherein the first condition includes a cold start and wherein the error includes a difference between the first and second fuel ethanol content estimates.The method of claim 15, further comprising: during a first condition, if the error is less than a threshold, adjusting the engine operating parameter based on the first fuel ethanol content estimate, and during a second condition, if the error is greater than the threshold, repeating the determining of the second fuel ethanol content estimate to determine an updated second fuel ethanol content estimate; and if the error between the first fuel ethanol content estimate and the updated second fuel ethanol content estimate remains above the threshold, adjusting the engine operating parameter based on either the second fuel ethanol content estimate or based on the updated second fuel ethanol content estimate; and if the error between the first fuel ethanol content estimate and the updated second fuel ethanol content estimate is not greater than the threshold, adjusting the engine operating parameter based on the first fuel ethanol content estimate.The method of claim 15, wherein the engine operating parameter includes a fuel injection amount and / or spark timing, and further comprising adjusting the change in sensor output when modulating the reference voltage based on a first pressure correction factor based on a dry air pumping current of the exhaust oxygen sensor and / or a second pressure correction factor based on a water vapor environment of the exhaust oxygen sensor and / or an air-fuel ratio correction factor based on a measured and an expected air-fuel ratio and / or an ambient humidity.A system for an engine, comprising: an exhaust passage including an exhaust oxygen sensor; and a controller including computer readable instructions to: estimate a first estimate of the ethanol content of the fuel based on an air-fuel ratio estimated with the exhaust oxygen sensor after a refueling event; estimate a second estimate of the ethanol content of the fuel based on a change in pump current output from the exhaust oxygen sensor upon application of a lower first voltage and a higher second voltage to the exhaust oxygen sensor when the engine is fueled and an engine temperature is greater than a threshold; and adjusting an operating parameter of the engine based on either the first fuel ethanol content estimate or the second fuel ethanol content estimate, wherein a selection of the first or second fuel ethanol content estimates is based on a difference between the first and second fuel ethanol content estimates relative to a threshold error.The system of claim 19, wherein the computer readable instructions further include adjusting the engine operating parameter based on the first fuel ethanol content estimate and not the second fuel ethanol content estimate when the difference between the first and second fuel ethanol content estimates is less than the threshold error, and adjusting the engine operating parameter based on the second fuel ethanol content estimate and not the first fuel ethanol content estimate when the difference between the first and second fuel ethanol content estimates is greater than the threshold error.
Citation Information
Patent Citations
Detection of fuel alcohol content using an exhaust gas sensor
DE102010021281A1
Methods and systems for moisture detection using an exhaust gas sensor
DE102014100411A1
Methods and systems for determining fuel ethanol content using an oxygen sensor
DE102014119377A1
Fuel blending ratio inferring method
US6016796A
