View Single Post
  #2   Spotlight this post!  
Unread 19-02-2013, 12:30
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 Proximity Switch

BROWN: PDB +12
BLACK: DI SIG
BLUE: PDB (-)

The three wires coming from the device should be brown, black, and blue. Connect brown to +12 volts (a red Wago terminal on the Power Distribution Board) and blue to power return (the adjacent black Wago terminal on the Power Distribution Board). Black is the signal output. Since the device you linked to is an open-collector NPN transistor output, it can be connected directly to the SIG pin on a Digital Input on the Digital Sidecar. The built-in pullup resistor on the sidecar will pull the signal to 5 volts when the sensor is not active, and the sensor will pull the signal to ground when what it's sensing is within 2 mm.