View Single Post
  #8   Spotlight this post!  
Unread 12-02-2011, 14:38
garyk garyk is offline
Programming Mentor: 668, 972, 2643
FRC #0668 (Apes of Wrath)
Team Role: Mentor
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Santa Clara (Silicon Valley) Calif.
Posts: 89
garyk is a jewel in the roughgaryk is a jewel in the roughgaryk is a jewel in the roughgaryk is a jewel in the rough
Re: Have problem on getting analog values from lane tracking sensor

Quote:
Originally Posted by Ether View Post
The default lane-tracking sensors are just NPN switches (hi/lo impedance). They are not intended to source any voltage.

Hook it up as follows:

brown wire to +24volts (solenoid breakout)
blue wire to ground
White wire to a DIO input

The internal pullup on the DIO provides the voltage. The switch just shorts out the voltage (provided by the pullup) to provide the digital hi/lo signal.

The KOP optical sensors are part number 42EF-D1MNAK-a2. The paper data sheet and the plastic bag in which they come says they require 11 - 30 VDC. We have then running fine on 12V from the power distribution board. There's no reason to hook them to 24V. You should save the 24V for the cRIO and the pneumatic solenoids.
__________________

Silicon Valley Regional 2005, 2006 972
Silicon Valley Regional 2007 668 Xerox Creativity Award
Championship Event 2007 668
Portland Regional 2008 668
Silicon Valley Regional 2008 668, 972
Beta Test Team 2008 668 (with 100 & 254)
Silicon Valley Regional 2009 668 Regional Chairman's Award; 2643
Sacramento Regional 2009 668 Winning Alliance (thanks, 1717 & 2473!), 2010 Winning Alliance 3256
CalGames 2006, 2007, 2008, 2009, 2010, 2011 Field Tech
NorCal FTC Regional 2008, 2009 Inspector
Championship Event 2009
San Diego, Silicon Valley Regionals; Champ. Event 2010 668, 2643, 3256
Silicon Valley, Madera Regional 2012 2643
WRRF Programming Instructor 2006-2016
Regional Woodie Flowers Award 2014 2643 Utah Regional

Reply With Quote