In this week, I continue to develop the fuzzy logic code in rules evaluation, rules aggregation and defuzzification. Here are the coding of the three processes.
As the result, I have successfully made the fuzzy logic
system. But there is some error in the shell monitor. If the LDR reading is at
dark state, the shell monitor runs perfectly. When LDR reading started to
detect light intensity, the error will appear. Based on the coding, intended
to show all the fuzzification output crisp of each LDR which labelled “Low”,
Middle” and “High”. When there is light intensity, sometimes certain
fuzzification on certain LDR is missing. Next, I used print() code to skip line
in shell monitor as we run the program. But sometimes the output in the shell
monitor does not skip line.
No comments:
Post a Comment