TR3.5

Capacitors Lab Writeup

Albert Huang 2021-09-27 Mon 12:00

#ret

1 Purpose

To verify the relation between capacitance, resistance, voltage, and charge time of a simple capacitor circuit. The equation that will be verified is \[ V_{cap} = V_{bat}\left(1-e^{-\frac{t}{\tau}}\right) \] where each variable has the following meaning:

Variable Units Description
\(t\) Seconds (s) Time elapsed since charging of the capacitor started. May be represented as \(t-t_0\), where \(t\) is the current absolute time and \(t_0\) is the absolute start time.
\(V_{cap}\) Volts (V) Voltage across the capacitor after a given elapsed time
\(V_{bat}\) Volts (V) Voltage of the battery, assumed to be constant.
\(\tau\) Seconds (s) "Time constant" that scales the equation to the circuit. Equal to the product of the resistance and capacitance of the circuit (\(RC\)), and roughly equal to the number of seconds required to charge the capacitor to \(\frac{2}{3}\) of \(V_{bat}\).

Table 1: The meanings of variables in the numerical model

2 Voltage over Time

2.1 Equipment

  • Logger Pro probes
  • Logger Pro
  • Breadboard
  • Capacitors (22\(\mu\)F-1000\(\mu\)F)
  • Resistors (15\(\omega\)-100k\(\omega\))
  • 3 volt battery pack

2.2 Procedure

A number of circuits were built, with the same structure but differing resistances and capacitances. The voltage across the capacitor and the current through the circuit were measured over time using a voltage and amperage probe with Logger Pro.

KBe20phys250srcCapacitorLabCircuitSchematic.png

Figure 1: Circuit Schematic

Section 3 uses a different approach to analyze this data, and Section 4 discusses the time constant as measured using a multimeter and stopwatch, all on the same basic circuit. The raw data can be found on Canvas. Desmos was used to manually fit curves to the data, using a modified version of the model with \(t\) and \(t_0\) variables to truncate scrap data: \[ V_{cap} = V_{bat}\left(1-e^{-\frac{t - t_0}{\tau}}\right) \] The scattered points near the x-axis are residuals between the curve fit and the collected data. The fit heuristic was to visually center the dots around the x-axis.

2.3 Results

The results of the fits are summarized below:

data (green). Residuals (red) were multiplied by 30. KBesrcCapacitor22microF100kO.png

(purple) of the 33\(\Omega\) 0.047\(\mu\)F data (blue). Residuals (black) scaled x60.]] KBesrcCapacitorPoint047microF33ohm.png

(black) of the 100\(\Omega\) 1000\(\mu\)F data (purple). Residuals (blue) scaled x30.]] KBesrcCapacitor1000microF100ohm.png

(black) of the 15\(\Omega\) 1000\(\mu\)F data (purple). Residuals (red) scaled x30.]] KBesrcCapacitor1000microF15ohm.png

\(\Omega\) F Fit \(\tau\) (s) Modeled \(\tau\) (s) % Error
100k\(\Omega\) 22\(\mu\)F 2.3860 \(\pm\) 0.01 2.2000 \(\pm\) 0.441 8.45%
33k\(\Omega\) 0.047\(\mu\)F 0.0017 \(\pm\) 0.0001 0.0016 \(\pm\) 0.0003 12.83%
100\(\Omega\) 1000\(\mu\)F 0.1058 \(\pm\) 0.001 0.1000 \(\pm\) 0.020 4.40%
15 \(\Omega\) 1000\(\mu\)F 0.0188 \(\pm\) 0.0001 0.0150 \(\pm\) 0.003 24.67%

Table 2: Fit and calculated values of \(\tau\).

2.4 Analysis

The curve fits included a parameter for \(\tau\), and the model predicts \(\tau = RC\). Thus, the values and uncertainties for resistance and capacitance of each circuit were multiplied and compared to the visual best fit \(\tau\) in the table above.

Because each fit was done manually, the absolute error was difficult to estimate because there was no correct answer. Instead, error was taken as the precision at which the number was considered "close enough" by the human doing the curve fit. Depending on the size of the value (and scale of the Desmos slider), this results in an absolute error ranging from 0.1 units to 0.001 units.

These uncertainties were propagated through calculations as follows: \[

\begin{aligned} \delta (A+B) = \sqrt{\delta A^2 + \delta B^2}\\ \frac{\delta (AB)}{AB} = \sqrt{\left(\frac{\delta A}{A}\right)^2 + \left(\frac{\delta B}{B}\right)^2} \end{aligned}

\] for additive and multiplicative one operations respectively.

The manufacturing tolerances of electronic components were taken into account as well. Resistor tolerances were based on the absolute difference between standard resistances and those measured by a multimeter. Capacitance tolerances were based on the tolerances of a similar capacitor for which the data sheet was available: the FOAI CD110 radial capacitor, which had capacitance tolerances of \(\pm\) 20%.

2.5 Conclusion

Assuming perfect capacitor manufacturing, the curve fit results fell within uncertainties of the model predicted \(\tau\) value for all circuits except the fit in Figure 1. This is likely due to the high uncertainties placed on smaller scale curve fits, especially the final trial. Furthermore, with the unexpectedly large 20% uncertainties in capacitance all trials fell within the uncertainties of the experiment. Thus, the model predicted the charging behavior of capacitors over time accurately. For future iterations, numerical errors could have been better predicted if the specifications of the exact parts used to build the circuit were available. Additionally, more systematic curve fit heuristics could have been used such as RSME. The exact numerical analysis for this section can be found here.

3 Integration of Current

3.1 Procedure

Another way to evaluate the model is to compare the amount of transferred charge. For this comparison, a modified equation is used:

\[ Q_{cap}=Q_{max}\left(1-e^{-\frac{t-t_{0}}{\tau}}\right) \]

This is similar to the model used in the previous procedure, but voltage variables are replaced with charge. Current flow through the circuit is used as a proxy to calculate the amount of charge accumulated in the capacitor. As before, current is measured across a resistor using a digital probe and Logger Pro.

The amount of charge on the capacitor was calculated by taking a Riemann sum of the momentary current measurements. In addition, the voltage measurements across the capacitor were used as another proxy to calculate the amount of charge on the capacitor.

3.2 Results

The values of the three theoretically identical methods of calculating capacitor charge are shown below:

https://docs.google.com/spreadsheets/d/e/2PACX-1vRfxrZPfJZareibOZN-KammmgQDBDb5PVMBNmzCvUb_0tSn_TUNsLFQPM8ehfIKGEOaIhL86IoPFdb0/pubchart?oid=483417085&format=image

In addition, the final accumulated charge calculated by the Riemann sum was 0.00319C, or the equivalent of 3.19V on the capacitor.

3.3 Analysis

As the graph shows, both proxies of charge on the capacitor generally agree with the model but come up with smaller values of charge. Notably, the two experimental proxies don't agree with each other either, suggesting some systematic error is at play.

One culprit may be misaligned data: if the Riemann sum calculation began after charging, then the entire sum would be skewed low. However, the sum plot is not a vertical translation of the theoretical value, which suggests the effect of this issue is minimal or canceled. Another issue may be miscalibrated sensors: if each amperage measurement was off by \(10^{-5}\)A, the cumulative affect would drag down the total as time went on. The effect of this drift can be counteracted by taking the average of readings when no charge should be flowing, multiplying by the number of data points, and subtracting the total from the final charge value. However, the calculated drift was an order of magnitude greater than the total accumulated charge, so the author did not numerically sanitize against this drift.

Although the intermediate charge values do not match the model, the final accumulated charge is sensical: 3.19 volts is close to the expected 3.2 volts. The same errors mentioned previously contribute to this difference, but the accuracy of the result suggests that the effect was canceled.

The Farad Definition line (red) in Figure 6 has blips for unkown reasons. When the battery was off, the probe measured voltages on the order of \(10^{-9}\) for a few ticks before measuring a faulty value, so a similar stepping phenomenon may be occuring in the voltage meauserement.

3.4 Conclusion

The Riemann sums of measured current align with the model and expected charge calculated by the voltage on the capacitor and the definition of the Farad. Thus, the model accurately predicts experimental behavior, suggesting that it is correct. Although the graphs differed slightly, these may be attributed to the subjective curve fit metric, sensor inaccuracies while measuring small flows of current, or sensor calibration inaccuracies. Future analysis could be more accurate by calculating the false zero point of the sensor, using various tick times to find the most effective range for that sensor, and having more accurate values for uncertainty for circuit components and the digital probe.

Source analysis here.

4 Time Constant with Various Components

4.1 Equipment

  • Breadboard
  • Capacitors (100\(\mu\)F-1000\(\mu\)F)
  • Resistors (99.8k\(\Omega\)-1M\(\Omega\))
  • 3 volt battery pack
  • Multimeter
  • Stopwatch

4.2 Procedure

Most of the analysis for data collected as a class was done on the "charge rate constant" (time/RC) of each circuit, defined as:

\[ \frac{t}{RC} \]

The same circuit as above was built by various experimentalists, with multimeter probes on the two sides legs of the capacitor:

KBe20phys250srcCapacitorLabCircuitSchematic.png

Figure 2: Circuit Schematic

The physical manifestation of which looked like:

attached to multimeter, battery attatched to the power rails. KBe20phys250srcCapacitorLabCircuit.png

Starting with discharged capacitors, a battery was connected to the circuit and used to charge the capacitor. The time taken for the voltage across the capacitor to reach 2 \(\pm\) 0.01 volts was measured for various resistor and capacitor combinations.

4.3 Results

time/RC is a unitless scalar that represents how quickly it takes to charge any capacitor for a given voltage. Voltage data was not collected during the experiment, so the voltage is assumed to be constant across trials. If our model of capacitor charge rate is correct, we expect time/RC to be constant across trials. The actual data was skewed right:

https://docs.google.com/spreadsheets/d/e/2PACX-1vTdonVC_CHgEAoezSnGLXLRFZMhR0_IfTl8anSSMXwEDUR4iNzQbhVJGY8PyUq2e946cMuQbj5TSex_/pubchart?oid=587065174&format=image

By comparing the time/RC and different properties of each circuit, reasoning for the outliers may be deduced. The visualization of the histogram is reflected in each of the following charts by the density of points in a column.

First, the time/RC values were compared with the resistance of the circuit:

https://docs.google.com/spreadsheets/d/e/2PACX-1vTdonVC_CHgEAoezSnGLXLRFZMhR0_IfTl8anSSMXwEDUR4iNzQbhVJGY8PyUq2e946cMuQbj5TSex_/pubchart?oid=1655543849&format=image

Although some outliers came from circuits with high resistance, the most skewed ones came from those with least resistance. The same can be said of capacitance:

https://docs.google.com/spreadsheets/d/e/2PACX-1vTdonVC_CHgEAoezSnGLXLRFZMhR0_IfTl8anSSMXwEDUR4iNzQbhVJGY8PyUq2e946cMuQbj5TSex_/pubchart?oid=1866933099&format=image

Finally, the comparison with time taken to charge the capacitor shows the strongest correlation, which is to be expected because according to the model, this value is the product of the previous two trends.

https://docs.google.com/spreadsheets/d/e/2PACX-1vTdonVC_CHgEAoezSnGLXLRFZMhR0_IfTl8anSSMXwEDUR4iNzQbhVJGY8PyUq2e946cMuQbj5TSex_/pubchart?oid=716778401&format=image

4.4 Analysis

On explanation for the data skew is reaction time: for lower values of \(\tau\), the capacitor plateaus faster near 2V and thus the time keeper may not react as quickly. Components with smaller ratings also need tighter tolerances to achieve the same relative tolerances, so smaller capacitors may have relatively higher manufactured variability. The source analysis for these conclusions can be found here.