Académique Documents
Professionnel Documents
Culture Documents
display, 8255 PA0-PA3 LED is for chip select. PB port is E. serial communication circuit
to connect the digital control of a ~ h segment. The This control system needs to communicate with the PC
Keyboard and display circuit is shown in Figure 2. so as to use the PC graphics capability to print or shows the
temperature curve. As AT89C51 TXD / RXD serial port is
TTL level, PC serial port for the RS232 level, so that using a
MAX232 level converter to drive. The Communication rate
is 9600 baud and the data transmission time is every 5
seconds.
V12-569
2010 International Conference on Computer Application and System Modeling (ICCASM 2010)
LED display
negative, positive number that has not yet reached, a
KEY scan
PID calculation
negative number indicates more than a set value. This is used
for the proportional change in the data.
The cumulative deviationis Σe (t) = e (t) + e (t-1) + e (t-2)
+ ... + E (1), which is the deviation of each measured value Relay control
of the sum, which is the algebra and, taking into account the
positive and negative sign operation, which is used for the Fig.5 Program structure configuration diagram
integral term changes in the data.
The relative deviation of the fundamental error: e(t)-e Start
(t-1), with the basic error of this fundamental deviation
minus the last time, to investigate the trend of the current System initialization
control object, as an important basis for rapid response,
which is a change item for differential data.
Ratio regulation is a proportional response system error,
once the system appears the deviation, the proportion will be Get key value
immediately adjusted.
Regulation is to reduce the deviation. Ratio effects more,
and can speed up the adjustment to reduce the error, but if Key value process
the ratio is too large, the stability of the system down, or
even cause system instability.
Integral regulatory is for the system to eliminate steady
state error, no gradient to increase. Because of the error,
Processing sampling
integral adjustment to be carried out until no difference so
that the integral adjustment stops and the integral adjustable data?
output a constant. Integral role in the strength depends on the
integration time constant Ti, Ti smaller, integral action will
be larger. On the contrary if the Ti is bigger the role of which
becomes weak, the adding of integral regulatory may cause PID calculation
system stability down and the dynamic response becomes
slow. The integral role often combined with the other two Relay control
regulating rule to form a PI controller or PID regulator.
Differential regulation reflects the system differential Fig.6 The main program flow chart
change rate of error signal, with foresight, to anticipate
change in error trend, so the control can produce lead role in IV. SYSTEM TEST AND THE RESULTS
the deviation is not yet before the differential regulatory role In order to verify the usability of the system, it’s need to give
has been to eliminate. Thus, it can improve the system the system a test. The ambient temperature is 28 degrees
dynamic performance. Differential timing in the right Celsius, digital millimeter test equipment, 0~100 ° C
circumstances can reduce the overshoot and reduce the thermometer, a printer, a stopwatch.
adjustment time. Differential role of noise disturbance Test method: make the system operation, simultaneous
amplification, so excessive increase in differential regulation measure the temperature changing using the thermometer,
of the system interference adversely. In addition, the come to the system temperature indicator.
differential response is that the rate of change, and when the Test results: the set temperature is from 40 to 60 degrees
input does not change, the output differential is zero, so the Celsius; calibration temperature <= 0.4 degrees C; settling
differential regulation can not be used alone; the law needs time of 450 seconds; static error <= 0.2 degrees C; maximum
to be combined with the other two methods to form the PD overshoot of 0.5 degrees Celsius.
or PID controller.
V. CONCLUSION
B. Programming design
High-performance 8-bit microcontroller AT89C51 as control
Program structure configuration diagram is shown in
core, used Pt1000 as a temperature sensor, the PID algorithm
V12-570
2010 International Conference on Computer Application and System Modeling (ICCASM 2010)
was used to build a high-precision temperature control [3] 8- channel, 8-bit, 200 Kbps data acquisition system ADC0809
(PDF).Analog Devices, 1998
system, the result tested showed that its accuracy is 0.2 ° C,
[4] De-biao Wang. MCS-51 Microcontroller Theory and Interface
can meet most application of the industrial and agricultural Technology Development, Beijing Electronic Industry Press, 2007
production and family. If a fuzzy control would be added to [5] YU Nan-hua, LIANG Xiao-bing. Research on PID Controller Based
the system, the time of adjustment will be short and the on Grey Algorithm [J]. Microcomputer Information, NO.31, 2008,
effect of PID control would be enhanced. pp :47-51
[6] KJAstrom and T. Hagglund, editors, PID control: Theory, Design and
REFERENCES Tuning, Instrument
Society of America Press, Research Triangle Park, NC second edition,
[1] Guo-feng Zhang, Principles and Applications, Mechanical Industry
1995.
Press, 2009
[2] Xu Ming, Chen Jian, 89C51 constant-current discharge in the battery
application. Electronics. No. 8, 2003 pp: 12-15
V12-571