Go to Post If you are stupid about this and violate the rules, and thereby cause your alliance to lose a match, then your alliance partners will gang up on you and violate your robot. - 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 03-03-2004, 13:28
HuskieRobotics HuskieRobotics is offline
Registered User
#1352
 
Join Date: Feb 2004
Location: Stratford NorthWestern
Posts: 34
HuskieRobotics has a little shameless behaviour in the past
Exclamation wiring and installing a light sensor

we need to know where the sensor wires need to be placed and how to program it


we also need to know the degrees of the sensor too for positioning

Last edited by HuskieRobotics : 03-03-2004 at 15:09.
  #2   Spotlight this post!  
Unread 03-03-2004, 13:33
Greg Needel's Avatar Unsung FIRST Hero
Greg Needel Greg Needel is offline
REVving up for a new season
FRC #2848 (All-sparks)
Team Role: Engineer
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Dallas, TX
Posts: 3,107
Greg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond repute
Re: wiring and installing a sensor

what kind of sensor?
  #3   Spotlight this post!  
Unread 03-03-2004, 13:38
HuskieRobotics HuskieRobotics is offline
Registered User
#1352
 
Join Date: Feb 2004
Location: Stratford NorthWestern
Posts: 34
HuskieRobotics has a little shameless behaviour in the past
Re: wiring and installing a sensor

the kind we need for following the white line
its also a banner brand

Last edited by HuskieRobotics : 03-03-2004 at 13:43.
  #4   Spotlight this post!  
Unread 03-03-2004, 15:21
jacob_dilles's Avatar
jacob_dilles jacob_dilles is offline
Registered User
AKA: theshadow
FRC #0620 (WarBots)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Vienna, VA
Posts: 245
jacob_dilles will become famous soon enough
Send a message via AIM to jacob_dilles
Re: wiring and installing a sensor

Quote:
Originally Posted by HuskieRobotics
the kind we need for following the white line
its also a banner brand
the banner sensors that first gives us are tricky little felers. the are IR, and have a built in source which makes it nice and easy. they run on 12v and out put 5 to a normaly open and a normaly closed output. in order to wire it do the following:

brown wire - this is the postitive. connect it to +12V
blue wire - this is the negitive. connect it to ground (on the battery)
black wire - N.O. wire
white wire - N.C. wire

you then can choose between N.O. and N.C. (it REALY doesnt matter). you connect the one you choose to the digital in. for our sake, were gonna say you plug it into digital input 10.

now to code it, in the code first you have to set it as an input. this is done for you in the default code:

Code:
digital_io_10 = 1;
(autonomus or otherwise) you can look at the variable every single loop by saying:
Code:
if(rc_dig_in10 == 1) {
 //do this if its ON
} else {
 //do this if its OFF
}
i hope this helps you
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"
  #5   Spotlight this post!  
Unread 03-03-2004, 16:10
HuskieRobotics HuskieRobotics is offline
Registered User
#1352
 
Join Date: Feb 2004
Location: Stratford NorthWestern
Posts: 34
HuskieRobotics has a little shameless behaviour in the past
Re: wiring and installing a sensor

Thank you!!!!!
  #6   Spotlight this post!  
Unread 15-03-2004, 13:52
bstempi bstempi is offline
Captain
#0708 (Hardwired Hatters)
Team Role: Student
 
Join Date: Feb 2004
Location: Horsham, Pa
Posts: 23
bstempi is an unknown quantity at this point
Send a message via AIM to bstempi
Re: wiring and installing a sensor

Quote:
Originally Posted by jacob_dilles
the banner sensors that first gives us are tricky little felers. the are IR, and have a built in source which makes it nice and easy. they run on 12v and out put 5 to a normaly open and a normaly closed output. in order to wire it do the following:

brown wire - this is the postitive. connect it to +12V
blue wire - this is the negitive. connect it to ground (on the battery)
black wire - N.O. wire
white wire - N.C. wire

you then can choose between N.O. and N.C. (it REALY doesnt matter). you connect the one you choose to the digital in. for our sake, were gonna say you plug it into digital input 10.

now to code it, in the code first you have to set it as an input. this is done for you in the default code:

Code:
digital_io_10 = 1;
(autonomus or otherwise) you can look at the variable every single loop by saying:
Code:
if(rc_dig_in10 == 1) {
 //do this if its ON
} else {
 //do this if its OFF
}
i hope this helps you
but doesn't FIRST supply us with the red LED banner sensors? Do we wire these the same way?
  #7   Spotlight this post!  
Unread 15-03-2004, 14:28
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: wiring and installing a sensor

the banner sensors are little yellow boxes with a red lens - they send out a pulsed infrared light, and look for it to be reflected back - usually the carpet will not reflect it, but the tape or white paint will

the little sensors FIRST gave us that are about a 1/4" square with three leads are infared recievers that are designed to pick up the beacon from the center of the field - there is a whole page of stuff on those on the innovationfirst.com website - under FIRST robotics / documents / beacon section

they are a little more complicated - you pretty much need to wire them to rc_dig_in_01 or 02 and use the interrupt flags to detect when they change state - also they need to be enclosed because they will pick up the IR signal from almost all directions the way they are.
  #8   Spotlight this post!  
Unread 26-03-2004, 10:49
thoughtful's Avatar
thoughtful thoughtful is offline
Registered User
FRC #1219 (Emery Iron Eagle)
Team Role: Alumni
 
Join Date: Nov 2003
Location: Toronto,Canada
Posts: 291
thoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to beholdthoughtful is a splendid one to behold
Re: wiring and installing a sensor

Hello,
Can someone please kindly tell me if last year's banner sensors are allowed in this years competition

THnx
__________________
.:Bringling Brains to Life:.

03,04,05-Team 1219 Captain
2003 Rookie all Start @ GTR
2005 Galileo Semi-Finalist & Alliance captain
06-Team 1219 Mentor
2006 Radio Shack Innovation in control @ Waterloo
  #9   Spotlight this post!  
Unread 26-03-2004, 13:48
omega's Avatar
omega omega is offline
Registered User
#1352
 
Join Date: Mar 2004
Location: Stratford Northwestern
Posts: 11
omega is an unknown quantity at this point
Re: wiring and installing a sensor

yes they are
  #10   Spotlight this post!  
Unread 26-03-2004, 19:21
KevinB's Avatar
KevinB KevinB is offline
Registered User
AKA: Alum
no team
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2001
Location: AL
Posts: 188
KevinB will become famous soon enoughKevinB will become famous soon enough
Send a message via ICQ to KevinB
Re: wiring and installing a sensor

Quote:
Originally Posted by thoughtful
Can someone please kindly tell me if last year's banner sensors are allowed in this years competition
They are allowed if they are available from Digikey, Future-Active, or Newark-In-One and you account for their cost.
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 02:52.

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