PDA

View Full Version : Using webcam to navigate



A.C. fishing
05-04-2006, 03:33 AM
Hi. I was wondering how I could build a bot that navigates with a web-cam. It would be simple if it just read pixels to follow a line. I was wondering if a BS2 could read information from a webcam, or maybe an SX. How does the average webcam work?
Thanks,
ACfishing

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔



Somebody said...
-Never Underestimate the power of human stupidity.


·

A.C. fishing
05-04-2006, 06:51 AM
Does anyone know about this?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔



Somebody said...
-Never Underestimate the power of human stupidity.


·

KB3JJG
05-04-2006, 09:40 PM
You cannot do this with just a bs2 and a conventional webcam. The bsII is unable to act as a USB master. The ideal·component this project is the cmu cam http://www.parallax.com/detail.asp?product_id=30051
You might be able to find an old serial webcam, but I don't think the stamp can do the image processing in any reasonable amount of time, if at all.

A.C. fishing
05-05-2006, 05:12 AM
What about a SX chip? What about a Propellor? I actually have a serial webcam. What about a BS2px?? Will that work on a BOE?? The rules I was given state that I have to use the type of webcam I have, so I can't use a CMU cam.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔



Somebody said...
-Never Underestimate the power of human stupidity.


·

Gadgetman
05-05-2006, 06:01 AM
The Propeller will not fit in a BOE board, but the BS2px will.
Unfortunately, I doubt the BS2px has the capacity to process the data from a webcam, even a serial one.

Maybe the Propeller can do the job, but you'll have to build your own tools for the task.

Where did you get hold of a serial webcam?
And do you have the datasheet on it?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...

A.C. fishing
05-05-2006, 08:11 AM
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=8709638099&category=3759
You can buy one here. It might not work, because it is a 25 port, but I plan on using an adapter.
I don't have a datasheet. Would if work if I used a serial to USB adapter? Because I will to eventually move to a USB webcam, because this one isn't that great.
Does anyone working for Parallax know if the propellor will work?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔



Somebody said...
-Never Underestimate the power of human stupidity.


·

A.C. fishing
05-05-2006, 06:35 PM
Gadget Man-
I will probably wait for the Propellor developement board to come out.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔



Somebody said...
-Never Underestimate the power of human stupidity.


·

Gadgetman
05-05-2006, 07:02 PM
THAT THING AIN'T SERIAL!

Read the Features section:
25-pin standard parallel port connections (no parallel port pass-through)
AT and PS/2 Keyboard power tap pass-through cable
IEEE1284 level 2 compliant with Nibble and ECP support

It's parallell-port, so there's no way you can use it with a serial port.
It may be possible to 'bit bang' the camera if you dedicate a lot of pins to it, and learn how the Nibble or ECP port functions on a parallel-port works, and also get ahold of the communication protocol.
(If the camera had been serial it might have been possible to 'sniff' it, but this is a bit more difficult)

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...