Multicolor Line Follower

Overview:
Overview: Multicolour line follower robot is an autonomous robot capable of following a line composed of different colours. The area of interest is a coloured line on white surface. By analysing the components of red, green and blue colour the coloured area can be distinguished from the white background (portions where RGB values near to (255,255,255) are white portion whereas other portion is the coloured). The algorithm includes finding out the centre of mass of the area of interest. Now analyzing the change in position (left, right or center) of centroid in consecutive.Images we can program to move bot so that the centroid remains in the center. The image input is from the camera which is mounted on the top of the bot horizontally to view the colour band. This image input is processed using a C++ code in MATLAB. Atmega16 board is mounted on bot which receives the serial values from computer and sends values to motors correspondingly. This has been demonstrated in the video below:-
This has been demonstrated in the video on the right:-