summaryrefslogtreecommitdiff
path: root/3836/CH6/EX6.1/Ex6_1.sce
blob: 15706b9485c744b3356360883880010c050c5ee4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clear
//Initialisation
Ri=1000                    //Input Resistance of amplifier in Ohm
Rs=100                    //Output Resistance of sensor in Ohm
Rl=50                     //Load Resistance
Ro=10                    //Output Resistance of amplifier in Ohm
Av=10                     //Voltage gain
Vs=2                       //Sensor voltage

//Calculation
Vi=Ri*Vs*(Rs+Ri)**-1               //Input Voltage of Amplifier
Vo=Av*Vi*Rl*(Ro+Rl)**-1               //Output Voltage of Amplifier

//Result
printf("\n Ouput voltage of and amplifier = %.1f V",Vo)