Professional Documents
Culture Documents
Robot
H. Ferdinando, H. Wicaksono and R. Wibowo
Dept. of Electrical Engineering, Petra Christian University, Indonesia
Abstract – A control system for pick and place robot section, then it comes the design of the system for
is implemented. The control algorithm uses the PID mechanics, hardware and software part. It continues with
(Proportional-Integral-Derivative). The system 3-DOF experiment for the system and conclusion closes this
robot with specific task, i.e. to pick certain a letter paper.
blocks and places it to the desired location. The robot
is controlled with the AT89S51 microcontroller. The
command for the specific letter blocks comes from a III. THE PID CONTROLLER – BRIEF INTRODUCTION
computer. The computer and the AT89S51 are
connected via RS-232. The time sampling of the system The PID controller combines three control algorithms,
is 5ms. After tuning the PID’s constants, the ratio of i.e. Proportional, Integral and Derivative controllers. Each
the constant for P, I and D is 20:0.1:34. The controller has its own constant to adjust the output of the
experiments show that the rise time of the system is controller based on the error signal. Each controller has
1.41s; the settling time is 4.03s and the maximum different contribution to the response of the system.
overshoot is 1.62%. It is recommended that the To get a good PID controller system, one must tune
constant for Proportional controller is between 2 and the constants. Although it seems independent, the
70, the greater the constant the longer the rise time. constants do not. This gives complexity in tuning them.
Big value of the constant also contributes to the The tune process, however, can be done via several
number of oscillation. For the Integral controller, it is algorithms such as Ziegler-Nichols, Cohen-Coen, etc [1].
10 and 50, the greater the constant the more the Each algorithm has its own advantages and disadvantages.
oscillation occurred. This makes the motor run The power of the PID controller lies on its simplicity.
abruptly. One only set three constants in order to get good response.
It is simple for the number of parameter is only three.
Keywords – PID, pick and place robot, AT89S51 Besides, it can be implemented without digital controller.
I. One can make the PID controller with Operational
Amplifier and several passive components. Off course this
II. INTRODUCTION kind of PID controller has limited capabilities, but one can
use it to control simple system.
The PID (Proportional-Integral-Derivative) controller The more complex PID controller uses digital
is the most popular control algorithm in industries. The controller such as microcontroller, PC (personal
power of this controller lies on the simplicity of the computer) or PLC (programmable logic controller). These
control algorithm. Although there are many new control equipments give better PID controller but with higher
algorithms developed nowadays, this controller still exists. cost. The chosen controller is based on the complexity of
There are many applications of the PID controller in the plant.
industries, e.g. robotic arm, conveyor, heating process,
etc. The goal is one, i.e. to reach the setting point fast with
small overshoot. IV. PICK AND PLACE ROBOT
This paper discusses the role of the PID controller in
controlling pick and place robotic arm. The robot will pick A pick and place robot is a material handling robot that
certain block of letter and then place it in the desired can work 24 hours a day without worries or fatigue [2].
place. The control algorithm is applied to the movement This robot is a common robot in industries. The task is to
of the main body. The controller is the AT89S51 pick some object and place it in the desired place.
microcontroller. It receives command from computer via When it is controlled, then the position control is the
RS-232. The final goal is to get system with fast rise time, main issue. It must be controlled such that the robot can
fast settling time and minimum overshoot. pick the object at certain place accurately and place it at
This paper is organized as follow; the first section the desired place accurately as well. It is the role of the
gives introduction to the project. The PID controller is controller to achieve this goal. One can use many
discussed briefly on the next section. For those who do not algorithms to achieve it but the goal is one, i.e. to pick and
familiar with pick and place robot can read the following place object accurately, fast and with small overshoot.
The application of the pick and place robot is in
assembling production process, for example. Here, the
letter
robot must pick certain part and place it to the specific
place. The assembling process of the cassette uses this
robot. arm
Another application is insert machine for the electronic
printed circuit board (pcb). Here, the robot picks the
component, inserts it to the hole, cuts the lead and bends
it. The insert machine can finish the whole component in a
pcb fast, compare to the human.
V. MECHANICS DESIGN
place/slot
Fig. 3. Base place (top view)
The mechanic design is based on figure 1. The primary
and secondary arms can rotate 300o and the gripper can
move up and down (see figure 2). VI. HARDWARE DESIGN
DAC0808
Fig. 1. Mechanic diagram of the robot
Comparator H-bridge
2 Triangle wave
generator
B. PID Controller
A
D
C
v
(c) a
l
u
e
Time (s)
Fig. 8. PWM signal for duty cycle (a) 25% (b) 50% (c) 75% (d) 100% This combination should not be used for the settling
time is at infinity, although the rise time is good. The
The experiments show that the duty cycles do not fit to system becomes unstable for the Derivative constant is too
the design. For 25%, 50%, 75% and 100%, the small.
implementation results 25.34%, 50.23%, 75.57% and
99.53% respectively. C. Sampling Time
The problem of those deviations is that there is small
error in the frequency of the triangle wave. If the triangle These results indicate that the PID constants must be
wave is 1 kHz exactly then the duty cycle of both design tuned in order to get good performance. It is also
and implementation will be the same. This deviation is not interesting to see how the sampling time influences the
major problem since the controller will compensate it. The system. It uses the best combination of the PID controller.
problem is how to find good combination of PID’s
constants which can compensate that deviation. Good Time Sampling 20ms: The PID constants are 9, 8.5 and
compensation is shown when the system can reach the 0.026 for P, I and D respectively. Figure 11 shows the
goal of the design related to rise time, settling time and result. The orise time is 2.98s with settling time and
maximum overshoot. maximum overshoot are 6.28s and 0.9%. The result is
better than that of figure 9. But the rise time, however, is
B. PID Controller still not satisfying. Also the settling time is considered
slow.
The initial constant for PID controller in 20ms time Kp=9 Ki=8.5 Kd=0.026
sampling is 2.3, 3.5 and 0.026 for P, I and D respectively.
Figure 9 shows the result. 120
A100
D
C 80
A 60
v
D a 40
C l 20
u
v e 0
a 0 2 4 6 8 10 12 14 16
l
u Time (s)
e Fig. 11. One of response system with sampling time 20ms