Go to Post I love it when someone tells me I can't do something. - dlavery [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 09-02-2004, 15:00
Cadetdan's Avatar
Cadetdan Cadetdan is offline
Registered User
#0940 (Digital Demolition)
Team Role: Coach
 
Join Date: Jan 2003
Location: Brookings SD
Posts: 7
Cadetdan is an unknown quantity at this point
Send a message via MSN to Cadetdan
I/R trouble!!!

I was wondering does the code that comes with the robot controler reguarding the I/R sensors work without any mods to the code? Because our robot controler will not alow us to download the orginal code........it gives us an error, its almost like the codes are fighting each other. Then when we mod the code and download it to the bot the sensors do not track the I/R becon we made. Im kinda stumped......any Ideas as to what might be wrong? Thanks

Dan B
Team 940
__________________
Dan B........Yum Do I Smell Burning Rubber
  #2   Spotlight this post!  
Unread 09-02-2004, 15:08
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,856
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: I/R trouble!!!

Quote:
Originally Posted by Cadetdan
I was wondering does the code that comes with the robot controler reguarding the I/R sensors work without any mods to the code? Because our robot controler will not alow us to download the orginal code........it gives us an error, its almost like the codes are fighting each other. Then when we mod the code and download it to the bot the sensors do not track the I/R becon we made. Im kinda stumped......any Ideas as to what might be wrong? Thanks

Dan B
Team 940
The default code for the FRC doesn't do anything with the IR sensors.

The code that uses the IR sensors can be found at Kevin Watson's site http://kevin.org/frc/


You probably want navigate.zip. That's what was used at the FIRST Kickoff to demonstrate driving a robot using the IR system, and it can be used almost as is. (You will need to tweak parameters to get it to work with your drive system.)

The code in the robot controller doesn't affect downloading new code.

What kind of mod did you do to the code to get it to download?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 09-02-2004 at 15:11.
  #3   Spotlight this post!  
Unread 09-02-2004, 16:47
Meredith Rice's Avatar
Meredith Rice Meredith Rice is offline
Registered User
None #0433 (Firebirds)
Team Role: College Student
 
Join Date: Apr 2003
Rookie Year: 2001
Location: Glenside, PA
Posts: 151
Meredith Rice has a spectacular aura aboutMeredith Rice has a spectacular aura aboutMeredith Rice has a spectacular aura about
Send a message via AIM to Meredith Rice
Re: I/R trouble!!!

Does the IR navigate.mcp have the everything in it to run the robot or just the programming to run the sensors, because there did not appear to be anything in the user_routine.c from the navigate.zip files. Do we need to have both the default codes and the navigate.mpc on the RC and if so how do we do that?
__________________
I'm proud to be a....

~*Looks like I've got FIRST fever again*~
  #4   Spotlight this post!  
Unread 09-02-2004, 16:56
rwaliany's Avatar
rwaliany rwaliany is offline
R
None #0691 (HartBurn)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 2000
Location: http://www.hartrobot.com
Posts: 137
rwaliany will become famous soon enough
Re: I/R trouble!!!

Create a new directory extract navigate.zip. Open the navigate.mcw.

It's not recommended for novice users. There's quite a bit of tweaking to get it to work. From what I recall, Rich Petras' code turns the robot until a sensor can be seen then adjusts the sensors to start Kevin Watson's tracking code. It might be easier to start from just the tracking code. Also I would recommend looking how how they wired their receivers on the servos. Also, the receivers for the infra-red are interrupt based and the interrupts can be found in user_routines_fast.c I believe and Kevin calls functions outside in his own custom files that are new to the FRC code.

Servo 1

|-----------
| x
|-----------
|-----------
| x
|-----------

Where x is the sensor.

Thanks,
Ryan Waliany
__________________
R
  #5   Spotlight this post!  
Unread 09-02-2004, 16:59
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,856
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: I/R trouble!!!

Quote:
Originally Posted by Fireboidsgrl
Does the IR navigate.mcp have the everything in it to run the robot or just the programming to run the sensors, because there did not appear to be anything in the user_routine.c from the navigate.zip files. Do we need to have both the default codes and the navigate.mpc on the RC and if so how do we do that?
navigate is missing any user drive routine. It's probably easier to take Kevin's tracker.zip from his web site and add the navigate.c & navigate.h files to that.
Then call navigate() from User_Autonomous_Code() within the user_routines_fast.c file.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #6   Spotlight this post!  
Unread 12-02-2004, 17:23
thirschfelt thirschfelt is offline
Travis Hirschfelt
AKA: thirschfelt
#0191 (X-Cats)
Team Role: Student
 
Join Date: Feb 2004
Location: Rochester
Posts: 2
thirschfelt is an unknown quantity at this point
Re: I/R trouble!!!

Quote:
Originally Posted by Mark McLeod
navigate is missing any user drive routine. It's probably easier to take Kevin's tracker.zip from his web site and add the navigate.c & navigate.h files to that.
Then call navigate() from User_Autonomous_Code() within the user_routines_fast.c file.
hello,

Our tracking sensors are not picking up the infared signal from more than 4 inches away , do you have any suggestions to help fix this problem?

-191
  #7   Spotlight this post!  
Unread 13-02-2004, 10:04
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,856
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: I/R trouble!!!

Quote:
Originally Posted by thirschfelt
hello,

Our tracking sensors are not picking up the infared signal from more than 4 inches away , do you have any suggestions to help fix this problem?

-191
Well, my general advice is to read the FAQ at http://kevin.org/frc/faq.html
in detail.

Are you testing the sensors in the optimal brightly lit, uncluttered room?

Fully charged 7.2v battery?

Another team had the same problem. We discussed it here http://www.chiefdelphi.com/forums/showthread.php?t=24396. See if any of those ideas help.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #8   Spotlight this post!  
Unread 13-02-2004, 17:49
thirschfelt thirschfelt is offline
Travis Hirschfelt
AKA: thirschfelt
#0191 (X-Cats)
Team Role: Student
 
Join Date: Feb 2004
Location: Rochester
Posts: 2
thirschfelt is an unknown quantity at this point
Re: I/R trouble!!!

Quote:
Originally Posted by Mark McLeod
Well, my general advice is to read the FAQ at http://kevin.org/frc/faq.html
in detail.

Are you testing the sensors in the optimal brightly lit, uncluttered room?

Fully charged 7.2v battery?

Another team had the same problem. We discussed it here http://www.chiefdelphi.com/forums/showthread.php?t=24396. See if any of those ideas help.

Unfortuneatley, none of this helped our sensors our covered by heat shrink tubing and(well not fully....) were working really well (too well) for a while, i hope there not broke .... and i looked over http://kevin.org/frc/faq.htm and didnt find anything to help much, any other ideas???
  #9   Spotlight this post!  
Unread 13-02-2004, 17:55
rwaliany's Avatar
rwaliany rwaliany is offline
R
None #0691 (HartBurn)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 2000
Location: http://www.hartrobot.com
Posts: 137
rwaliany will become famous soon enough
Re: I/R trouble!!!

They break really easy. During shipping, I almost guarantee you that at least one sensor will break. We made our mounts modulized so its like a connector which can be replaced easily.

I recommend doing a printf in each in receiver.c to check if every handler that has sensors attached is receiving a signal in the handler. This is how I tell if a sensor is broken or not. If the handler never gets called to print the debug statement and your sending infra-red signals to it, the sensor is broken.

Thanks,
Ryan Waliany
__________________
R
  #10   Spotlight this post!  
Unread 13-02-2004, 20:50
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: I/R trouble!!!

If they worked before, I have to wonder if you fried them with too much heat when you applied the heat-shrink tubing. That's the only thing I can think of.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #11   Spotlight this post!  
Unread 13-02-2004, 23:05
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,856
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: I/R trouble!!!

I agree with rwaliany's suggestion to test each of your IR sensors.

In addition to the method suggested you can also test each sensor by using one of the regular digital inputs and printf'ing the value. With a working sensor you will see a stream of 1's & 0's when the beacon is on.

[edit]
(I got chased out of the building partway through answering your post last night - need a smiley with z's)

Good practice is to test the components at each stage of construction.
- Unadulterated IR sensor
- After soldering wires to sensor
- After mounting in tube
- On servo
- Full system

Handle the sensors carefully. They are susceptible to static electricity, overheating from soldering/heat guns, incorrect wiring, being knocked around, etc. Only plug them in to a powered down controller and double check your connections on all leads from the sensor to the controller before urning it on.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 14-02-2004 at 11:07.
  #12   Spotlight this post!  
Unread 14-02-2004, 14:50
team 1442 team 1442 is offline
Registered User
#1442
 
Join Date: Feb 2004
Location: Cd. Juarez, mx.
Posts: 3
team 1442 is an unknown quantity at this point
Re: I/R trouble!!!

HOW DOES THE AOUTONOMUS PROGRAM WORK WE CAN`T MAKE OURS WORK PLEASE HHHHHHHHHEEEEEEEEEEEELLLLLLLLPPPPPPPP SOMEONE ANY ONE????
  #13   Spotlight this post!  
Unread 15-02-2004, 13:21
Yellow Eyes's Avatar
Yellow Eyes Yellow Eyes is offline
Programmer
AKA: Brian Novak
#0250 (Dynamos)
Team Role: Programmer
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Albany NY
Posts: 15
Yellow Eyes is on a distinguished road
Send a message via AIM to Yellow Eyes Send a message via MSN to Yellow Eyes
Re: I/R trouble!!!

Our team is having trouble with that as well....it was working, but it seems to be getting worse...glad to see other people are having the same troubles though
__________________
  #14   Spotlight this post!  
Unread 15-02-2004, 21:53
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: I/R trouble!!!

Quote:
Originally Posted by team 1442
HOW DOES THE AOUTONOMUS PROGRAM WORK WE CAN`T MAKE OURS WORK PLEASE HHHHHHHHHEEEEEEEEEEEELLLLLLLLPPPPPPPP SOMEONE ANY ONE????
whew. calm down, take a deep breath. now, tell us what problems you're having. if I told you a program "wasn't working" and didn't say anything more, could you even begin to fix it? we need more information.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #15   Spotlight this post!  
Unread 16-02-2004, 06:54
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: I/R trouble!!!

Post the code that is causing problems. If we can look at it, we may be able to help. Also, tell us what it is supposed to do and what it seems to be doing instead.

Until then, here are my suggestions:
1. Make sure you have a robot.
2. Make sure the robot has motors.
3. Make sure the RC is attched to the motors.
4. Make sure the wheels on the robot touch the ground.
5. Make sure you know assembler; it's so much better than C. (Bah! High level language. )
__________________

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
Anyone else having trouble keeping up with work? D. Gregory General Forum 36 28-03-2004 16:55
Anyone else having trouble with the pneumatics manual? Stu Bloom Pneumatics 15 13-01-2004 01:13
Help...team in trouble trollin1st General Forum 14 25-05-2003 22:20
Having trouble accessing FIRST's site... archiver 2000 1 23-06-2002 22:24
New Haven ball trouble Jeff Rodriguez Regional Competitions 1 04-04-2002 21:47


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

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