Wednesday, May 22, 2013

op amps 2

The purpose of this lab is to explore further the effect of op amps on a voltage source using an inverting amplifier.


this is the circuit we are dealing with, as you can see we had to change the voltage sources to 12V sources because of availability. and the resistors used are as follows.

Resistor Nominal Value Measured Value
R1 10k 9.86k
Rf 100k 98.3k

we predicted the value of the current leaving the op amp to be .1mA and then built the circuit.



Vin Desired Vin Actual Vout Measured Vrf Measured Iop Calculated
0.25 0.25 -2.67 2.66 .0266mA
0.5 0.5 -4.95 4.92 .0492mA
1 1 -9.9 9.82 .0982mA
We measured

Icc=.933mA
Iee=-1.034mA

Therefore Iop=Icc+Iee
=.933-1.034
=-1.01mA

our power supplied by each of the 12V sources is
P=.0124W
P=.0112W

then we added a 1Kohm resistor

and measured

Vin Desired Vout Measured Vrf Measured Iop Calculated Icc Measured IEE Measured
1V -10 9.96 .1mA .73mA -11.09mA
KCL for the op amp continues to hold because the currents are at different values, which means it was divided through the circuit.

the new power supplied by each voltage source is
P=.133W
P=.0087W

Extra Credit
Rf=50Kohms
Vin Desired Vout Measured Vrf Measured Iop Calculated Icc Measured IEE Measured
1V -5.07V 5.05V 1.01mA .932mA -1.033mA

these measurements do behave as expected because of the change in resistor it cuts the factor of 10 down to a factor of only 5. because the resistor is half as much as before.

Tuesday, May 21, 2013

Pspice Tutorial

 In this lab we learned how to use the pspice program and learned how to put circuits into a schematic and check values and run simulations in the program.

1st we set up the first circuit and check the voltages and currents.
then we set up the 2nd circuit on our own and find the voltages and currents across the nodes
then we set up the 3rd circuit and find the voltages and currents across those nodes as well
we also graphed voltage with respect to amps.
then we set up a thevenin equivalent circuit and show the voltages and amps. 
i attempted to show a graph of the max power but was unable to figure out how to do it as i was not in class when we went over it. But i will do my my best to find out how and post it up before the end of the year. thank you.

op amps 1

objective: we have a sensor whose output varies from 0 to +1V and we need to have the corresponding output range from 0 to -10V, and it must draw no more than 1mA

we decided to use 3000ohms and 33,000ohms as our resistors.
we calculate R to be 1152ohms
and Ry to be 105ohms
which makes Rth=230.4ohms

after measuring and recording everything we get
Component Nominal Value Measured Value Power or Current Rating
Ri 1000 976 8th
Rf 10k 9.88k 8th
Rx 1152 1.292k 8th
Ry 104.72 129 8th
V1 12 12.27 2amp
V2 12 12.27 2amp


then we set up the circuit and check the values


Vin Vout GAIN Vri Iri Vrf
0 0 0 0 0 0
0.25 -2.79 11.16 0.25 0.08 2.79
0.5 -5.55 10.98 0.49 0.17 5.49
0.75 -8.29 11.05 0.75 0.25 8.29
1 -10.71 10.77 0.97 0.32 10.77


our gain should be by a factor of 10 everytime, however due to the fact that we didnt have access to every resistor possible we had to use a 33000ohm resistor which gave us a gain of about 11

We also measured Iv1 and Iv2 to be .96mA and -1.29mA

We then calculated
Pv1=(.96mA)(12V)=11.52mW
Pv2(1.29mA)(12V)=15mW

Iri=1V/3000ohms=.33mA
and
Irf=10.77V/33000ohms=.33mA
which shows through KCL that our measurements satisfy the condition of using Vin=1V

11.52mW and 15mW are less than 30mW so we did satisfy the power suply constraint. we could increase the values of the resistors to reduce the power drawn from the power supplies.

Sunday, May 19, 2013

FreeMAT lab #2

freemat lab #2
these are my freemat and theoretical solutions to #1
this is my formula for converting rectangular and polar
these are the conversions for all of the examples.
this is number 3 with its theoretical proof
solution on freemat for the matrix problem in #4

2nd order lab online

This is our online work we did for the 2nd order lab.


Wednesday, April 10, 2013

Max Power Lab

objective: to prove that the maximum power transfer occurs when the load resistance is equal to the Thevenin resistance of the circuit as stated in the Maximum Power Transfer Theorem.


The theoretical Values for Voltage and Power at the potentiometer are
V=2.26
P=.234

Voltage
0
Resistance
0
Power
0
0.15 0.21 0.03
0.3 0.42 0.05
0.46 0.69 0.08
0.61 0.95 0.1
0.92 1.59 0.13
1.22 2.46 0.15
1.48 2.72 0.2
1.75 3.54 0.22
2.22 5.39 0.23
2.25 5.56 0.23
2.39 6.29 0.23
2.52 7.02 0.23
2.63 7.8 0.22
2.74 8.58 0.22

I am having trouble pasting my graphs into the blog from excel. The measure of potentiometer resistance that results in max power transfer is 5.56 ohms the theoretical value of resistance is 5.50 ohms, which yields a max power of .234, so percentage error is 1.7% which is an acceptable value! Theoretical Values Measured Values R1=.987 KohmsR2=9.970 KohmsR3=9.959 KohmsR4=.989 KohmsR5=.998 Kohms 4.5V=4.479V=8.89 
 From the picture it is hard to tell but the Highest power input is at , , which is when the Load resistance from the potentiometer is equal to the Thevinin resistance,Therefore we can conclude that max power transfer will always occur when these two values are equal to one another.

Thevenin Equivalents

Objective: our goal is to take a circuit with multiple voltage sources and resistors and calculate and test the Thevenin Equivalents

First we calculate Vth which is equal to Vx

then we Calculate the following,
Vy=5.11V
Vy/Rc3=Isc
Rth=Voc/Isc
Rth=65.98ohms

1.
then we find the smallest permissible RL2 using a voltage divider which is
Vth/(Rth+RL2)*RL2=VL2
VL2=8V
RL2=819.9ohms


2.
The short circuit current is then found by
8/819.9=.0098A


3.
The open circuit voltage is found to be
8.64V

then we set up the experiment

and come up with the following values


Component Nominal Value Measured Value
Rth 66Ω 65.9Ω
Rl2,min 819.9Ω 820Ω
Vth 8.64V 8.66V



Config Theoretical Value Measured Value % Error
Rl2=Rl2,min Vload2=8V 7.78V 2.75%
Rl2=infiniteΩ Vload2=8.64V 8.71V 1.00%



Component Nominal Value Measured Value
Rc1 100 98
Rc2 39 38
Rc3 39 39
RL1 680 667
Vs1 9 9.1
Vs2 9 9.18



Config Theoretical Value Measured Value
Rl2=Rl2,min Vload2=8V 6.9
Rl2=infiniteΩ Vload2=8.64V 7.94






Configuration Vload2
RL2=0.5Rth 1.8
RL2=Rth 2.85
RL2=2Rth 4.16


in conclusion we have found that by calculating the Thevenin Equivalents we can easily find new values for V and R thevenin when sources or resistors are added to the circuit.