Go to Post I know the code works, I wrote it! It must be a hardware problem. - buss [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 14-01-2006, 17:43
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
CMU camera search

Our camera is working, but it cannot find the green light. It just turns around randomly looking for the light. We know that it cannot be other lights, and our green light is visible. We are using Kevin Watsons most recent simple camera code. We would appreciate some help. Thank you.
  #2   Spotlight this post!  
Unread 14-01-2006, 20:59
rappo's Avatar
rappo rappo is offline
Drag and drop that for loop!
FRC #0696 (Circuit Breakers)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Glendale, California
Posts: 49
rappo is a jewel in the roughrappo is a jewel in the roughrappo is a jewel in the roughrappo is a jewel in the rough
Re: CMU camera search

Have you tried it while connected to the serial port of a computer? You can have the camera directly connected to the computer and a power supply, open the CMUCam2 program for LabView, then load the 2006 Target.cfg configuration straight onto it. If it doesn't work there, then you probably have a bigger issue on your hands. But, it's most likely the best place to start.
__________________
Team 696 Circuit Breakers
2006 LA Regional - Radio Shack Innovation in Control Award
  #3   Spotlight this post!  
Unread 14-01-2006, 21:04
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: CMU camera search

My guess is you need to focus the camera.. Open up labview, keep using grab frame and rotating the lens until the picture is pretty crisp. It's possible someone thought the lens was loose and tightened it, screwing up the focus
  #4   Spotlight this post!  
Unread 17-01-2006, 13:05
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
Re: CMU camera search

Quote:
Originally Posted by devicenull
My guess is you need to focus the camera.. Open up labview, keep using grab frame and rotating the lens until the picture is pretty crisp. It's possible someone thought the lens was loose and tightened it, screwing up the focus
our labview won't work. we get a message that says the serial cable (we're using a converter) isn't working or the camera doesn't have power. We don't know how to fix this and the instructions say to just "fix the error."
  #5   Spotlight this post!  
Unread 17-01-2006, 13:13
CmptrGk's Avatar
CmptrGk CmptrGk is offline
Programming Mentor
AKA: Dillon
FRC #0716 (Who'sCTEKS)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Kent,CT
Posts: 212
CmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud of
Re: CMU camera search

Quote:
Originally Posted by Windward
our labview won't work. we get a message that says the serial cable (we're using a converter) isn't working or the camera doesn't have power. We don't know how to fix this and the instructions say to just "fix the error."
which com port is your converter. i know that with mine i am unable to connect to the camera using anything other than com1 or com2. which i was able to change in device manager. also make sure that you arent just typing comx, where x is the com port number, directly into labview. follow the format that they have and just change the x into the com port #.


for reference you can change the com port # by going to device manager->ports (COM &LPT) then double click on the converter name. click on the port settings tab, and change it to a com port that is not currently in use. for me com1 worked. and then voila labview started working. and the camera was sucessfuly recognized.

also, if your converter is not recognized in MAX you can manually change the port options so it can actually talk to the camera.

this may be stupid, but make sure that the camera is actually powered on.
__________________
#14


"Great autonomous mode Dillon."," It hasn't been written yet"
after an Archimedes match


  #6   Spotlight this post!  
Unread 17-01-2006, 18:16
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
Re: CMU camera search

Quote:
Originally Posted by CmptrGk
which com port is your converter. i know that with mine i am unable to connect to the camera using anything other than com1 or com2. which i was able to change in device manager. also make sure that you arent just typing comx, where x is the com port number, directly into labview. follow the format that they have and just change the x into the com port #.


for reference you can change the com port # by going to device manager->ports (COM &LPT) then double click on the converter name. click on the port settings tab, and change it to a com port that is not currently in use. for me com1 worked. and then voila labview started working. and the camera was sucessfuly recognized.

also, if your converter is not recognized in MAX you can manually change the port options so it can actually talk to the camera.

this may be stupid, but make sure that the camera is actually powered on.
I switched the com port to COM1 and it did not change anything. What do you mean by

Quote:
if your converter is not recognized in MAX you can manually change the port opitons so it can actually talk to the camera.
  #7   Spotlight this post!  
Unread 17-01-2006, 18:49
CmptrGk's Avatar
CmptrGk CmptrGk is offline
Programming Mentor
AKA: Dillon
FRC #0716 (Who'sCTEKS)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Kent,CT
Posts: 212
CmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud of
Re: CMU camera search

Quote:
Originally Posted by Windward
I switched the com port to COM1 and it did not change anything. What do you mean by
like changing the baud(sp?) rate and etc. to the correct settings
__________________
#14


"Great autonomous mode Dillon."," It hasn't been written yet"
after an Archimedes match


  #8   Spotlight this post!  
Unread 17-01-2006, 19:05
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
Re: CMU camera search

Quote:
Originally Posted by CmptrGk
like changing the baud(sp?) rate and etc. to the correct settings
according to the instructions, I already have.
  #9   Spotlight this post!  
Unread 17-01-2006, 22:00
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: CMU camera search

Quote:
Originally Posted by Windward
according to the instructions, I already have.
What is the error message and error code in the error cluster on the upper right side?

If you click the arrow on the side of the serial port control, do you get a list of ports that has the port you expect in it?

Can you connect to the camera in hyper-terminal on that same port?

-Joe
  #10   Spotlight this post!  
Unread 17-01-2006, 23:25
ryan_f ryan_f is offline
Registered User
#1053
 
Join Date: Jan 2003
Location: ottawa
Posts: 71
ryan_f is an unknown quantity at this point
Re: CMU camera search

We kind of have the same problem. But our problem is that the camera finds the green target, but doesn't lock onto it. It just posts its coordinates (when we're watching the screen from ifi_loader) and then just keeps going on its search pattern. Is this supposed to happen or is it supposed to actually track the target?


P.S. It tracks the target fine when we use labview with the servos connected to the camera
  #11   Spotlight this post!  
Unread 17-01-2006, 23:35
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: CMU camera search

Quote:
Originally Posted by ryan_f
We kind of have the same problem. But our problem is that the camera finds the green target, but doesn't lock onto it. It just posts its coordinates (when we're watching the screen from ifi_loader) and then just keeps going on its search pattern. Is this supposed to happen or is it supposed to actually track the target?


P.S. It tracks the target fine when we use labview with the servos connected to the camera
Depending on the version of the code, enter the tracking menu and adjust the search delay up by one, which will slow down the search and give the camera more time to let the RC know that it found the green light. Don't forget to save the new value to EEPROM when you get it dialed in. For the streamlined code, open tracking.h and look for #define SEARCH_DELAY_DEFAULT and increase the number to the right of it by one, compile the code and try it out. Repeat if necessary.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #12   Spotlight this post!  
Unread 18-01-2006, 17:43
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
Re: CMU camera search

Quote:
Originally Posted by Joe Hershberger
What is the error message and error code in the error cluster on the upper right side?

If you click the arrow on the side of the serial port control, do you get a list of ports that has the port you expect in it?

Can you connect to the camera in hyper-terminal on that same port?

-Joe

What exactly do you mean by "hyper-terminal?"
  #13   Spotlight this post!  
Unread 18-01-2006, 18:34
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: CMU camera search

Quote:
Originally Posted by Windward
What exactly do you mean by "hyper-terminal?"
Meaning in Windows, go to Start >> All Programs >> Accessories >> Communications >> HyperTerminal.

It's a simple terminal application. You could also use the IFI loader terminal window.

Cheers!
-Joe
  #14   Spotlight this post!  
Unread 18-01-2006, 19:14
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
Re: CMU camera search

just as an update, our camera will now track green when we program it with MPLAB. We got a more updated version of the program for labview and got a new different error. It says it can't find the file. Another programmer is presently working on it. Although we got a different error, we still might get an the same error as before when we solve this present one.

Thanks for all your help, update you later.
  #15   Spotlight this post!  
Unread 18-01-2006, 19:21
Windward's Avatar
Windward Windward is offline
Registered User
FRC #1452
Team Role: Programmer
 
Join Date: Nov 2005
Rookie Year: 2004
Location: So Cal
Posts: 88
Windward is an unknown quantity at this point
Re: CMU camera search

Quote:
Originally Posted by Windward
just as an update, our camera will now track green when we program it with MPLAB. We got a more updated version of the program for labview and got a new different error. It says it can't find the file. Another programmer is presently working on it. Although we got a different error, we still might get an the same error as before when we solve this present one.

Thanks for all your help, update you later.
Turns out the error from before came back.

The error says the camera might:
1- not have power
2- not connected by serial cable (using converter and haven't gotten to try hyperterminal)
3- not in correct serial port

We have checked and checked again 1 & 3 and are in the process trying hyperterminal.
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
Scripting Setup and the Camera + Serial Port Drivers CJO Programming 22 11-01-2006 17:42
New Model Posted - 2005 CMU Camera Ed Sparks Inventor 1 04-01-2006 23:36
CMU Camera: San Jose Area Bill Gold Kit & Additional Hardware 1 11-04-2005 18:30
CMU Camera Tracking auditt241 Programming 0 03-02-2005 16:33
Easter Egg in CMU Camera Manual David Foster Programming 8 10-01-2005 03:21


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

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