US 7369933 B2
An electronic engine fuel controller that is simple, low cost, easily installed, and configurable for any internal combustion engine. The system is intended for upgrading older carbureted vehicles or vehicles that have been modified beyond the limits of the OEM controller. It takes advantage of modern microcontroller technology with integrated memory, digital input/output, sensor and timer channels to produce a low parts count, as well as reliable operation in a large variety of vehicles, even when installed by people with little experience or knowledge in this area. Operation is by sensing a tachometer signal from the existing distributor, ignition coil, toothed wheel or similar device that produces one electronic pulse for each cylinder cycle. When a pulse is received, software in the micro measures engine operating parameters, calculates fuel parameters, and fires one or more injectors depending on how the system is configured. Configuration software operating on an external computer or laptop and communicating with the micro allows the user to modify any of the controller parameters or tables used for the fuel calculations.
1. A system for controlling an engine, comprising:
a control circuit that executes engine control program instructions;
a mode selection circuit which causes the control circuit to input external data for changing the engine control program instructions by selectively providing a mode selection instruction to the control circuit; and
a communication port which communicates with the control circuit,
wherein, when the mode selection circuit provides the mode selection instruction to the control circuit, the control circuit inputs the external data.
2. The system of
3. The system of
wherein, when the mode selection circuit provides the mode selection instruction to the control circuit, the control circuit refrains from executing the engine control program instructions and inputs the external data.
4. The system of
5. The system of
6. The system of
7. The system of
8. The system of
9. The system of
10. The system of
11. The system of
12. The system of
13. The system of
14. The system of
15. The system of
16. The system of
17. The system of
18. The system of
19. The system of
20. The system of
wherein, when the external electrical conductor couples with the electrical conductor of the boot loader header, the boot loader header outputs the mode selection instruction to the control circuit.
21. The system of
wherein the external electrical conductor comprises a jumper that couples with the pin.
22. The system of
wherein, when the boot loader header provides the mode selection instruction to the control circuit, the control circuit refrains from executing the engine control program instructions and inputs the external data.
23. The system of
24. The system of
25. The system of
26. A computer readable medium tangibly containing program instructions for causing a control circuit to perform operations, comprising:
performing engine control; and
inputting external data when the control circuit receives a mode selection instruction.
27. The computer readable medium of
wherein, when the control circuit receives the mode selection instruction, the program instructions cause the control circuit to refrain from executing the engine control and to input the external data.
28. The computer readable medium of
29. The computer readable medium of
This is a continuation of application Ser. No. 11/703,827 filed Feb. 8, 2007 which is a continuation of application Ser. No. 10/375,458 filed Feb. 27, 2003, which claims the benefit of Provisional Application No. 60/362,475 filed Mar. 7, 2002. The entire disclosures of the prior applications, application Ser. Nos. 11/703,827 and 10/375,458 are hereby incorporated by reference.
During the early to mid-1980s, car manufacturers, under pressure to increase fuel economy and simultaneously reduce emissions, switched to electronic fuel injection to obtain more precise control of engine fuel under all operating conditions. When the automotive aftermarket saw the trend, it entered the field, first with PROM chips that allowed the buyer to modify the constants programmed into the electronic controller unit at the factory by simply switching chips. This allowed one to increase performance somewhat, generally at the expense of gas mileage, and to make engine modifications for which changes in program parameters were needed. Gradually, conversion kits were developed to allow hobbyists and racers to upgrade carbureted engines to Electronic Fuel Injection (EFI) or to replace OEM Electronic Control Units (ECUs) to obtain much more control over the system than the re-programmed PROM chips allowed. One of the first of these was U.S. Pat. No. 4,494,509 (1985) to Long. Although now plentiful, these kits are quite costly and difficult to install and configure. Numerous drivability problems whose solutions are beyond the capabilities of the users are also often reported after the installation. Furthermore, the price of these systems places them well beyond the reach of most hobbyists and enthusiasts.
The present invention provides an engine controller that is: more cost effective because of its low parts count due to integrated technology; simpler to install because of its generic design and flexible software, allowing it to be used with all models and makes of
engines from motorcycles to trucks, even or odd number of cylinders, and regardless of the experience of the end user. The design is also more reliable because of several software algorithms that will be described.
A general object of an embodiment of the present invention is to provide a simple, reliable, user configurable system (electronic circuit and software) for electronic fuel injection control.
An object of an embodiment of the present invention is to provide an aftermarket EFI system that can be manufactured at low cost.
Another object of an embodiment of the present invention is to provide a generic EFI system that can be used with a large variety of engines of different sizes, numbers of cylinders, types and sizes of fuel injectors, and types of ignition systems.
A further object of an embodiment of the present invention is to provide an EFI system that can be easily installed by hobbyists and non-professional users with only a limited knowledge of electronics, computers, and the principles of electronic fuel control.
Another object of an embodiment of the present invention is to provide an EFI system with reduced susceptibility to electronic noise.
Briefly, and in accordance with at least one of the foregoing objects, an embodiment of the invention provides an integrated microprocessor based electronic circuit and software that uses an external tachometer signal and various sensor inputs to calculate combustion engine fuel requirements, and provides corresponding electronic control signals to open and close the engine mounted fuel injectors. Parameters for the calculation of these signals are user configurable.
The present invention may best be described with reference to the accompanying drawings in which:
While the invention may be susceptible to embodiment in different forms, there is shown in the drawings, and herein will be described in detail, a specific embodiment with the understanding that the present disclosure is to be considered an exemplification of the principles of the invention, and is not intended to limit the invention to that as described herein.
1. Circuit Description
The overall hardware system is shown in
The CPU of choice for this application is the Motorola MC68HC908GP32 (U1). This CPU is a member of Motorola's HCO8 family of micro controllers, providing a rich integration of features, and hence allows a low system parts count. The CPU core runs at an internal bus speed of 8 MHz, which is derived from an internal phase-locked loop clocked from a 32.768 KHz crystal (Y1). The GP32 version has 32 Kbytes of on-chip flash ROM memory with direct in-circuit programming, which allows for the storage and runtime re-programming of constants that is extremely desirable in this application. There are 512 bytes of on-chip RAM memory—more than adequate for this application. Other features include two 16-bit, 2-channel timers, serial communication channels, and an 8-channel, 8-bit Analog to Digital Converter (ADC) for measuring sensor inputs.
The CPU oscillator circuit is comprised of a 32.768 watch crystal (Y1), two capacitors (C23 and C24), and two resistors (R21 and R22). The on-chip PLL clock circuit requires the external loop filter network C19, C20, and R20. The microprocessor has an internal power-on reset circuit, so no external circuitry is required.
Tuning of system configuration parameters while the engine is running is key to a successful injector control unit. This system uses a standard RS-232 communication interface chip (U6) to talk to a host PC, which is running a custom application that allows the download and tuning of the relevant parameters.
The sensor inputs to the system are shown in
The other critical input to the system comes from the manifold absolute pressure (MAP) sensor (U3) that monitors intake manifold vacuum. The sensor used here is the Motorola MPX4250 which is an integrated pressure sensor containing the sensing element, coupled to the engine manifold by a flexible tube, and an amplifier and temperature compensation circuitry all in one package, yielding an analog output which is proportional to applied pressure (absolute, not gauge). The output of the MAP sensor is filtered by R2 and C4, clamped by diode D1, and is supplied to channel 0 of the ADC in the micro controller. Using this sensor allows the system to handle normally aspirated and turbo engines to 2.5 Bar. Also, the MAP sensor ADC is sampled in the CPU at a fixed time after receipt of the tach signal; doing this eliminates fluctuation of the pressure due to piston motion during the engine cycle, and hence provides a consistent fuel mixture and a smoother running engine.
This fuel injection system is of the “speed-density” variety, meaning that the amount of air consumed (and required fuel) is deduced from the manifold absolute pressure and the RPM at which the engine is operating. Hence, with just these inputs, the engine can be run; the other inputs that follow provide more optimal control under different load and environmental conditions.
Engine temperature measurements are sensed by negative-coefficient thermistors mounted in the intake air stream (MAT) and engine coolant liquid (CLT). In order to sense the resistance of the sensors, they are configured as part of a voltage divider circuit—R4 for the MAT sensor and R7 for the CLT sensor. One side of each sensor is tied to ground. The resultant divider voltage is filtered by R5 and C5, C6 for the MAT sensor and R8 and C8, C7 for the CLT sensor, and protected from over-voltage by D2 and D3.
Real-time sensing of throttle position is required by the CPU in order to provide more fuel during periods of rapid throttle opening. The standard throttle position sensor (TPS) is a simple 10K potentiometer attached to the engine throttle shaft with a constant voltage (5 volts in this case) across the potentiometer. The wiper terminal of the pot will therefore provide a variable voltage between 0 to 5 volts. This voltage is filtered by C10 and R9 and clamped by diode D4, and then applied to ADC channel 3.
Other input sensors include battery voltage (needed to adjust the injector opening time), derived by the resistor divider consisting of R3 and R6, and the exhaust gas oxygen content sensor (02). The 02 sensor is a special device that generates a small voltage (approx. 0.6 volts) when the ratio of gas to air is less than 14.7. Once again, the common theme of filtering (R1 and C2) and limiting (D11) is utilized.
The boot loader header (H1) allows a user to pull the battery voltage terminal (AD4) on the CPU down to ground. This is sensed in the CPU software and is recognized as the signal to cease normal operation and load new software in the CPU ROM memory using the RS232 port.
To be truly generic it is required that the system handle the two common electrical impedances for fuel injectors: high impedance (roughly 12-16 ohms) and low impedance (1.2 to 2.5 ohms). The high impedance type (also known as saturated) provides its own current limiting, due to its comparably high resistance, and can be driven directly by Q2. The low-impedance types, known as peak-and-hold injectors, require a different drive strategy. These injectors like to have higher “peak” current applied, say 4 amps, while they are opening, and a lower “hold” current (like 1 amp or so) to keep them open. To provide this relative current control, Q2 is driven fully on during the time the injector is opening. When a predetermined time has elapsed which is sufficient to ensure that the injector is open (based on injector impedance and supply voltage), the drive to Q2 is switched to a pulse-width modulation mode (using the PWM mode of the timer channel), with a frequency of 15 KHz and a duty cycle which keeps the average current through the injector at the desired “hold” value. Both the duration of the “peak” current and the amount of reduction in amplitude during the “hold” portion are configurable by the user in the software.
Direct control of a fast-idle solenoid is provided by Q5 (spikes limited by D9), which is opened when the engine is first started and not at a fully warmed temperature. The fast idle solenoid provides an air bypass around the throttle plates to provide additional air in the intake manifold. The operation of the electric fuel pump is also controlled in the micro controller (via a relay) using Q3.
Finally, three LED lights are switched by transistors Q9-Q11. The first tells the user that the injectors are being driven, the other two tell the user when extra fuel enrichment is being supplied to compensate for cold engine warm up, and for acceleration, as indicated by a large throttle opening rate.
2. Software Description
A summary of the software flow is provided in
The primary control algorithm, performed in the main loop of the embedded program, is the calculation of injector on time or pulse width. For this simple fuel injection system, the equations used for this have been optimized as follows:
The injector flow rate is a constant measured at the factory by flowing the injector at the line pressure specified for the car. The fuel required in the above equation depends on the amount (in mass) of air entering the engine and the desired air/fuel ratio (AFR). In the above, air density is in pounds per cubic foot, MAP in kilopascals, MAT is the intake manifold air temperature in degrees Fahrenheit, and the 459.7 converts to degrees Kelvin. The volume of the cylinder is in cubic feet.
To simplify the calculations required by the microprocessor, one can define a quantity at a specific set of input values. In this system, we define the variable Req_fuel which is the amount of injector open time required for a MAP value of 100 Kpa (essentially wide-open throttle), MAT value of 70 degrees F., and assign values for AFR and cylinder volume which relate to the application. Req_fuel is a constant inside of the program. With this definition, the code is simplified by the use of direct units for the calculations, for example, MAP readings in Kpa/100 can be directly multiplied by Req_fuel to yield the change in pulse width time. Also, quantities, like volumetric efficiency (VE), which is the efficiency of the engine in pumping air at a specific RPM and load, can also be directly multiplied to the Req_fuel value. Likewise, acceleration and warm up enrichment values are directly multiplied in normalized percentages, as well as feedback settings for closed loop operation (02). Lookup tables for percent changes from the defined baseline value for Req_fuel is also used for temperature correction and barometric pressure correction, and are multiplied in a similar manner. This approach is very intuitive for users and yields:
The preceding description covers the basic requirements, but there are several other corrections that need to be made. The first of these is enrichment for a cold start. During the cranking period and for at least a minute or more thereafter, an extremely rich fuel mixture is required for the engine to fire and run properly. How rich depends on the coolant temperature as measured by the coolant sensor. Hence, a user-configurable table is provided in flash memory for fuel enrichment vs temperature, and this is factored into the injector pulse width equation. As the engine warms up, the enrichment tapers off.
During the cranking phase, more sophisticated strategies employ asynchronous injection, in which the injector is made to pulse several short bursts of fuel rather than a single long shot. This produces better mixing of the fuel and air. This is needed during cranking, because there is very little engine vacuum generated at the slow cranking speeds. Hence, the air moves very slowly through the intake tract and does not mix well with the fuel, thereby producing a weaker and rougher combustion event.
A second area requiring special enrichment is acceleration. When the throttle is depressed rapidly for acceleration, a very rich mixture is required for a short period to keep the engine, from stumbling. To do this the ECU must first sense that acceleration is occurring. It does this by polling for a TPS and/or MAP sensor rate of change that is above a fixed threshold. When this occurs, the mixture is enriched by an amount, and for a time period, which is a function of the rate of change.
Another fuel correction commonly used is for barometric pressure. This affects the airflow and air density, and hence the fuel must be corrected to maintain a desired AFR. In the present system the intake MAP reading just before starting the engine is used as the barometric pressure, and a correction table is applied.
A stoichiometric air/fuel ratio of 14.7 is generally considered optimal for all around driving, economy and emissions, and this is what is strived for in closed loop mode using oxygen sensor feedback. This sensor, as the name implies, sends back to the ECU a voltage proportional to the amount of free oxygen in the exhaust. Too much means a lean mixture requiring more fuel be added; too little, just the opposite. Thus, in closed loop mode a PID loop is used to modify the basic fuel equation so as to maintain a just right fuel mix regardless of the type of gas used or the amount of wear in the engine. This
mode is used off idle during cruise conditions when such a stoichiometric mixture is desired.
The fuel injector is a solenoid tied to battery voltage on one end, and is grounded by the ECU at the other end when it is desired to turn on the injector. Now the specification injector flow rate is for steady state conditions, but the injector in the engine is not run at steady state, it is constantly pulsed on and off, and requires about 1-2 ms to fully open, and 1 ms to fully close. (During opening it is fighting spring pressure, while the spring assists in closing.) This fact requires two more corrections for fuel regulation. One is for the fact that the flow rate is not constant during the open/close ramps, and the other is a compensation for battery voltage, which has an effect on the open time. If the battery is weak, the injector will take longer to open. Hence, battery voltage is measured as shown in
A practical feature of the software not directly related to engine control is the provision for a bootloader program. This feature allows corrections and upgrades to the software to be easily downloaded by the users when they are developed.