Friday, May 22, 2015

14-May-2015: Inverting Voltage Amplifier

PURPOSE

The purpose of this experiment was to implement an inverting voltage amplifier to an AC voltage.

PRE-LAB

Figure 1
Figure 2
Figure 3

We began this experiment by analyzing the circuit diagram shown above (Figure 1). We first converted the frequencies that we were going to use in the experiment into angular frequencies as shown in Figure 2. Then, we found the theoretical gains and phase shifts of the circuit with the equation displayed in Figure 3.

PROCEDURES

Figure 4

After completing our pre-lab exercises, we set up the circuit as shown above in Figure 4. We then applied a voltage with an amplitude of 2 V and a frequency of 100 Hz to the circuit. The resulting output voltage is shown in Figures 5 and 6. We then applied two more voltages with the same amplitude but with frequencies of 1 kHz, and 5 kHz, respectively. The resulting output voltages from these inputs are displayed in Figures 7 through 10.

Figure 5: Frequency at 100 Hz (input)
Figure 6: Frequency at 100 Hz (output)
Figure 7: Frequency at 1 kHz (input)
Figure 8: Frequency at 1 kHz (output)
Figure 9: Frequency at 5 kHz (input)
Figure 10: Frequency at 5 kHz (output)

Based on the graphs above, we were able to find the phase shift angles at each frequency. We were able to do this by dividing the time difference between the peaks of the input and output voltages by the period of the graphs and multiplying by 360 degrees (θ = Δt/T * 360°). We also found the gains by dividing the amplitude of the output voltage by the amplitude of the input voltage. These calculated values are shown in Figure 11.

Figure 11

Finally, we compared the theoretical values that we found in the pre-lab and compared them to the values that we found experimentally. The percent difference between these values are shown above in Figure 11. It can be seen from percent differences that our experimental values were pretty accurate.

12-May-2015: Phasors - Passive RL Circuit Response

PURPOSE

The purpose of this lab was to find the gains and phase differences between the input current and input voltage at three different frequencies and compare them to the theoretical values.

PRE-LAB


As a pre-lab exercise, we found the cut-off frequency (ωc) based on the circuit elements R and L. Then, we calculated three frequencies that were proportional to this cut-off frequency as shown in Figure 1 (we also converted these frequencies from rad/s to Hz). Using these values, we were able to derive the gains and the phase differences of the circuit at each frequency (Figure 1).

PROCEDURES

Figure 2

After completing the pre-lab, we set up the circuit as shown in Figure 2. We applied a 1 V sinusoidal voltage to the circuit and measured the output voltage across the resistor (vr(t)) and across the inductor (vl(t)). We also set up a math channel to find the input current by using the formula i(t) = [v(t) - vl(t)]/R. The resulting graphs at each frequency are shown below in Figures 3, 4, and 5.

Figure 3: 748 Hz
Figure 4: 74.8 kHz
Figure 5: 7.48 kHz

From the resulting graphs, we were able to find the gains and phase differences between i(t) and v(t). We found the gain by dividing the amplitude of i(t) by the amplitude of v(t). We found these values to be 0.0143, 0.0021, and 0.0197, respectively. These were very close to the values found in the pre-lab. As a matter of fact, the percent differences between the theoretical and experimental values were only 4.67, 0.51, and 7.08 percent, respectively. Therefore, we concluded that our experimental values were valid. In addition, the phase differences were calculated by using the formula ϕ = Δt/T x 360°. The resulting values were 45.78, 88.86, and 5.39 degrees. These values were also pretty accurate as their percent differences were 2.14, 5.47, and 5.07 percent, respectively.

7-May-2015: Impedance

PURPOSE

The purpose of this lab was to use Ohm's law to find the impedances of different circuit elements experimentally and compare them to the theoretical values.

PRE-LAB

Figure 1

For our pre-lab, we set up equations to find the impedances of the three circuits shown above (Figure 1). The impedance of the resistor circuit was easy to find as it was simply equal to the sum of the resistance values. On the other hand, the impedances of the two other circuits depended on the frequency of the input voltage.

PROCEDURES

Figure 2

After doing our initial calculations, we set up the circuit shown above. We then applied 2 V to the circuit at frequencies of 1 kHz, 5 kHz, and 10 kHz. We measured the voltage across the fixed resistor (vr(t)) and the voltage across the "unknown" resistor (v(t)). In addition, we set up a math channel to plot the current running through the circuit by dividing the resistor voltage by the resistor's resistance value. The resulting graphs are shown below in Figures 3, 4, and 5.

Figure 3: 1 kHz
Figure 4: 5 kHz

Figure 5: 10 kHz

From these graphs, we were able to find the impedance of R by dividing v(t) by i(t). We found this value to be 101 Ω at all three frequencies. Since the measured value was 100.3 Ω (Figure 1), the percent difference between the theoretical and experimental values was only 0.7 percent.


Next, we replaced the 100.3 Ω resistor with a 1 µH inductor (Figure 6). We repeated the same process as before and applied a voltage at the different frequencies. Once again, we measured vr(t) and v(t) and set up a math channel to find i(t). The resulting graphs are shown below (Figures 7 through 9).

Figure 7: 1 kHz
Figure 8: 5 kHz
Figure 9: 10 kHz

From these graphs, we were able to find the impedance of the inductor utilizing the same technique as earlier (Z = v(t)/i(t)). However, this time, the results were not as accurate. At 1 kHz, we found the impedance to be 171 Ω, which was 89 percent off from the expected value of 1591.5 Ω. At 5 kHz. the measured impedance was 63.3 Ω, while the theoretical value was 318.3 Ω. The percent difference between these values was 80 percent. Finally, at 10 kHz, the experimental value was 53.8 Ω and the expected value was 159.2 Ω, which were 66 percent off.

Figure 10

For the third part of the experiment, we replaced the inductor with a 100 nF capacitor. We repeated the same steps as the first two parts of the experiment. The graphs of vr(t), v(t), and i(t) are displayed below in Figures 11 through 13.

Figure 11: 1 kHz
Figure 12: 5 kHz
Figure 13: 10 kHz

After analyzing these graphs, we found the impedances to be 6.37 Ω, 32.8 Ω, and 65.0 Ω, respectively. These were very close to the theoretical values of 6.3 Ω, 31.4 Ω, and 62.8 Ω. In fact, the percent error between the values were only 1, 4, and 3 percent, respectively.

Tuesday, May 5, 2015

30-Apr-2015: RLC Circuit Response

PURPOSE

The purpose of this experiment was to observe the response of an RLC circuit and analyze the resulting graphs to find missing variables.

PRE-LAB

Figure 1



To begin our lab, we sought to find the damping ratio (ζ) and the natural frequency (ωo) based on the given circuit elements (Figure 1). However, in order to do so, we had to first measure the actual resistance values of the resistors. These measured values are included in the schematics of the circuit in Figure 1. From these values and the other circuit elements, we found the neper frequency (α) and the natural frequency (ωo). Finally, we found the ratio of these two values to find the damping ratio (ζ)

PROCEDURES

Figure 2

After the pre-lab, we constructed the circuit as shown in Figure 2. We had the analog discovery connected to the second resistor (R2) to measure the voltage across it, which we considered to be Vout. Then, we applied a 2 V step input to the circuit at varying frequencies until the circuit was able to reach steady-state in between pulses.

Figure 3
Figure 4: Close up of Figure 3

The resulting graphs are shown above in Figures 3 and 4. From Figure 4, it can be seen that the the overshoot (Mp) was approximately 35 percent. This is because the initial voltage was around 40 mV and the voltage decayed past 0 mV by 14 mV (Mp = 14/40 * 100% = 35%)

28-Apr-2015: Series RLC Circuit Step Response

PURPOSE

The purpose of this lab was to implement what we learned about an RLC circuit in series in a real-life experiment.

PRE-LAB


Before setting up our circuit, we set up a second order differential equation to relate Vout and Vin. We also did some calculations to estimate the damping ratio (ζ), the natural frequency (ωo), and the damped natural frequency (ωd). In order to do so, we had to first find the actual values of the circuit elements. We found the resistances of the resistor and the inductor to be 1.4 Ω and 1.7 Ω, respectively. Furthermore, we found the inductance of the inductor to be 0.999 mH and the capacitance of the capacitor to be 0.437 µF. From these values, we found the necessary variables as shown in Figure 1.

PROCEDURES
Figure 2

To begin our experiment, we constructed the RLC circuit as shown in Figure 2. It consisted of a resistor, an inductor, and a capacitor, all connected in series. Then, we applied a 2 V step input at 1 Hz to the circuit and plotted Vout and Vin on the oscilloscope. The resulting graphs are shown in Figures 3 and 4.

Figure 3: Under-damped circuit (1)
Figure 4: Under-damped circuit (2)

For an under-damped circuit, the response oscillates at the damped natural frequency. In order to find the damped natural frequency, we multiplied the inverse of the period (which we found by analyzing the graphs in Figures 3 and 4) by . We found this value to be 52359.9 rad/s. This experimental value was somewhat close to the theoretical value of 47835.3 rad/s. In fact, the percent difference between the two values was 9.459 percent. Although this number was slightly bigger than what we would have preferred, we believed that the results were acceptable since there were many possible sources of error in this experiment such as the actual capacitance of the capacitor.

Figure 5

For the second part of the lab, we estimated the resistor value that would cause the circuit to be critically damped (Figure 5). As it can be seen from the image, we found this value to be 93.93 Ω. However, since we did not have this resistor value available for use, we chose a 100 Ω resistor instead. The measured value of the resistor (97.8 Ω) is shown in the schematic of the revised circuit in Figure 5.

Figure 6: Critically damped circuit

Figure 6 shows the response of the revised circuit to a 2 V step input oscillating at 1 Hz

21-Apr-2015: Inverting differentiator

PURPOSE

The purpose of this lab was to construct an inverting differentiator from an op amp and observe the behavior of its output voltages.

PRE-LAB

Figure 1

Before setting up our circuit, we calculated the theoretical output voltages of our inverting differentiator at three different frequencies. We assumed the input voltage to be a cosine function and found its derivative to predict the output voltage at each frequency. This process is shown in Figure 1.

PROCEDURES

Figure 2

After the pre-lab exercises, we set up the circuit as shown above in Figure 2. The circuit was very similar to an inverting op amp, except that a capacitor was connected between the input voltage and the inverting terminal instead of a resistor. As mentioned before, we applied three different input voltages with three different frequencies to the circuit. We then observed the output voltages on an oscilloscope (Figures 3, 4, and 5).

Figure 3: Frequency at 1 kHz
Figure 4: Frequency at 2 kHz
Figure 5: Frequency at 500 Hz

As it can be seen from these graphs, the amplitude of the output voltage increased as the frequency of the input voltage increased. This is what we expected to see based on our pre-lab exercises. As a matter of fact, we compared the theoretical and experimental amplitudes of the output voltages and found their percent differences. These values are shown below in Figure 6.


One last thing to note is that there were not supposed to be any phase differences between the input and output voltages according to the calculations done in the pre-lab. These phase differences can be most likely attributed to the delay between the input of the signal and the response of the circuit.

16-Apr-2015: Passive RC Circuit Natural Response

PURPOSE

The purpose of this experiment was to analyze the natural response of a circuit to estimate its time constant and compare it to the theoretical value.

PRE-LAB

Figure 1

Before constructing our circuit, we did some calculations to find the initial voltage across the capacitor and time constants of the two circuits shown in Figure 1. We found the capacitor voltage using voltage division, while we found the time constants by multiplying the Thevenin resistance (Rth) of the circuit with the capacitance of the capacitor. These were the theoretical values that we would later compare to the experimental values.

PROCEDURES

Figure 2
For the first part of the experiment, we set up the circuit as illustrated in Figure 2. We applied 5 V to the circuit for a few moments to allow it to reach steady-state. Then, we disconnected the voltage source (circled in red) and observed the natural response of the RC circuit, as shown in Figures 3 and 4.

Figure 3: Initial time of response
Figure 4: Time at which the voltage was at 36.79 percent of its initial value

To start our analysis of these graphs, we first calculated how much 36.79 percent of the initial voltage (3.408 V) was, which was 1.254 V. We looked at the graph in Figure 3 to find the time at which the response began (t0 = -61.5 ms). We subtracted this value from the time when the voltage reduced to 36.79 percent of its initial value (tf = -11 ms) to find Δt. This Δt was equal to the time constant, τ, of this circuit. We found this value to be equal to 50.5 ms. We compared this to the theoretical value found in the pre-lab by finding the percent difference, which was 2.956 percent. Since this was less than 5 percent, we concluded that our results were acceptable.

Figure 5: Initial time of response (square wave)
Figure 6: Time at which the voltage reached 36.79 percent of its initial value (square wave)

For the second part of the lab, we applied a square wave with an amplitude of 2.5 V and an offset of 2.5 V to the same circuit as the one used in Part 1 (Figure 2). Since the voltage oscillated between 0 V and 5 V, this input acted as an on and off switch. In other words, the voltage source acted as a short circuit when it was at 0 V. The response of the circuit when the input voltage was at 0 V is shown in Figures 5 and 6. Using the same process as Part 1, we found the time constant to be 15.5 ms. When compared to the value found in the pre-lab (15.24 ms), it is only 1.706 percent bigger. Therefore, we can conclude that we conducted the experiment correctly.