Shop OBEX P1 Docs P2 Docs Learn Events
What would be the closest thing to the BS2, but with more I/O pins? — Parallax Forums

What would be the closest thing to the BS2, but with more I/O pins?

TonyATonyA Posts: 226
edited 2005-09-05 17:44 in BASIC Stamp
Hi,

I am wondering about which stamp is the closest thing to the BS2, but with more I/O pins?

Thank you,
Tony

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-09-05 17:03
    The only BASIC Stamp that has more IO pins than the stock BS2 is the BS2p40. It will run your BS2 program(s), with some modifications required to time-critical instructions like SEROUT, PULSOUT, etc.· That said, if you're just looking to add simple inputs and outputs, using shift registers (less than a buck) is an easy way to do it).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • TonyATonyA Posts: 226
    edited 2005-09-05 17:10
    Hi Jon,

    Can you refer my to infop on using shift registers with the BS2?

    Thanks again,
    Tony
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-09-05 17:11
    Sure: Google 74HC595 and 75HC165. Checkout StampWorks, it has projects for both. StampWorks 2.0 (being edited now) shows how to combine them using only four IO lines (schematic and code attached -- do NOT leave out the 4.7K resistor).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax

    Post Edited (Jon Williams (Parallax)) : 9/5/2005 5:14:41 PM GMT
  • KenMKenM Posts: 657
    edited 2005-09-05 17:13
    http://www.parallax.com/dl/docs/cols/nv/vol1/col/nv43.pdf

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Ken
  • TonyATonyA Posts: 226
    edited 2005-09-05 17:15
    Hi,

    Thanks for the info, very much appreciated. Thank you.

    Tony
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2005-09-05 17:44
    Tony -

    You may also want to look at the Microchip MCP23016 for inexpensive (Mouser $1.25 US approx.), 16 bit, bi-directional (input and/or output) port expansion as well. With the BS-2 however, it requires a bit of bit-banging to implement the I2C protocal, which protocal is native to any of the BS-2p series Stamps which have a built-in set of I2CREAD and I2CWRITE commands. Here is a link to the chip, if you're interested:
    http://www.microchip.com/stellent/idcplgidcplg?IdcService=SS_GET_PAGE&nodeId=1335&dDocName=en010412

    I'd be happy to supply a link to the BS-2 bit-banging programming routines for I2C access, if you decide to head in that direction. Just shout if that's of interest to you.

    Regards,

    Bruce Bates
Sign In or Register to comment.