Shop OBEX P1 Docs P2 Docs Learn Events
detecting high/low signals from different stamp — Parallax Forums

detecting high/low signals from different stamp

MatthewMatthew Posts: 200
edited 2004-12-31 07:12 in BASIC Stamp
Say I had two stamps, "stamp a" and "stamp b"

On "stamp a", I make P1 an input, and P2 an output, and P3 an input
On "stamp b", I make P9 an output

If P2 on "stamp a" is connected to P1 on "stamp a", then P1 can detect high and low signals from P2.

But can P3 on "stamp a" detect high and low signals from P9 on "stamp b" if the two were connected?



·

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-12-31 06:23
    Be VERY careful making connections like this between your BASIC Stamps ... a simple programming error could cause a pin to go POOF! Do this:

    Stamp A
    [noparse][[/noparse]470 ohm]
    Stamp B

    That way, if one pin is made an output high and the other an output low (an accident through a programming mistake), the 470 ohm resistor will protect the BASIC Stamp modules.

    On your programming logic ... there is no need for P1 on Stamp A to detect what P2 is doing -- it's on the same module.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • MatthewMatthew Posts: 200
    edited 2004-12-31 07:12
    Ahh, righttt, thanks Jon!
Sign In or Register to comment.