The present invention relates to operational controls for internal combustion engines; more particularly, to spark and fuel delivery timing based upon signals from a crankshaft rotary position encoder; and most particularly, to a system for improving the reliability of such signals by discrimination of spurious electrical noise spikes.
It is well known in the engine arts to control the firing and/or fuel injection timing of an internal combustion engine by use of a rotary signal encoder driven by the engine's crankshaft. Such an encoder typically employs a beam or field chopper such as a toothed wheel to generate an alternating signal indicative of the instantaneous rotational position and rotational speed of the crankshaft. A typical crank wheel chopper has 58 peripheral teeth comprising a 50% duty cycle (teeth and gaps of equal angular length). A timing gap equivalent to about three teeth is also included to permit the system to recognize the completion of each revolution and the start of the next revolution.
A problem in the prior art is that electrical noise in the engine, which may arise from any of a variety of sources, may interrupt and distort the true signal, either in the timing gap or between true teeth signals, producing signal spikes which are interpreted by the engine controller as valid. The controller then counts 59 (or more) teeth in a revolution, which cannot be computed by the prior art timing algorithm. This causes loss of synchronization of firing and/or fuel injection with the piston and valve sequencing, which can result in misfiring and incorrect spark and fuel delivery.
What is needed in the art is a system (method and apparatus) for recognizing and rejecting such spurious signals by continuing analysis of the true signal.
It is a principal object of the present invention to improve performance of an internal combustion engine by increasing the reliability of a crank encoder signal.
Briefly described, a system for discrimination of spurious crank encoder signals in accordance with the invention comprises a position encoder attached to an engine crankshaft and an engine controller for receiving an interrupted signal from the encoder, preferably a signal chopped by a toothed wheel. The controller is programmed to trigger an interrupt service routine (ISR) on every falling or rising edge of each tooth. The ISR calculates and stores the period of each tooth interruption and the period of the previous tooth interruption and therefore can calculate the instantaneous acceleration or deceleration of the engine at all times. The controller is further programmed with realistic engine acceleration and deceleration limits and recognizes a next signal only within a time window corresponding to those limits. Signals received outside the calculated time window are mechanically impossible as true signals and thus are considered spurious and are rejected.
The present invention will now be described, by way of example, with reference to the accompanying drawings, in which:
Corresponding reference characters indicate corresponding parts throughout the several views. The exemplification set out herein illustrates one preferred embodiment of the invention, in one form, and such exemplification is not to be construed as limiting the scope of the invention in any manner.
Referring to
Referring to
Referring to
A method in accordance with the invention comprises the following steps:
a) triggering an interrupt service routine (ISR) on every falling or rising edge of each encoder tooth;
b) calculating and storing the period of interrupt by each successive tooth and the period of interrupt of the immediately previous tooth;
c) comparing the adjacent periods of interrupt to calculate engine speed and an instantaneous rate of acceleration or deceleration of the engine;
d) using the calculated rate of engine acceleration or deceleration and the engine speed to calculate a predicted time window for reception of the next encoder signal;
e) receiving a signal within the predicted time window; and
f) rejecting as spurious any signal received outside the predicted time window.
Preferably, the controller algorithm also includes means for recognizing and rejecting a repeating signal anomaly such as would arise from a bad tooth on the encoder.
Advantages of a system in accordance with the invention are:
a) reduced occurrences of engine misfire;
b) a potential reduction in the crank-to-run time interval, provided by removing crank sensor noise during engine cranking;
c) more accurate spark delivery, by compensating for noise spikes in spark delivery and dwell;
d) more accurate engine speed calculation, resulting in more accurate fuel delivery calculation; and
e) reduced emissions.
While the invention has been described by reference to various specific embodiments, it should be understood that numerous changes may be made within the spirit and scope of the inventive concepts described. Accordingly, it is intended that the invention not be limited to the described embodiments, but will have full scope defined by the language of the following claims.