Friday, April 14, 2017

Capacitor/Inductor Voltage-Current Relations Lab

Objective:
The goal for today's class meeting is to review the idea of capacitors in circuits. Capacitors are devices that store electrical energy in the electric field. There are two plates which are usually aluminum since they are cheap to use. Also, the plates are oppositely charged. The voltage between the capacitor plates is V=Q/C  where C = (epsilon)*A/d can be replaced. We can also find the equivalent capacitance which is almost related the equivalent resistance but opposite. In other words, when capacitor are in parallel, they are added together. When the capacitors in series, they are inversely added. We also covered and reviewed inductors which are coils with many loops that oppose rapid changes in current. The voltage difference between an inductor is V = L*di/dt. We will use this idea for the lab by using the oscilloscope and waveform generator.

Group Practice:
1. The image below is an experiment that shows a capacitor being blown up due the having the positive voltage terminal input being connected to the negative side of the capacitor. The positive side  or plate of the capacitor is connected to the negative input terminal. This makes the capacitor expand due the liquid salt  inside the capacitor that makes it expand and explode.

Figure 1. Set up of blowing up a capacitor when the voltage inputs are connected in the opposite direction.
2. We are given a problem where we are told to find the voltages at the capacitors. In order to this, we will assume that the capacitors act like an open switch. We can then use current division and find the current flowing through the 3k,2k and 4k resistor. Figure 2 shows how to find the current. We can then find the voltages at 4k and 2k resistors which are actual voltages of the capacitors since they are parallel to each other. 
Figure 2. A circuit in which there are capacitors. 
3. We are given a voltage equation in terms of t and an initial current at t=0, We are told to find the current in a circuit where there is an inductor. We use integration as seen in figure 3 and solve for current through the conductor.
Figure 3. A problem in which we must solve for the current flowing through the inductor and the energy.
Capacitor Voltage-Current Relations Lab Procedures and Results: 
1. Before we start the lab, we are required to do a pre lab that will give us an idea on what we expect for our capacitor current when when sinusoidal and triangle wave voltage is applied. As seen in figure 4, since i=Cdv/dt, we can calculate the current by taking the derivative of the voltage input.


Figure 4. A plot that shows a voltage signal and the expected current. 
3. In order to test our the theoretical equation where the current is the derivative of voltage with respect to time, we will build a circuit where there is a resistor and capacitor in series. The schematic of our planned building circuit can be seen in figure 5 and the actual circuit can be seen in figure 6.

Figure 5. Schematic for circuit where there is a voltage source connected in series with resistor and capacitor.

Figure 6. Actual circuit build. 
4. We apply a sinusoidal input voltage with f=1kHz, A =2V and offset 0V. We record the voltage difference of the resistor as seen in figure 7 with the wave colored in yellow. The voltage difference of the capacitor can be seen represented by the color yellow and the current through the resistor by the color orange. To measure the current, we had to create a math channel where i = C1/100 where C1 represents the voltage across the resistor. The actual resistance of the resistor is R= 98 ohms+/-0.5
Figure 7.  Results when frequency is 1kHz with a sinusoidal voltage. 
5. The next step is to change the f = 2kHz. The results can be seen in figure 8.
Figure 8. Results when frequency is 2kHz
6. The final step is to apply a triangular input voltage with f = 100Hz, A = 4V, and offset=0V. The result can be seen below. The voltage difference across the capacitor is in yellow and the voltage input is in blue. The current of the resistor is in orange. 
Figure 9. Results when f =100Hz with a triangular voltage input. 

Inductor Voltage-Current Relations Lab Procedures and Results:
1. The image below is similar to the previous lab. However, there is a inductor in this case. The actual circuit set up can be seen in figure 11.

Figure 10. Schematic of a voltage input connected to a resistor and inductor in series.

Figure 11. Actual circuit.
2. We apply a sinusoidal input voltage with f =1kHz, A = 2V, and offset= 0V. The yellow is the voltage across the resistor. The blue wave represent that voltage difference between the inductor and the orange is the current through the resistor.  
Figure 12. Results when f=1kHz
3. The frequency is then changed to 2kHz to acquire new results as seen in figure 13.
Figure 13. Results when F =2Khz
4. A triangular voltage is applied to the inductor and resistor and acquire new results. 
Figure 14. Results when triangular wave is introduced. 
Summary of Labs and Learning Objective: 
Our assumed results in figure 4 relates to our results from figure 7 and 9 in terms of voltage input and the voltage difference across the capacitor. Out theory shows accurate based on our results for the voltage but not the current and the voltage across the capacitor. Unfortunately, there was a mistake entering our mathematical input for the current across the capacitor. Instead, we measured the current across the resistor which was not necessary which is represented by the orange wave line. The same procedure is produced to inductor voltage-current relations lab. We came to the conclusion that it looks similar to the results from the capacitor voltage-current relations lab. The main problem in both lab is that we did not measure the current across the capacitor and inductor which will show whether or not out assumed results for voltage- current relations hold true for a capacitor. 

Wednesday, April 12, 2017

Temperature Measurement System Design Lab

Objective:
We covered the idea of cascading operational amplifiers which are op amps that are connected in cascade or heat to tail to get a larger gain. We also discussed out Wheatstone bridges are which are circuits that are used to convert variations in resistance to variations in voltage and are used in measurements systems where there are sensors that have a variation of resistance due to external influence such as thermistors. We apply this idea into our temperature Measurements system design lab.

Group Practice:
1. The circuit below shows two operational amplifiers where we are told to find the voltage output and the current as seen in Figure . We will find the voltage output of the first non inverting amplifier in which we calculated to be Vo = 100mV. We then use that voltage as the voltage input for second non inverting amplifier. We would then calculate the voltage output using the equations Vout = (1+(Rf/R1)Vin. The result is Vout =350mV . The current is found by treating the current input in the positive terminal to be 0 and treating the resistors in series. We use the equations I=Vout/(R1+R2). The current is I = .025E-3mA.
Figure 1. 
2. The circuit in Figure 2. tells us to find Va and Vb. Since we have Vs which is the input voltage. We will calculate the voltage at a by using voltage division as seen below. We then calculate the difference between the points a and b.

Figure 2. Using voltage division to find the voltage at point a and b. 
Lab Procedures and Results:
1. The purpose of this lab is to build a simple temperature measurements system which outputs a DC voltage which indicates temperature. We will use a thermistor, potentiometer, and the idea of a Wheatstone bridge circuit as seen in figure 4 and 5 as its equivalent circuit.

Figure 3. Schematic of circuit which is planned to be built.

Figure 4. Wheatstone bridge circuit

2. We are considering a thermistor where the resistance is 10K when the temperature is at room temperature or 20C. When the temperature increases to 37C, the resistance increases to Rhot= 37K+/-.05. We measure the actual resistance of the thermistor Rth = 10.35K+/-.01 at room temperature.

3. When we connect all the components to the circuit, we notice that we must connect the potentiometer in series with the resistor at the bottom right of the circuit as seen in Figure 5. This will help us acquire a voltage difference between point a to b with 0 and measure the voltage Vab easier when the temperature changes for the thermistor.
Figure 5. Actual build for the Wheatstone bridge circuit.
3. We measure the resistance of the resistors, potentiometer, and thermistors that will be used in the Wheatstone Bridge circuit: Rth = 10.35K+/-.05 at room temp, R1 = 10K+/-.05, R2 = 10K+/-.05, R3 = 9.98K+/-.05, R(Potentiometer) = 9.07K+/-.05.  The potentiometer has the ability to change the resistance with a knob but in this case we are trying create a voltage difference between point a and b of 0 which can be seen in figure 6. This will help us measure the voltage when the thermistor increases in temperature. The voltage at body temperature is Vab= .25V+/.05.

Figure 6. Taking necessary steps to make the Vab equal to 0 at room temperature

4. We will use the voltage Vab for the input voltage for the operational amplifier. as seen in Figure 8. However, there is more work to be done since we need to find the necessary resistors for the operational difference amplifier as well as the voltage output. We note that the we must have a voltage output of 2V. In this case we will use the equation Vout = -(R2/R1)Vin. Our voltage input must be Vab=.25V+/-.05. Our calculation was wrong and acquired a theoretical resistors of resistance of R1= 11.87K+/-.05, R2 = 2.93K+/-.05, R3 = 9.98K+/-.05, R4 = 12K+/-.05. This means, based on our resistors used, that the voltage output should be 1V at body temperature which is shown as a video in Figure 9. The video shows that the voltage output increases as temperature increases. The voltage output increases to 1v in this case based on our error of calculations.

Figure 7. Difference operational amplifier

Figure 8. Schematic on how to connect the Wheatstone bridge circuit and difference operational amplifier.

Figure. 9. Video of successful experiment

Summary of Labs and Learning Objective:
The lab takes two components into consideration and they the use of building a Wheatstone bridge circuit and an operation difference amplifier. We also take thermistor and potentiometer into consideration since we are building a simple temperature measurements system. The reason why we build a Wheatstone bridge circuit is because its resistance change will convert to a voltage change. The Wheatstone bridge has a difference output that will be close to zero according to our set up. As a result we used an operation amplifier in order to increase the output voltage of the whole system to 1V. The lab require us to create a voltage output of 2V. However, we make a miscalculation when find the necessary resistor values for the operation difference amplifier. The resistance used and the resistance of the thermistor are Rth = 10.35K+/-.05 at room temp, R1 = 10K+/-.05, R2 = 10K+/-.05, R3 = 9.98K+/-.05, R(Potentiometer) = 9.07K+/-.05. This values helped us acquire a difference voltage between the point a and b of circuit from figure # to zero. We connect this Vab which is considered as out voltage input for the operational difference amplifier to the proper terminals. Yet we calculated the resistor needed in order to create a voltage output of 1 V while the voltage difference is in fact Vab= .25K+/-.05 when there is a temperature change. We use the equation Vout = (Rf/R1)Vin where Vin = Va-Vb. The resistors that were used in order to acquire a output voltage of 1v are R1= 11.87K+/-.05, R2 = 2.93K+/-.05, R3 = 9.98K+/-.05, R4 = 12K+/-.05. We tested our circuit by raising the temperature of the thermistor by squeezing it in order to represent a change of temperature based on our body temperature. The lab was a success and saw that the voltage output increases as temperature increased as seen in out video in Figure 9.

Friday, April 7, 2017

Summing and Difference Amplifier Lab

Objective:
The goal for today's class meeting is to understand buffet, non inverting, summing, and difference amplifiers. The lab will be based on summing and difference operation amplifiers. The equations for some of the operational amplifiers based on type are:
Inverse: -Rf/Ri * Vinput
Summation: Voutput = -Rf(V1/R1 + V2/R2)
Non-inverting: Voutput = (1+Rf/Ri)* Vinput
Difference: Voutput = R2/R1(V2-V1)

Group Practice:
1. The first in class problem that we worked on was based on plotting a block digram that represents the voltage input as seen in Figure 1. We are given two resistors with resistance of 2.5K and 7.5K. We are then told to plot the output voltage which can also be seen in figure 1. We note that the the lower limit is 0 volts so the bottom portion of the output block diagram is erased.
Figure 1. Plotting the input and output voltage. 
2. We are then told that the voltage input is between 0 to 200mv. Using the equation of an inverting operational amplifier where Vout = -(R2/R1)*Vin, we acquire a new voltage output. The plot can be seen in Figure 2. We note that the voltage output can not be below 0. Therefore it voltage output is 0.

Figure 2. Plotting the voltage output when voltage input is from 0 to 200mv.
3. We are given a circuit which can be seen in Figure 3. We are told to solve for voltage output. In order to this, we assume the circuit to be an ideal operational amplifier. Therefore, no currents flow flowing into the inverting or non inverting terminals. We see that voltage difference between is zero, meaning they are equal V1=V2. We then use nodal analysis at two points which can be seen in the figure below and acquire a Vo = -18/11.

Figure 3. Nodal analysis calculations for voltage output in an inverting operation amplifier.

Summing Amplifier Lab Procedures and Results:
1. The pre lab involves designing a summing circuit with two voltage inputs which can be seen in Figure 4. We note that the circuit is an inverting operational amplifier. As we do the calculations using nodal analysis, we acquire an equation Vout = -(R3/R1)(Va+Vb)

Figure 4. Schematic build for op amp

2. The circuit require us to find R3 as seen in figure 5. The way in which we find the resistance of the resistor is to note that Vout = -(R3/R1)(Va+Vb). In order to get R3, we will note that Vo = Va +VB. In order for this to true, then R3 and R1 must be equal. However, we must consider that we may not have this resistor, so we acquire the resistors that are available in class that are at least 1K . We use resistors of R1 = 2.15K+/-.01, R2 =2.17K+/-.01, R3 = 2.17K+/-.01.
Figure 5. Finding a resistance value for R3
3. We are told that input Va will change from -6,-5,-4,-2,-1,0,1,2,3,5V and the Vb will stay at 1V. We measure the first voltage output  of -2.98V+/-.01 when Va = -4, Vb = 1. The actual circuit can be seen in figure 6.
Figure 6. Output voltage measurement
4. We measure the rest of the voltage outputs as we change the the Va. The experimental and theoretical measurements can be seen in Figure 7. Percentage difference between theoretical and experimental is low between the voltage output ranging from 4<Vout<-2.97 based on what was inputed by Va and Vb. There is saturation at above a voltage output above 4 and -3.37V.

Figure 7. Table that includes experimental and theoretical as well as the percent difference.

Difference Lab Procedures and Results:

1. This lab includes the idea of difference operational amplifiers which is a device that amplifies the difference between two inputs but rejects any signals common to the the two inputs. The first step is to derive an equation which we can apply to the difference operational amplifier as seen in Figure 8 based on the schematic as seen in figure 7.
Figure 7. Schematic for a difference operational amplifier.

Figure 8. Calculating the voltage output based on the resistors in the circuit and the voltage inputs delivered to the positive and negative terminal of the operational amplifiers.
2. We draw out the schematic and plan on building our circuit. We acquire Resistors that will be used in the circuit. The resistance of the resistors are R1=9.99K+/-.01, R2=9.87K+/-.01, R3=19.98K+/-.01, R4=19.82K+/-.01.

Figure 9.

3. We measure the voltage output when the Va ranges from -4V to 5V and Vb stays at 1V. The measurements can be seen in figure 10. The difference is low between the theoretical and experimental voltage output.

Figure 10. Measurements for voltage output when Vb is 1 and Va ranges from -4 to 5V
Figure 11. Vout Vs Vin plot when Vb = 1V
4. We then measure the voltage output when the Va ranges from -4v to 5v and the Vb stays at -1V. The measurements can be seen in figure 12. The difference is low between the theoretical and experimental voltage output.

Figure 12. Measurements for voltage output when the Vb is -1 and Va ranges from -4 to 5V.
Figure 13. Vout vs Vin plot when Vb=-1V
Summary of Labs and Learning Outcome:
In the Summing Amplifier Lab, we notice that the operational amplifier is an inverting amplifier since the input voltage is connected to the negative terminal of the amplifier. We can assume that there will be a relationship in the equations when there are multiple voltage inputs connected to the negative terminal of the amplifier. We can use nodal analysis  for the summing amplifier in the first part of lab in order to find the voltage output which we found it to be Vo= -((Rf/R1)V1+(Rf/R2)V2). This is similar to inverting amplifier lab where Vo=-(Rf/R1) *Vin. We built the circuit and measured the resistance of the resistors that we plan to use. The resistors must be the same so that Vout = -(Va+Vb). The resistors in use are R1 = 2.15K+/-.01, R2 =2.17K+/-.01, R3 = 2.17K+/-.01. We measure the voltage output which can be seen in figure 7 and we notice saturation when the voltage output is above 4 and -4 volts. Anything above that, we see a high percent error between the theoretical and experimental voltage out of 20% when Va=-6 and Vb = 1. Anything below the output voltage of -4, the percent error become high as well. 
The difference amplifier works differently in which the device amplifies the difference between two inputs and rejects any signals common to the two inputs. For the lab we, we are require to find the Voltage output equation by using nodal analysis. Thus, we acquire the equation Vo=V2-V1. We measure the resistance of the resistors of R1=9.99K+/-.01, R2=9.87K+/-.01, R3=19.98K+/-.01, R4=19.82K+/-.01. We then measure the output voltage when Va varies from -4 to 5V and Vb stays the same. We can see based on the graphs and measurements in figures 10 and 11 that there is saturation around 4v and below -3.5V. We see that the theoretical and experimental out voltages have small percentage error below 1% between the saturation points. In other words our theoretical equation satisfies with our experimental measurements as long as the voltage output is within the linear region of Vout vs Vinplot. When the Vb is switched to -1V and Va varies from -4v to 5v. The plot is then reversed but the saturation is the same. 

Tuesday, April 4, 2017

Inverting Voltage Amplifier


Objective:
The purpose of today's lesson is to understand operational amplifiers which is a unit that behaves like a voltage controlled voltage source. We can see that operational amplifiers only run on negative feedback by tying the output voltage to the the negative feedback. We focus on the 741 operational amplifier which has 8 pins of different terminals which can be seen in Figure 1. However, we will consider the OP 47 as seen in Figure 2 for the Lab called Inverting Voltage Amplifier. We also learn the process of replacing the operational amplifier with an equivalent circuit model. The process can be followed by seeing Figure 3.
Figure 1. Schematic for 741 operational amplifier.

Figure 2. Schematic for OP27 operation amplifier.

Group Practice:

1. Figure 4 shows a problem in which we are told to redraw the equivalent circuit of the operational amplifier based in Figure 3. We are told to find the loop gain Vo/Vs. We found the Vo/Vs = 9.0041 by using nodal voltage analysis as seen in Figure 4.

Figure 3. Process on how to replace an operational amplifier with an equivalent circuit.

Figure 4. Class practice 

Lab Procedures and Results:
1. As part of the pre lab, we design an inverting amplifier where it provides a gain of 2 and R1 = 2K. The design can be seen in figure 5 and find the R2 = 4K by understanding that R2/R1 is the gain of the amplifier. However, we can not use theses exact resistance since it is not available instead we look at the E12 Values of resistors which can be seen in figure 6. We find that R1 = 2.2K and R2 = 4.7K which is the closest to the theoretical resistors. 
Figure 5. Replacing the operational amplifier with an equivalent circuit. 

Figure 6. Table will help find the necessary E12 values needed for the circuit. 
2. We begin with the experiment by measuring the exact resistance of the resistors where R1=2.14K=/-.01 and R2 = 4.64K+/-.01 which can be seen in figure 7 and 8, respectively.

Figure 7. Measure resistance of R1 = 2.14K+/-.01

Figure 8. Measured resistance for R2 = 4.64K=/-.01 
3. We then design the actual circuit as seen in figure 9 based on our design We generate a voltage input of -3V to 4V by intervals of .5V. 
Figure 9. Actual inverting amplifier design circuit. 
4. We measure the output voltage when the input voltage was -3V and found that output voltage measured Vout=-3.41V+/-.01. We then increased the voltage by intervals of .5 up to 4V. The output voltage when the input voltage was 4V gave us a measurement of Vout=4.12V+/-.01. The experimental can be seeing figures 10 to 12. 
Figure 10. Measured output voltage of -3.41V when the input voltage was 4V.
Figure 11. Measure output voltage of 4.21V when the input voltage was -3V


5. We then plot the measurements in a V out vs Vin plot. We can see that the output voltage is restricted by 4.21<Vo<-3.43. When the input voltage increases above the linear range, the operational amplifier becomes saturated above linear region.
Figure 12. Measure values of Voltage in and voltage our.

Figure 13. V out vs V in plot for lab
Summary of Lab and Learning Outcome:
Our design of an inverting voltage amplifier shows that the relationship between the V in and V out is Vout/Vin = -R2/R1 which holds true based on our plot where the Vout/Vin is the slope of the Vout vs Vin plot as seen in Figure 13. We see that our slope based on curve fitting is -2.57. Applying the gain of the amplifier, we acquire 2.17 which is close to our slope with a percent difference of 18.4%. The difference is not to large considering that the linear region is not perfectly linear. The plot shows us that the output voltage is restricted by 4.21<Vout<-3.43 and anything above that becomes saturated which can be seen as voltage output line flattens.