Thread: Line Sensors
View Single Post
  #2   Spotlight this post!  
Unread 17-01-2011, 22:09
jee7s jee7s is offline
Texan FIRSTer, ex-frc2789, ex-frc41
AKA: Jeffrey Erickson
FRC #6357
 
Join Date: Nov 2007
Rookie Year: 1997
Location: Dripping Springs, TX
Posts: 314
jee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond repute
Re: Line Sensors

You should find 4 wires coming out of the line/light sensor cable. If you read the data sheet inside, you'll see what each wire is for. In short, you give it supply voltage and ground on the appropriate wires (black for ground, brown? for supply), and the other two wires give you a complimentary output on NPN transistors that works with the digital I/O pins on the digital sidecar. (Don't quote me on the wire colors, check that datasheet.)

That means you should see 01 or 10 for the light and dark conditions (which is which depends on how you plug them into the sidecar, and how you write your program). If you ever see 00 or 11 you've got a fault of some sort. You should be able to do the entire hook up with 2 of the many 3 wire cables that came in the kit, a soldering iron, and some heat shrink tubing.
__________________

2013 Alamo Regional Woodie Flowers Finalist Award Winner
2012 Texas Robot Roundup Volunteer of the Year
Texas Robot Roundup Planning Committee, 2012-present
FRC 6357 Mentor, 2016-
FRC 2789 Mentor, 2009-2016 -- 2 Golds, 2 Silvers, 8 Regional Elimination Appearances

FRC 41 Mentor 2007-2009
FLL Mentor 2006
FRC 619 Mentor 2002
FRC 41 Student 1998-2000

Last edited by jee7s : 17-01-2011 at 22:19. Reason: grammar, corrected colors