I have 2 frequency signals (square wave 0-5V) and want to output another frequency signal that is the sum of both.
I want to use 2 airflow sensor on my car because I have 2 turbos (lucky me... :P). Currently there is one air flow sensor, but this isn't very good because it requires some interesting intake pipe work to split the air flow after going through the sensor.
What I want to do is use 2 sensors so that I can run one off each turbo and then sum the sensor output so that I can retain the standard ECU control.
I foolishly thought it should be fairly easy to do... Either it isn't or I am using the wrong search criteria in google
I was hoping I could use my Arduino to acomplish this task, however I am at a loss as to how to do it. well, not quite at a loss, but not sure I can actually do waht I want.
My inclination would be to have 2 interupts, which count pulses. Run a timer that triggers at just over 2x the max frequency to be seen (4kHz is the max output from the sensor) and do some calculations to work out what the output frequency should be (again, this shouldn't go above 4kHz)
I believe that should be fairly straight forward, but the bit that bites me is how to output a reliable frequency?
Also, how can I ensure that I get a reliable count from both sensors? What happens if by some fluke the both trigger an interupt at the same time? Or with a 20MHz chip is this going to be so infrequent as to make it irrelivent?
lastly, i'm working on a 3bar map signal--> converting to 2bar map (w/map clamp) that autotunes based on the wideband 02 input, TPS, and knock_count. my analog prototype works great, now for the Ardunio version -- still having problems with the 4x20 lcd..
I am using a Mitsubishi sensor, I think i'll have a look at #2 first and post the results.
I am very interested in your auto-tune stuff, as this was where I wanted to head next.
My intention was to use the wideband to create a modification lookup table (RPM/TPS/Freq) that is used to condition the frequency output, this table being continually refined by the wideband response.
I didn't intend to use knock, hadn't thought about it :-[ It is definitely a good idea though.