Background differencing algorithm is used on a computer with MATLAB to get the object coordinates. A web camera mounted on a Motor controlled by an Arduino microcontroller using data from Matlab will track the object by rotating the camera.