Go to Post As long as teams keep showing their consistency in innovation, FIRST will keep dazzling us all. - Amanda Morrison [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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-2004, 00:14
D.Viddy's Avatar
D.Viddy D.Viddy is offline
Registered User
AKA: Dylan Vester
FRC #3176 (Purple Precision)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Camby, IN
Posts: 44
D.Viddy is an unknown quantity at this point
IR sensor trouble

We are pretty sure that we have our IR sensor all hooked up right, but we are not getting a consistent output. When our sensor is pointed directly at the beacon (within 2 inches), we still get alot of 1s and not very many 0s. When we completely cover the sensor up, we get the same pattern. The only way the pattern stops is when we unplug the beacon. Is this normal output?
__________________
.................................................. .........
Dylan Vester - (Programmer)
Running a P4 1.8 Ghz
Team 998, We can't win...
.................................................. .........
  #2   Spotlight this post!  
Unread 30-01-2004, 07:58
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: IR sensor trouble

Quote:
Originally Posted by D.Viddy
We are pretty sure that we have our IR sensor all hooked up right, but we are not getting a consistent output. When our sensor is pointed directly at the beacon (within 2 inches), we still get alot of 1s and not very many 0s. When we completely cover the sensor up, we get the same pattern. The only way the pattern stops is when we unplug the beacon. Is this normal output?
The sensors are very sensitive to light coming in from all sides of the package not just the front. This allows it to "see" reflections from everywhere. Try putting electrical tape around the sides and back of the sensor and try again. You have crossed the wires, right? The sensor is not pin to pin to a PWM cable.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #3   Spotlight this post!  
Unread 30-01-2004, 09:49
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,800
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: IR sensor trouble

Quote:
Originally Posted by D.Viddy
We are pretty sure that we have our IR sensor all hooked up right, but we are not getting a consistent output. When our sensor is pointed directly at the beacon (within 2 inches), we still get alot of 1s and not very many 0s. When we completely cover the sensor up, we get the same pattern. The only way the pattern stops is when we unplug the beacon. Is this normal output?
It depends on how you have the IR sensors hooked up.
If you are testing with just an IR sensor hooked to a digital input and a printf, then the output you are seeing is correct. As Al said the "bald" IR sensor will just tell you that the beacon is on in the room somewhere, and covering it with your hand won't prevent that.

Your next step is to shield the IR sensor so it isn't exposed on the sides or back and use Kevin Watson's Tracker s/w with the IR sensor handled by an interrupt. See Kevin's web site atr http://kevin.org/frc/ for his IR FAQ and software.

With the tracker s/w you won't be able to look at 1's and 0's at all. They should be hooked to the interrupts and a printf in an interrupt handler can play havoc with the code sequencing, because it can take so long. There are, however, other variables you can check to see that it's working correctly.

Look in the "Programming" forum for most IR discussions.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 30-01-2004 at 10:17.
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


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

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