Shop OBEX P1 Docs P2 Docs Learn Events
SX Pin Input — Parallax Forums

SX Pin Input

ajajackajajack Posts: 26
edited 2008-09-19 02:01 in General Discussion
Hi,

I am working on a·SX project that requires me to read the output of a switch.· The switch has a two wire output and three positions-backward, off, and forward.· When in the backward position·the·first wire is·+ 2V and the other GND.· When in the off position both wires are grounded.· When in the forward position the·second wire is GND and the first is +2 V.· I would like to use a SX28 to read the two wires and determine the switches position.· Any suggestions would be greatly appreciated.

Thank You,
AJ

Comments

  • VelocitVelocit Posts: 119
    edited 2008-09-19 02:01
    Just connect them to any I/O pin on the SX and read the inputs as normal. Provided the +2V signal doesn't dip below the 1.4V TTL threshold, you shouldn't have a problem reading the switch positions.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    -Paul
Sign In or Register to comment.