Go to Post ...the great teams in FRC will probably continue to be great teams. That is because they have great people who embrace the challenge rather than whine about it. - dtengineering [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 19-01-2006, 02:07
Calvin Calvin is offline
Registered User
no team
 
Join Date: Feb 2005
Location: Portland OR
Posts: 105
Calvin has a spectacular aura aboutCalvin has a spectacular aura about
CMUcam2 code for EDU-RC?

Will the CMUcam2 work on the EDU-RC controller?

If so, is it the same code?
and Do I use the TTL port (I just want to make sure its the same and I don't burn anything out) on the EDU controller?

Last edited by Calvin : 19-01-2006 at 02:12.
  #2   Spotlight this post!  
Unread 19-01-2006, 14:10
Uberbots's Avatar
Uberbots Uberbots is offline
Mad Programmer
AKA: Billy Sisson
FRC #1124 (ÜberBots)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Avon
Posts: 739
Uberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond repute
Re: CMUcam2 code for EDU-RC?

yes, yes, and (checks own edu controller) yes.

as kevin said, the cam code was designed witht the edu controller in mind.
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY
  #3   Spotlight this post!  
Unread 19-01-2006, 14:47
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: CMUcam2 code for EDU-RC?

I haven't seen our EDU controller in a while, does the TTL port have 3 pins or 4 pins? I wanna say 3 and if so do we need all 4? I assume not since only 3 go to the camera, but the TTL adapter still has four pins, so which 3 do we have to align?
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #4   Spotlight this post!  
Unread 19-01-2006, 14:53
Eldarion's Avatar
Eldarion Eldarion is offline
Electrical Engineer / Computer Geek
AKA: Eldarion Telcontar
no team (Teamless Orphan)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Númenor
Posts: 558
Eldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond repute
Send a message via AIM to Eldarion Send a message via Yahoo to Eldarion
Re: CMUcam2 code for EDU-RC?

Quote:
Originally Posted by Matt Krass
I haven't seen our EDU controller in a while, does the TTL port have 3 pins or 4 pins? I wanna say 3 and if so do we need all 4? I assume not since only 3 go to the camera, but the TTL adapter still has four pins, so which 3 do we have to align?
This should answer your question. The picture is take from page 11 of the 2005 RC reference guide (http://robotics.dyndns.org/DATASHEET..._RC_GUIDE.pdf), and the EDU diagram is taken from page 11 of the 2004 EDU reference guide (http://robotics.dyndns.org/DATASHEET...EDU_GUIDE.pdf).

Obviously, the +5V pin on the full-size RC is not needed.
Attached Thumbnails
Click image for larger version

Name:	Serial_Port_Pinout.JPG
Views:	34
Size:	7.5 KB
ID:	3856  Click image for larger version

Name:	Edu_Serial_Port_Pinout.JPG
Views:	36
Size:	3.7 KB
ID:	3857  
__________________
CMUCam not working? Tracks sporadically? Try this instead: http://www.falconir.com!
PM me for more information if you are interested (it's open source!).

Want the FIRST Email blasts? See here: http://www.chiefdelphi.com/forums/sh...ad.php?t=50809

"The harder the conflict, the more glorious the triumph. What we obtain too cheaply, we esteem too lightly; it is dearness only that gives everything its value."
-- Thomas Paine

If it's falling apart it's a mechanical problem. If it's spewing smoke it's a electrical problem.
If it's rampaging around destroying things it's a programming problem.

"All technology is run on 'Magic Smoke' contained within the device. As everyone knows, whenever the magic smoke is released, the device ceases to function."
-- Anonymous

I currently speak: English, some German, Verilog, x86 and 8051 Assembler, C, C++, VB, VB.NET, ASP, PHP, HTML, UNIX and SQL

Last edited by Eldarion : 19-01-2006 at 14:57.
  #5   Spotlight this post!  
Unread 19-01-2006, 15:23
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: CMUcam2 code for EDU-RC?

Quote:
Originally Posted by Eldarion
This should answer your question. The picture is take from page 11 of the 2005 RC reference guide (http://robotics.dyndns.org/DATASHEET..._RC_GUIDE.pdf), and the EDU diagram is taken from page 11 of the 2004 EDU reference guide (http://robotics.dyndns.org/DATASHEET...EDU_GUIDE.pdf).

Obviously, the +5V pin on the full-size RC is not needed.
Thanks.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #6   Spotlight this post!  
Unread 19-01-2006, 16:16
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
Re: CMUcam2 code for EDU-RC?

Quote:
Originally Posted by Matt Krass
Thanks.
You'll need to hack a cable and pull 5V from one of the PWM or digital input pin sets to power the TTL converter.
  #7   Spotlight this post!  
Unread 19-01-2006, 17:09
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: CMUcam2 code for EDU-RC?

Quote:
Originally Posted by seanwitte
You'll need to hack a cable and pull 5V from one of the PWM or digital input pin sets to power the TTL converter.
Or just use the programming port.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #8   Spotlight this post!  
Unread 19-01-2006, 18:59
esquared's Avatar
esquared esquared is offline
Keeps saying 3-2-1-Rush...
AKA: Angry Eric
no team (Volunteer!)
Team Role: Mascot
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Boston, MA
Posts: 192
esquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond repute
Re: CMUcam2 code for EDU-RC?

Quote:
Originally Posted by Calvin
Will the CMUcam2 work on the EDU-RC controller?

If so, is it the same code?
and Do I use the TTL port (I just want to make sure its the same and I don't burn anything out) on the EDU controller?
We had to make some minor changes to the default 'bells and whistles' code to make it work with the EDU-RC controller, but it seems to work. If you want a copy of this let me know, and I can supply them. Another one of our programming team made the mods, or I'd post exactly what we had to change in this thread.

One issue I didn't see in this forum involves using the Labview application with the CMUCam2. Bear with me while I describe the problem before replying, because in general it DOES work.

After a few (more than 2, less than 10) frame grabs, the application shows the progress bar going from 0 to 100%, pausing momentarily at 100%, not displaying the frame that was grabbed in the window, then after some amount of time (more than 30 seconds, less than 5 minutes) it re-tries getting the image and the progress bar goes from 0 to 100% as before. Once the application is in this state, the only solution is to close LabView, open the project and run it again. This typically fixes it, and we can grab a few more frames before it crops up again. As one could guess, this makes camera calibration/focusing a very trying task.

Relevant information:
EduRC from 2005
Freshly charged backup battery providing prime power for EduRC and cam
Laptop with REAL serial port (none of that USB nonsense)
Original CMUCam2 code (not the EduRC version, we started this before seeing it was available) with minor mods to build cleanly for EduRC2005 instead of FRC2006.

At this point, we only need to do some minor tweaking of camera values to consider it fully 'calibrated' so it's quickly becoming a moot point, but I'm hoping this info might help to make the Labview app more stable. It's certainly a grand improvement over the original Java version from last year.

Cheers,
-Eric
  #9   Spotlight this post!  
Unread 19-01-2006, 19:04
Calvin Calvin is offline
Registered User
no team
 
Join Date: Feb 2005
Location: Portland OR
Posts: 105
Calvin has a spectacular aura aboutCalvin has a spectacular aura about
Re: CMUcam2 code for EDU-RC?

Quote:
We had to make some minor changes to the default 'bells and whistles' code to make it work with the EDU-RC controller, but it seems to work. If you want a copy of this let me know, and I can supply them. Another one of our programming team made the mods, or I'd post exactly what we had to change in this thread.
It would be great if you can post it!

And thank you everyone for the quick response!
  #10   Spotlight this post!  
Unread 19-01-2006, 19:08
esquared's Avatar
esquared esquared is offline
Keeps saying 3-2-1-Rush...
AKA: Angry Eric
no team (Volunteer!)
Team Role: Mascot
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Boston, MA
Posts: 192
esquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond reputeesquared has a reputation beyond repute
Re: CMUcam2 code for EDU-RC?

Quote:
Originally Posted by Calvin
It would be great if you can post it!

And thank you everyone for the quick response!
Probably the best bet is for you to PM me your email address, I can just zip the whole directory vs. trying to DIFF the original & our code.

The programmer who made the actual changes isn't at our meeting tonight, so the soonest I could get you a reply would be late tonight/early tomorrow morning.

It's also possible the code changes we made have contributed to our Labview woes so caveat emptor...
  #11   Spotlight this post!  
Unread 20-01-2006, 03:33
Joe Hershberger Joe Hershberger is offline
National Instruments
AKA: jhersh
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 1997
Location: Austin, TX
Posts: 148
Joe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to all
Re: CMUcam2 code for EDU-RC?

Quote:
Originally Posted by esquared
One issue I didn't see in this forum involves using the Labview application with the CMUCam2. Bear with me while I describe the problem before replying, because in general it DOES work.

After a few (more than 2, less than 10) frame grabs, the application shows the progress bar going from 0 to 100%, pausing momentarily at 100%, not displaying the frame that was grabbed in the window, then after some amount of time (more than 30 seconds, less than 5 minutes) it re-tries getting the image and the progress bar goes from 0 to 100% as before. Once the application is in this state, the only solution is to close LabView, open the project and run it again. This typically fixes it, and we can grab a few more frames before it crops up again. As one could guess, this makes camera calibration/focusing a very trying task.

Relevant information:
EduRC from 2005
Freshly charged backup battery providing prime power for EduRC and cam
Laptop with REAL serial port (none of that USB nonsense)
Original CMUCam2 code (not the EduRC version, we started this before seeing it was available) with minor mods to build cleanly for EduRC2005 instead of FRC2006.
Eric,

There was a bug in the first version of the application that would cause this problem. There have been several updates since then... it was fixed in the first update. You can find the updates here.

Also remember that you can't have more than one device plugged into the CMUcam at a time (Laptop or RC).

If you continue to have problems, please post in the LabVIEW forum and I'll continue to help you there.

Good luck!
-Joe

Last edited by Joe Hershberger : 20-01-2006 at 03:35.
  #12   Spotlight this post!  
Unread 24-01-2006, 01:58
lkdjm's Avatar
lkdjm lkdjm is offline
Registered User
AKA: David Mazza
FRC #0564 (Digital Impact)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Middle Island, NY
Posts: 31
lkdjm will become famous soon enough
Send a message via AIM to lkdjm Send a message via Yahoo to lkdjm
AHH! I'm getting lost, someone has to fill me in!

Quote:
Originally Posted by seanwitte
You'll need to hack a cable and pull 5V from one of the PWM or digital input pin sets to power the TTL converter.
I am a newbie . What do you mean by "hack a cable" and how would this cable look/work? do you need to "hack a cable" for the edu bot and the frc bot? or just one. do you use a pwm cable to go from ttl to ttl port? I could not find anywhere what cables you use where? When do you use the ttl chip that came with it? Is that only for testing? One person said "obviously you don't need the +5v" and the other said to "hack a cable" so I am very confused. I have been tring to get the camera to work for a few days. The only led that comes on is green, and I think it is the power one. I have gotten the camera to center itself, that's it. grrr, I feel like everyone has figured this out but me.

I know this might be a lot to ask but could someone make a quick schematic on paint of all the conections you need to get the camera to work? I have not found any good solid and simple info or diagrams in any documentation, so I think that would be REALLY HELPFUL to alot of people!

I know that is alot of questions so thanks for all your help in advance!
I should probably create a new thread for this but I know people don't like that.

-David Mazza
-Team 564
-564.first@gmail.com
__________________
Longwood's Digital Impact

  #13   Spotlight this post!  
Unread 24-01-2006, 02:32
Eldarion's Avatar
Eldarion Eldarion is offline
Electrical Engineer / Computer Geek
AKA: Eldarion Telcontar
no team (Teamless Orphan)
Team Role: Alumni
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Númenor
Posts: 558
Eldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond reputeEldarion has a reputation beyond repute
Send a message via AIM to Eldarion Send a message via Yahoo to Eldarion
Re: AHH! I'm getting lost, someone has to fill me in!

Quote:
Originally Posted by lkdjm
I am a newbie . What do you mean by "hack a cable" and how would this cable look/work? do you need to "hack a cable" for the edu bot and the frc bot? or just one. do you use a pwm cable to go from ttl to ttl port? I could not find anywhere what cables you use where? When do you use the ttl chip that came with it? Is that only for testing? One person said "obviously you don't need the +5v" and the other said to "hack a cable" so I am very confused. I have been tring to get the camera to work for a few days. The only led that comes on is green, and I think it is the power one. I have gotten the camera to center itself, that's it. grrr, I feel like everyone has figured this out but me.

I know this might be a lot to ask but could someone make a quick schematic on paint of all the conections you need to get the camera to work? I have not found any good solid and simple info or diagrams in any documentation, so I think that would be REALLY HELPFUL to alot of people!

I know that is alot of questions so thanks for all your help in advance!
I should probably create a new thread for this but I know people don't like that.

-David Mazza
-Team 564
-564.first@gmail.com
Just verifying something, are you trying to run the camera on the full-size RC (the one used in competition this year) or on the EDU controller from 2004?

This thread is for "hacking" the CMUCam to run on the EDU controller.
__________________
CMUCam not working? Tracks sporadically? Try this instead: http://www.falconir.com!
PM me for more information if you are interested (it's open source!).

Want the FIRST Email blasts? See here: http://www.chiefdelphi.com/forums/sh...ad.php?t=50809

"The harder the conflict, the more glorious the triumph. What we obtain too cheaply, we esteem too lightly; it is dearness only that gives everything its value."
-- Thomas Paine

If it's falling apart it's a mechanical problem. If it's spewing smoke it's a electrical problem.
If it's rampaging around destroying things it's a programming problem.

"All technology is run on 'Magic Smoke' contained within the device. As everyone knows, whenever the magic smoke is released, the device ceases to function."
-- Anonymous

I currently speak: English, some German, Verilog, x86 and 8051 Assembler, C, C++, VB, VB.NET, ASP, PHP, HTML, UNIX and SQL
  #14   Spotlight this post!  
Unread 24-01-2006, 03:57
lkdjm's Avatar
lkdjm lkdjm is offline
Registered User
AKA: David Mazza
FRC #0564 (Digital Impact)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Middle Island, NY
Posts: 31
lkdjm will become famous soon enough
Send a message via AIM to lkdjm Send a message via Yahoo to lkdjm
Re: AHH! I'm getting lost, someone has to fill me in!

Quote:
Originally Posted by Eldarion
Just verifying something, are you trying to run the camera on the full-size RC (the one used in competition this year) or on the EDU controller from 2004?

This thread is for "hacking" the CMUCam to run on the EDU controller.
Both! The EDU to test, and FRC to use. I would like to know how to hook it up to the EDU. I am mainly wondering how the TTL thing gets setup. After I know how to run it on the edu I will go from there, but some of my questions pertain to the FRC as well. The schematic I want would be of the FRC. You might be right, I think I will be better off posting that in a new thread. Moderators: please don't kill me for posting kind-of the same thing in two threads.
__________________
Longwood's Digital Impact

  #15   Spotlight this post!  
Unread 24-01-2006, 08:49
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: CMUcam2 code for EDU-RC?

Quote:
Originally Posted by Kevin Watson
Or just use the programming port.

-Kevin
The DB9 port? And do we then need to change the serial port used in the code?

Jon Mittelman
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
2006 CMUcam2 Code Kevin Watson Programming 81 10-02-2007 20:17
CMUCam2 code (FRC and EDU?) Amber Programming 0 15-02-2005 22:23
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28
CMUCam2 Camera Code - Are important parts commented out? Mr. Lim Programming 4 14-01-2005 12:11
heres the code. y this not working omega Programming 16 31-03-2004 15:18


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

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