Go to Post when you think you are here to compete against other teams, thats when bad things start happening... - KenWittlief [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 05-02-2005, 17:37
MarkVH's Avatar
MarkVH MarkVH is offline
Registered User
AKA: Mark VanHaitsma
FRC #0288 (RoboDawgs)
Team Role: College Student
 
Join Date: Dec 2004
Rookie Year: 2003
Location: Grandville
Posts: 30
MarkVH is on a distinguished road
Camera not working when connected to robot

I am using the user default code ver2.4. How do program it to track a color?
  #2   Spotlight this post!  
Unread 05-02-2005, 17:56
Dragnass's Avatar
Dragnass Dragnass is offline
Registered User
#1345 (Platinum Dragons)
Team Role: Mentor
 
Join Date: Jan 2005
Location: Ft. Lauderdale
Posts: 3
Dragnass is an unknown quantity at this point
Re: Camera not working when connected to robot

Did you Calibrate the colors first??
  #3   Spotlight this post!  
Unread 05-02-2005, 18:08
kjohnson's Avatar
kjohnson kjohnson is offline
Insert Clever Title Here
AKA: Kyle J.
FRC #1610 (BOT)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Virginia
Posts: 575
kjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond repute
Lightbulb Re: Camera not working when connected to robot

Quote:
Originally Posted by MarkVH
I am using the user default code ver2.4. How do program it to track a color?
First you need to calibrate to get the correct exposure settings. Put these into user_routines.c where indicated. Then, connect your left motors to pwm12 and the right motors to pwm11. The default 2.4 code uses a one joystick drive (port 1 - use the calibration wheels on the joystick to get the motors to neutral) but you still need two joysticks connected to the OI. Once you load the code, press the trigger on the joystick you have connected to port two. This will cycle through the five colors and light up the red LEDs on the OI. They go in order from top to bottom :Yellow, Green, White, Red, Blue. If you calibrated correctly and have the servos mounted, each time you select a new color the camera should recenter itself and then begin tracking the color.

Edit: Also make sure your converter card, power wire, and backup battery are connected correctly.

Last edited by kjohnson : 05-02-2005 at 18:14.
  #4   Spotlight this post!  
Unread 07-02-2005, 17:50
MarkVH's Avatar
MarkVH MarkVH is offline
Registered User
AKA: Mark VanHaitsma
FRC #0288 (RoboDawgs)
Team Role: College Student
 
Join Date: Dec 2004
Rookie Year: 2003
Location: Grandville
Posts: 30
MarkVH is on a distinguished road
Re: Camera not working when connected to robot

How do you tell the camera what color to track?
  #5   Spotlight this post!  
Unread 09-02-2005, 00:37
russell's Avatar
russell russell is offline
Registered User
#1430 (WRONG)
Team Role: Electrical
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Anchorage AK
Posts: 402
russell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to allrussell is a name known to all
Re: Camera not working when connected to robot

Call the function camera_find_color(); and in the parentheses put the color you want it to find in capital letters. I dont know if the caps matter but I know it works with caps.
  #6   Spotlight this post!  
Unread 14-02-2005, 15:40
capenga's Avatar
capenga capenga is offline
Penga boy
AKA: Giovane
#1156 (Under Control)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Pio XII High School - Brazil
Posts: 33
capenga is an unknown quantity at this point
Send a message via ICQ to capenga Send a message via MSN to capenga
Re: Camera not working when connected to robot

Quote:
Originally Posted by nukemknight
First you need to calibrate to get the correct exposure settings. Put these into user_routines.c where indicated. Then, connect your left motors to pwm12 and the right motors to pwm11. The default 2.4 code uses a one joystick drive (port 1 - use the calibration wheels on the joystick to get the motors to neutral) but you still need two joysticks connected to the OI. Once you load the code, press the trigger on the joystick you have connected to port two. This will cycle through the five colors and light up the red LEDs on the OI. They go in order from top to bottom :Yellow, Green, White, Red, Blue. If you calibrated correctly and have the servos mounted, each time you select a new color the camera should recenter itself and then begin tracking the color.

Edit: Also make sure your converter card, power wire, and backup battery are connected correctly.
Searching for the root of our problem, i tried to do all of this... but didn't work. All the connections seems to be fine (TTL on RC, pwm on TTL and Camera, pwm on RC and Camera, backup battery full charged, etc.)...
BUT DIDN'T WORK!

I really don't know what can I do to the camera give some life signal...



OH! Almoust forgotting... With the default code 2.4, the camera keep a green and a red LED on, but the terminal window of the IFI loader says: "Camera not Found! please check, power and cable connections."
and in the OI, all the four red lights from PWM Outputs are blinking, even if I press the triggers, or any button on the joysticks... PLEASE HELP!!!

If someone wants more information, like photos of connections or any other doubts, just ask me =D
__________________


Ignore alien orders.
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
How much planning goes into your robot? Jnadke General Forum 41 29-01-2006 21:29
Robot Weight Limit: Rule Conflict Specialagentjim Rules/Strategy 10 06-08-2005 17:52
Concerns regarding the green paneling/green shirts Petey General Forum 127 15-01-2005 10:35
How much do you design before kickoff? Allison K General Forum 19 07-12-2004 21:32
Best Robot Ever(again) Corey Balint General Forum 26 04-08-2004 23:03


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

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