Go to Post the few, the proud, the animators. - BuddyB309 [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 17-01-2006, 16:53
Zoom's Avatar
Zoom Zoom is offline
Lost User
AKA: Umair Nasir
FRC #0369 (Nuts & Volts)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2003
Location: Brooklyn
Posts: 22
Zoom is an unknown quantity at this point
Send a message via MSN to Zoom
CmuCam problem

Our cmucam does not track the target. We got the code from kevin's site. download it to the rc. did everything. I searched before posting but couldnt find any answers. cam just stays there. The lights are green. what could be the problem?
__________________
A Program isnt finished until the Programmer dies...
  #2   Spotlight this post!  
Unread 17-01-2006, 17:28
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,846
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: CmuCam problem

Quote:
Originally Posted by Zoom
Our cmucam does not track the target. We got the code from kevin's site. download it to the rc. did everything. I searched before posting but couldnt find any answers. cam just stays there. The lights are green. what could be the problem?
  • Servos are hooked up to pwm01 & 02?
  • Camera power is connected by PWM cable to an empty RC PWM output?
  • PWM cable is attached to the camera serial port and the RC via TTL converter?
  • Backup battery is connected to the RC and fully charged?
  • 12v battery is hooked up to the RC and fully charged?
  • OI is tethered or linked by radio to the RC and powered?
  • Green power LED on the camera power is on?
Can you call up Kevin's tracking and camera menus?
Did you test separately with Labview?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 17-01-2006, 17:32
railerobotics's Avatar
railerobotics railerobotics is offline
Registered User
FRC #0935
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 190
railerobotics will become famous soon enough
Re: CmuCam problem

We are having the exact same problem and we can access the camera and tracking menus but the terminal window never display's searching. We have a red and green light lit up on our camera.

Last edited by railerobotics : 17-01-2006 at 17:34.
  #4   Spotlight this post!  
Unread 17-01-2006, 19:11
Zoom's Avatar
Zoom Zoom is offline
Lost User
AKA: Umair Nasir
FRC #0369 (Nuts & Volts)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2003
Location: Brooklyn
Posts: 22
Zoom is an unknown quantity at this point
Send a message via MSN to Zoom
Re: CmuCam problem

when you say pwm 1,2. do you mean the robot controller. if yes. then yes the pwm are in 1 and 2. the power is also good. we checked in labview. it works fine there. but when we use the robot. it does not work. After uploading the code to rc nothing happens in the terminal window.
Can you call up Kevin's tracking and camera menus? sorry, dont what you mean. maybe this is the part im lost at.
__________________
A Program isnt finished until the Programmer dies...
  #5   Spotlight this post!  
Unread 17-01-2006, 19:16
railerobotics's Avatar
railerobotics railerobotics is offline
Registered User
FRC #0935
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 190
railerobotics will become famous soon enough
Re: CmuCam problem

To get the tracking menu you type "t" at the bottom of the terminal window.
To get the camera menu you type "c" at the bottom of the terminal window.
You'll probably have to reset the robot after you download the code. If you get no response in the terminal window try resetting the robot.
  #6   Spotlight this post!  
Unread 17-01-2006, 19:18
mallot1243's Avatar
mallot1243 mallot1243 is offline
Registered User
FRC #1243
 
Join Date: Apr 2004
Rookie Year: 2004
Location: Swartz Creek, MI
Posts: 27
mallot1243 is an unknown quantity at this point
Re: CmuCam problem

I'm assuming that you chose the pwm01 and 02 on the rc and not the jumpers on the camera itself. Also, the default code from Kevin's files are too large to fit in the EduBot Controller, is there a special file for using on the Edu or do I have to commit a hack job on the code to lighten it?
And whoever came up with the idea of only writing the LabView program for Windows 2001 SP1 or higher?
  #7   Spotlight this post!  
Unread 17-01-2006, 19:36
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: CmuCam problem

Quote:
Originally Posted by mallot1243
Also, the default code from Kevin's files are too large to fit in the EduBot Controller, is there a special file for using on the Edu or do I have to commit a hack job on the code to lighten it?
The code was developed on a EDU-RC. What makes you think it won't fit?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #8   Spotlight this post!  
Unread 17-01-2006, 19:38
mallot1243's Avatar
mallot1243 mallot1243 is offline
Registered User
FRC #1243
 
Join Date: Apr 2004
Rookie Year: 2004
Location: Swartz Creek, MI
Posts: 27
mallot1243 is an unknown quantity at this point
Re: CmuCam problem

My compiled version with other small tidbits of code was nearly 500Kb, when I exported it I used 0x800, would I have to change this?
  #9   Spotlight this post!  
Unread 17-01-2006, 19:43
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: CmuCam problem

Quote:
Originally Posted by mallot1243
My compiled version with other small tidbits of code was nearly 500Kb, when I exported it I used 0x800, would I have to change this?
It it doesn't fit, the linker will tell you so. Look at the .map file, which will tell you how much memory (flash & SRAM) you've used.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #10   Spotlight this post!  
Unread 17-01-2006, 22:01
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: CmuCam problem

Quote:
Originally Posted by mallot1243
And whoever came up with the idea of only writing the LabView program for Windows 2001 SP1 or higher?
Windows 2001 SP1?

What?

-Joe
  #11   Spotlight this post!  
Unread 18-01-2006, 05:55
or yaniv or yaniv is offline
Registered User
#1574
 
Join Date: Jan 2005
Location: Israel
Posts: 16
or yaniv is an unknown quantity at this point
Re: CmuCam problem

I have the same problem
Quote:
Originally Posted by Mark McLeod
  • Servos are hooked up to pwm01 & 02? yes
  • Camera power is connected by PWM cable to an empty RC PWM output?yes
  • PWM cable is attached to the camera serial port and the RC via TTL converter?yes
  • Backup battery is connected to the RC and fully charged?yes
  • 12v battery is hooked up to the RC and fully charged?yes
  • OI is tethered or linked by radio to the RC and powered?yes
  • Green power LED on the camera power is on?yes
Can you call up Kevin's tracking and camera menus?yes
Did you test separately with Labview?yes
Or
  #12   Spotlight this post!  
Unread 18-01-2006, 11:27
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: CmuCam problem

Quote:
Originally Posted by or yaniv
I have the same problem...
Download the code mentioned here and report back with the results. This thread may also help. Someone pointed out that they had a defective PWM cable. You might replace the PWM cable you're using for serial communications and see if it starts working.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #13   Spotlight this post!  
Unread 18-01-2006, 23:33
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: CmuCam problem

hmm...

ok you are having the smae problem we did.
you have to calibrate your camera, because there is too much noise in your background that is affecting your stats.
the calibration manual (Here) Contains the information you need to calibrate.

also, make sure that you dont have the wrong axes flipped (read the cam manual if you dont know what i maen)
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY
  #14   Spotlight this post!  
Unread 19-01-2006, 15:19
Zoom's Avatar
Zoom Zoom is offline
Lost User
AKA: Umair Nasir
FRC #0369 (Nuts & Volts)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2003
Location: Brooklyn
Posts: 22
Zoom is an unknown quantity at this point
Send a message via MSN to Zoom
Re: CmuCam problem

Servos are hooked up to pwm01 & 02? YES
Camera power is connected by PWM cable to an empty RC PWM output? YES
PWM cable is attached to the camera serial port and the RC via TTL converter? YES
Backup battery is connected to the RC and fully charged? YES
12v battery is hooked up to the RC and fully charged? YES
OI is tethered or linked by radio to the RC and powered?YES
Green power LED on the camera power is on? YES
Can you call up Kevin's tracking and camera menus? YES
Did you test separately with Labview?YES

everything is fine. But the servos dont move. even if you try to move them through the menu.
__________________
A Program isnt finished until the Programmer dies...
  #15   Spotlight this post!  
Unread 19-01-2006, 15:31
billbo911's Avatar
billbo911 billbo911 is online now
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,380
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: CmuCam problem

Quote:
Originally Posted by Zoom
Servos are hooked up to pwm01 & 02? YES
Camera power is connected by PWM cable to an empty RC PWM output? YES
PWM cable is attached to the camera serial port and the RC via TTL converter? YES
Backup battery is connected to the RC and fully charged? YES
12v battery is hooked up to the RC and fully charged? YES
OI is tethered or linked by radio to the RC and powered?YES
Green power LED on the camera power is on? YES
Can you call up Kevin's tracking and camera menus? YES
Did you test separately with Labview?YES

everything is fine. But the servos dont move. even if you try to move them through the menu.
This is just a shot in the dark. By any wild chance, are the lines in user_routines.c/Default_Routine that assign the joystick inputs to the PWM outputs not commented out?
If they are uncommented, then they are being processed after the camera code, and therefore, are overwriting the values set by the camera code.

During testing they should look like this.

Code:
//pwm01=p1_y;
//pwm02=p2_y;
or this
Code:
/*pwm01=p1_y;
  pwm02=p2_y;*/
Kevin's code, without any modifications, doesn't actually call the Default_Routine function. It is commented out in the Process_Data_From_Master_uP function. Therefore, the PWM mappings never get called. If your version of user_routines.c is not from his camera code build, that may be what is happening.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist

Last edited by billbo911 : 19-01-2006 at 15:38.
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
Labview CMUcam demo problem Windward LabView and Data Acquisition 19 11-08-2007 02:33
CMUcam setup Ryan Collings Programming 26 13-01-2006 01:00
Need a realistic Statics Problem sanddrag Technical Discussion 10 05-12-2005 15:07
The problem with scouting... archiver 2001 10 23-06-2002 23:49
Major problem with chipphua motors aka Scott White Motors 18 19-03-2002 19:44


All times are GMT -5. The time now is 16: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