I want to see if there is a frequency in the air.I will take the frequency with a phototransistor.I will make a bandpass filter and i want to have high output(one) when the frequency exists or low output(zero) when the frequecy dosn't exists.The frequency is between 0 - 5 volts.Duty cycle 25%.If i put a capacitor in the output from the filter will i take the average (2,5Volts) from the square frequency or i will take zero because the the capacitor will go to ground(see the schqmatic).The frequency varies from 1 to 40 kHrz.Thank you in advance.

