Shop OBEX P1 Docs P2 Docs Learn Events
BS2 w/ shift register or BS2p40 for 19 I/Os? — Parallax Forums

BS2 w/ shift register or BS2p40 for 19 I/Os?

InteractivesInteractives Posts: 83
edited 2008-01-05 18:51 in BASIC Stamp
Good morning ladies and gentleman, I have a question for the collective:
I am making a game that will need to have 8 buttons and 11 outputs that will trigger relays via an ULN2003A (or 2). I have a couple of unused BS2s sitting around, but alas: this game needs 19 I/Os, and the BS2 has only 16. Do you guys think it would be easier to use a shift register to consolidate the 8 inputs into 3 pins on the BS2, (and thus freeing up the required 11) or would it just be easier to buy an BS2p40 with all the pins I need?
How difficult is it to read the results of a shift register?
Anyone ever gone down this road?

Comments

  • stamptrolstamptrol Posts: 1,731
    edited 2008-01-05 18:36
    Use the shift register approach. Its a very simple proceedure to read the extra inputs, is fast and reliable.

    The "StampWorks" document on the Parallax site has several examples of how to use the '595 chip.

    Cheers,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • InteractivesInteractives Posts: 83
    edited 2008-01-05 18:51
    Thanks! As it always happens, I just realized that someone asked the exact same question a couple of posts ahead of me... my bad.
Sign In or Register to comment.