Академический Документы
Профессиональный Документы
Культура Документы
116-121 (2009)
Parallel 5V
Port P2
34
D0 PA0
4
33 3
D1 PA1
P1 P1
P14 P14
7404 P3
P4
32
31
D2 PA2 2
1
P5 D3 PA3
P2 P2 P6
30
D4 PA4 40
P3 P3 P15 P14
P7
29
D5 PA5 39
Bulb
P4
P4 P16 P8
P9
28
27 D6
D7
PA6
PA7
38
37 I/O LSB 7406
P17 P17
1K
P5 P5 P18
P1
RD PB0 18 Reed
P6 P6
P19 WR
A0
8255A PB1
PB2
19
20 Relay
P7 P7 P20
P17 ALE
A1 PB3 21
PB4 22
P8 P8 Reset
P9 P9 P21 74373 CS PB5
PB6
23
24 TRIAC
P10 P22 P2 D0 Q0 PB7 25
P23 P3 D1 Q1 AC 1M
P11 P4 D2 Q2 PC0 14
56K DIAC
P12 P24 P5
P6
D3
D4
Q3
Q4
PC1 15
16
P25 D5
PC2
P7 Q5
P13 PC3 17
P8
P9
D6
D7
Q6
Q7
PC4
PC5
13
12 0.022µf 0.022µf
11
PC6 10
OE PC7
ALE LE
Fig. 3. The 8255 expanding I/O circuit connected with a PC printer port.
PA
D8255A
Bulb
Where x1, x2 ∈ U, and y ∈ R are the input and output of the
110V
fuzzy logic system, respectively, F1k , F2k and Gk are labels of
fuzzy sets in U1, U2 and R representing the kth antecedent pairs
Fig. 8. The hardware layout of the lighting control system.
and consequent pair respectively and n is the number of rules.
The SISO system and the DISO system will be discussed
and analyzed by using MATLAB Fuzzy Logic Toolbox in the
rate of the environmental light) is considered for the DISO followings.
system. The output variable is the numerical value DN to the
output circuit. The input variables are fuzzified by assigning 1. SISO
them a singleton fuzzy set, i.e. a set with membership function We assume that the input to the system is the environmental
µ and zero elsewhere. The fuzzy set of the output variable is light x1. We further assume that the environmental light can be
inferred by the max-min composition and the fuzzy relation Big, Medium, and Small. The output DN can range between 0
describes the desired control action. The fuzzy set of the and 63 and is divided into Small, Medium, and Big. Figure 9
output variable is defuzzified to deliver a crisp numerical shows the fuzzy sets describing the above. Labels for the
value by the center-of-gravity method. The fuzzy rule base membership functions are given in Table 1. The rules base,
consists of a collection of fuzzy IF-THEN rules of the form. with its 3 rules, is shown in Table 2.
M.-L. Jin and M.-C. Ho: Labview-Based Fuzzy Controller Design of a Lighting Control System 119
input1 = 164
output1 = 24
Table 3. Labels for the membership functions in the DISO
system.
1 0.3778 0.3778
VS Very Small NS Negative Small
S Small ZE Zero
2 SB Small Big PS Positive Small
MB Medium Big
0.5143 B Big
3 0.5143
VB Very Big
40 220
2. DISO
We assume that the inputs to the system are the environ-
mental light x1 and the changing rate of the environmental
light x2. Where the changing rate of the environmental light
ranges between -10 and +10 and is divided into Nega-
tive-Small, Zero, and Positive-Small. We further assume that
the environmental light can be Small, Medium, and Big. To
Fig. 11. Fuzzy sets showing the inputs and the output of the DISO system. make the inferred output value homogeneously distribute on
all regions (especially, for dark region), the output DN ranges
between -20 and 80 and is divided into VS, S, SB, MB, B,
Figure 10 shows the results of the simulation of the rule and VB. Figure 11 shows the fuzzy sets describing the above.
base by fuzzy inference development environment (MATLAB Labels for the membership functions are given in Table 3. The
Fuzzy Logic Toolbox) software for the input value of the rules base, with its 9 rules, is shown in Table 4. Figure 12 shows
environmental light x1 = 164. The output is 24.22. Here only the results of the simulation of the rule base by fuzzy inference
two rules are needed to calculate the output. The inferred development environment (MATLAB Fuzzy Logic Toolbox)
120 Journal of Marine Science and Technology, Vol. 17, No. 2 (2009)
Bright
Fig. 13. The result of the simulation of the DISO system using surface
viewer of MATLAB fuzzy logic toolbox.
Fig. 14. Bulb responses for control value DN = 5, 15, 25. Moderate
SISO and FLC DISO to do the corresponding job of the FLC, to adjust the light level of the bulb, making relays engaged or
shown in the lower part of Fig. 16. After that, we can easily disengaged and saving the power. The device is reliable and
run the LabVIEW program and choose the item in the combo convenient for maintenance.
box and even switch the item to another one during the ex- The control of the bulb light system using a fuzzy logic
ecution of the LabVIEW program. controller is presented. Both the SISO system and the DISO
The main features in the design of the light control system system are discussed in the fuzzy logic controller and the
using the LabVIEW are: LabVIEW program incorporated with MATLAB Fuzzy Logic
Toolbox for the FLC is carried out. The experimental results
(1) Low cost. have shown the satisfactory response of the bulb system
(2) Easy implemented in a PC without any DAQ card. against sudden change of the environmental light. This intel-
(3) Incorporate MATLAB Fuzzy Logic Toolbox with Lab- ligent dimming device can also be applied to dim the bulb of
VIEW program. the streetlights or car’s headlights automatically according to
environmental light, which worked reliably and had obtained
Javidbakht [1] used fuzzy controller with the SISO sytem to good effect of energy saving.
dim the fluorescent lamp based on the availability of the
outside light. And Zhang [7] adopted fuzzy controller with the REFERENCES
DISO system to distinguish environmental interferences,
avoiding the fault action and jittery and improving the 1. Javidbakht, Saeid, Design of a Controller to Control Light Level in a
Commercial Office, M.S.Egr. Thesis, Department of Electrical Engi-
reliability. In this paper, both the SISO system and the DISO neering, Wright State University, pp. 1-106 (2007).
system are discussed respectively in the fuzzy controller. The 2. Mamdani, E. M., “Application of fuzzy algorithms for control of simple
experimental results show, due to the light signal and the dynamic plant,” IEE Proceedings, Vol. 121, No. 12, pp. 1585-1588 (1974).
changing rate are considered, the DISO system responses 3. Mamlook, R., Tao, C. W., and Thompson, W. E., “An advanced fuzzy
faster than the SISO system when environmental light changes controller,” Fuzzy Sets and Systems, Vol. 103, pp. 541-545 (1999).
4. Takagi, T. and Sugeno, M., “Fuzzy identification of systems and its
suddenly. It has also verified the effectiveness and robustness applications to modeling and control,” IEEE Transactions on Systems, Man
of the proposed fuzzy controller. and Sybernetics, Vol. 15, No. 1, pp. 116-132 (1985).
5. Van der Wal, A. J., “Application of fuzzy logic control in industry,” Fuzzy
Sets and Systems, Vol. 74, pp. 33-41 (1995).
V. CONCLUSIONS 6. Wu, Z. Q., Wang, P. Z., and Wang, H. H., “A rule self-regulating fuzzy
controller,” Fuzzy Sets and Systems, Vol. 47, pp. 13-21 (1992).
Important hardware such as the light sensing circuit and the 7. Zhang, C., Cui, N., Zhong, M., and Cheng, Z., “Application of Fuzzy
dimmer with relays (like parallel-resistor circuit) were de- Decision in Lighting Control of Cities,” 44th IEEE Decision and Control
signed and proved work well. The control device can be used Conference, Seville, Spain, pp. 4100-4104 (2005).