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 and a capacitor ; 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
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):
High-pass (capacitor in series, resistor to ground):
Cutoff frequency (same for both): the frequency at which the output power drops to half its low-frequency value,
At this frequency of the maximum amplitude (the 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, is a sinusoidal source on the left; the low-pass has in the top branch and from the output node to the return line, the high-pass has in the top branch and 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
- Build the RC circuit with and .
- Compute the theoretical cutoff frequency .
- Connect the function generator to the circuit input and the oscilloscope across the capacitor (output).
- Apply a sinusoidal waveform and vary the frequency from 100 Hz to 10 kHz.
- Observe the decrease in amplitude beyond the cutoff frequency.
- Measure the ratio and the phase shift.
- Repeat with a triangular and a square waveform to observe the smoothing effect due to high-frequency attenuation.
High-pass filter test
- Build the RC circuit in high-pass configuration (capacitor in series, resistor to ground).
- Use and , computing .
- Apply a 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.
- Apply square and triangular signals and observe the differentiation effect caused by the attenuation of low-frequency components.
Band-pass filter test
- Build a cascade of a high-pass filter followed by a low-pass filter:
- Compute the cutoff frequencies:
(The sheet adds: adjust the resistor order if needed to achieve the desired passband.)
- Apply a sinusoidal signal and vary the frequency from 100 Hz to 20 kHz.
- Identify the passband region.
- Measure the maximum gain and the central frequency.
- 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)
| 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, kHz and 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
- Aim: frequency behaviour of first-order RC circuits (low-pass, high-pass, band-pass) and their response to sinusoidal, square and triangular inputs. The RC filters are passive linear circuits made of and . Background: 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 →.
- Transfer function: , .
- Low-pass (resistor in series, capacitor to ground):
- High-pass (capacitor in series, resistor to ground):
- Cutoff (same for both): , where (the dB point, half the power).
- , : kHz;
- , : Hz.
- Band-pass: high-pass section followed by low-pass section, , . With and as written, and there is no passband: the resistor order must be swapped (about 159 Hz to 1.59 kHz). This is a deduction from the formulas, not a statement of the sheet.
- Procedure (1 Vpp sinusoid, scope with two channels, output across the capacitor for the low-pass):
- build the circuit with , ; compute ;
- sweep 100 Hz to 10 kHz (100 Hz to 20 kHz for the band-pass); measure and the phase shift;
- low-pass: triangular and square waves are smoothed; high-pass: they are differentiated (low frequencies attenuated); band-pass: only the components in the passband come out.
- Equipment: 2-channel scope and function generator (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 →, 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 →), 1 kOhm and 10 kOhm resistors, 100 nF capacitors, breadboard.
- Typical errors:
- swapping the capacitor and resistor positions (low-pass vs high-pass);
- measuring across the wrong element;
- putting the band-pass cutoffs in the wrong order.