k=1.38*(10**(-23)) #boltzmann's constant
t=273+27 #converting given temperature to Kelvin
q=1.6*(10**(-19)) #charge on an electron
# V=(k*t)/q
V=(k*t)/q
V=V*1000 #converting result in millivolts
print "Thermal Voltage=",V,"mV"
Id= 1 #in mA, current across diodes
#from the standard graph for Ge,Si, and GaAs diodes
Vge=0.2
Vsi=0.6
Vgaas=1.1
print "Voltage across Germanium diode=",Vge,"V"
print "Voltage across Silicon diode =",Vsi,"V"
print "Voltage across GaAs diode =",Vgaas,"V"
Id= 4 #in mA, current across diodes
#from the standard graph for Ge,Si, and GaAs diodes
Vge=0.3
Vsi=0.7
Vgaas=1.2
print "Voltage across Germanium diode=",Vge,"V"
print "Voltage across Silicon diode =",Vsi,"V"
print "Voltage across GaAs diode =",Vgaas,"V"
Id=30 #in mA, current across diodes
#from the standard graph for Ge,Si, and GaAs diodes
Vge=0.42
Vsi=0.82
Vgaas=1.33
print "Voltage across Germanium diode=",Vge,"V"
print "Voltage across Silicon diode =",Vsi,"V"
print "Voltage across GaAs diode =",Vgaas,"V"
#Average value for Germanium
Vg=(0.2+0.3+0.42)/3
#Average value for Silicon
Vs=(0.6+0.7+0.82)/3
#Average value for GaAs
Vgs=(1.1+1.2+1.33)/3
print "Average Volatge value for Germanium Diode=",round(Vg,3),"V"
print "Average Volatge value for Silicon Diode=",round(Vs,3),"V"
print "Average Volatge value for GaAs Diode=",round(Vgs,3),"V"
#comparing average values in d with the standard knee voltages
#Average value for Germanium
Vg=(0.2+0.3+0.42)/3
#Average value for Silicon
Vs=(0.6+0.7+0.82)/3
#Average value for GaAs
Vgs=(1.1+1.2+1.33)/3
kge=0.3
ksi=0.7
kgaas=1.2
print "Very close correspondence between knee voltage and average voltage"
print "Germanium",kge,"V vs",round(Vg,3),"V"
print "Silicon",ksi,"V vs",round(Vs,3),"V"
print "GaAs",kgaas,"V vs",round(Vgs,3),"V"
Id=2*(10**(-3)) #in ampere
Vd=0.5 #in volts
rd=Vd/Id
print "dc resistance=",rd,"ohms"
Id=20*(10**(-3)) #in ampere
Vd=0.8 #in volts
rd=Vd/Id
print "dc resistance=",rd,"ohms"
#Id=-Is
Id=1*(10**(-6)) #in ampere
Vd=-10 #in volts
rd=abs(Vd)/Id
rd=rd/(10**(6))
print "dc resistance=",rd,"Mohms"
# drawing tangent at Id=2mA and choosing any random points n the tangent to gwt two set of values of Id and Vd
Id1=4*(10**(-3)) #IN ampere
Id2=0 #IN ampere
Vd1=0.76 #IN VOLTS
Vd2=0.65 #IN VOLTS
X=Id1-Id2
Y=Vd1-Vd2
rd=Y/X
print "ac resistance=",rd,"ohms"
# drawing tangent at Id=2mA and choosing any random points n the tangent to gwt two set of values of Id and Vd
Id1=30*(10**(-3)) #IN ampere
Id2=20*(10**(-3)) #IN ampere
Vd1=0.80 #IN VOLTS
Vd2=0.78 #IN VOLTS
X=Id1-Id2
Y=Vd1-Vd2
rd=Y/X
print "ac resistance=",rd,"ohms"
#calculating Dc resistance
#Case-1
Id1=2*(10**(-3)) #in ampere
Vd1=0.7 #in volts
Rd=Vd1/Id1
rd=27.5 #ac resistance in ohms
if Rd>rd:
print "Dc resistance=",Rd,"ohms exceeds ac resistance=",rd,"ohms"
else:
print "Dc resistance=",Rd,"ohms didnot exceeds ac resistance=",rd,"ohms"
#Case-2
Id1=25*(10**(-3)) #in ampere
Vd1=0.79 #in volts
Rd=Vd1/Id1
rd=2 #ac resistance in ohms
if Rd>rd:
print "Dc resistance=",Rd,"ohms exceeds ac resistance=",rd,"ohms"
else:
print "Dc resistance=",Rd,"ohms didnot exceeds ac resistance=",rd,"ohms"
#Equation- change in Cvz=(Tc*Vz*(t1-t0))/100%
Tc=0.072 #unit %/celsius
t1=100 #in celsius
t0=25 #in celsius
Vz=10 #in volts
Cvz=(Tc*Vz*(t1-t0))/100
nVz=Vz+Cvz #new Vz
print "New potential across zener diode=",nVz,"V"
#Equation wavelength(x)=c/f,where c=speed of light and f=frequency of the light
c=3*(10**(8))*(10**(9)) #in nm/s
x1=(c/(400*(10**12))) #in nm
x2=c/(750*(10**12)) #in nm
print "The range of Wavelength for the frequency of Visible lightis",x1,"nm to",x2,"nm"