Salta al contenuto
Note per Studenti Lab 4 - RC Filters Report

Lab 4 - RC Filters

In questa pagina 8

Aim

Understand the frequency behaviour of elementary RC circuits (low-pass, high-pass and band-pass filters) and analyse their response to sinusoidal, square and triangular input signals.

Introduction

RC filters are among the most fundamental building blocks of analog electronics. They are passive linear circuits made of a resistor RR and a capacitor CC; their behaviour depends on how the two elements are connected. Exploiting the frequency-dependent impedance of the capacitor, an RC filter attenuates some frequency components of an input signal and lets others pass.

  • Low-pass filter: the capacitor is connected in parallel to the output (resistor in series, capacitor to ground). It lets low frequencies pass and attenuates high frequencies.
  • High-pass filter: the capacitor is in series with the input and the resistor goes to ground. It transmits high frequencies and blocks low ones.
  • Band-pass filter: obtained by cascading a high-pass and a low-pass section; it passes signals within a specific frequency range and attenuates those outside it.

Uses: signal conditioning, noise reduction, waveform shaping. For the role of filtering before sampling see Aliasing and Anti-Aliasing FiltersAliasing is the overlap of spectral replicas that occurs when the band-limited or Nyquist assumptions of the sampling theorem fail; an anti-aliasing low-pass filter with cut-off omega_s/2 applied before sampling removes it at the price of losing the high frequencies; two worked exercises.Aliasing and Anti-Aliasing Filters → and Sampling and the Sampling TheoremSampling multiplies a continuous-time signal by a pulse train, which replicates its spectrum every omega_s; if the signal is band-limited with maximum angular frequency omega_M and omega_s exceeds 2 omega_M, an ideal low-pass filter recovers it exactly (Shannon theorem and sinc interpolation formula).Sampling and the Sampling Theorem →.

Frequency response

The behaviour is described by the transfer function

H(jω)=Vout(jω)Vin(jω),ω=2πfH(j\omega) = \frac{V_{out}(j\omega)}{V_{in}(j\omega)}, \qquad \omega = 2\pi f

which says how amplitude and phase of a sinusoidal input are modified as a function of the angular frequency.

Low-pass (resistor in series, capacitor to ground):

HLP(jω)=11+jωRCH_{LP}(j\omega) = \frac{1}{1 + j\omega RC}

∣HLP(jω)∣=11+(ωRC)2,∠HLP(jω)=−tan⁡−1(ωRC)|H_{LP}(j\omega)| = \frac{1}{\sqrt{1 + (\omega RC)^2}}, \qquad \angle H_{LP}(j\omega) = -\tan^{-1}(\omega RC)

High-pass (capacitor in series, resistor to ground):

HHP(jω)=jωRC1+jωRCH_{HP}(j\omega) = \frac{j\omega RC}{1 + j\omega RC}

∣HHP(jω)∣=ωRC1+(ωRC)2,∠HHP(jω)=tan⁡−1(1ωRC)|H_{HP}(j\omega)| = \frac{\omega RC}{\sqrt{1 + (\omega RC)^2}}, \qquad \angle H_{HP}(j\omega) = \tan^{-1}\left(\frac{1}{\omega RC}\right)

Cutoff frequency (same for both): the frequency at which the output power drops to half its low-frequency value,

fc=12πRCf_c = \frac{1}{2\pi RC}

At this frequency ∣H(jωc)∣=1/2|H(j\omega_c)| = 1/\sqrt{2} of the maximum amplitude (the −3-3 dB point). These relations allow a direct comparison between theoretical predictions and the oscilloscope measurements.

Circuit diagrams

 Low-pass RC filter                      High-pass RC filter

        R                                      C
  o----/\/\/----+-------o Vout           o-----||-----+-------o Vout
                |                                     |
 Vin           ---  C                     Vin         \  R
 (~)           ---                        (~)         /
                |                                     \
  o-------------+                         o-----------+
  (ground line)                           (ground line)

(In the figure of the sheet, VinV_{in} is a sinusoidal source on the left; the low-pass has RR in the top branch and CC from the output node to the return line, the high-pass has CC in the top branch and RR from the output node to the return line.)

Key activities

  • Compute the cutoff frequency of the RC filters.
  • Use the oscilloscope to compare input and output signals.
  • Measure attenuation and phase shift as a function of frequency.
  • Interpret qualitatively the effect of filtering on different signal shapes.

(Oscilloscope and generator use: see Lab 3 - Using the OscilloscopeThird laboratory session: learn the oscilloscope controls, check probe compensation, display and measure generator signals with measurement functions and cursors, find the AC-coupling cut-off, observe square and triangular waves, measure phase shift with two channels and stabilize AM signals with hold-off.Lab 3 - Using the Oscilloscope → and Lab 2 - AC Measurements with the Signal GeneratorSecond laboratory session: indirect measurements with a photoresistor and an LM35 sensor, use of the signal generator (sine, impedance setting) and comparison of multimeter RMS readings with the RMS formula for sinusoidal and non-sinusoidal waveforms.Lab 2 - AC Measurements with the Signal Generator →.)

Equipment

  • Digital oscilloscope (2 channels)
  • Function generator
  • Resistors: 1 kOhm and 10 kOhm
  • Capacitors: 100 nF
  • Breadboard and connecting wires

Experimental procedure

Low-pass filter test

  1. Build the RC circuit with R=1 kΩR = 1\ \text{k}\Omega and C=100 nFC = 100\ \text{nF}.
  2. Compute the theoretical cutoff frequency fcf_c.
  3. Connect the function generator to the circuit input and the oscilloscope across the capacitor (output).
  4. Apply a 1 Vpp1\ \text{V}_{pp} sinusoidal waveform and vary the frequency from 100 Hz to 10 kHz.
    • Observe the decrease in amplitude beyond the cutoff frequency.
    • Measure the ratio Vout/VinV_{out}/V_{in} and the phase shift.
  5. Repeat with a triangular and a square waveform to observe the smoothing effect due to high-frequency attenuation.

High-pass filter test

  1. Build the RC circuit in high-pass configuration (capacitor in series, resistor to ground).
  2. Use R=1 kΩR = 1\ \text{k}\Omega and C=100 nFC = 100\ \text{nF}, computing fcf_c.
  3. Apply a 1 Vpp1\ \text{V}_{pp} sinusoidal waveform and vary the frequency from 100 Hz to 10 kHz.
    • Observe how the output amplitude increases above the cutoff frequency.
    • Measure amplitude and phase shift.
  4. Apply square and triangular signals and observe the differentiation effect caused by the attenuation of low-frequency components.

Band-pass filter test

  1. Build a cascade of a high-pass filter followed by a low-pass filter:

R1=1 kΩ, C1=100 nFR2=10 kΩ, C2=100 nFR_1 = 1\ \text{k}\Omega,\ C_1 = 100\ \text{nF} \qquad R_2 = 10\ \text{k}\Omega,\ C_2 = 100\ \text{nF}

  1. Compute the cutoff frequencies:

fL=12πR1C1,fH=12πR2C2f_L = \frac{1}{2\pi R_1 C_1}, \qquad f_H = \frac{1}{2\pi R_2 C_2}

(The sheet adds: adjust the resistor order if needed to achieve the desired passband.)

  1. Apply a 1 Vpp1\ \text{V}_{pp} sinusoidal signal and vary the frequency from 100 Hz to 20 kHz.
    • Identify the passband region.
    • Measure the maximum gain and the central frequency.
  2. Observe the output for a square-wave input and note how only the spectral components within the passband are transmitted.

Numerical values (computed here from the sheet's component values)

RR CC fc=1/(2πRC)f_c = 1/(2\pi RC)
1 kOhm 100 nF 1.59 kHz
10 kOhm 100 nF 159 Hz

Consequence for the band-pass test: with the formulas as written on the sheet, fL=1/(2πR1C1)=1.59f_L = 1/(2\pi R_1 C_1) = 1.59 kHz and fH=1/(2πR2C2)=159f_H = 1/(2\pi R_2 C_2) = 159 Hz, so the "low" frequency would be higher than the "high" one and there would be no passband. That is why the sheet says to adjust the resistor order: the high-pass section must have the lower cutoff (about 159 Hz, with 10 kOhm) and the low-pass section the higher cutoff (about 1.59 kHz, with 1 kOhm), giving a passband of about 159 Hz to 1.59 kHz. This remark is a deduction from the sheet's formulas, not a statement of the sheet.

Versione ripasso

HLP(jω)=11+jωRC,∣HLP∣=11+(ωRC)2,∠HLP=−tan⁡−1(ωRC)H_{LP}(j\omega)=\frac{1}{1+j\omega RC},\qquad |H_{LP}|=\frac{1}{\sqrt{1+(\omega RC)^2}},\qquad \angle H_{LP}=-\tan^{-1}(\omega RC)

  • High-pass (capacitor in series, resistor to ground):

HHP(jω)=jωRC1+jωRC,∣HHP∣=ωRC1+(ωRC)2,∠HHP=tan⁡−1 ⁣(1ωRC)H_{HP}(j\omega)=\frac{j\omega RC}{1+j\omega RC},\qquad |H_{HP}|=\frac{\omega RC}{\sqrt{1+(\omega RC)^2}},\qquad \angle H_{HP}=\tan^{-1}\!\left(\frac{1}{\omega RC}\right)

Teoria collegata