Shop OBEX P1 Docs P2 Docs Learn Events
Using The Propeler To Monitor Analog Switches — Parallax Forums

Using The Propeler To Monitor Analog Switches

beazleybubbeazleybub Posts: 102
edited 2010-05-09 01:28 in Propeller 1
Hi,

I'm new to the propeller and have some questions about I/O.

I would like to propeller to monitor a fairly large number of analog contact switches using PollIO. I'm trying to accomplish this using as little of the props pins as possible to read these inputs. Can anyone suggest a way to do this?

Thanks


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
How can there be·nothing? Nothing is something!

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-05-09 00:46
    What do you mean by "analog contact switches"? Contact switches are digital in nature. The switch is either closed or open (or bouncing between those states).

    If you have a large number of contact closures, you could do the same thing that is done with Stamps, use a 74HC165 parallel to serial shift register. You'd have up to 8 switches per 74HC165 and you could cascade them for more. Each string of shift registers would need to use 3 Prop I/O pins (clock, data, shift vs. parallel load). You could run them from the same 3.3V used by the Prop.
  • beazleybubbeazleybub Posts: 102
    edited 2010-05-09 01:28
    Hi Mr. Green!

    Pardon me, I speak ( Or write for that matter ) the way I see things because I'm not too keen on proper lingo [noparse]:)[/noparse]

    I'm aware most switches are either·0 or a 1 in logic. I should have said a mechanical switch.
    I appreciate your 74HC165 suggestion. That's exactly what I was looking for! I had left out I would be using I2C.

    Thank you very much. You are as usual a great asset and teacher·to the forums.



    ·


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    How can there be·nothing? Nothing is something!

    Post Edited (beazleybub) : 5/9/2010 1:35:13 AM GMT
Sign In or Register to comment.