Shop OBEX P1 Docs P2 Docs Learn Events
Multiple inputs — Parallax Forums

Multiple inputs

ArchiverArchiver Posts: 46,084
edited 2003-02-21 08:05 in General Discussion
I need to monitor some 32 switches. I know how to increase the
capability of the BS2 using serial latch chips such as the ucn6818.
Using the shiftout, I can control up to 32 led's or other low
current devices using only 3 pins of the BS2. Is there anything
similar but for input uses?


Al

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-02-21 02:35
    You can cascade four 74HC165s together to get 32 inputs using just three
    Stamp lines and SHIFTIN. Just remember that you'll need to dedicate a bit of
    memory for every one of your extra inputs, so you need to have four bytes
    available.

    -- Jon Williams
    -- Parallax

    In a message dated 2/20/2003 8:14:45 PM Central Standard Time,
    brownstamp@y... writes:

    > I need to monitor some 32 switches. I know how to increase the
    > capability of the BS2 using serial latch chips such as the ucn6818.
    > Using the shiftout, I can control up to 32 led's or other low
    > current devices using only 3 pins of the BS2. Is there anything
    > similar but for input uses?



    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-21 04:03
    And lets not forget the nice PCF8574 I2C bi-directional shift register! Just
    two pins for up to 64 inputs.

    My 'lectronic Newb site http://members.shaw.ca/pmeloy/
    Original Message
    From: <jonwms@a...>
    To: <basicstamps@yahoogroups.com>
    Sent: Thursday, February 20, 2003 6:35 PM
    Subject: Re: [noparse][[/noparse]basicstamps] Multiple inputs


    > You can cascade four 74HC165s together to get 32 inputs using just three
    > Stamp lines and SHIFTIN. Just remember that you'll need to dedicate a bit
    of
    > memory for every one of your extra inputs, so you need to have four bytes
    > available.
    >
    > -- Jon Williams
    > -- Parallax
    >
    > In a message dated 2/20/2003 8:14:45 PM Central Standard Time,
    > brownstamp@y... writes:
    >
    > > I need to monitor some 32 switches. I know how to increase the
    > > capability of the BS2 using serial latch chips such as the ucn6818.
    > > Using the shiftout, I can control up to 32 led's or other low
    > > current devices using only 3 pins of the BS2. Is there anything
    > > similar but for input uses?
    >
    >
    >
    > [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/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-21 08:05
    If you just want to monitor switches, there may be a simpler
    solution, see http://www.emesystems.com/BS2rct.htm#switches

    BTW I recommend a closer look to the other chapters at emesystems.

    Regards
    Adrian
Sign In or Register to comment.