Go to Post There's nothing like getting your butt kicked by the best! :D - Jared Russell [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-01-2007, 04:13
114Klutz 114Klutz is offline
Registered User
AKA: Li Pi
FRC #2984 (Viking Robotics)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Los Altos
Posts: 152
114Klutz is a jewel in the rough114Klutz is a jewel in the rough114Klutz is a jewel in the rough
Send a message via AIM to 114Klutz
2 Cmucams?

I figured a bit of stereovision would be neat this year, and plan to use two CMUCams. My question is this - how would I hook them up? One would obviously be hooked up via the TTL-RS232 converter, and the other one? Into the programming port, possibly?

I looked at Kevin Watsons serial drivers, and this might be a possibility.

Anyone else have any ideas?
  #2   Spotlight this post!  
Unread 08-01-2007, 09:39
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: 2 Cmucams?

yeah you can hook up the second camera to the programming port. in kevin watsons code there is an option for enabling this serial port. It is used in the same exact way as the ttl port
  #3   Spotlight this post!  
Unread 08-01-2007, 15:21
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: 2 Cmucams?

You would actually have to duplicate Kevin's code, IIRC. Otherwise, I think the states will trample on each other.
  #4   Spotlight this post!  
Unread 08-01-2007, 15:27
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: 2 Cmucams?

I think that many interrupts per second would kill the controller anyways. 11520 interrupts a second x 2.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
  #5   Spotlight this post!  
Unread 08-01-2007, 17:05
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: 2 Cmucams?

Quote:
Originally Posted by Kingofl337 View Post
I think that many interrupts per second would kill the controller anyways. 11520 interrupts a second x 2.
Again, you don't have a clue what you're talking about. Please stop spreading disinformation around the forums.

The camera only generates a few hundred interrupts per second, one per byte received. The serial driver is very efficient and can easilly handle this load.

Furthermore, there is no reason that you couldn't have two instances of the camera code running, you just need to make sure each instance isn't using the other's global variables.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org

Last edited by Kevin Watson : 08-01-2007 at 21:19. Reason: Icky grammer.
  #6   Spotlight this post!  
Unread 12-01-2007, 22:42
Alex G Alex G is offline
Registered User
FRC #0201 (FEDS)
Team Role: Programmer
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Rochester
Posts: 8
Alex G is an unknown quantity at this point
Re: 2 Cmucams?

Technically, he is right. in an UART, each byte is 10 bits (1 start, 8 data, 1 stop). running at 115200 continuously gives 115200/ 10 * 2 interrupts / second for the recievers alone.
Of course, the PIC can handle that, considering that the cameras will not continuously send data, however, a few thousand interrupts per second will be generated.
  #7   Spotlight this post!  
Unread 12-01-2007, 22:49
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,188
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: 2 Cmucams?

Quote:
Originally Posted by Alex G View Post
Technically, he is right. in an UART, each byte is 10 bits (1 start, 8 data, 1 stop). running at 115200 continuously gives 115200/ 10 * 2 interrupts / second for the recievers alone.
Of course, the PIC can handle that, considering that the cameras will not continuously send data, however, a few thousand interrupts per second will be generated.
The UART only triggers interrupts when it a packet hits on the Rx side. The CMU cam only puts out a few hundred interrupts per second.
  #8   Spotlight this post!  
Unread 12-01-2007, 23:39
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: 2 Cmucams?

Quote:
Originally Posted by Alex G View Post
Technically, he is right. in an UART, each byte is 10 bits (1 start, 8 data, 1 stop). running at 115200 continuously gives 115200/ 10 * 2 interrupts / second for the recievers alone.
Of course, the PIC can handle that, considering that the cameras will not continuously send data, however, a few thousand interrupts per second will be generated.
Okay, whatever

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #9   Spotlight this post!  
Unread 13-01-2007, 01:05
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: 2 Cmucams?

All,

While we did not run 2 cameras, in 2005 we moved the camera to port 1 (programming port) and installed a SMiRF on port 2 to enhance code development.

We had no problems with interrupt overhead.

Regards,

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #10   Spotlight this post!  
Unread 14-01-2007, 14:52
Alex G Alex G is offline
Registered User
FRC #0201 (FEDS)
Team Role: Programmer
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Rochester
Posts: 8
Alex G is an unknown quantity at this point
Re: 2 Cmucams?

Quote:
Originally Posted by Kevin Watson View Post
Okay, whatever

-Kevin
We can choose to argue about the details, but the point that we agree on is that the Robot Controller can easily handle 2 CMU Cam's with your code.
  #11   Spotlight this post!  
Unread 14-01-2007, 15:23
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: 2 Cmucams?

Quote:
Originally Posted by Alex G View Post
We can choose to argue about the details...
I don't choose to argue about anything. I'm right and you're wrong. The serial data from the camera generates just over one hundred interrupts per second, not "a few thousand" and certainly not "11520".

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #12   Spotlight this post!  
Unread 16-01-2007, 16:03
Alex G Alex G is offline
Registered User
FRC #0201 (FEDS)
Team Role: Programmer
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Rochester
Posts: 8
Alex G is an unknown quantity at this point
Re: 2 Cmucams?

Quote:
Originally Posted by Kevin Watson View Post
I don't choose to argue about anything. I'm right and you're wrong. The serial data from the camera generates just over one hundred interrupts per second, not "a few thousand" and certainly not "11520".

-Kevin
You're right. I believed that the data packets were larger, but after checking the code carefully I found that I was wrong. Sorry if I seemed too jumpy.
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


All times are GMT -5. The time now is 02:08.

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