# ExpEYES

## Study of filter circuits

Circuits with a response that depends upon the frequency of the input signal are known as filters. We can study them using the frequency and phase response plots. We are using active filters in this example. The schematic of the filter circuit is shown in the screenshot below. The values chosen are

• R1 = 10K
• R2 = 1K
• R3 = 100K
• C1 = 0.1uF
• C2 = 0.01uF
• OpAmp = OP07

It is designed using an Online Tool. The calculated resonance frequency is 527.8 Hz, very close to the measured response. The first screen shows the input and output waveforms. Sliding vertically on the WG icon changes the frequency and we can view the change in the output amplitude with frequency. On the second screen (Record Data) specify the frequency limits and stepsize to generate the gain and phase plots. Design in such a way that the gain is less than one.

The design given is just an example and you can study other types of circuits as well. The limitation is the frequency range of WG, 5 Hz to 5000 Hz only.

The connections are made as shown in the figure below.

### Python Programs

The same experiment is repeated using a Python program. The steps for performing this experiment manully are:

• Set the start frequency
• Measure both the Input and Output amplitudes, gain is Aout/Ain.
• save the results
• Increment the frequency
• Repeat the process until the stop frequency is reached

The program just implements these steps to save time, and also improves accuracy. For extracting phase information, we need to mathematically fit the data.

• Python program to measure the voltage gain as a function of frequency and save the data to a file.
• Sample Data
• Python program to read the data, plot freqency vs gain, and also try to fit the graph using a gaussian function.