Electronic filters - Simulation

In electronics, filter is an electrical circuit that allows or it does not allow electrical signals to pass depending on their frequencyf. Filters are used to suppress signals with unwanted frequencies. There are different types of filters and we have different criteria for dividing them. Due to their use, filters are divided into:
• LPF - Low Pass Filter,
• HPF - High Pass Filter,
• BPF - Band Pass Filter,
• BSF - Band Stop Filter.

We also divide filters according to their construction. For example, there are RC filters.

Below we have an ideal filter, i.e. one that completely suppresses unwanted signals.

Select a filter:     LPF      HPF      BPF      BSF
Frequency A shift B shift

Examine the characteristics of this filter, i.e. determine the dependence of the gain A on the frequency of the signal f - you can choose a circuit from among four types of filters.
Gain A is the ratio of the amplitude of the output signal U0out to the amplitude of the input signal U0inp.

A = U0out/U0inp

This is an ideal filter, so for a low-pass filter we have A = 0 for signals with attenuated frequencies, and A = 1 for passed signals.

LPF

Note that this ideal filter, however, causes a small phase shift of the output signal U(t)out relative to the signal fed to its input U(t)inp. - you can see it on the oscilloscope screen
In practice, we use filters for which the gain A for signals with attenuated frequencies is greater than zero and the phase shift is much greater.

In this simulation, at a certain frequency value f0 of the input signal U(t)inp the output signal completely disappears, i.e.: U(t)out = 0.
I have already written above that this is not the case in real filters. Consider RC low-pass filter. Its frequency response A(f) is as follows.

RC filter

The output signal U(t)out from this filter decreases gradually as the frequency f of the input signal increases. In other words, there is no frequency value f0 for which the value of the signal amplitude U(t)out drops abruptly to zero. In electronics, the definition of the cut-off frequency that characterizes filters has been introduced.

Filter cut-off frequency
We will assume that in the passband of the RC low-pass filter, the value of its gain A(f) is An. In our ideal filter we had An = 1. In the RC filter there is no band in which A(f) has a constant value. Therefore, it is assumed that An is the largest value of the filter gain.
The filter cut-off frequency f0 is the frequency at which the gain of the filter A(f0) falls of to 0, 71An. It is often said that the cut-off frequency is the point at which the gain drops by -3 dB.