Laboratory 2
Uncertainty and statistics
Max Woo
10/16/14
Lab 11, Michael Ip
Partners: Ivy Wang, Zoe Zhu
Introduction
The overall purpose of our experiment was to observe the responses of different combinations of circuit components to constant and varying voltage sources. For the first part, we will investigate the current-voltage relationships of a resistor and a diode, making use of Ohm’s law:
Ohm’s Law:
V=IR (Eq. 1)
For the second part, we will investigate an RC circuit, and LC circuit, and an RLC circuit, verifying the formulas for calculating time constant and resonating frequency.
To aid us with calculating the uncertainty of certain calculations, we derive the propagation of error for a few fundamental relationships. Starting with the general equation for propagation of uncertainty:
σF¯=(δfδxσx¯)2+(δfδyσy¯)2−−−−−−−−−−−−−−−√
We can derive the expression for propagation of error for:
F = kx :
σF¯=kσx¯ (Eq. i)
F = x + y:σF¯=σ2x¯+σ2y¯−−−−−−−√ (Eq. ii)
F = x * y:σF¯=F¯¯¯σ2x¯+σ2y¯−−−−−−−√ (Eq. iii)
F = 1/x:σF¯=F¯¯¯σx¯ (Eq. iv)
Experimental Results
Part 1
We started by setting the function generator to a triangular wave with a 10 Hz frequency and amplitude of a few volts. We then created a circuit with 2 resistors in series, a resistor
Fig. 1: The setup used the measure the voltage across 2 resistors in series
A graph of the resulting current-voltage relationship is shown below in Graph 1. The relationship is a line with positive slope, verifying Ohm’s law, shown in Eq. 1 to have be a linear relationship with positive slope.
Graph 1: The current-voltage relationship of resistor
R
Next, we used the same setup as shown in Fig. 1, but replaced the resistor
Graph 2: The current-voltage relationship of the diode
This graph has an exponential curve, which is what we expect from the equation for the diode, which is also an exponential relationship:
I=I0(e|e|V/(nkBT)−1) (Eq. 2)
Part 2
The second part of our experiment involved measuring the response of certain electrical components to a time-varying voltage source. We first chose a time constant
Fig. 2 The setup used to measure the response of an RC circuit to a varying voltage source
We adjusted the myDAQ sample rate until one to two periods of the square wave fit within the display, and saved one ensemble of data. A graph of that data is shown below in Graph 3:
Graph 3: The voltage across the capacitor of the RC circuit over time
The graph has a noticeable pattern of sharply approaching a high voltage value, then asymptotically getting closer to that value, then sharply going towards a low voltage value, and asymptotically getting closer, and so on. This function makes sense because the capacitor resists change to voltage, so when the voltage provided by the source jumps, the capacitor takes time to reach that voltage. In addition, as the charge on the plates build up, incoming charge is met with more and more repulsion from the charge already on the plates, slowing down the build-up of voltage the closer the capacitor voltage gets to the source voltage. In addition, the equation for the capacitor voltage is given by an inverted exponential equation:
Vc(t)=Vb(1−e−t/RC) (Eq. 3)
This inverted exponential relationship is repeated in the graph every time the voltage changes.
For the next part of the experiment, we chose an inductor
Fig 3: Setup used to measure the response of an RL circuit to a varying voltage source
We again adjusted the myDAQ sample rate until one to two periods of the function fit within the display, and then saved an ensemble of data. A graph of those results is shown below:
Graph 4: A graph of the voltage across the inductor over time
In this graph, the function jumps to high and low voltage values, and then slowly approaches a voltage of 0. This makes sense because when the voltage changes, the inductor starts with a high impedance, much higher than the R1 so that the voltage drop is mainly across the inductor. However, as the current through the inductor increases, the impedance of the inductor gets lower, until the impedance approaches 0, and the voltage drop becomes mainly across the resistor. This is also shown by the equation for the voltage across the inductor:
VL(t)=Vbe−tR/L (Eq. 4)
The equation for the inductor is a downward sloping exponential relationship, which is clearly shown in the graph each time the voltage jumps to a value and then slowly approaches zero.
For the last part of the experiment, we built an RLC circuit with
Fig. 4: RLC circuit diagram
We then connected the myDAQ so that channel 0 measured the voltage across the capacitor and channel 1 measured the voltage across the inductor. We also used Ch. A01 of the myDAQ as the positive terminal of the voltage source, and the ground of the myDAQ as the negative terminal of the voltage source. Then, using the BODE Analyzer software, we adjusted the start/stop frequency, the number of steps, and the peak amplitude until we got a decently smooth curve with a distinct peak. The graph is shown below:
Graph 4: A graph of the RLC voltage amplitude based on varying frequencies of a AC voltage source
The shape of the curve matches the equation for the response function of a RLC circuit:
G(ω)=VRVin=IRIZ=RR+i(ωL−1ωC) (Eq. 5)
This equation reaches a maximum value as the impact of the imaginary part of the denominator decreases, when
Data Analysis
Part 1
For the first part, we wanted to find the relationship between the current and voltage of resistor
I=V/R (Eq. 6)
We then performed a linear regression between the voltage values and current values, giving us a slope of
R=V/I=1/slope (Eq. 7)
which, when combined with the formula for error of multiplicative inverse (Eq. iv), gives us
For the part involving the diode, we used a similar method of linear regression, but first we needed to convert the exponential function into a linear function to perform the linear regression on. To do so, we first cropped the data, taking only the portion that seemed to fit an exponential curve the closest. Then, by taking the natural log of the equation for the current-voltage relationship of the diode (given in Eq. 2), we were able to extract a linear relationship:
ln(I)=ln(I0)+(enkBT)V (Eq. 8)
Thus, we first took the natural log of the current values of our cropped data. We then performed a linear regression to get a slope of
Part 2
For the RC circuit, in order to calculate the time constant from our voltage-time relationship we first have to convert the exponential function into a linear function, just as we did with the diode’s current-voltage relationship. Using the same approach, we simply take the natural log of both sides of voltage-time equation, from Eq. 3, giving us
ln(Vb−V)=lnVb−1RCt (Eq. 9)
This equation shows that taking the natural log of
Calculating the time constant is then trivial:
τ=RC=−1/slope
which, with the formula for error of multiplicative inverse (Eq. iv), we calculate to be
For the RLC circuit, we start by comparing the measured resonance frequency
fres=12πLC√ (Eq. 10)
We get the measured value from the frequency at which the amplitude of the voltage reaches its peak, with uncertainty measured from the distance to adjacent frequency data points. Thus, the measured resonance frequency is
σfres=fres4π(σLL)2+(σCC)2−−−−−−−−−−−√ (Eq. 11)
Using both Eq. 10 and 11 gives us
To find the circuits Q-factor, we first calculated
Q=fres/(f2−f1) (Eq. 12)
With the uncertainty calculated through chaining together Eq. ii, iii, and iv, giving us a result of
Conclusion
For part 1, we were able to verify Ohm’s law using a linear regression of the voltage-current relationship of a resistor. In addition, we were able to use linear regression to find the voltage multiplier for the diode, and the calculated and actual values for
For part 2, we were able to use linear regression to verify the voltage-time relationship of a capacitor, our theoretical and measured time constants falling within the error bounds. We were also able to verify the formula for the resonance frequency of an RLC circuit, and were able to calculate the Q-Factor of our circuit.
No comments:
Post a Comment