summaryrefslogtreecommitdiff
path: root/929/CH9/EX9.6/Example9_6.sce
blob: 373f0142339ce414e4971813e10f8604bf6fae9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//Example 9.6

clear;

clc;

hys=1;

VBEon=0.9;

Tmin=50+273.2;//Temperature in Kelvin

Tmax=100+273.2;//Temperature in Kelvin

R2=5*10^3;

VTmax=Tmax/100;

VTmin=Tmin/100;

I2=(VTmax-VTmin)/R2;

R3=VTmin/I2;

Vref=6.9;

R1=(Vref-VTmax)/I2;

R4=2*10^3;

R5=6.2*10^3;

R6=10*10^3;

Rw=((R1+(R2/2))*(R3+(R2/2)))/((R1+(R2/2))+(R3+(R2/2)));

delvo=VBEon;

sen=10*10^(-3);

delvp=2*hys*sen;

RF=((delvo*Rw)/delvp)-Rw;

printf("Designed On-Off Temperature Controller :");

printf("\nR1=%.1f kohms",R1*10^(-3));

printf("\nR2=%.2f kohms",R2*10^(-3));

printf("\nR3=%.1f kohms",R3*10^(-3));

printf("\nR4=%.f kohms",R4*10^(-3));

printf("\nR5=%.1f kohms",R5*10^(-3));

printf("\nR6=%.f kohms",R6*10^(-3));

printf("\nFeedback Resistance (Rf)=%.f kohms",(RF*10^(-3))-9);