Shop OBEX P1 Docs P2 Docs Learn Events
Connecting Stamp I/O pins — Parallax Forums

Connecting Stamp I/O pins

Bill ChennaultBill Chennault Posts: 1,198
edited 2007-04-09 20:16 in BASIC Stamp
All--

How do·I connect a dedicated Stamp output pin to a dedicated Stamp input pin on another Stamp?·I want to·experiment with some VERY rudimentary communication among Stamps. I want a Stamp to do some work, then tell another Stamp the results. The results may be as simple as setting a pin to indicate the work has been performed, or setting a pin to indicate the work has been done followed by a byte representing the work done. (I only need to communicate a few inches; say from one BOE to another as closely as I can place them.)

It sounds simple. Is it?

Thanks.

--Bill
ps I am fairly certain that I have seen this discussed. But, my SEARCH revealed little.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-04-09 16:31
    Theoretically, you could just connect the two pins together assuming that the two Stamps have a common ground connection. In practice, you should use a current limiting resistor to connect the pins, anywhere from 220 ohms to 10K in value, just in case you have a programming error and the two pins both get set to output mode at opposite levels (one low and one high) which would cause a short circuit and possibly burn out one or both I/O pins.
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2007-04-09 17:54
    Mike--

    Does the current limiting resistor simply connect the two pins? (Forgive my ignorance.)

    Thanks!

    --Bill

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You are what you write.
  • allanlane5allanlane5 Posts: 3,815
    edited 2007-04-09 18:15
    Yup, the 220 ohm current limiting resistor has one end connected to one BS2, and the other end connected to the pin on the other BS2.
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2007-04-09 18:18
    allanlane5--

    Thank you so much!

    --Bill



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You are what you write.
  • LSBLSB Posts: 175
    edited 2007-04-09 20:07
    Bill--

    http://www.parallax.com/dl/docs/cols/nv/vol1/col/nv16.pdf·is a primer on serial communications and seems like it may be of help.
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2007-04-09 20:16
    LSB--

    Thank you! I saved it on my machine!

    --Bill

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    You are what you write.
Sign In or Register to comment.