# Variables
A = 100.;
R1 = 1.*10**3;
# Calculations
Rf = -A*R1;
# Results
print "feedback resistance (ohm) = ", Rf
# Variables
Rf = 10.;
R1 = 1.;
Avol = 200000.;
# Calculations
A = -(Rf/R1)*(1./(1.+(1./Avol)*((R1+Rf)/R1)));
# Results
print "closed loop gain = ", A
# Calculations and Results
Sa = 10;
print " saturation voltage = ", Sa
Vom = Sa;
print "maximum output voltage", Vom
# Variables
Vos = 5.*10**-3;
Rf = 10.;
R1 = 1.;
# Calculations
Vo = -Vos*(1+Rf/R1);
# Results
print "output voltage due to offset voltage (V) = ", Vo
# Variables
Rf = 10.;
R1 = 1;
# Calculations
A = Rf/R1;
# Results
print "Amplification Factor = ", A
# Variables
V1 = 1.;
V2 = -2.;
Rf = 500.;
R1 = 250.;
R2 = 100.;
# Calculations
Vo = -(((Rf/R1)*V1)+((Rf/R2)*V2));
# Results
print "output voltage(V) = ", Vo
# Variables
Rf = 100.*10**3;
R1 = 1*10**3;
# Calculations and Results
A = Rf/R1;
print "Gain = ", A
print "If multiplier is 10",
A = 10;
Rf = A*R1;
print " feedback resistance (Ohm) = ", Rf
# Variables
g = 10.;
Rf = 10.;
# Calculations and Results
R1 = Rf/g;
print "resistance R1(Kilo-ohms) = ", R1
R2 = Rf/(0.5*g);
print "resistance R1(Kilo-ohms) = ", R2
R3 = Rf/(0.333*g);
print "resistance R1(Kilo-ohms) = ", R3
# Variables
Voramp = -10;
print "if voltage source is 10V then RC = 1 ms and if C = 1 micro-F"
# Calculations
C = 1;
R = 1*10**-3*10**6;
# Results
print "value of resistance (ohm) = ", R
# Variables
V2 = 5.*10**-3;
V1 = 3.*10**-3;
Vo = 300.*10**-3;
# Calculations and Results
Vd = V2-V1;
Ad = Vo/Vd;
print "difference mode gain = ", Ad
V2 = 155*10**-3;
V1 = 153*10**-3;
Vo = Ad*(V2-V1);
print "output voltage (V) = ", Vo
# Variables
Vo = 3.;
Vd = 30.*10**-3;
# Calculations and Results
Ad = Vo/Vd;
print "difference mode gain = ", Ad
Vo = 5.*10**-3;
Vc = 500.*10**-3;
Ac = Vo/Vc;
print "Common mode gain = ", Ac
CMRR = Ad/Ac;
print "Common mode rejection ratio = ", CMRR
# Variables
V2 = 30.*10**-3;
V1 = -30.*10**-3;
Vd = V2-V1;
Ad = 150.;
Vos = Ad*Vd;
Ac = 0.04;
Vc = 600.*10**-3;
# Calculations
Von = Ac*Vc;
SNR = Vos/Von;
CMRR = Ad/Ac;
# Results
print "Signal to Noise Ratio = ", SNR
print "CMRR = ", CMRR
# Variables
Ci = 10.*10**-12;
Vi = 10.;
Eo = 8.85*10**-12;
# Calculations and Results
A = 200.*10**-6;
K = -Ci*Vi/(Eo*A);
print "sensitivity (V/mm) = ", K
d = 1*10**-6;
Vo = K*d;
print "output voltage (V) = ", Vo
import math
# Calculations and Results
MXtc = 10.**10*1000*10**-12;
print "Maximum time constant (s)", MXtc
MNtc = 10.**8*10*10**-12;
print "Minimum time constant (s)", MNtc
AR = 0.95;
fmin = (AR)/(2*math.pi*MXtc*(1-AR**2)**0.5);
print "minimum frequency (Hz)", fmin
fmax = (AR)/(2*math.pi*MNtc*(1-AR**2)**0.5);
print "Maximum frequency (Hz)", fmax
import math
# Variables
g = 0.501;
f = 50;
# Calculations and Results
w = 2*math.pi*f;
tc = (1-g**2)**0.5/(w*g);
print "time constant (s)", tc
R = 10000;
C = (tc/R)*10**6;
print "capacitance (micro-F)", C
import math
# Variables
R1 = 10.*10**3;
R2 = 1.*10**6;
# Calculations and Results
A = R2/(R1+R2);
print "gain = ", A
C2 = (0.01)*10**-6;
C1 = 100.*10**-12;
fcl = 1./(2*math.pi*C2*R2);
print "lower cut off frequency (Hz)", fcl
fcu = 1./(2*math.pi*R1*C1);
print "upper cut off frequency (Hz)", fcu
import math
# Variables
R = 1.*10**6;
fo = 10.*10**3;
# Calculations
C = 1/(2*math.pi*fo*R);
# Results
print "the value of C (F)", C
import math
# Variables
Rt = 100.;
K = 1.;
# Calculations and Results
Rb = K*Rt;
ei = 10;
print "When K = 1"
eo = ((K*Rt/Rb)/(1+(K*Rt/Rb)))*ei;
print "output voltage (V) = ", eo
Se = (ei*Rb)/((Rb+K*Rt)**2);
print "sensitivity (V/ohm) = ", Se
K = 0.95;
print "When K = 0.95",
eo = ((K*Rt/Rb)/(1+(K*Rt/Rb)))*ei;
print "output voltage (V) = ", eo
Se = (ei*Rb)/((Rb+K*Rt)**2);
print "sensitivity (V/ohm) = ", Se
import math
# Variables
ei = 100.;
K = 0.25;
print "When K = 0.25"
# Calculations and Results
eo = ((K/6)/(1+(K/6)))*ei;
print "output voltage (V) = ", eo
K = 0.5;
print "When K = 0.5",
eo = ((K/6)/(1+(K/6)))*ei;
print "output voltage (V) = ", eo
K = 0.6;
print "When K = 0.6",
eo = ((K/6)/(1+(K/6)))*ei;
print "output voltage (V) = ", eo
K = 0.8;
print "When K = 0.8",
eo = ((K/6)/(1+(K/6)))*ei;
print "output voltage (V) = ", eo
import math
# Variables
R2 = 119;
R3 = 119.7;
R1 = 120.4;
R4 = R2*R3/R1;
R4 = 121.2;
ei = 12;
# Calculations
eo = ((R1*R4-R2*R3)/((R1+R3)*(R2+R4)))*ei;
# Results
print " output voltage (V) = ", eo
# Variables
ei = 6.;
R = 10000.;
print "if dR = 0.05R"
# Calculations and Results
dR = 0.05*R;
eo = ((dR/R)/(4+2*(dR/R)))*ei;
print "output voltage (V)", eo
print "if dR = -0.05R"
dR = -0.05*R;
eo = ((dR/R)/(4+2*(dR/R)))*ei;
print "output voltage (V)", eo
# Variables
R2 = 800;
R3 = 800;
R4 = 800;
Rm = 100;
R = 800.;
ei = 4;
# Calculations
im = 0.8*10**-6;
dR = (im*R**2)*(4*(1+Rm/R))/ei;
R1 = R+dR;
# Results
print "resistance of unknown resistor (ohm) = ", R1
# Variables
R2 = 1000.;
R3 = 1000.;
R1 = 1010.;
R4 = 1000.;
ei = 100.;
# Calculations and Results
eo = ((R1*R4-R2*R3)/((R1+R3)*(R2+R4)))*ei;
print " open circuit voltage (V) = ", eo
Ro = (R1*R4/(R1+R4))+(R2*R3/(R2+R3));
Rm = 4000;
im = eo/(Ro+Rm);
print "current (A) = ", im
# Variables
R = 100.;
P = 250.*10**-3;
# Calculations and Results
i = (P/R)**0.5;
print "maximum permissible current (A) = ", i
ei = 2*i*R;
print "maximum supply voltage (V) = ", ei
Rs = 100.;
Ps = 10.**2/Rs;
print "Power dissipation in series resistance (W)", Ps
# Variables
P = (0.1/0.2)*10**-3;
R = 1000.;
eim = 2*(P*R)**0.5;
dth = 0.1;
# Calculations
dR = (4.5/100)*dth*R;
eom = (dR/(4*R))*eim;
Sem = eom/dth;
# Results
print "maximum voltage sensitivity of the bridge (V) = ", Sem
# Calculations and Results
Reso = 10.*10**-3/10;
print "resolution of the instrument = ", Reso
n = 10.;
Q = 10/2**n;
Eq = Q/(2*3**0.5);
print "quantization error = ", Eq
D = (2**n)-1;
print "decesion levels = ", D
# Variables
Ra = 10.;
b = 5.;
# Calculations and Results
Wmsb = Ra/2;
print "weight of MSB (V) = ", Wmsb
Wlsb = Ra/2**b;
print "weight of LSB (V) = ", Wlsb
# Variables
E = 10.;
# Calculations and Results
ER = E*256/255;
print "Reference voltage (V) = ", ER
n = 8.;
CVlsb = (2**-n)*ER;
PC = CVlsb*100/E;
print "Percentage change = ", PC
import math
# Calculations and Results
n = 14.;
print "number of bits = ", n
E = 10.;
Q = 10.;
LSB = E/2**n;
print "Value of LSB (V) = ", LSB
Eq = Q/(2*(3**0.5));
print "Quantization error (V) = ", Eq
fh = 1000.;
fs = 5*fh;
print "minimum sampling rate (Hz) = ", fs
a = 1./16384;
ta = 1./(2*math.pi*fh)*a;
print "Aperature time (s) = ", ta
Dr = 6*n;
print "dynamic range (db) = ", Dr
# Variables
ER = 10.;
n = 6.;
# Calculations and Results
Imax = 10*10**-3;
R = ER*((2**n)-1)/((2**(n-2))*Imax);
print "resistance (ohm) = ", R
LSB = ER/((2**(n-1))*R);
print "smallest output current (A)", LSB
# Variables
n = 6.;
R = 10000.;
Io = (10./10*10**3)*(1*1+1*0.5+1*0.25+0*0.125+1*0.0625)*10**-6;
Rf = 5000;
# Calculations
Eo = -Io*Rf;
# Results
print "Output voltage (V) = ", Eo
# Calculations and Results
print "Set d3 = 1"
Output = 5./2**1;
print "since 3.217>2.5 so d3 = 1"
print "Set d2 = 1"
Output = (5./2**1)+(5./2**2);
print "since 3.217< 3.75 so d2 = 0"
print "Set d1 = 1",
Output = (5./2**1)+(5./2**3);
print "since 3.217>3.125 so d1 = 1",
print "Set d0 = 1",
Output = (5./2**1)+(5./2**3)+(5./2**4);
print "since 3.217<3.4375 so d0 = 0",
print "Output of successive approximation A/D = 1010",
# Variables
t = 400.;
T = t/4;
C = 1.*10**-6;
v = 20;
i = C*100*v/(T);
R = 1*10**3;
# Calculations
e_o = i*R;
# Results
print "output voltage(V)", e_o