how can i make a cam look for a colour? just filter out the colour i want?
there are many ways to do it. the method id use is middle mass. just find the average X and Y
location of all pixels of that color in the matrix.
http://www.societyofrobots.com/programming_computer_vision_tutorial_pt3.shtml#middle_massthe location can then be used for your robot to decide what to do.
how do i get the signal it gives me to a µc?
the camera sends the data over serial, and your µc can save the stream into a matrix
the actually data sent greatly depends on the camera.
you will see some start bit info
a stream of numbers (depends on camera resolution, amount of color, compression, etc.)
end bit info
the stream is the part that you record into the matrix.
find the camera you want to use, and read the datasheet. it should tell you what info it sends. you can probably also found source code to read in the datastream from the camera you want by searching for it.
here is some source code you might be interested in:
http://www.cs.cmu.edu/~cil/v-source.htmlthe cmucam manual here, on page 56:
http://www.cs.cmu.edu/~cmucam2/CMUcam2_manual.pdfhas an example of the datastream. in this case, it is already processed data, so you dont (although you can set it up for this) see the image data itself.
lastly, search this forum for 'camera' as other people are doing cam vision too.
ps - ive only used the CMUcam with a microcontroller, and webcams that interface with a PC, for robots. ive never used a regular camera directly with a microcontroller . . . anyone else have thoughts?