Go to Post So, FIRST is turning into the For the Inspiration of Science and Trains? That makes sense... Not a whole lot of re-branding will be needed.... - dqmot17 [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 10-01-2005, 13:14
cbolin's Avatar
cbolin cbolin is offline
Programming & Electrical
FRC #0342 (Burning Magnetos)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Charleston, SC
Posts: 72
cbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to behold
CMUCam2 Vision Sensor Testing/Problems

Hi,
Got camera connected to RC correctly. Performed quick check referring to CMUcam2_fe manual.pdf using HyperTerminal. Instead of getting the correct response on the terminal "CMUcam2 v1.0 c6" I got just a "C:" response.

I then loaded "FRC_CMUCam2.hex" into RC. Repeated above and got correct response (c7 instead of c6).

I have noted that my RC Mode is blinking red (disabled) and that the program state is solid yellow/red (looks orange to me).

Tried running the stand_alone JAVE app to test vision system but I have version 1.3. So, I have just downloaded Java Virtual Machine 1.4 and hope to get it installed soon so I can actually see something on my computer. That'll be cool.

Any idea on the RC fault lights after loading the above HEX file? The default code this year loads okay. Noticed Kevin's Navigation program gave me similar faults.

Regards,
Chuck
__________________
Team 342 Programming & Control Systems
Good luck and have fun!
  #2   Spotlight this post!  
Unread 10-01-2005, 13:50
cbolin's Avatar
cbolin cbolin is offline
Programming & Electrical
FRC #0342 (Burning Magnetos)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Charleston, SC
Posts: 72
cbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to behold
Re: CMUCam2 Vision Sensor Testing/Problems

Just a small update. Installed Java VM 1.4.2_06. I still have the solid orange light for "Program State". The CMUcam2 GUI displays the message "Looking for Camera...".

I just need to sort out the RC program state and I am sure this will work.

Regards,
ChuckB
__________________
Team 342 Programming & Control Systems
Good luck and have fun!
  #3   Spotlight this post!  
Unread 11-01-2005, 15:10
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: CMUCam2 Vision Sensor Testing/Problems

Im having troubles as well.

Does the camera need to be hooked up to the RC in order to work?

Right now I have the power of the camera connected to the EDUbot and the serial post is connected to my computer. The CMUCam2 software cannot find the camera, and I tried opening the port using the default settings in the manual. I am able to send commands to the board, but i get no response. I know my serial port is functioning correctly because I am able to send and recieve commands from the edubot controller?

Any ideas?!
  #4   Spotlight this post!  
Unread 11-01-2005, 15:12
LivingDeadMan's Avatar
LivingDeadMan LivingDeadMan is offline
Registered User
AKA: Bob
#0555 (555)
Team Role: Mechanical
 
Join Date: Nov 2004
Rookie Year: 2003
Location: Montclair, New Jersey
Posts: 9
LivingDeadMan is an unknown quantity at this point
Send a message via AIM to LivingDeadMan
Re: CMUCam2 Vision Sensor Testing/Problems

I don't know what's wrong really, but the electronics team is having some sort of problem with the camera. I think they want to get a new one.
  #5   Spotlight this post!  
Unread 12-01-2005, 14:29
cbolin's Avatar
cbolin cbolin is offline
Programming & Electrical
FRC #0342 (Burning Magnetos)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Charleston, SC
Posts: 72
cbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to behold
Re: CMUCam2 Vision Sensor Testing/Problems

Hi,
You need to do these things (our experience).
1. Get the frc camera code loaded into new RC.
2. Connect PWM cable between PWM output and power connection on camera card.
3. Connect PWM cable between TTL-RS232 card and the camera card.
4. Power up the RC.
5. Press the Robot Reset button on the OI.

Only power on LED is illuminated. We moved a 'red' hat in the view out to 12 feet to make the RED LED come on.

Still experimenting...
Regards,
ChuckB
__________________
Team 342 Programming & Control Systems
Good luck and have fun!
  #6   Spotlight this post!  
Unread 12-01-2005, 15:33
cbolin's Avatar
cbolin cbolin is offline
Programming & Electrical
FRC #0342 (Burning Magnetos)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Charleston, SC
Posts: 72
cbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to behold
[RESOLVED] CMUCam2 Vision Sensor Testing/Problems

Hi,
We can see an image using the GUI software.

The only connections to the camera unit are the PWM cable from the PWM output to the camera module and the RS-232 from COMM1 on the PC to the camera unit.

Whew!
Regards,
ChuckB
__________________
Team 342 Programming & Control Systems
Good luck and have fun!
  #7   Spotlight this post!  
Unread 12-01-2005, 23:00
emusteve's Avatar
emusteve emusteve is offline
Registered User
AKA: Steve Martin
#0470 (Alpha Omega)
 
Join Date: Jan 2004
Location: Ypsilanti
Posts: 66
emusteve is just really niceemusteve is just really niceemusteve is just really niceemusteve is just really nice
Re: CMUCam2 Vision Sensor Testing/Problems

I've had a LOT of problems getting the GUI to work correctly. Unless I'm on a REALLY fast computer (my P4 XP unit) the the GUI app won't complete a frame grab. Even the P3/500 was too slow. Anyone else having this problem?

Also, the images look really bad, tinted green, and muted colors. (blue is difficult to identify, and try picking out a green target in a green field!) If I turn the white balance feature on, they look blue. I tried looking at the tracking data, and it had a difficult time following a yellow target on a dark background. I'm really worried about lighting, and how this thing is going to react in the field.


Steve
  #8   Spotlight this post!  
Unread 12-01-2005, 23:58
pickle's Avatar
pickle pickle is offline
Talking vegtable
AKA: Jeremy
#1296 (Full Metal Jackets)
Team Role: Programmer
 
Join Date: Apr 2004
Rookie Year: 2004
Location: Rockwall,TX
Posts: 42
pickle is on a distinguished road
Send a message via AIM to pickle
Re: CMUCam2 Vision Sensor Testing/Problems

Quote:
Originally Posted by emusteve
I've had a LOT of problems getting the GUI to work correctly. Unless I'm on a REALLY fast computer (my P4 XP unit) the the GUI app won't complete a frame grab. Even the P3/500 was too slow. Anyone else having this problem?

Also, the images look really bad, tinted green, and muted colors. (blue is difficult to identify, and try picking out a green target in a green field!) If I turn the white balance feature on, they look blue. I tried looking at the tracking data, and it had a difficult time following a yellow target on a dark background. I'm really worried about lighting, and how this thing is going to react in the field.


Steve

I got the GUI to work on any computer after fiddling with the serial port stuff for a while, but our images all come out yellow, really yellow, and when we turn white balancing on it looks very nice, but we can't find any colors but green, it syas yellow is too bright, and that red is too dark.... it can't make up its mind, but it tracks the green nicely!
__________________
2004 Rookie Inspiration Award winner - Midwest Regional
2004 Autodesk Visualization Award winner - Lone Star Regional
2004 Quarterfinalist - Lone Star Regional
2005 Team Spirit Award - Lone Star Regional
  #9   Spotlight this post!  
Unread 13-01-2005, 00:28
emusteve's Avatar
emusteve emusteve is offline
Registered User
AKA: Steve Martin
#0470 (Alpha Omega)
 
Join Date: Jan 2004
Location: Ypsilanti
Posts: 66
emusteve is just really niceemusteve is just really niceemusteve is just really niceemusteve is just really nice
Re: CMUCam2 Vision Sensor Testing/Problems

Quote:
Originally Posted by pickle
I got the GUI to work on any computer after fiddling with the serial port stuff for a while, but our images all come out yellow, really yellow, and when we turn white balancing on it looks very nice, but we can't find any colors but green, it syas yellow is too bright, and that red is too dark.... it can't make up its mind, but it tracks the green nicely!
At first I thought it was the serial port, but I can communicate fine in command line mode using Teraterm Pro. But the Java stuff is just plain problematic. I've got IE6, and installed the Java runtime from the SUN site, but Java just seems to run extremely slow, even with all the background apps and anti-virus turned off. Even on my P4, the program has problems and crashes a lot. XP, or 98SE, doesn't seem to matter. I'm stumped!

Steve
  #10   Spotlight this post!  
Unread 13-01-2005, 00:31
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
Re: CMUCam2 Vision Sensor Testing/Problems

Follow the manual very carefully. They have everything in there, except you have to SEARCH for it, unfortunately. It has information on what your serial port settings and everything should be. Try taking one more look.
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
  #11   Spotlight this post!  
Unread 13-01-2005, 22:44
Phil Roth Phil Roth is offline
Registered User
#0011 (BASF)
 
Join Date: Jan 2003
Location: Mt. Olive New Jersey
Posts: 31
Phil Roth is an unknown quantity at this point
Send a message via AIM to Phil Roth Send a message via Yahoo to Phil Roth
Re: CMUCam2 Vision Sensor Testing/Problems

Quote:
Originally Posted by pickle
I got the GUI to work on any computer after fiddling with the serial port stuff for a while, but our images all come out yellow, really yellow, and when we turn white balancing on it looks very nice, but we can't find any colors but green, it syas yellow is too bright, and that red is too dark.... it can't make up its mind, but it tracks the green nicely!

We can't seem to get the camera to track. It seems to get through the calibration OK but when you hit "track" the servos just oscillate and then it sez "Can't track color". The servos work fine manually and are connected properly. Next this is to try and reload the firmware in the cam.

Congrats and great job on the progress !!
  #12   Spotlight this post!  
Unread 22-01-2005, 14:11
Daniel Daniel is offline
Daniel Katanski
#0240
Team Role: Mentor
 
Join Date: Feb 2004
Location: Monroe, MI
Posts: 32
Daniel is on a distinguished road
Re: CMUCam2 Vision Sensor Testing/Problems

Quote:
Originally Posted by emusteve
At first I thought it was the serial port, but I can communicate fine in command line mode using Teraterm Pro. But the Java stuff is just plain problematic. I've got IE6, and installed the Java runtime from the SUN site, but Java just seems to run extremely slow, even with all the background apps and anti-virus turned off. Even on my P4, the program has problems and crashes a lot. XP, or 98SE, doesn't seem to matter. I'm stumped!

Steve
I have found that when using the GUI to get the calibration values I have to cycle power on the CMUcam2 a lot. Pressing the reset button does not do it.

I am also getting the red error light on the OI when loading the test program(s) in FRC_CMUcam2_rev-3. By the way why are there two projects? Which one should we focus on? What does the DDT version do? Why do they causes errors? FIRST you can do better.

The camera has potential to give the robot direction. But it is worth the cost? This is turning out to be a bad joke.

"Even a blind squirl finds a nut occationally", why not a tetra?
  #13   Spotlight this post!  
Unread 22-01-2005, 15:57
Unsung FIRST Hero
Matt Leese Matt Leese is offline
Been-In-FIRST-Too-Long
FRC #1438 (The Aztechs)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1998
Location: Long Beach, CA
Posts: 937
Matt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond repute
Send a message via AIM to Matt Leese
Re: CMUCam2 Vision Sensor Testing/Problems

Quote:
Originally Posted by Daniel
I have found that when using the GUI to get the calibration values I have to cycle power on the CMUcam2 a lot. Pressing the reset button does not do it.

I am also getting the red error light on the OI when loading the test program(s) in FRC_CMUcam2_rev-3. By the way why are there two projects? Which one should we focus on? What does the DDT version do? Why do they causes errors? FIRST you can do better.

The camera has potential to give the robot direction. But it is worth the cost? This is turning out to be a bad joke.

"Even a blind squirl finds a nut occationally", why not a tetra?
Did you update the master code? We got the Code Error light until we updated the master code.

Matt
  #14   Spotlight this post!  
Unread 22-01-2005, 17:32
Code\\Pilot Code\\Pilot is offline
< Only smart people see my avatar
AKA: Rafael Estrada
FRC #1065 (Tatsu)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Florida
Posts: 53
Code\\Pilot is an unknown quantity at this point
Send a message via AIM to Code\\Pilot Send a message via MSN to Code\\Pilot
Re: CMUCam2 Vision Sensor Testing/Problems

If the connection between the camera and the pc runs kinda slow, changing the bit rate of your comm port might work.
Go to control panel, then go to system, then go to device manager, a list will appear with all ur devices, select the comunication ports and then double click com port 1 or 2 for which ever u r using, in the window that open look for the transfer bit rate and change it to 15200 or something like it, then click ok and that might help.

Sorry if it is a little inaccurate but rite now I'm in my Linux partition and am saying this out of the top of my head.
Peace.
__________________
Join the Red revolution, give me some RED rep!!!!
if it doesn't work, don't force it. Go get a bigger hammer.

int run = 0;
int robot_chasing_you = 1;

if (robot_chasing_you)
{
run = 254;
}

I got 48 Gmail invites left, pm me with your e-mail so i can send you one.
  #15   Spotlight this post!  
Unread 22-01-2005, 21:25
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: CMUCam2 Vision Sensor Testing/Problems

Quote:
Originally Posted by Daniel
I have found that when using the GUI to get the calibration values I have to cycle power on the CMUcam2 a lot. Pressing the reset button does not do it.
I started having that problem a couple of days ago. It turned out to be a depleted backup battery. Putting on a freshly charged battery made things work again.
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
Vision Tetra Alignment accuracy Rickertsen2 Rules/Strategy 10 21-01-2005 09:18
Just where are vision "bonus" tetras placed? David Brinza Rules/Strategy 17 10-01-2005 20:50
Has anyone ever done any robot vision programming? Robot Dude 0101 Programming 2 05-10-2004 13:02
Career Forum - A New Vision archiver 2000 0 24-06-2002 00:01
New Forum - A Vision archiver 2000 1 24-06-2002 00:01


All times are GMT -5. The time now is 13:43.

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