View Single Post
  #2   Spotlight this post!  
Unread 12-02-2011, 11:45
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Have problem on getting analog values from lane tracking sensor

Quote:
Originally Posted by DCRich View Post
The default IR sensors put out 1 v low and 12 volt high so they are not true digital signals.
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.



Last edited by Ether : 12-02-2011 at 11:57.
Reply With Quote