"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''Shunt regulator'''",
"",
"V_IN=12.5; #maximum input voltage in volts",
"R1=22; #In Ohms",
"#Worst case of power dissipation is when V_OUT=0V",
"V_OUT=0;",
"V_R1=V_IN-V_OUT; #Voltage across R1",
"P_R1=(V_R1*V_R1)/R1; #maximum power dissipated by R1",
"print('maximum power dissipated by R1 in WATTS = %f'%P_R1)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"maximum power dissipated by R1 in WATTS = 7.102273"
]
}
],
"prompt_number": 6
},
{
"cell_type": "markdown",
"source": [
"
Example 17.6, Page Number: 569
"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''Positive linear voltage regulator'''",
"",
"print('SAME AS EX-2.8 in CHAPTER-2')"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"SAME AS EX-2.8 in CHAPTER-2"
]
}
],
"prompt_number": 7
},
{
"cell_type": "markdown",
"source": [
"
Example 17.7, Page Number: 572
"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''External pass Filter'''",
"",
"I_max=700*10**-3; #in Amperes",
"R_ext=0.7/I_max;",
"print('value of resistor in Ohms for which max current is 700mA = %f'%R_ext)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"value of resistor in Ohms for which max current is 700mA = 1.000000"
]
}
],
"prompt_number": 8
},
{
"cell_type": "markdown",
"source": [
"
Example 17.8, Page Number: 572
"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''Power rating 7824'''",
"",
"V_OUT=24.0; #Output voltage in Volts",
"R_L=10.0; #Load resistance in Ohms",
"V_IN=30.0; #Input voltage in Volts",
"I_max=700.0*10**-3; #maximum interal current in Amperes",
"I_L=V_OUT/R_L; #load current in amperes",
"I_ext=I_L-I_max; #current through the external pass transistor in Amperes",
"P_ext_Qext=I_ext*(V_IN-V_OUT); #power dissipated",
"print('power dissiated(in WATTS) by the external pass transistor = %.1f'%P_ext_Qext)",
"print('\\nFor safety purpose, we choose a power transistor with rating more than this, say 15W')"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"power dissiated(in WATTS) by the external pass transistor = 10.2",
"",
"For safety purpose, we choose a power transistor with rating more than this, say 15W"
]
}
],
"prompt_number": 9
},
{
"cell_type": "markdown",
"source": [
"
Example 17.9, Page Number: 574
"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"'''Current regulator'''",
"",
"V_out=5.0; #7805 gives output voltage of 5V",
"I_L=1.0; #constant current of 1A",
"R1=V_out/I_L;",
"print('The value of current-setting resistor in ohms = %d'%R1)"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The value of current-setting resistor in ohms = 5"
]
}
],
"prompt_number": 10
}
]
}
]
}