Professional Documents
Culture Documents
Fig. 2. Block Diagram of Ball and Plate Control System without Pre-filter
The research of the control of ball and plate system has been
done by some researcher. The previous research about ball
and plate system can be seen in some papers with the tittle Fig. 3. Block Diagram of Ball and Plate Control System with Pre-filter
such as references number [1], [2], and [5]. In here, the
B. Hardware of System
The system consists of 3 main devices. The first device is PC ( ) = . ( )
1 −
that have multiple task such as to make the set point, compute
position error, process Pre filter and PID controller, and send ( )= (1 − ). ( ) (1)
serial data output PID to Arduino. The second device is Arduino.
The Arduino receives serial data from PC to move or set the
From (1) can be derived the difference equation in (2)
angle of servomotor. The last device is webcam as a ball position
sensor. Fig 4 show the hardware of system.
[ ]= [ ]+ [ ]+ [ ]
[ ]= . [ ]
[ ]= . [ ] + [ − 1]
[ ]= ( [ ] − [ − 1] (2)
( )= ( )+ ( )+ ( )
( )= ( )
From (4), the difference equation can be derived to be (5). Then, we can make the implementation of digital pre filter
from (5) by code in C++. Sampling time that we used in pre-
( ) 1−
( ) = = filter is different from sampling time in PID. We want to make
( ) (1 − ) the transition in pre-filter is moving slowly. The sampling time
[ ]− . [ − 1] = (1 − ). [ ] (5) in pre-filter is set ten times than digital PID sampling time.
Fig. 5, and Fig. 6, is explain about how the camera can detect
and tracking the ball.
From Fig. 5, explain that the ball was detected by its color.
Image are captured from camera is converted into HSV image.
From HSV image, image is converted again into black and
white image by applying the threshold value. So, the color of
the ball became a white color and the plate is a black color.
400 [4] Muhammad Asif Rana, Zubair Usman, Zeeshan Shareef, “Automatic
Control of Ball and Beam System Using Particle Swarm
300 Optimization,” 12th IEEE International Symposium on Computational
Intelligence and Informatics (CINTI), Budapest Hungary,.21-22
200 November 2011.
[5] Manashita Borah, Lalbahadur Majhi, P. Roy and B.K.Roy, “Design of
100 a Fractional Order PD Controller Tuned by Firefly Algorithm for
Stability Control of the Nonlinear Ball and Plate System,” Conference
0 Paper, May 2014.
0 100 200 300 400 500 600 [6] Mohammad Nokhbeh, Daniel Khashabi,” Modelling and Control of
BallPlate System”, Final Project Report, Amirkabir University of
Ball Movement Set Point Technology 2011.
[7] Putri Mahanani R, Fernando Ardilla S, and Setiawardhana,” Tracking
Fig. 12. Trajectory of ball’s movement with Pre – Filter (Switch Set Point) Object Menggunakan Metode Counterpropagation”, Final Project
Report, Institut Teknologi Sepuluh Nopember.
500 [8] Chan Ham and Mohsin Mohammad Taufiq,”Development of a Ball
and Plate System”, 122nd ASEE Annual Conference & Exposition,
400 2015.
[9] Hani Hunud A. Kadouf and Yasir Mohd Mustafah,”Colour – based
300 Object Detection and Tracking for Autonomous Quadrotor UAV”, 5th
International Conference on Mechatronics (ICOM’ 13), 2013.
200
100
0
0 200 400 600 800
Fig. 13. Trajectory of the ball’s movement without Pre – Filter (Switch Set
Point)
REFERENCES