Thread: Line Sensors
View Single Post
  #14   Spotlight this post!  
Unread 20-01-2011, 00:30
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

Quote:
Originally Posted by jtdowney View Post
We found that since the two signal wires (white and black) are just logically oposite that only wiring one was required.
True, this will work to detect light and dark. But, remember there are three states: light, dark, and fault. For example, how would you tell between "logical high" and "the sensor isn't working"...they both would give you +V on the DIO pin.

Quote:
Originally Posted by Al Skierkiewicz View Post
...I am thinking that the DSC is not receiving power from the PD. When the DSC is connected to the Crio module, but +12v is not applied from the PD, some of the power LEDs do come on through leakage in the module. They do not, however, provide a pullup voltage for digital inputs. The first indication of a problem here is the failure of the robot signal light.
I'd say Al's on the money here. The DSC is deceptive, as it will light up when you plug it into the cRIO, but it's not fully functional. Make sure you're attached to the power distribution board via the DSC's wago connector, and check the +6V light on the DSC. If it isn't lit, you don't have pullup.

Also, I'd suspect that 0.4-0.7V observation was an artifact of the internals of the ADC and the NPN transistor that's driving the light sensor signal line.
__________________

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 : 20-01-2011 at 00:31. Reason: bad markup