In this lab, we will design and build a full wave bridge rectifier for AC-to-DC conversion. We will capture the time response data with the NI myRIO device, export it to a data file, import that data file into Python, plot the data, derive an analytic prediction, and compare the analytic prediction to the data.
The objectives of this lab exercise are for students:
The following materials are required for each lab station:
The full wave bridge rectifier circuit we are building can be represented by the circuit diagram of figure 1.
Use the following steps to build the circuit:
Use a function generator as the voltage source. Choose a capacitor of nominal capacitance \(C = 100\) μF and a resistor of nominal resistance \(R_L = 1\) kΩ. Select four 1N914 diodes.
Measure and record the actual resistance \(R\) and capacitance \(C\) with a multimeter.
Be cautious with the capacitors---they're polarized! Be sure to connect the - terminal to ground.
The LabVIEW VI needed for this lab exercise can be downloaded here:
Figure 3 shows how the front panel of your VI might look when the capacitor is disconnected.
Figure 4 shows how the front panel of your VI might look when the capacitor is connected.
The VI performs the following tasks:
AI0+, continuously;AI1+, continuously;.lvm datafile on the myRIO via the custom VIs I've written for you array_save_newfile.vi and array_save_append.vi (included in the zip file)Inspect the back panel of the VI to see how the data is captured, stored, and plotted.
Use your VI to measure the source voltage \(V_S(t)\) and the output voltage \(v_o(t)\) across the load resistor. To capture data and save it to a file, use the following procedure:
You will repeat this procedure for each frequency and capacitor status (i.e., included and excluded). Set your function generator to 8 Vpp.1 For two cases, the capacitor included and excluded from the circuit, measure and record (save to a data file) each voltage (in and out) over at least three periods of input at 10 Hz.
Repeat for the function generator frequency at the following values:2
Be sure to note which data file is associated with which frequency. Also, be sure to change the filename after clicking the capture data button twice and before clicking the Stop & Save button.
Without the capacitor, the front panel should display something like what is shown in figure 3. With the capacitor, the front panel should display something like what is shown in figure 4.
Copy your data files to a convenient directory on the computer (e.g. Documents/me316/lab05).
Write a detailed report of your experimental results, as outlined in the report template. Pay special attention to the following.
A thorough description of the theoretical analysis of the circuit. As part of this analysis, predict ripple and average DC value for each circuit with the capacitor attached. Also predict the current supplied to the load resistor \(R_L\). Use these and the model of the quick-and-dirty section to give a predicted DC voltage \(v_{DC}\) and ripple \(\Delta v_o\).
Four figures that compare each of the capacitor-attached captured data sets (input and output) to its corresponding analytic prediction. It is acceptable to predict only the ripple range and average value of the output, but a full time-analysis is even more fun! In Python, be sure to use plt.xlim() to scale the x-axis such that around 3--5 periods are visible on each plot (or trim the data). Include somewhere on the plot the approximate measured ripple and DC value. (You can use matplotlib's cursor tools to help with the estimate. "Measure" peak-to-peak and divide by two. Alternatively, use numpy's trapz function to numerically integrate the voltage and divide it by the time duration, which should be an integer multiple of the signal's period, to find its average.)
Four figures that display the capacitor-detached input and output data sets. Alternatively (preferably), plot these on the corresponding capacitor-attached data set plots. Carefully label and caption these.
The other parameters measured in the lab (e.g. \(R_L\), \(C\)).
Be sure to comment on how well your predictions matched the theory.