View Single Post
  #6   Spotlight this post!  
Unread 06-03-2008, 19:06
eugenebrooks eugenebrooks is offline
Team Role: Engineer
AKA: Dr. Brooks
no team (WRRF)
 
Join Date: Jan 2004
Rookie Year: 2001
Location: Livermore, CA
Posts: 601
eugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond repute
Re: 4V - 5V signal on Digital Input

Quote:
Originally Posted by tdlrali View Post
Thanks guys, I'll look into those options. The only reason we don't want to use analogs is because we're really just looking for on vs. off, and the additional sampling required for using an analog input is overkill.
Building custom circuitry, when the an analog input can get your
on-off state is overkill. We ran out off digital inputs this
year and needed one more. We wired the switch to a
pullup resistor and an analog input, coded to set a variable to 0 when
the voltage was below 2.5 volts and to 1 when the voltage was
above. It worked just fine.

Eugene