Fuzzy Logic Script
The application here is "Speed control of DC motor".
Define DC motor.
State formula for speed of DC motor. (see document)
Speed is proportional to emf and inversely proportional to flux.
Start demo by running cells.
Talk about antecedents (emf, flux) and consequents (speed).
Show tables for all three. (in document)
If ma'am asks about values, tell her we chose them approximately
(similar to real world emf, flux and speed values)
As you go, define the 3 membership functions used:
◦ Trapezoidal (emf)
◦ Gaussian (flux)
◦ Triangular (speed)
Talk about the rules defined for low speed, normal speed and high
speed.
The rules are based on speed being proportional to emf and inversely
proportional to flux.
For eg. 'highest' emf and 'less' flux result in 'high' speed.
Give test inputs for three cases:
◦ emf = 10, flux = 8, results in low speed
◦ emf = 47, flux = 5, results in medium speed
◦ emf = 87, flux = 2, results in high speed
End of demo.