It would simulate a wideband
It would simulate a wideband sensor by implementing a moving average filter over the O2 signal. So, let me explain that some more. A narrowband O2 sensor is constantly fluctuating from rich to lean, up to 10 cycles per second. The advantage of a wideband is that it does not overshoot each cycle - it outputs a constant reading and is supposed to be more fuel efficient. A moving average filter samples the input signal (reads the value at some time t) and calculates an average based off past values. The output is (f[t] + f[t-1] + f[t-2] + ... + f[t-n]) / (n+1) where n+1 is the number of terms in the average, which is also called the bandwidth of the filter. This filter dampens out the peaks into a constant average if the sample rate and number of samples are properly chosen. This is how I would use a narrowband sensor to act as if it were a wideband through some very basic digital signal processing.
Now here's the catch. The sample rate times the number of samples must be greater than one period of the input signal or your result will be off. Imagine implementing this filter on a sine wave and the bandwidth of the filter is only pi/2. Your average consists of only the positive portion of the sine wave and doesn't have any of the negative values to bring the average down to zero where it should be.
I wrote a program on my calculator today to simulate this concept. I could get very good results by using only 5 samples but sampled at a little over 3 periods of the input. If the frequency was about that of an O2 sensor at 10Hz, the bandwidth would be about 1.5 seconds, meaning that if you suddenly went WOT, there would be a 1.5 second delay for the pervious values in the average to get kicked out and the output of the system to be reading the right value. This would be unacceptable for normal driving, but possiblty useful in highway driving. I am going to look into other methods of processing the signal that have a much smaller bandwidth, preferably nothing more the the period of the O2 sensor at 0.1 seconds. I'll have to look into the limits of the PIC, but if I could sample the input fast enough I could get by with only 1 period. Analog to digital conversion is a time consuming process relative to other commands.
__________________
Scouring the country for an excellent condition Civic VX
|