Print

Lab 5 - Charge and Discharge of a Capacitor

Introduction

Capacitors are devices that can store electric charge and energy. Capacitors have several uses, such as filters in DC power supplies and as energy storage banks for pulsed lasers. Capacitors pass AC current, but not DC current, so they are used to block the DC component of a signal so that the AC component can be measured. Plasma physics makes use of the energy storing ability of capacitors. In plasma physics short pulses of energy at extremely high voltages and currents are frequently needed. A capacitor can be slowly charged to the necessary voltage and then discharged quickly to provide the energy needed. It is even possible to charge several capacitors to a certain voltage and then discharge them in such a way as to get more voltage (but not more energy) out of the system than was put in. This experiment features an RC circuit, which is one of the simplest circuits that uses a capacitor. You will study this circuit and ways to change its effective capacitance by combining capacitors in series and parallel arrangements.

Discussion of Principles

A capacitor consists of two conductors separated by a small distance. When the conductors are connected to a charging device (for example, a battery), charge is transferred from one conductor to the other until the difference in potential between the conductors due to their equal but opposite charge becomes equal to the potential difference between the terminals of the charging device. The amount of charge stored on either conductor is directly proportional to the voltage, and the constant of proportionality is known as the capacitance. This is written algebraically as
( 1 )
Q = CΔV
The charge C is measured in units of coulomb (C), the voltage
ΔV 
in volts (V), and the capacitance C in units of farads (F). Capacitors are physical devices; capacitance is a property of devices.

Charging and Discharging

In a simple RC circuit, a resistor and a capacitor are connected in series with a battery and a switch. See Fig. 1.
Figure 1

Figure 1: A simple RC circuit

When the switch is in position 1 as shown in Fig. 1(a), charge on the conductors builds to a maximum value after some time. When the switch is thrown to position 2 as in Fig. 1(b), the battery is no longer part of the circuit and, therefore, the charge on the capacitor cannot be replenished. As a result the capacitor discharges through the resistor. If we wish to examine the charging and discharging of the capacitor, we are interested in what happens happens immediately after the switch is moved to position 1 or position 2, not the later behavior of the circuit in its steady state. For the circuit shown in Fig. 1(a), Kirchhoff's loop equation can be written as
( 2 )
ΔVQ/CR
dQ
dt
= 0. 
The solution to Eq. (2)
ΔVQ/CR
dQ
dt
= 0. 
is
( 3 )
Q = Qf
1 − e(−t/RC)
 
where
Qf 
represents the final charge on the capacitor that accumulates after an infinite length of time, R is the circuit resistance, and C is the capacitance of the capacitor. From this expression you can see that charge builds up exponentially during the charging process. See Fig. 2(a).
When the switch is moved to position 2, for the circuit shown in Fig. 1(b), Kirchhoff's loop equation is now given by
( 4 )
Q/CR
dQ
dt
= 0. 
The solution to Eq. (4)
Q/CR
dQ
dt
= 0. 
is
( 5 )
Q = Q0e(−t/RC) 
where
Q0 
represents the initial charge on the capacitor at the beginning of the discharge, i.e., at
t = 0. 
You can see from this expression that the charge decays exponentially when the capacitor discharges, and that it takes an infinite amount of time to fully discharge. See Fig. 2(b).
Figure 2

Figure 2: Change versus time graphs

Time Constant τ

The product
RC 
(having units of time) has a special significance; it is called the time constant of the circuit. The time constant is the amount of time required for the charge on a charging capacitor to rise to 63% of its final value. In other words, when
t = RC
( 6 )
Q = Qf
1 − e−1
 
and
( 7 )
1 − e−1 = 0.632. 
Another way to describe the time constant is to say that it is the number of seconds required for the charge on a discharging capacitor to fall to 36.8%
(e−1 = 0.368) 
of its initial value.
We can use the definition
I =
dQ
dt
 
of current through the resistor and
Eq. (3)
Q = Qf
1 − e(−t/RC)
 
and Eq. (5)
Q = Q0e(−t/RC) 
to get an expression for the current during the charging and discharging processes.
( 8 )
charging: I = +I0et/RC 
( 9 )
discharging: I = −I0et/RC 
where
I0 =
ΔVf
R
 
in
Eq. (8)
charging: I = +I0et/RC 
and Eq. (9)
discharging: I = −I0et/RC 
is the maximum current in the circuit at time t = 0.
Then the potential difference across the resistor will be given by the following.
( 10 )
charging: ΔV = + ΔVfet/RC 
( 11 )
discharging: ΔV = − ΔV0et/RC 
Note that during the discharging process the current will flow through the resistor in the opposite direction. Hence I and
ΔV 
in
Eq. (9)
discharging: I = −I0et/RC 
and Eq. (11)
discharging: ΔV = − ΔV0et/RC 
are negative. This voltage as a function of time is shown in Fig. 3.
Figure 3

Figure 3: Voltage across the resistor as a function of time

It is useful to describe charging and discharging in terms of the potential difference between the conductors (i.e., "the voltage across the capacitor"), since the voltage across a capacitor can be measured directly in the lab. By using the relationship
Q = C ΔV
Eq. (3)
Q = Qf
1 − e(−t/RC)
 
and Eq. (5)
Q = Q0e(−t/RC) 
that describe the charging and discharging of a capacitor can be rewritten in terms of the voltage. Merely divide both equations by C, and the relationships become the following.
( 12 )
charging: ΔV = ΔVf
1 − e(−t/RC)
 
( 13 )
discharging: ΔV = ΔV0e(−t/RC) 
Note that these two equations are similar in form to Eq. (3)
Q = Qf
1 − e(−t/RC)
 
and Eq. (5)
Q = Q0e(−t/RC) 
. The graph of the voltage across the capacitor versus time is shown in Fig. 4 below.
Figure 4

Figure 4: Voltage across the capacitor as a function of time

By rearranging Eq. (12)
charging: ΔV = ΔVf
1 − e(−t/RC)
 
, we get
( 14 )
ΔVfΔV
ΔVf
= e(−t/RC)
Take the natural log (ln) of both sides of this expression and multiply by –1 to obtain
( 15 )
−ln
ΔVfΔV
ΔVf
 =
t
RC
.
 
A plot of
−ln
ΔVfΔV
ΔVf
 
versus time will produce a straight line graph with a slope of 1/RC. Similarly, for the discharging process,
Eq. (13)
discharging: ΔV = ΔV0e(−t/RC) 
 can be rewritten as
( 16 )
ΔV
ΔV0
= e(−t/RC)
Take the natural log (ln) of both sides of this expression and multiply by –1 to obtain
( 17 )
−ln
ΔV
ΔV0
 =
t
RC
.
 
A plot of
−ln
ΔV
ΔV0
 
versus time will produce a straight line graph with a slope of 1/RC.

Using a Square Wave to Simulate the Role of a Switch

In this experiment, rather than using a switch, we will be using a signal generator that can generate periodic wave forms of varying shapes, like a sine wave, a triangular wave, and a square wave. Both the frequencies and amplitudes of the wave forms can also be adjusted. Here we will use the signal generator to produce a time-varying voltage, with a square wave form, across the capacitor similar to the one shown in Fig. 5.
Figure 5

Figure 5: A square wave with period Τ

The output voltage from the signal generator changes back and forth from a constant positive value to a constant zero volts in equal intervals of time t. The time
T = 2t 
is the period of the square wave. During the first half of the cycle, when the voltage is positive, it is similar to the switch being in position 1. During the second half of the cycle, when the voltage is zero, it is the same as the switch being in position 2. So the square wave, which is a DC voltage that is turned on and off periodically, serves as both battery and switch in the setup in Fig. 1.
The signal generator allows this switching to be done repeatedly, and it is possible to optimize the data collection by adjusting the frequency of the repetition. This frequency will depend on the time constant of the RC circuit. When the time t is larger than the time constant τ of the RC circuit, the capacitor will have enough time to charge and discharge, and the voltage across the capacitor will be as shown in
Fig. 4. 

Objective

In this experiment a (computer-emulated) oscilloscope will be used to monitor the potential difference, and thus, indirectly, the charge on a capacitor. The voltage measurements will be used in two different ways to compute the time constant of the circuit. Finally, capacitors will be connected in parallel to examine their equivalent circuit capacitance.

Equipment

  • PASCO circuit board
  • Signal interface with power output
  • Connecting wires
  • DataStudio software

Procedure

Please print the worksheet for this lab. You will need this sheet to record your data.

PDF file

Setting Up the RC Circuit

The RLC circuit board that you will be using consists of three resistors and two capacitors among other elements. See Fig. 6 below. In theory you can, therefore, have different combinations of resistors and capacitors. In this experiment you will use the 33-Ω and 100-Ω resistors and the two capacitors.
Figure 6

Figure 6: RLC circuit board

1
Connect the far right output terminal of the signal interface to the 33-Ω resistor at point 2.
2
To bypass the inductor, connect a wire from point 8 to point 9.
3
Connect point 6 to the second output terminal of the signal interface to complete the circuit.
4
Connect the voltage probe into analog channel A.
5
To measure the voltage across the capacitor connect the black lead of the voltage probe to point 6 and the red lead to point 9. Make sure that the ground of the interface (the "–" lead) is connected to the same side of the capacitor as the ground of the signal generator (power output). Your circuit connection should look like that in Fig. 7.
Figure 7

Figure 7: Circuit diagram

Checkpoint 1:
Ask your TA to check your circuit connections before proceeding.

Procedure A: Time Constant of the Circuit

We will use the computer to emulate the oscilloscope in this experiment.
6
Open the DataStudio file associated with this lab, which starts the DataStudio program. A screen similar to Fig. 8 is displayed.
Figure 8

Figure 8: Opening screen of DataStudio file

7
Set the signal generator to produce a positive square wave by highlighting the positive square wave in the signal generator window as shown in Fig. 9 below.
Figure 9

Figure 9: Signal generator window

8
Set the signal generator to produce a square wave of 5-V amplitude at a frequency of 20 Hz.
9
Turn on the signal generator by clicking ON in the signal generator window.
10
To monitor the signal, click the START button in the main window. If necessary, adjust the time and voltage scales (by using the zoom buttons, see note below), to produce a signal trace like that shown in Fig. 10. This will allow you to observe how the voltage on the capacitor varies as function of time. When properly zoomed, you will have only one wavelength in the graph display like the trace in Fig. 10.
Figure 10

Figure 10: Signal trace

If at anytime you want to delete a recorded data set, select the data set label in the graph display (in the upper right, as shown in Fig. 10) and press the DELETE key on the keyboard. Note: It might be helpful to magnify part of the data. To do this, click the ZOOM SELECT button in the graph window. You can use this to draw a box around the part of the graph you want to magnify. On the graph, click and hold the mouse button down on the location you want to be on one corner of the magnified area (for example, the lower left corner), then drag the cursor so that the box covers the area you want to magnify. When you release the mouse button, the selected area is enlarged to fill the graph.
11
Select the SMART TOOL from the buttons on the upper left of the graph. When the smart tool is active, a read-out of the voltage and time is displayed wherever you drag it. Using the smart tool, determine and record the starting time (i.e. when the trace started upward from 0 volts) on the worksheet.
12
Calculate 63.2% of the maximum voltage,
ΔVf
(which should be 5V), the setting on the amplitude of the signal generator.
Use the smart tool to determine the time at which
ΔV = 0.632ΔVf
Record this on the worksheet.
13
From these two time values determine and record the time required for the signal to go from ΔV = 0 to ΔV = 0.632
ΔVf
This is your experimental value for RC.
14
On the worksheet, fill in the accepted values for the resistance and the capacitance, which are printed on the circuit board.
15
Compute the experimental value of the capacitance using your experimental value for RC and the accepted value of R. Record this on the worksheet.
16
Compute the percent error using the two values for the capacitance. See Appendix B.
Checkpoint 2:
Ask your TA to check your data and calculations before proceeding.

Procedure B: Calculation of Capacitance by Graphical Methods

17
Record the maximum voltage on the worksheet.
18
From the recorded data, find the times at which
ΔV 
= 1, 2, 3, and 4 volts on the rising part of the curve using the smart tool. Record this information in Data Table 1 on the worksheet.
Note: You might need to zoom in a lot to get the precision you need when using the Smart Tool.
19
Perform the necessary calculations to complete Data Table 1.
20
Using Excel, plot
−ln
ΔVfΔV
ΔVf
 
versus time. See
Appendix G.
21
Use the linest function in Excel to determine the slope of the line and record this value on the worksheet. See Appendix J.
22
From the value of the slope determine the time constant and the capacitance. Record these values on the worksheet.
23
Compute the percent error between this value of the capacitance and the accepted value.
Checkpoint 3:
Ask your TA to check your data and calculations before proceeding.

Procedure C: Measuring Effective Capacitance

Capacitance adds directly when capacitors are connected in parallel, and inversely when connected in series. This is opposite of the rule for resistors. For capacitors in parallel, the effective capacitance is given by
( 18 )
Ceff = C1 + C2 + C3 + . . .  
and for capacitors in series, the effective capacitance is
( 19 )
1
Ceff
=
1
C1
+
1
C2
+
1
C3
+ . . .  
24
Connect the second capacitor (330 µF) in parallel with the capacitor used in Procedure A by connecting a wire from point 6 to point 7.
25
Switch the resistor to the 10-Ω resistor by moving the connection from point 2 to point 1.
26
Record another data set by clicking START in the main window. Once you have recorded the second data set, you might want to display only that data on the graph and remove data set 1. To do this, delete the first run (see the note in Step 10). You will be looking at just one wavelength in the graph display.
27
For this part of the experiment you will consider the discharging portion of the curve. Now the initial voltage
ΔV0 
will be the highest value of the peak before the graph starts to fall off. Record this value on the worksheet.
28
From the recorded data, find the times at which
ΔV 
= 1, 2, 3, and 4 volts on the falling part of the curve using the smart tool. (Note: You might need to zoom in a lot to get the precision you need when using the smart tool). Record this information in Data Table 2 on the worksheet.
29
Perform the necessary calculations to complete Data Table 2.
30
Using Excel, plot
−ln
ΔV
ΔV0
 
versus time.
31
Use the linest function in Excel to determine the slope of the line and record this value on the worksheet.
32
From the value of the slope determine the time constant and record these values on the worksheet.
33
Compute
Ceff 
the effective capacitance of the parallel combination using the accepted value for R.
34
Compare this experimental value with that obtained from Eq. (18)
Ceff = C1 + C2 + C3 + . . .  
 and the accepted values of the capacitance, by computing the percent error between the two values.
Checkpoint 4:
Ask to your TA check your data and calculations.