Thursday, April 27, 2017

Capacitor and Inductor Voltage-current Relations

Capacitor and Voltage-current Relations
Using different voltage sources(sine and triangular). We will measure that voltage across the capacitor Vc and the current passing through it ic.

Pre-lab:
Before starting the lab we draw prediction of how Vc will look like .
 

Lab:
First we apply a sinusoidal input voltage with frequency=1kHz, amplitude=2V, and offset=0V, then we used the oscilloscope to see that graph of Vc(yellow) and ic(red). 

Second we apply a sinusoidal input voltage with frequency=2kHz, amplitude=2V, and offset=0V, then we used the oscilloscope to see that graph of Vc(yellow) and ic(red). 

Third we apply triangular input voltage with frequency=100Hz, amplitude=4V, and offset=0V, then we used the oscilloscope to see that graph of Vc(yellow) and ic(red).  

Circuit Setup:

Inductor Voltage-current Relations
 Using different voltage sources(sine and triangular). We will measure that voltage across the inductor VL and the current passing through it iL. 

Lab:
Using the same bread boar and only changing the capacitor to inductor(100mH). We apply a sinusoidal input voltage with frequency=1kHz, amplitude=2V, and offset=0V and plotted a graph using oscilloscope.
  
frequency=2kHz, amplitude=2V, and offset=0V

Circuit Setup:

Passive RC Circuit Natural Response


Using simple RC circuit we examined its natural response by using two different voltage sources(DC and square wave).

Pre-lab:
We calculated the time values for a and b.
a.) t=0.0352s
b.) t=0.242s

Lab:
First we measured the actual values of the resistors.
R1=0.98KOhms
R2=2.15KOhms

Then we apply a 5V source to the circuit. Then we open the oscilloscope to record the data. during the data collection we unplug the voltage source, and we got a graph. From the graph we got the value of  discharge time=361.6ms. Comparing the two values experimental and theoretical we got a percent error of 2.68%. Since the percent error is fairly low I think the measured values are acceptable.

Using a square wave with amplitude of 2.5V and a n offset of 2.5V to supply the circuit. Then we used oscilloscope record the graph of charge and discharge. The time it takes to charge is 68.23ms and the time it takes to discharge is 75.29ms.

 Circuit Setup:

Summing and Difference Amplifier

Summing Amplifier
 In this experiment we created a simple summing amplifier with two voltages.

Pre- Lab:
First we choose a value of the resistor that greater than 1KOhms. The value for all the resistor we choose is 4.7KOhms.  

Lab:
The actual measured values for the Resistor are R1=4.63KOhms, R2=4.66KOhms and R3=4.62KOhms.



We also checked if the analog is working. First we checked wavegen channel 1(Va) and channel 2(Vb). The measured value for the first value for Va=-3.97V and Vb=0.98V. We also checked if the scope(V+ and V-) is working.




Circuit Setup:

After setting up the circuit, we test our design by measuring the values of the output voltage in different values of Va(listed below) and a constant value of Vb(1V).

Sample Vo measurement:
Using the formula Vo = - R3(Va+Vb)/R1, we can compare that values we measure and the theoretical values of Vo. Since R1=R3 we can say that Vo=-(Va+Vb). Looking at the values of Vo we can say that setup of the circuit is right.

 Difference Amplifier
 In this experiment we created a simple difference amplifier with two voltages.


Pre-Lab:
In the pre-lab we determine the relationship Va, Vb and Vo.
Vo=-2(Va-Vb)
The actual values of the resistors are also listed below. 

Lab:
We used the same setup of analog discovery as the summing amplifier. The values of of Va and Vb for part 1 and 2 are listed below, and we measured the values of Vo.

Circuit Setup:




The measured values of Vo in part 1 and 2 are acceptable since Vo=-2(Va-Vb) and Vo must be between +5V and -5V.

Inverting Voltage Amplifier

Prelab:
Before the lab we determine what values of the resistor we need to have a gain of 2.

Lab:
First we got the actual values of the resistor
R1 = 2.15Kohms
R2 =  4.62Kohms


We use red and white wire from scope to provide the V+ and V- which are +5 and -5. We also connected the an input voltage that started from -3V to 4V with an increment of 0.5V. Then, using the DMM we measured the output voltage and recorded the values.
 Setup:

Sample Data:


Data and Chart:

Circuit Gain = - R2/R1
Circuit Gain = - 4.7/2.2
Circuit Gain = - 2.136

Using the measured and expected circuit gain, we calculated the percent error of  the circuit gain and the value we got is 0.468%. The percent error we calculated is fairly small so the measured value are acceptable.