Shop OBEX P1 Docs P2 Docs Learn Events
6 switches on 1 input pin — Parallax Forums

6 switches on 1 input pin

ArchiverArchiver Posts: 46,084
edited 2003-02-11 21:55 in General Discussion
Hi,
I have a problem. I’m using a BS2P-24 pins and I only have one “input” pin
left for my push buttons. Is it possible to create something so my
controller would recognize which button has been pressed? I thought that the
LOOKDOWN command would fit perfect. I think about working with the formula
T=R.C (resistance and capacitor) but I haven’t figured out how I could
create it. Could anybody give me a program example also a circuit example so
I can build my circuit board.

Kindly regards

Tim, a student from Belgium


[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-02-11 21:29
    >Hi,
    >I have a problem. I’m using a BS2P-24 pins and I only have one “input” pin
    >left for my push buttons. Is it possible to create something so my
    >controller would recognize which button has been pressed? I thought that the
    >LOOKDOWN command would fit perfect. I think about working with the formula
    >T=R.C (resistance and capacitor) but I haven’t figured out how I could
    >create it. Could anybody give me a program example also a circuit example so
    >I can build my circuit board.
    >
    >Kindly regards
    >
    >Tim, a student from Belgium

    http://www.emesys.com/BS2rct.htm#switches
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-11 21:31
    Hi,
    I have a problem. I’m using a BS2P-24 pins and I only have one “input” pin
    left for my push buttons. Is it possible to create something so my
    controller would recognize which button has been pressed? I thought that the
    LOOKDOWN command would fit perfect. I think about working with the formula
    T=R.C (resistance and capacitor) but I haven’t figured out how I could
    create it. Could anybody give me a program example also a circuit example so
    I can build my circuit board.

    Kindly regards

    Tim, a student from Belgium


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-11 21:31
    I think you are headed in the right direction. Take a look at the RCTIME
    command in the Stamp manual. I think there was something in the Nuts & Volts
    articles also.

    Original Message

    I have a problem. I'm using a BS2P-24 pins and I only have one "input" pin
    left for my push buttons. Is it possible to create something so my
    controller would recognize which button has been pressed? I thought that the
    LOOKDOWN command would fit perfect. I think about working with the formula
    T=R.C (resistance and capacitor) but I haven't figured out how I could
    create it. Could anybody give me a program example also a circuit example so
    I can build my circuit board.
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-11 21:55
    Tim,
    See Parallax application note #18 "One pin many switches" on the (very
    helpful!) Parallax website.
    Dennis

    Original Message
    From: TLD-NV [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=1fKvD7ISBgEIVkZPJCVpbHOKlksI63EKzXSk9cVLsqHXNlZxdn8eK9yXmkB37I8LmZEXCXShfUiQuMXuArE4LBY]peter.christiaen@s...[/url
    Sent: Tuesday, February 11, 2003 1:32 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] 6 switches on 1 input pin


    Hi,
    I have a problem. I'm using a BS2P-24 pins and I only have one "input"
    pin left for my push buttons. Is it possible to create something so my
    controller would recognize which button has been pressed? I thought that
    the LOOKDOWN command would fit perfect. I think about working with the
    formula T=R.C (resistance and capacitor) but I haven't figured out how I
    could create it. Could anybody give me a program example also a circuit
    example so I can build my circuit board.

    Kindly regards

    Tim, a student from Belgium


    [noparse][[/noparse]Non-text portions of this message have been removed]


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject
    and Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to
    http://docs.yahoo.com/info/terms/
Sign In or Register to comment.