View Single Post
  #9   Spotlight this post!  
Unread 06-02-2012, 22:17
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Wiring the photosensors (Rockwell)

The photosensor does not output a voltage. It uses its NPN transistor driver to either pull the output wire to ground or to leave it alone. You need to connect it to a pullup resistor in order to be able to measure anything with a voltmeter.

Fortunately, the DIO signal pins on the Digital Sidecar provide exactly the pullup resistor you need. If the photosensor output is connected to a DIO signal pin, you will read 5 volts when the output is inactive, and 0 volts when it is active. (The white wire will be active when an object is detected.)