Go to Post Who would think 130 points would be a losing score! - Chris Fultz [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 30-01-2006, 18:47
magical hands magical hands is offline
Jigar Patel
AKA: Jigar Patel
FRC #2185 (Etobicoke CI)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2004
Location: TORONTO
Posts: 93
magical hands is on a distinguished road
Post Steps to make cam work?

- Made the cam mount assembly
- Attached the cam to robot
- Cam works fine
- I load kevin's default code into the Controller
- In I/O window i get "CR" (What does that mean?) It keeps repeating "CR"
- Once i press reset button onto the robot in I/O window i see "RM" (what does that mean?)

How i set the cam up
************************************************** ********
- I connected my pan to pwm01
- connected my tilt to pwm02
- I give power to my cam throught pwm03
- Connected my TTL (Mini chip) on to the controller where it says TTL

Questions
************************************************** ********
1) What should my next step be to make my camera work?
2) When i get the values for Red, Green and Blue through GUI? How can i turn it so i can put this colour value into my code? and where and how can i put this colour value into my code?

Thank You Very Much
  #2   Spotlight this post!  
Unread 30-01-2006, 18:57
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: Steps to make cam work?

Disconnect your laptop from the camera itself.. it doesn't know if it should be talking to you or the robot controller.

You do not have to change the code to track the target. You may want to calibrate the camera to make it track better, but that is well documented in the CMUCam2 Workbook at http://kevin.org/frc/
  #3   Spotlight this post!  
Unread 30-01-2006, 19:03
magical hands magical hands is offline
Jigar Patel
AKA: Jigar Patel
FRC #2185 (Etobicoke CI)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2004
Location: TORONTO
Posts: 93
magical hands is on a distinguished road
Re: Steps to make cam work?

Quote:
Originally Posted by devicenull
Disconnect your laptop from the camera itself.. it doesn't know if it should be talking to you or the robot controller.

You do not have to change the code to track the target. You may want to calibrate the camera to make it track better, but that is well documented in the CMUCam2 Workbook at http://kevin.org/frc/
I did disconnect the link between camera and computer, but same problems.
1) when i first did it their was nothign showing up in I/O window however after reading the text files i figured out that you have to change the port values by commenting and uncommenting.
2) After i did that, some stuff started to show up in I/O window for e.g. "CR" repeating itself, so i chose to press reset button on controller and "RM" showed up and than "CR" again repeating itself.

How are you guys connecting your camera. Also, how did you guys make ur camera to show values in I/O window? It would be really helpful if someone can briefly make it clear. Thanks
  #4   Spotlight this post!  
Unread 30-01-2006, 19:46
bush's Avatar
bush bush is offline
Registered User
AKA: Aaron
FRC #0710 (Pine Crest School)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Fort Lauderdale, Florida
Posts: 42
bush has a spectacular aura aboutbush has a spectacular aura about
Send a message via AIM to bush
Re: Steps to make cam work?

The camera itself has 4 connections:
1) PWM cable - Power In (camera) to PWM Out (RC)
2) PWM cable - Pan Servo to PWM Out (RC)
3) PWM cable - Tilt Servo to PWM Out (RC)
4) PWM cable - RS232 3pin (camera) to TTL232 adapter to TTL port (RC)

If you want to view output on your computer, connect your computer's serial port to the Program port on the RC. Open the Terminal window in IFI Loader, and then you can view output.
  #5   Spotlight this post!  
Unread 30-01-2006, 20:51
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,112
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: Steps to make cam work?

Quote:
Originally Posted by magical hands
- In I/O window i get "CR" (What does that mean?) It keeps repeating "CR"
- Once i press reset button onto the robot in I/O window i see "RM" (what does that mean?)
That sounds like the Robot Controller is sending its camera communication to the program port instead of the TTL port. You've apparently commented/uncommented the wrong lines. Kevin's code should work just fine without modification.
  #6   Spotlight this post!  
Unread 30-01-2006, 21:01
magical hands magical hands is offline
Jigar Patel
AKA: Jigar Patel
FRC #2185 (Etobicoke CI)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2004
Location: TORONTO
Posts: 93
magical hands is on a distinguished road
Re: Steps to make cam work?

I did but all i see is <IFI> nothing more than that? like the I/O window is completely blank. I don't see any messages in I/O so how can i troubleshoot such problem? What are the possible mistakes.
  #7   Spotlight this post!  
Unread 30-01-2006, 21:50
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,112
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: Steps to make cam work?

If all you get is the IFI> prompt, your RC is apparently not starting up the user program. Is it communicating properly with the OI?
  #8   Spotlight this post!  
Unread 31-01-2006, 17:43
magical hands magical hands is offline
Jigar Patel
AKA: Jigar Patel
FRC #2185 (Etobicoke CI)
Team Role: Mentor
 
Join Date: Dec 2003
Rookie Year: 2004
Location: TORONTO
Posts: 93
magical hands is on a distinguished road
Re: Steps to make cam work?

my I/O works fine with other codes. I don't know y it doesn't work with camera code?
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
When to leave that first tech job? Morenoh149 Career 4 07-10-2005 00:40
QUESTION OF THE WEEK!!! archiver 2000 14 24-06-2002 00:22
Who knows how the motors [I]really[/I] work? Wetzel Chit-Chat 5 13-02-2002 21:50


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

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