CHAPTER 16: LABORATORY POWER SUPPLIES

Example 16-1, Page Number: 423

In [7]:
import math

#Variable Declaration

#Output voltages at various instances in V
Eo1=12
Eo2=11.95
Eo3=12
Eo4=11.9

#Calculation
source_effect=Eo1-Eo2                    #Change in output voltage due to 10% change in input
line_regulation=source_effect*100/Eo1    #percentage

load_effect=Eo3-Eo4                     #Change in output voltage due to change in load from no load to minimum load 
load_regulation=load_effect*100/Eo3

#Results
print "Source Effect=",source_effect*10**3,"mV"
print "Line Regulation=",round(line_regulation,2),"%"
print "Load Effect=",load_effect*10**3,"mV"
print "Load Regulation=",round(load_regulation,2),"%"
Source Effect= 50.0 mV
Line Regulation= 0.42 %
Load Effect= 100.0 mV
Load Regulation= 0.83 %

Example 16-2, Page Number: 428

In [10]:
import math

#Variable Declaration

Vz=6                   #Zener voltage in V
R2=5.6*10**3           #in ohm
R3=5.6*10**3           #in ohm
R4=3*10**3             #in ohm

#Calculation

#When the moving contact is at the botton of R4, 
Vr3=Vz                 #in V
I3=Vz/R3               #in A
Eo=I3*(R2+R3+R4)       #in V

print "Maximum output voltage=",round(Eo,1),"V"

#When the moving contact is at the top of R4

I3=Vz/(R3+R4)         #in A
Eo=I3*(R2+R3+R4)      #in V     

print "Minimum output voltgae=",round(Eo,1),"V"
Maximum output voltage= 15.2 V
Minimum output voltgae= 9.9 V