Department of Physics and Astronomy, Stony Brook University

Stony Brook University   |   Introlabs Main Page   |   PHY 122 Webpage

Equiment for RC Circuits
TABLE OF CONTENTS
Introduction

In this lab, we will observe the behavior of an RC circuit in response to a square wave signal.

We will also measure the time constant of this RC circuit, \(\tau=RC\).Hoveroverthese!

Back to Top
Equipment
Back to Top
Background

An RC circuit consists of a resistor connected to a capacitor. There may also be a fixed power supply, depending on whether the capacitor is being charged or discharged.1

In this lab, rather than using a power supply to charge and discharge the capacitor, we will be using an input of a square wave voltage, which oscillates between some voltage \(V_0\) and \(0\). This will repeatedly charge the capacitor one way, then discharge it, with currents passing through the resistor each time.

We will denote the input voltage from the function generator as \(V_{FG}(t)\), the voltage across the capacitor as \(V_C(t)\), and the voltage across the resistor as \(V_R(t)\).

We treat "positive" as from the high side of the function generator to the low side, which implies (by Kirchhoff's Voltage Law):

$$V_{FG}(t)=V_R(t)+V_C(t)$$

We also know that \(V_R(t)=I(t)R\) (Ohm's law) and \(V_C(t)=Q(t)/C\) (definition of capacitance).

Although the details of amplitudes are slightly different than a purely discharging capacitor, one still observes an exponential decay to the equilibrium voltage, with the same time constant:

$$\tau=RC$$

The "equilibrium" state of an RC circuit is determined by when there is no current (because if there is current, the charge is changing). This means that the resistor should always equilibrate to zero voltage (by Ohm's law), whereas the capacitor should equilibrate to the voltage that the power supply (here, function generator) is providing.

When we actually make the plot of voltage (on either component) vs. time, we will observe (for a single "pulse" of the square wave) a decay that looks roughly like the following (potentially mirrored vertically):

We will make measurements, for both the capacitor and the resistor, of the difference between the voltage across the component and the equilibrium voltage across the component, denoted above by \(V_{diff}(t)\).

Then, for both the resistor and the capacitor, we expect the relationship (with some initial voltage \(V_i\)):

$$V_{diff}(t)=V_ie^{-t/\tau}\label{decay}$$

There is a practical issue with this from our perspective, however: this is a nonlinear relationship, so our plotting tool cannot infer \(\tau\) from a slope!

Therefore, we apply a trick: we make a log-linear plot. By taking a logarithm of both sides of \eqref{decay}, we can reduce this to the equation:

$$\ln(V_{diff}(t))=-t/\tau+\ln(V_i)$$

This means that if we plot \(\ln(V_{diff})\) vs. \(t\), we will get a linear plot (with intercept), and can infer \(\tau\) from the slope. Problem solved!1

Back to Top
Procedure

Part I: Voltage Across the Capacitor

First, identify the resistor and the capacitor you use in this lab:1 you will use the 1kΩ resistor, and the capacitor has a capacitance of 0.1μF. Record these quantities on your data sheet, taking a 10% uncertainty in each.

Note in this lab we are using an unusual port on the function generator: the one that says TTL (or SYNC, depending on function generator), instead of the usual "50Ω" port. If the adaptor is not attached to this port, change it to this port.2

Next, wire up your circuit like the diagram below:2

Circuit diagram and physical diagram for Part I

Click here for step-by-step instructions for setting up your circuit for Part I.

Assuming you are starting with no wires connected:

  1. Begin by wiring a red wire from the red terminal on the function generator to the right side of the 1kΩ resistor.
  2. Connect a wire from the left side of the 1kΩ resistor to the left side of the capacitor.
  3. Connect a black wire from the right side of the capacitor to the black terminal on the function generator.

You should now have a loop that goes from your function generator, through the resistor, then the capacitor, back to the function generator.

  1. Connect a red wire from the red terminal on the function generator to the red terminal on CH2 of the oscilloscope.
  2. Connect a black wire from the black terminal on the function generator to the black terminal on CH2 of the oscilloscope.

You should now have made a second loop that runs through from your function generator to your oscilloscope CH2 and back again.

  1. Connect a red wire from the left-hand side of your capacitor to the red terminal on CH1 of the oscilloscope.
  2. Connect a black wire from the right-hand side of your capacitor to the black terminal on CH1 of the oscilloscope.

You should now have made a loop like the first one, except it runs through the oscilloscope CH1 port instead of the capacitor. This completes the necessary wiring for this part.

Now, turn on your function generator, and make a square wave of around 300Hz. Set the oscilloscope SOURCE and VERT MODE to CH2, and set the TRIGGER LEVEL a bit to the right of vertical, TIME/DIV to 1ms, and everything else to default settings.3 Then, adjust the INTENSITY, FOCUS, TIME/DIV, VOLTS/DIV [for CH2!], and POSITION knobs until you get a nice visible square wave, of which you can see a few periods. (Recall what it looked like in the Oscilloscope lab - you want something simliar!)

Then, set VERT MODE to DUAL (which shows you the "square wave" of the function generator and the "exponential decays" of the capacitor), and adjust your CH1 VOLTS/DIV and POS to be able to see that wave as well. Adjust the two waves' vertical positions so that their centers align. Having the VOLTS/DIV be the same for both is advisable for the sake of intuiting what is going on.

On the provided sketch paper, make a sketch of the oscilloscope screen, with all appropriate accoutrements (see below, or recall what you did on the Oscilloscope lab).

Now: adjust your TIME/DIV to focus on one "segment" (it should take up most of the screen). Keep shrinking the TIME/DIV until the decay takes at least half the screen to become "approximately" the equilibrium voltage.

Now, measure \(V_{diff}(t)\) (see background) for the capacitor for at least six different times, and record these voltages along with the corresponding times. You can neglect uncertainty on these measurements, but be sure to convert to physical units using the VOLTS/DIV and TIME/DIV settings you are using.

Part II: Voltage Across the Resistor

Now, swap the positions of the resistor and capacitor in your circuit. This should lead to a circuit wired as shown below:

Circuit diagram and physical diagram for Part II

Click here for step-by-step instructions for setting up your circuit (from scratch) for Part II.

Assuming you are starting with no wires connected:

  1. Begin by wiring a red wire from the red terminal on the function generator to the right side of the capacitor.
  2. Connect a wire from the left side of the capacitor to the left side of the 1kΩ resistor.
  3. Connect a black wire from the right side of the 1kΩ resistor to the black terminal on the function generator.

You should now have a loop that goes from your function generator, through the resistor, then the capacitor, back to the function generator.

  1. Connect a red wire from the red terminal on the function generator to the red terminal on CH2 of the oscilloscope.
  2. Connect a black wire from the black terminal on the function generator to the black terminal on CH2 of the oscilloscope.

You should now have made a second loop that runs through from your function generator to your oscilloscope CH2 and back again.

  1. Connect a red wire from the left-hand side of your 1kΩ resistor to the red terminal on CH1 of the oscilloscope.
  2. Connect a black wire from the right-hand side of your 1kΩ resistor to the black terminal on CH1 of the oscilloscope.

You should now have made a loop like the first one, except it runs through the oscilloscope CH1 port instead of the 1kΩ resistor. This completes the necessary wiring for this part.

Now, repeat the analysis of the previous part:

  1. Get the square wave set up so that you can easily see it.
  2. Add in the resistor voltage, and get it on the screen reasonably as well.
  3. Fit both on the screen (ideally with the same vertical scale), and make a sketch of your oscilloscope screen.
  4. Set your timescale to focus on one segment (you may set your VERT MODE to CH1 for this part, to get rid of the square wave, which is no longer necessary).
  5. Make at least six measurements of \(V_\text{diff}(t)\) and \(t\) for the resistor.
Back to Top
Analysis

Oscilloscope Sketches

In this lab, you will make two oscilloscope sketches. Each of them should have the following:

  • A title for the plot
  • Labelled and numbered axes, with units3
  • A sketch of the curve that is visible on your screen (of course), drawn to the best of your ability
  • Labels indicating which curve is CH1 and which curve is CH2
Calculations

Using the theoretical resistance and capacitance, calculate the time constant \(\tau\) and propagate uncertainty.

Then, both for the capacitor and for the resistor:

  • For each voltage, take \(\ln(V_{diff})\). You do not need units on this quantity.
  • Make a plot of \(\ln(V_{diff})\) vs. \(t\). You do not need units on your y-axis or any error bars.
  • From the slope of that plot, extract a measurement of \(\tau\). Propagate uncertainty.

Finally, answer the question in the data sheet about agreement with expectation for each part.

Back to Top
Questions

Your TA will ask you to answer some of the following questions (they will tell you which ones to answer):

Experimental Questions:

  1. There are additional sources of resistance in the circuit beyond the resistor (contact resistance, etc.). What impact would these additional resistances have on our measurement for the time constant from the oscilloscope (relative to the theoretical one calculated using the resistor's resistance)?
  2. In this lab, we assume the oscilloscope has infinite resistance (as a voltmeter). In fact, it has some finite resistance (say, 1MΩ). For Part II, considering the oscilloscope wired in parallel with the resistor, what impact would this have on our measurement of the time constant of the oscilloscope (relative to the theoretical one calculated using the resistor's resistance)?

Theoretical Questions:

  1. What are the equilibrium voltages of the capacitor and the resistor when the function generator voltage is \(V_0\)? Is this what you observe on your oscilloscope sketches?
  2. What are the equilibrium voltages of the capacitor and the resistor when the function generator voltage is \(0\)? Is this what you observe on your oscilloscope sketches?
  3. What are the voltages on the capacitor and resistor right after the function generator changes from \(0\) to \(V_0\)? Is this what you observe on your oscilloscope sketches?
  4. What are the voltages on the capacitor and resistor right after the function generator changes from \(V_0\) to \(0\)? Is this what you observe on your oscilloscope sketches?

For Further Thought:

  1. In this lab, we assume the oscilloscope has infinite resistance (as a voltmeter). In fact, it has some finite resistance (say, 1MΩ). What impact would this have on our circuit in part I (where it is wired in parallel with the capacitor)?
Back to Top
References and Tools

Hovering over these bubbles will make a footnote pop up. Gray footnotes are citations and links to outside references.

Blue footnotes are discussions of general physics material that would break up the flow of explanation to include directly. These can be important subtleties, advanced material, historical asides, hints for questions, etc.

Yellow footnotes are details about experimental procedure or analysis. These can be reminders about how to use equipment, explanations of how to get good results, troubleshooting tips, or clarifications on details of frequent confusion.

For more information about RC Circuits, see KJF Ch. 23.7.

For a review of how to do this on different function generators, see our Notes on the Function Generators.

For a review of basic settings, see our Notes on the Oscilloscope, or look back at the Oscilloscope Lab.

These components may be in different positions than in the diagrams below. Ignore their positions, just make sure you're wiring together the right components.

Don't try to be clever here: the oscilloscope is slightly more complicated than a voltmeter, and can't be placed at an arbitrary point in your circuit like a voltmeter can. In particular, the black wires are grounded to the case, thus implicitly always together. This means that placing one of them halfway through your circuit will ground two different parts of your circuit, which will totally throw off your results.

If you use different vertical axis scales for the different channels, put one set of numbers on your x-axis and another on your right, and label which of those is CH1 and which is CH2.

There's a rather subtle issue surrounding the units on \(\ln(V)\). Really, you can't take a logarithm of a quantity with units. The ideal quantity to take would be \(\ln(V/V_i)\), but we don't actually know \(V_i\). What we "really" do is measure \(\ln(V/(1\text{V}))\), which is a the log of a dimensionless quantity (thus also dimensionless), and similarly \(\ln(V_i/(1\text{V}))\) on the other side. Since changing units on \(V\) just lead to a different intercept, we ignore them, since we're only concerned about the slope.

This ensures that the voltage jumps from \(0\) to \(V_0\) instead of from \(-V_0\) to \(V_0\). (The latter works too, but adds some subtleties that this way avoids.)