chapter12:Sinusoidal Oscillators

Example E1 - Pg 423

In [1]:
#Calculate frequency of oscillations
#given
import math
L=55.*10.**-6.;#H
C=300.*10.**-12.;#F
fo=1./(2.*math.pi*math.sqrt(L*C));
print '%s %.f %s' %("The frequency of oscillations =",fo/1000,"kHz\n");
The frequency of oscillations = 1239 kHz

Example E2 - Pg 425

In [2]:
#Calculate frequency of oscillations and feedback factor and voltage gain
#given
def  prll(r1,r2):
	z=r1*r2/(r1+r2)#
	return z
import math
C1=0.001*10.**-6.;#F
C2=0.01*10.**-6.;#F
L=15.*10.**-6.;#H
C=prll(C1,C2);
fo=1./(2.*math.pi*math.sqrt(L*C));
print '%s %.2f %s' %("The frequency of oscillations =",fo/10**6,"MHz\n");
B=C1/C2;
Amin=1./B;
print '%s %.1f %s' %("The feedback factor of the circuit =",B,"\n");
print '%s %.f' %("The circuit needs a minimum voltage gain of",Amin);
The frequency of oscillations = 1.36 MHz

The feedback factor of the circuit = 0.1 

The circuit needs a minimum voltage gain of 10

Example E3 - Pg 432

In [3]:
#Calculate frequency of oscillations
#given
import math
R=10.*10.**3.;#ohm
C=0.01*10.**-6.;#F
fo=1./(2.*math.pi*R*C*math.sqrt(6.));
print '%s %.1f %s' %("The frequency of oscillations =",fo,"Hz\n");
The frequency of oscillations = 649.7 Hz

Example E4 - Pg 432

In [4]:
#Calculate frequency of oscillations
#given
import math
R=22.*10.**3.;#ohm
C=100.*10.**-12.;#F
fo=1./(2.*math.pi*R*C);
print '%s %.2f %s' %("The frequency of oscillations =",fo/1000,"KHz\n");
The frequency of oscillations = 72.34 KHz

Example E5 - Pg 434

In [5]:
#Determine the series and parallel resonant frequencies
#given
def  prll(r1,r2):
	z=r1*r2/(r1+r2)#
	return z
import math
L=3.;#H
Cm=10.*10.**-12.;#F
Cs=0.05*10.**-12.;#F
fs=1./(2.*math.pi*math.sqrt(L*Cs));
print '%s %.f %s' %("The series resonant frequency =",fs/1000,"kHz\n");

Cp=prll(Cm,Cs);
fp=1./(2.*math.pi*math.sqrt(L*Cp));
print '%s %.f %s' %("The parallel resonant frequency =",fp/1000,"kHz");
#Determine the series and parallel resonant frequencies
#given
def  prll(r1,r2):
	z=r1*r2/(r1+r2)#
	return z
import math
L=3.;#H
Cm=10.*10.**-12.;#F
Cs=0.05*10.**-12.;#F
fs=1./(2.*math.pi*math.sqrt(L*Cs));
print '%s %.f %s' %("The series resonant frequency =",fs/1000,"kHz\n");

Cp=prll(Cm,Cs);
fp=1./(2.*math.pi*math.sqrt(L*Cp));
print '%s %.f %s' %("The parallel resonant frequency =",fp/1000,"kHz");
The series resonant frequency = 411 kHz

The parallel resonant frequency = 412 kHz
The series resonant frequency = 411 kHz

The parallel resonant frequency = 412 kHz