RegUser_2 said:
flatulent said:
Your best bet would be to use an ordinary comparator IC. AC couple the input from your signal and the flip point will be at the middle of the input signal.
This is done if the negative comparator input is feed from the same signal, but through a RC LPF to estimate the average value of the signal.
If signal changes from one type to another , RC LPF oputput establishment will increase transient time . If input freq down to 1 Hz , LPF should give 3 DB
somewhere at 0.1 Hz or may be less (establishment time t ~ 1/10*fmin) , while flatulents suggestion tolerate somewhere on min frequency (t ~ 1/fmin).