|
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
|