Since Chapter 20 of Matter and Interactions deals with RC time constants, and we’re behind on physics (the Spring Hill Science Fair judging took up most of my day, and the AMC-12 exam took up my son’s time before Java class), today we did a simple RC time constant lab, charging a capacitor to 5V, then discharging it through a resistor, recording the discharge with my son’s DataLogger program (the one he wrote for my circuits class).
The data looked pretty good when plotted, but we had a bit of a surprise when we tried fitting exponential decays to the data:
We are at a loss to explain this gradual slowing of the discharge.
I tried inserting a unity-gain buffer between the capacitor and the Arduino pin A0, to make sure that the Arduino was not disrupting the capacitor discharge. This did not change the behavior, other than at the very low end, where we ran into the limits of the “rail-to-rail” output of the MCP6002 op amp chip, which is supposed to be able to get within 25mV of the power rails, but which seemed to be stopping at 100mV. I think that this particular copy of the chip may be fried, though, as the other op amp on the chip was taking a huge current through the input pins. I replaced the MCP6002 op amp and got down to within 5mV of the rail—better than the spec. The other chip was definitely fried, and I’ll discard it. The stretching of the RC time constant as the capacitor discharges is still present, but to a much smaller extent:
I’m still looking for a convincing explanation for why the RC time constant is not constant in the discharge. The power supply voltage was not changing, nor was there enough power anywhere for significant self-heating. I’m having trouble believing in enough inductance to cause any measurable effect, especially as that would have had the biggest effect at the beginning of the discharge, not the end.
I suppose I could be seeing non-ideal conversion in the Arduino ADC (different Arduino boards were used for the two plots on this page: the first one was done by my son on a Leonardo board, the second one by me on an Arduino Uno board, so the difference in the fits may be from different non-ideal conversions in the board, rather than from the unity-gain buffer. Indeed, taking out the unity-gain buffer, but still using the Uno board gets very similar results:
I suppose that the most likely explanation is that the gain and offset errors in the Arduino ADC may be throwing things off. They are only supposed to cause errors of 2LSB (about 10mV with a 5V reference voltage). I can get a better fit if I add a constant offset error of about 10mV, though that doesn’t quite explain all the error. It looks, though, like what I’m seeing is limitations in the Arduino ADC as a measuring device, and not interesting physics or electronics in the capacitor.
I wonder whether the circuits course should have a capacitor discharge lab early in the quarter next year, as a refresher of physics thinking about RC time constants, before we do impedance and low-pass filters.