|
A circuit to detect if an analogue signal is falling or rising.
The first capacitor on the left "stores" the value of the signal at that moment when the switch is opened. The left op-Amp compares the momentary signal with the stored value.
If the signal is higher than the stored value, the op-amp will output +VDD, if it is lower -VDD. While the switch is closed, The op-amp outputs GND.
To get a clear non-switching output, the following RC Lowpass makes the op amp output lag so that, the following comparator can output a clean high or low voltage.
Adjust the RC values for your desired signal frequency range.
NOTE: For a real-world implementation use an analogue multiplexer instead of a relay! (e.g. BC4053, 4052, 4051)
|