Society of Robots - Robot Forum

Software => Software => Topic started by: airman00 on September 12, 2007, 06:58:26 AM

Title: Control a pan/tilt webcam
Post by: airman00 on September 12, 2007, 06:58:26 AM
How can I control a pan/tilt webcam from a visual basic program?

I found this, but its in php . Any idea how to make it into visual basic?
http://www.lavrsen.dk/twiki/bin/view...e3a1c85007ebd3

Many thanks,
Eric
Title: Re: Control a pan/tilt webcam
Post by: Admin on September 15, 2007, 01:00:24 PM
Im assuming your pan/tilt uses servos, right?

Look around for something called a servo controller.
(such as here http://www.pololu.com/products/elec.html#servcon)

Then you would need your visual basic program to send the proper commands to the servo controller out your serial port:
http://www.google.com/search?sourceid=navclient&aq=t&ie=UTF-8&rls=DGUS,DGUS:2006-11,DGUS:en&q=visual+basic+serial+port+example

There are USB methods too, but will probably be harder:
http://www.societyofrobots.com/member_tutorials/node/25
Title: Re: Control a pan/tilt webcam
Post by: Steve Joblin on September 15, 2007, 02:01:30 PM
check out this thread at Parallax... he controls a pan/tilt webcam using VB via Roborealm... http://forums.parallax.com/forums/default.aspx?f=10&m=186647
Title: Re: Control a pan/tilt webcam
Post by: airman00 on September 15, 2007, 06:35:08 PM
Yea, i ended up using Roborealm to do image processing. I took an example for the logitech orbit online and played around with it. Its really cool now. The camera follows a certain color object around and then the robot begins to follow the object around.

Thanks steve