项目作者: raymelon

项目描述 :
Demo of a Fuzzy Logic-based CPU Fan Speed Controller
高级语言: Matlab
项目地址: git://github.com/raymelon/FanSpeed-Fuzzy-demo.git
创建时间: 2017-03-28T04:11:04Z
项目社区:https://github.com/raymelon/FanSpeed-Fuzzy-demo

开源协议:MIT License

下载


FanSpeed-Fuzzy-demo

Demo of a Fuzzy Logic-based CPU Fan Speed Controller

MATLAB

The aim is to control the CPU Fan Speed based on the system’s current core temperature (in degrees Celsius) and current clock speed (in GHz).

The ranges used are calibrated based on the current computer models, thus these ranges are subject to change as time pass by. The ranges are as follows:

Fuzzy Variables Units Ranges (based on 2016 computer models)
Core temperature degrees Celsius (°C) 0 to 100
Clock speed frequency Gigahertz (GHz) 0 to 4
Fan speed Revolutions per minute (RPM) 0 to 6000

Fuzzy Membership Functions

Core Temperature

Clock Speed

Fan Speed

Fuzzy Rules

Core Temperature Clock Speed Fan Speed
cold AND low THEN slow
cold AND normal THEN slow
cold AND turbo THEN fast
warm AND low THEN slow
warm AND normal THEN slow
warm AND turbo THEN fast
hot AND low THEN fast
hot AND normal THEN fast
hot AND turbo THEN fast

Simulation

  1. >> fan_speed_demo
  2. table_ =
  3. core_temps clocks fan_speeds
  4. __________ ______ __________
  5. 80 3.5 4715.8
  6. 75 1.5 4654.3
  7. 25 1.2 1367.8
  8. 90 3.8 4811.5
  9. >>