Professional Documents
Culture Documents
Fuzzy PID Temperature Control System Design Based On Single Chip Microcomputer
Fuzzy PID Temperature Control System Design Based On Single Chip Microcomputer
Fuzzy PID Temperature Control System Design Based On Single Chip Microcomputer
FUZZY PID TEMPERATURE CONTROL SYSTEM DESIGN BASED ON SINGLE CHIP MICROCOMPUTER
iJOE ‒ Volume 11, Issue 8, 2015: "Online Engineering Innovations based on Intelligent Information Processing" 29
PAPER
FUZZY PID TEMPERATURE CONTROL SYSTEM DESIGN BASED ON SINGLE CHIP MICROCOMPUTER
tion, the jitter phenomenon of contacts occurs when the The transmitter transmits the infrared decoding through
button is closed or opened, and therefore, the jitter elimi- the software programming to control the air conditioner.
nation program shall be added during programming.
III. SYSTEM SOFTWARE DESIGN
E. Infrared Decoding and Encoding Module
A. SCM Software Design and Simulation
There are an infrared receiver and a transmitter on the
infrared decoding module adopted by this design. The The system software design is programmed mainly by
remote control is aligned with the infrared receiver to C programming language in the Keil software. After no
press the button so that the SCM on the module automati- running errors, the hex file generated by the software will
cally decodes the received infrared ray and displays it in be burned onto the STC-ISP-V480 software to carry out
the form of hexadecimal digit through the serial assistant. the hardware operation in the SCM. The system flowchart
is shown in Fig. 1.
Start
Press the temperature
System module “OK” button The measured value is greater
initialization N Y than the set temperature N Scan the temperature difference
Y value once every 10 minutes
30 http://www.i-joe.org
PAPER
FUZZY PID TEMPERATURE CONTROL SYSTEM DESIGN BASED ON SINGLE CHIP MICROCOMPUTER
TABLE I.
VARIABLE FUZZIFICATION
Controller parameters
Controller type
P(KS) I(TI)/min D(TD)/min
P KS
PI 0.83KS 0.5TS
PID 1.25KS 0.3TS 0.1TS
1) Fuzzy Self-adaptive PID Principle three control parameters through the fuzzy control princi-
The fuzzy PID controller under this design adopts two- ple to meet the different requirements of different e and ec
dimension input (e, ec) and three-dimension input (KP , on the control parameters and makes the controlled object
KI, , KD). It finds the fuzzy relationship between the PID have good dynamic characteristics. The fuzzy PID struc-
controller output parameters and the e and ec, constantly ture chart is shown in Fig. 2.
detects the e and ec during operation, and modifies the
E Fuzzy
Fuzzify reasoning
EC
Defuzzication
!KP !K I !KD
e ec
r (t ) +
y (t )
Controlled
PID!"#$%&'()"
PID
PID
Object
* du
dt
dt
2) Fuzzy Self-adaptive PID Algorithm 1. If (e is NB) and (ec is NB) then (KP is PB) (KI is
a) Fuzzification NB)(KD is PS) (1).
Take the e and ec as the input quantity of the PID con- 2. If (e is NB) and (ec is NM) then (KP is PB)(KI is
troller and take the parameter adjustment variations (KP , NB)(KD is NS) (1).
KI , KD) of the PID controller as the output quantity. Their ……
respective basic discourse domain, fuzzy discourse do- 49. If (e is PB) and (ec is PB) then (KP is NB)(KI is
main, scale factor and fuzzy subset are shown in Table 2, PB)(KD is PB) (1).
and all membership functions are selected as triangles. Input 49 fuzzy rules into the Mamdani fuzzy controller
The fuzzy control table of !KP , !KI , !KD can be estab- in MATLAB and input the basic discourse domain, fuzzy
lished through summarizing the design knowledge and discourse domain and fuzzy subset into each module of
actual operation experience of engineering designer and the FIS editor.
experts. The 49 fuzzy rules obtained are as follows:
TABLE II.
EMPIRICAL FORMULA OF ATTENUATION CURVE METHOD TUNING PARAMETERS
Variable E EC KP KI KD
Basic discourse domain [-1,1] [-7,7] [-0.5,0.5] [-0.5,0.5] [-0.5,0.5]
Fuzzy discourse domain [-3,3] [-3,3] [-3,3] [-3,3] [-3,3]
Quantification factor 3 0.143 6 6 6
Fuzzy subset NB, NM, NS, ZO, PS, PM, PB
b) Clearness
After the fuzzy logic reasoning, the fuzzy set is output, K P = K P! + "K P (4)
which is the integration of the conclusions obtained from
multiple fuzzy control rules. The purpose of clearness is to K I = K I! + "K I (5)
make them equivalent to a clearness value to transform it
into the representative value. Common methods include K D = K D! + "K D (6)
the area period method, maximum membership degree
method, area center method, etc. This design adopted the
In the formula, !KP, !KI , !KD are the output parame-
area center method.
ters of the fuzzy self-tuning controller; K'P , K'I , K'D are
Define the parameters KP , KI , KD and adjust the formu- the initial values of the PID controller, which are obtained
la as follows: through the tuning of a 4:1 attenuation ratio method. !KP ,
!KI , !KD are the output quantity of the fuzzy controller,
iJOE ‒ Volume 11, Issue 8, 2015: "Online Engineering Innovations based on Intelligent Information Processing" 31
PAPER
FUZZY PID TEMPERATURE CONTROL SYSTEM DESIGN BASED ON SINGLE CHIP MICROCOMPUTER
and the parameter values are automatically adjusted ac- to the above ideas. The simulation structure diagram of
cording to the state of the controlled object. the system is shown in Fig. 3.
After the debugging under the effect of the step signal,
V. SYSTEM SIMULATION let K'P=30, K'I=1.655, K'D=1 and set all fuzzy factors
Under the Simulink environment of MATLAB, the according to Table 1; the system output waveform is
fuzzy self-adaptive PID controller was designed according shown in Fig. 4.
32 http://www.i-joe.org
PAPER
FUZZY PID TEMPERATURE CONTROL SYSTEM DESIGN BASED ON SINGLE CHIP MICROCOMPUTER
iJOE ‒ Volume 11, Issue 8, 2015: "Online Engineering Innovations based on Intelligent Information Processing" 33