Design of Discrete Time PID Controller
Design of Discrete Time PID Controller
Abstract: The discrete-time closed-loop PID controller is the controlled do not “speak the same language” and some
most popular controller. It is more faster time response and rise form of translation is required. The translation from
time than the continuous-time PID controller. Although, we controller language (digital) to physical process language
have to check the stability in a continuous-time of any digital (analog) is performed by a digital-to-analog converter, or
controller, but after using z-transform to convert the system to DAC. The translation from process language to digital
a digital control system we use the digital signals as an input to controller language is performed by an analog-to-digital
the computer. And treat those signals inside the microprocessor converter, or ADC. A sensor is needed to monitor the
by the A.T.U. after that convert them to analog to the final controlled variable for feedback control. The combination
element. of the elements discussed here in a control loop is shown
in 1-1 Variations on this control configuration are
Keywords: PID, ATU, RHS, LHS, ADC, DAC. possible. For example, the system could have several
reference inputs and controlled variables, each with a loop
1. Introduction: similar to that of Figure 1-1. The system could also
include an inner loop with digital or analog control. [ 1 ]
In the past few decades, analog controllers have often been
replaced by digital controllers whose inputs and outputs
are defined at discrete time instances. The digital
controllers are in the form of digital circuits, digital
computers, or microprocessors. The discrete-time PID
controller that means discussing the continuous signal
which it has been converted from continuous-time to
discrete-time , therefore always used analog to digital
converter [1] . Figure 2-1 The main structure of digital control system.
Digital signal which has been converted it must be
sampled therefore, Z-transformation and its inverse used to Z-transform used as a key for discrete-time systems to
solve the difference equations and convert the signal at solve the difference equations to show the output response of
continuous-time to a signal at discrete-time . analog to the control systems.
digital converter must be used after the signal treated by
the discrete-time PID controller to operate the plant for Suppose �(�) is a continuous function and we sample this
example : a level control plant , the analog subsystem function at time intervals of � , thus obtaining the data
includes the plant as well as the amplifiers and actuators
necessary to drive it. The output of the plant is periodically �(0), �(�), �(2�), … , �(��), …
measured and converted to a number that can be fed back 1
to the computer using an ADC. let � = � �� �� ������������ � = (�)
�
1 J Z=0
���� (�) = (1 − � −1 ) � � � (2 − 3)
�
Z1=1
Z2=0.3678
��
Conclusion
Due to both figures (4-5 and 4-6) we can clearly see the
difference between the continuous closed-loop PID controller
and digital closed-loop PID controller in the output responses
even if they are have the same parameters like = 0.7 .
There all a lot of benefits when we use digital PID controllers
instead of using continuous PID controller they could
summarized in following points :
1. Accuracy. Digital signals are represented in terms of
zeros and ones to represent a single number. This
involves a very small error as compared to analog signals
where noise and power supply drift are always present.
2. Implementation errors. The errors that result from
digital representation and arithmetic are negligible. By
contrast, the processing of analog signals is performed
using components such as resistors and capacitors with
actual values that vary significantly from the nominal
design values.
3. Flexibility. An analog controller is difficult to modify
or redesign once implemented in hardware. A digital
controller is implemented in firmware or software, and
its modification is possible without a complete
replacement of the original controller.
4. Speed. The speed of computer hardware has increased
exponentially. This increase in processing speed has
made it possible to sample and process control signals
at very high speeds.
5. Cost. Although the prices of most goods and services
have steadily increased, the cost of digital circuitry
continues to decrease.