Thread: Line Sensors
View Single Post
  #4   Spotlight this post!  
Unread 18-01-2011, 05:40
jtdowney jtdowney is offline
Boiler Up
AKA: John Downey
FRC #4302 (Robophins)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Chicago
Posts: 300
jtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant future
Re: Line Sensors

Quote:
Originally Posted by KHall View Post
Connect the white and black wires to a DIO port on the sidecar. Each sensor acts like a simple switch. As a switch, the signal wires must connect to the outside two pins of a DIO port. (One sensor per DIO port). And since it is just a switch (on / off ) it doesn't matter which color (black or white) goes to which of the two pins on the DIO port.
We found that since the two signal wires (white and black) are just logically oposite that only wiring one was required. Just be sure you keep it consistent between the sensors you used otherwise your code will be more difficult to follow.

In our initial tests yesterday we tracked white masking tape on a grey floor and later duct tape on a white floor so between those we had to adjust our code to flip the value we got since the contrast was backwards.
__________________
John Downey
Lead Robot Inspector - Purdue IndianaFIRST District
Whitney Young Magnet High School/Robophins (FRC 4302) - Mentor (2013-current)
Midwest Regional Planning Committee - Member (2012-current)
Boilermaker Regional Planning Committee - Member (2011-2014)
Robot Inspector (2008-current)
Purdue FIRST Programs - Staff Advisor (2008-2011)
Lafayette-Jefferson High School/Precision Guessworks (FRC 1646) - Mentor (2006-2011)