segunda-feira, 8 de novembro de 2010

Color Tracker




Download Zip File: http://letsmakerobots.com/files/ColorTrackerV3.zip


Libraries Used:

Description:
This application finds a color specified on the sliders and tracks it.


It has three vertical lines, the yellow one represents the center of the blob and the other two, x min and x max, which are red, divide the image in three parts. If the yellow line is on the left part the application gives the robot an order to turn left and if it is on the right part it should turn right. 
There are other two horizontal lines, y max which is red and the y center of the blob which is yellow.  So, if the blob is between the x min and x max lines and it's above the y max the robot goes backward, if it's below the line it goes foward. 


All those red lines can also be adjusted using the correspondent sliders. 


The serial commands (w,s,a,d and g) can be sent at a 4800 baud to the COM port specified on the text field, you just to write it there and press ENTER (example: "COM5"). 




Movie from a previous version with the robot TheBox: