blob: aae0c16facab3cad8f1eb4f95d6ae3fb16ad4cf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//ex16.1
R1=10*10^3;
R2=R1;
R=R1;
C1=0.01*10^-6;
C2=C1;
C=C1;
R3=1*10^3;
r_ds=500;
f_r=1/(2*%pi*R*C);
disp(f_r,'resonant frequency of the Wein-bridge oscillator in Hertz')
//closed loop gain A_v=3 to sustain oscillations
A_v=3;
//A_v=(R_f+R_i)+1 where R_i is composed of R3 and r_ds
R_f=(A_v-1)*(R3+r_ds);
disp(R_f,'value of R_f in ohms')
|