View Single Post
  #3   Spotlight this post!  
Unread 03-04-2012, 11:48
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,112
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: homemade encoder issues

According to the datasheet, the NTE3100 has an NPN phototransistor. If that's the case, Brian McGinty has connected it very oddly.

Try connecting the "bottom" of the detector to ground (the "-" pin on a Digital Sidecar's DIO connector) and use the "top" of the detector for the output (the "SIG" pin). The Digital Sidecar's internal pullup resistor will give you a false reading when the sensor is illuminated, and a true reading when the LED is blocked.
Reply With Quote