Build your own Robotic WebCam
|
By Jawed |

Overview
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).
- The pins of the COM2 port are connected to a Parallax BASIC microcontroller. It is running a small progam (written in Parallax Basic) which listens for signals.
- Upon receiving the turn signal on the COM2 port the microcontroller sends a pulse signal to the servo motor. Depending on the duration of the positive-going pulse, the servo rotates accordingly.
Required Hardware

Notice the 9-Volt battery hook-up in the upper left corner of the board above.
You’ll need a power supply like this one, but one that has the 9-Volt battery style connector.
|
April 26th, 2007 at 9:58
hi,
i want to know how i can make the c++ program and the vb program executable
April 15th, 2008 at 13:47
hi all , plz i want the c++ code for the webcam becouse i want to use it in a robotic project , so if you can help me with this , plz send the code to my E-mail: ( the_bad_killer@hotmail.com )
hope to c your rely
thx
zaid ghanem