
Here’s how to build a webcam that can be viewed and controlled from the web: user clicks on one of three links: left, center, right, a script written in PHP makes a socket connection to a listener program (written in C++) running on my home PC, indicating the direction of movement requested, the listener program executes one of three scripts (written in Visual Basic), one for each direction of movement, the Visual Basic script opens the COM2 serial port and sends one of three signals (L, C, or R)... read more.
Nice link, however I would suggest not hooking up your Basic stamp pins directly to the serial port.
Check out this pdf from Parallax.
how i bulit my own web camera