Go to Post Life? What's a life? I mean, outside of [I]FIRST[/I], that is. - Blue_Mist [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-02-2003, 12:07
JasonStern JasonStern is offline
Mentor
FRC #1123 (AIM Robotics)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Arlington, VA
Posts: 65
JasonStern is on a distinguished road
Connecting USB webcam to pbasic stamp?

I was just wondering if anyone has considered connecting a usb webcam to the stamp, or acomplished this? I know the stamp is a digital device, so there should be some way to have the RC wirelessly send the data stream to the OI and from there to a laptop for viewing. If it is possible, how would you go about programing it? I think it would be sweet to have a (cheap!) internal cam on out bot that most certainly wouldn't interfer with any other radio signals in the area. However, as a complete newb to FIRST, pbasic, and digital signals, I have no clue how to even begin, let alone make it work. Thanks for any info you might have on this idea, including if I'm completely bonkers

Jason Stern
  #2   Spotlight this post!  
Unread 08-02-2003, 12:19
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
http://www.chiefdelphi.com/forums/sh...era+ mount%2A
http://www.chiefdelphi.com/forums/sh...era+m ount%2A
__________________
Brandon Martus
e-mail
  #3   Spotlight this post!  
Unread 08-02-2003, 15:11
JasonStern JasonStern is offline
Mentor
FRC #1123 (AIM Robotics)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Arlington, VA
Posts: 65
JasonStern is on a distinguished road
Thanks for the links (and yes, I did search before posting), but they don't answer my question: Is it possible to wire a usb device straight to the pbasic stamp and have it transmit the information as part of its normal code loop?? Since I already know this should be techniquely possible, how would you go a about programing it? All the stamp has to do is record the usb input and transmit it verbose to the OI which can then send it, also verbose, to a laptop. however, what commands would you use for this? is there any pbasic commands that checks inputs, no matter where in the program, and respond to them (like a watcher, for those familar with other programing languages)? Thanks again!

Jason Stern
  #4   Spotlight this post!  
Unread 08-02-2003, 16:12
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
No, you cannot use USB. It is not electrically compatible with the Stamp's internal circuitry and would have a good probabililty of frying it. Furthermore, the 2sx (which is what we use) does not support interrupts. Finally, the Stamp has no data buffers, so it would be nearly impossible to deal with the speeds of USB.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #5   Spotlight this post!  
Unread 09-02-2003, 00:35
guzugi's Avatar
guzugi guzugi is offline
Registered User
#0580
 
Join Date: Feb 2003
Location: North Hollywood
Posts: 16
guzugi is an unknown quantity at this point
Send a message via AIM to guzugi
ditto to the last guy..

also, i don't think you're allowed to have imaging devices on your bot for competition.

and even if it was allowed...you're still trying to breed dogs and camels with that hardware matchup
  #6   Spotlight this post!  
Unread 09-02-2003, 00:55
Gadget470's Avatar
Gadget470 Gadget470 is offline
A Fire Outside
AKA: Brandon Joerges
no team (Alpha Omega)
Team Role: Alumni
 
Join Date: Jan 2002
Rookie Year: 2000
Location: Madison Heights, MI
Posts: 1,000
Gadget470 is a jewel in the roughGadget470 is a jewel in the roughGadget470 is a jewel in the roughGadget470 is a jewel in the rough
Send a message via ICQ to Gadget470 Send a message via AIM to Gadget470
that's a disturbing way to put it bluntly.
  #7   Spotlight this post!  
Unread 09-02-2003, 10:12
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,590
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
assuming that he could figure out how to do it, electrically, I think it would be allowed as part of a dashboard system, as long as he is using the FIRST control system to send the data. The reason that other wireless camera systems are not allowed is that they are not using the FIRST control system to send data.

The USB obstical is easy, you just have a USB to serial chip (with buffer) on your custom circuit board, and interface with the programming port.

The hard part is how slow the stamp is, and how little data you can actually send back using FIRST's control system. I don't think it would be possible, because of those restrictions.
  #8   Spotlight this post!  
Unread 09-02-2003, 12:24
guzugi's Avatar
guzugi guzugi is offline
Registered User
#0580
 
Join Date: Feb 2003
Location: North Hollywood
Posts: 16
guzugi is an unknown quantity at this point
Send a message via AIM to guzugi
yes. I agree that if you had time and money, you might be able to get this thing to work, but even if you could, like the last guy said, you'd be smoldering your precious wireless bandwidth and minimal processing power which could cause your robot's other controls to go sluggish or worse.
  #9   Spotlight this post!  
Unread 10-02-2003, 21:53
n[ate]vw's Avatar
n[ate]vw n[ate]vw is offline
Registered User
#0933 (Adler Attack)
 
Join Date: Jan 2003
Location: Rockford, IL
Posts: 48
n[ate]vw is an unknown quantity at this point
Send a message via AIM to n[ate]vw
You are pretty much limited to 39 bytes/sec using OUTH every loop. 39 bytes/sec is not um...quite....fast enough to transmit video. You could send a 256 color image 6*6 pixels once a second. Or a 16 shades of gray 6*6 image 16 times a second. A 6*6 image is about the size of the green in your Windows logo on the Start button.
__________________
Adler Attack #933 -- Trigos
  #10   Spotlight this post!  
Unread 10-02-2003, 23:20
guzugi's Avatar
guzugi guzugi is offline
Registered User
#0580
 
Join Date: Feb 2003
Location: North Hollywood
Posts: 16
guzugi is an unknown quantity at this point
Send a message via AIM to guzugi
what he said...

and thanks for putting it into perspective!
  #11   Spotlight this post!  
Unread 11-02-2003, 07:51
Lloyd Burns Lloyd Burns is offline
Registered User
FRC #1246 (Agincourt Robotics)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Toronto
Posts: 292
Lloyd Burns is an unknown quantity at this point
n[ate]vw wrote:
"You are pretty much limited to 39 bytes/sec using OUTH every loop. "

If you used all the analog inputs for video you could get 7 8-bit bytes / 26ms, or about 40 * 7 * 8 = 2240 bits/sec, or 268 800 bits / 2-min match. You'd need some circuitry to buffer the signal, and present it 7 bytes at a time, though.

You might get a whole video frame per season through, if you get enough practice time in enough regionals.

It might be hard to read you gyro, though.
  #12   Spotlight this post!  
Unread 11-02-2003, 09:07
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,590
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Don't forget the 16 bits of digital inputs
  #13   Spotlight this post!  
Unread 11-02-2003, 10:12
guzugi's Avatar
guzugi guzugi is offline
Registered User
#0580
 
Join Date: Feb 2003
Location: North Hollywood
Posts: 16
guzugi is an unknown quantity at this point
Send a message via AIM to guzugi
sure, but are we trying to make a wireless camera or a ROBOT?!?!?
  #14   Spotlight this post!  
Unread 14-02-2003, 21:59
jacob_dilles's Avatar
jacob_dilles jacob_dilles is offline
Registered User
AKA: theshadow
FRC #0620 (WarBots)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Vienna, VA
Posts: 245
jacob_dilles will become famous soon enough
Send a message via AIM to jacob_dilles
well as you may have gatherd from the other replys, there realy is no way to have a USB webcam on your robot... and besides its not allowd.

HOWEVER, if you wanted to use an imaging device to, say, find stacks, Parallax offers a product called the "CMUcam" which:

communicates using a TTL level serial port and has the following functionality:
>Track user defined color blobs at 17 frames per second, find the centroid of the blob
>Gather mean color and variance data
>Arbitrary image windowing
>80x143 resolution
>9600 baud serial communication
>Automatically detect a color and drive a servo to track an object
>Slave parallel image processing mode off a single camera bus - advance function
>Ability to control 1 servo or have 1 digital I/O pin - advanced function
>Adjust the camera's image properties - advanced function.

(http://www.parallax.com/detail.asp?product_id=30051)

Well anyway, its not what your looking for but it is prety cool anyway, -Jacob
  #15   Spotlight this post!  
Unread 14-02-2003, 23:39
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Quote:
Originally posted by jacob_dilles
well as you may have gatherd from the other replys, there realy is no way to have a USB webcam on your robot... and besides its not allowd.

HOWEVER, if you wanted to use an imaging device to, say, find stacks, Parallax offers a product called the "CMUcam" which:

communicates using a TTL level serial port and has the following functionality:
>Track user defined color blobs at 17 frames per second, find the centroid of the blob
>Gather mean color and variance data
>Arbitrary image windowing
>80x143 resolution
>9600 baud serial communication
>Automatically detect a color and drive a servo to track an object
>Slave parallel image processing mode off a single camera bus - advance function
>Ability to control 1 servo or have 1 digital I/O pin - advanced function
>Adjust the camera's image properties - advanced function.

(http://www.parallax.com/detail.asp?product_id=30051)

Well anyway, its not what your looking for but it is prety cool anyway, -Jacob
Unless DigiKey or Future carry it, it would be illegal to use this device on your robot. It would be very cool though!
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which PBASIC Stamp Editor are you using? Carl Owenby Programming 8 16-03-2003 00:44
OS9 PBasic Stamp Editor? Joe Matt Programming 6 16-02-2003 13:43
New Stamp Editor & PBASIC 2.5 Jnadke Programming 8 24-01-2003 07:57
How differnt is basic stamp pbasic from... Adam Y. Programming 7 08-09-2002 17:07


All times are GMT -5. The time now is 01:25.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi