#Given
Vcc=9.0 #V, collector bias junction voltage
Rb=300*10**3 #Ohms, , base resistance
Rc=2*10**3 #Ohms, collector resistance
Beeta=50.0 #current gain factor
#Calculation
Ib=(Vcc)/Rb
Ic=Beeta*Ib
Icsat=Vcc/Rc
Vce=Vcc-Ic*Rc
#Result
print "a) Base current is ",Ib,"A"
print "b) collector current is = ",Ic/10**(-3),"mA"
print "collector saturation current is = ",Icsat/10**(-3),"mA"
if Ic < Icsat:
print"Since Ic < Icsat \nSo Transistor is not in saturation"
else:
print "Transistor is in saturation"
print "c) The collector to emitter voltage is = ",Vce,"V"
Vcc=10.0 #V, collector bias junction voltage
Rb=100*10**3 #Ohms, base resistance
Rc=1*10**3 #Ohms, collector resistance
Beeta=60 #current gain
#Calculation
Ib=(Vcc)/Rb #A, base current
Ic=Beeta*Ib #A, collector current
Icsat=Vcc/Rc #A, collector saturated current
Vce=Vcc-Ic*Rc #V, collector emitter voltage
#Result
print "a) Base current is ",Ib*10**6,"microA"
print "b) collector current is ",Ic*10**3,"mA"
print "collector saturation current is ",Icsat*10**3,"mA"
if Ic < Icsat:
print"Since Ic < Icsat \nSo Transistor is not in saturation"
else:
print "Transistor is in saturation"
print "c) The collector emitter voltage is ",Vce,"V"
Vcc=10.0 #V, collector bias junction voltage
Rb=100*10**3 #Ohms, Base resistance
Rc=1*10**3 #Ohms, collector resistance
Beeta=150 #current gain
#Calculation
Ib=(Vcc)/Rb #Base current
Ic=Beeta*Ib #collector resistance
Icsat=Vcc/Rc #A, collector saturation current
Vce=0 #V, collector emitter voltage
#Result
print "collector current is Ic = ",Ic/10**(-3),"mA"
print "collector saturated current is ",Icsat*10**3,"mA"
if Ic < Icsat:
print" Transistor is not in saturation."
else:
print "Since Ic > Icsat \n So Transistor is in saturation"
print "collector emitter voltage is ",Vce,"V"
Vcc=6 #V,collector base junction voltage
Vbe=0.3 #V,base emittor voltage
Icbo=.000002 #A,colector leakage current
Ic=.001 #A,collector current
Beeta=20.0
#Calculation
#Case 1: Considering Icbo and Vbe in the calculations
Ib=(Ic-(Beeta+1)*Icbo)/Beeta
print Ib
Rb1=(Vcc-Vbe)/Ib
print "value of base resistance is =",round(Rb1/1000,3),"K ohm"
#Case 2: Neglecting Icbo and Vbe in the calculations
Ib2=Ic/Beeta
Rb2=Vcc/Ib2
#Percentage Error
E=(Rb2-Rb1)/Rb1*100
#Displaying The Results in Command Window
print"The Base Resistance (Neglecting Icbo and Vbe) is ",Rb2/1000,"k ohm"
print" Percentage Error is = ",round(E,3)
#b Due to rise in temprature
beeta1=25.0
Icbo1=10.0
Ic1=beeta1*Ib+(beeta1+1)*Icbo1*10**-6
print "Now collector current is ",round(Ic1*10**3,2),"mA"
Vcc=10.0 #V,collectoe base junction voltage
Rc=500.0 #Ohms,colector resistance
Rb=500000 #Ohms,base resistance
Beeta=100.0 #current gain
#Calculation
Ib=Vcc/(Rb+Beeta*Rc) #emittor currenr
Ic=Beeta*Ib
Ie=Ic
Vce=Vcc-Ic*Rc
Vc=Vce
# Results
print "emittor current is ",round(Ie*1000,1),"mA"
print"The collector voltage is ",round(Vc,1),"V"
#Given Circuit Data
Vcc=20.0 #V,collector base voltage
Rc=2000.0 #Ohms.collector resistance
Rb=200000.0 #Ohms,base resistance
Beeta1=50.0 #current gain factor
Beeta2=200.0
#Calculation CASE-1: Minimum Collector Current
#from fig 7.14
Ibmin=Vcc/(Rb+Beeta1*Rc)
Icmin=Beeta1*Ibmin
#result
print "minimum base curent is ",round(Ibmin,6),"A"
print "minimum collector current is ",round(Icmin*1000,3),"mA"
#Calculation CASE-2: Maximum Collector Current
Ibmax=Vcc/(Rb+Beeta2*Rc)
Icmax=Beeta2*Ibmax
#Results
print"The maximum base current = ",round(Ibmax/10**(-3),6),"A"
print"The Maximum Collector Current = ",round(Icmax/10**(-3),2),"mA"
Vcc=10.0 #V collector junction voltage
Rc=2000.0 #Ohms collector resistane
Rb=1000000.0 #Ohms,base resistance
Re=1000.0 #Ohms emittor resstance
Beeta=100.0 #current gain
#Calculation
Ib=Vcc/(Rb+(Beeta+1)*Re)
Ic=Beeta*Ib
Ie=Ic+Ib
#Results
print " The Collector Current Ic = ",round(Ic*1000,3),"mA"
print " The Base Current Ib .",round(Ib*1000000,2),"microA"
print " The Emitter Current Ie = ",round(Ie*1000,3),"mA"
Vcc=6 #V,collector bias junction volage
Vbe=0.3 #V base emittor voltage
Rc=50 #Ohms collector resistance
Rb=10*10**3 #Ohms base resistance
Re=100 #Ohms emittor resistance
Beeta1=50 # gain factor
Beeta2=200
#Calculation CASE-1: Minimum Emitter Current & corresponding Vce
Iemin=(Vcc-Vbe)*(Beeta1+1)/(Rb+(Beeta1+1)*Re)
Vcemin=Vcc-(Rc+Re)*Iemin
#Calculatioen CASE-2: Maximum Emitter Current & corresponding Vce
Iemax=(Vcc-Vbe)*(Beeta2+1)/(Rb+(Beeta2+1)*Re)
Vcemax=Vcc-(Rc+Re)*Iemax
#Results
print"The Minimum Emitter Current Ie(min) is",round(Iemin*1000,2),"mA"
print "The Corresponding Vce = V .",round(Vcemin,1),"v"
print "The Maximum Emitter Current Ie(max) = .",round(Iemax*1000,1),"mA"
print "The Corresponding Vce = V .",round(Vcemax,1),"v"
Vcc=6.0 #V, collector bias junction voltage
Vbe=0.3 #V, base emitter voltage
Rc=1*10**3 #Ohms, collector resistance
Rb=10*10**3 #Ohms, base resistance
Re=100.0 #Ohms, emitter resistance
Beeta1=50 #current gain factor
Beeta2=200
Ie1=19.25*10**(-3) #A,for beeta=50, from example 7.8
Ie2=38.2*10**(-3) #A,for beeta=200, from example 7.8
#Calculation (i)
Ie1=19.25*10**(-3) #A,for beeta=50, from example 7.8
Vce=Vcc-(Rc+Re)*Ie1 #V, collector emitter voltage
Icsat1=Vcc/(Rc+Re) #collector saturated current
Vcesat1=0
print "The collector voltage is Vcc ",Vcc,"V"
print "The collector emitter voltage is Vce",Vce,"V"
print "Because Collector voltage is greater than collector emitter voltage so Transistor is in saturation "
print "collector saturated current is ",round(Icsat1*10**3,2),"mA"
print "collector emitter satirated voltage is",Vcesat1,"V"
# ii
Icsat2=Icsat1
Vcesat2=Vcesat1
print "(ii) collector saturated current is ",round(Icsat2*10**3,3),"mA"
print "collector emitter satirated voltage is",Vcesat2,"V"
Vcc=9 #V,collector bias junction voltge
Vce=3 #V,collector emittor voltage
Re=500 #Ohms,emittor resistance
Ic=8*10**(-3) #A,collector current
Beeta=80
#Calculation
Ib=Ic/Beeta
Rb=(Vcc-(Beeta+1)*Ib*Re)/Ib
#Displaying The Results in Command Window
print"The Base Resistance is :",round(Rb/1000,5),"kohm"
Vcc=12.0 #V collector bias junction voltage
Vbe=0.3 #V base emitter junction voltage
R1=40000.0 #Ohms resistance
R2=5000.0 #Ohms resistance
Re=1000.0 #Ohms emitter reistance
Rc=5000.0 #Ohms collector resistance
Beeta=60
#Calculation
Vb=(R2/(R1+R2))*Vcc
Ve=Vb-Vbe
Ie=Ve/Re
Ic=Ie
Vc=Vcc-Ic*Rc
Vce=Vc-Ve
# Results
print" V2= Vb ",round(Vb,1),"v"
print" Ve = ",round(Ve,1),"v"
print" Ie = ",round(Ie/10**(-3),1),"mA"
print" Ic = ",round(Ic/10**(-3),1),"mA"
print" Vc = ",round(Vc,0),"v"
print" Vce = ",round(Vce,0),"v"
Vcc=15.0 #V collector bias junction voltage
R1=200.0 #Ohms resistor 1
R2=100.0 #Ohms resistor 2
Rc=20.0 #Ohms collector resistace
Ic=.1 #A collector current
#Calculation
Ie=Ic
Vb=(R2/(R1+R2))*Vcc
Ve=Vb # Neglecting Vbe
Re=Ve/Ie
Vce=Vcc-(Rc+Re)*Ic
# Results
print" The Emitter Resistance is Re = .",Re,"ohm"
print" The Collector to Emitter Voltage is Vce = ",Vce,"v"
Vcc=12.0 #V collector bias junction voltage
Vbe=0.3 #V base emitter voltage
R1=40000.0 #Ohms given resistance
R2=5000.0 #Ohms
Re=1000.9 #Ohms emitter resistance
Rc=5000.0 #Ohms collector resistance
Beeta=60
#Calculation
Vth=(R2/(R1+R2))*Vcc
Rth=R1*R2/(R1+R2)
Ib=(Vth-Vbe)/(Rth+Beeta*Re)
Ic=Beeta*Ib
Vce=Vcc-Ic*(Rc+Re)
# Results
print "collector current is ",round(Ic*1000,2),"mA"
print "collector to emitter voltage = ",round(Vce,2),"v"
Vcc=12 #V collector bias junction voltage
Vee=15.0 #V emittor bias junction voltage
Rc=5000.0 #Ohms collector resistance
Re=10000.0 #Ohms emitter resistance
Rb=10000.0 #Ohms base resistance
Beeta=100
#Calculation
Ie=Vee/Re
Ic=Ie
Vce=Vcc-Ic*Rc
#Displaying The Results in Command Window
print" Ic = ",Ic/10**(-3),"mA"
print" Vce = ",Vce,"v"