SLAA235A February 2005 – August 2018 MSP430F147 , MSP430F147 , MSP430F148 , MSP430F148 , MSP430F149 , MSP430F149
The result of the defuzzification must be a numeric value that determines the duty factor of the PWM signal that drives the motor. This value is obtained by finding the centroid point of the function that is the result of the multiplication of the output membership function and the output vector Y[ ]. The general mathematical formula to obtain the centroid point is:
Y[i] are the i-th members of the output vector,
multifact[i] are the multiplying coefficients of the output membership function.
Figure 4 shows a graphical representation of the output membership function as used in this application with the coefficients [-10h, -8h, 0h, 8h, 10h].
Using the example output vector Y[ ] = [0h, 30h, 3D0h, 0h, 0h], the following defuzzification output value can be calculated: