I am just a starter with processing and the Arduino and I wonder if anyone can help me with my challenge.

For a design project at the University of Technology I, a third year student Industrial Design, am trying to control a servo motor with a web-cam.

To be more specific; I want use the web-cam to get the position of the person moving in front of it (in a value from 0-total left till 255-total right?). I want to use this value to rotate the servo motor which will control the direction of a lamp.

Start off by connecting your web cam to processing, there are libraries that will do this. Then work out how to detect movement from the web cam. You might want to look at frame subtraction, that is subtracting successive frames, no movement shows up as zero (or close to it). Then calculate the position. Only then do you need to send that position down the serial port to the arduino which just takes numbers from the serial port and drives the servo to that position.

well you came to the correct place this shows you how to interface a servo to arduino http://www.arduino.cc/en/Reference/Servocoming to the software part i think you need to post herehttp://forum.processing.org/#home

I am not sure of how to give a mark. But i thank you all for these first pointers. I just found out my web-cam broke down, so after buying a new one I'll try again. And i will surely post again with new question. Thnx a lot!!