View Single Post
  #10   Spotlight this post!  
Unread 31-03-2008, 12:51
adamdb adamdb is offline
Registered User
#1583
 
Join Date: Feb 2005
Location: Parker, CO
Posts: 64
adamdb has a spectacular aura aboutadamdb has a spectacular aura aboutadamdb has a spectacular aura about
Re: Connecting custom sensor to RC dig I/O

As suggested, I would definitely hook it up to an analog port and do the comparison as shown. We tried to use a homemade IR sensor two years ago that had similar on/off voltage ranges and apparently the "off" wasn't off enough for a digital input. The reading from the sensor never changed when connected to the digital port. We ended up not using the sensor as it was a last minute thing and we didn't think to hook it up to an analog port and try it that way.
__________________
Adam Bryant
Programming Mentor
Team 1583
Ridge View Academy Rambotics
Reply With Quote