Example: Smart Fan Speed Control System
Goal: Automatically adjust fan speed based on room temperature
Step 1: Define Inputs and Outputs
Input: Temperature (°C)
Output: Fan Speed (%)
Step 2: Define Fuzzy Sets
Temperature (Input)
Cold (0–20°C)
Warm (15–30°C)
Hot (25–40°C)
These ranges overlap (this is important in fuzzy logic)
Fan Speed (Output)
Low (0–40%)
Medium (30–70%)
High (60–100%)
Step 3: Fuzzification
Suppose current temperature = 28°C
Now convert 28°C into fuzzy values:
Cold → 0
Warm → 0.4
Hot → 0.6
Meaning:
28°C is partly warm and mostly hot
Step 4: Apply Rule Base
We define rules like:
1. IF temperature is Cold → fan speed is Low
2. IF temperature is Warm → fan speed is Medium
3. IF temperature is Hot → fan speed is High
Now apply them:
Warm (0.4) → Medium speed (0.4)
Hot (0.6) → High speed (0.6)
Step 5: Inference (Combine Results)
We combine outputs:
Medium speed activated at 0.4
High speed activated at 0.6
Step 6: Defuzzification
Convert fuzzy output into a single crisp value
Approximate calculation:
Medium ≈ 50% × 0.4 = 20
High ≈ 90% × 0.6 = 54
Final fan speed:
(20+54)/(0.4+0.6)=74
Final Result:
At 28°C, the fan runs at approximately 74% speed
Why This Is Powerful
Not just ON/OFF → smooth control
Adapts gradually to changes
Feels more “natural” like human decisions
Real-Life Systems Using This
Air conditioners
Washing machines
Camera autofocus
Car climate control
Applications
Fuzzy systems are widely used in:
Washing machines (auto settings)
Air conditioners
Car control systems (ABS, cruise control)
Decision-making systems
AI and robotics