Shop OBEX P1 Docs P2 Docs Learn Events
Multiple-Stamps? — Parallax Forums

Multiple-Stamps?

The DoctorThe Doctor Posts: 37
edited 2009-07-10 21:19 in BASIC Stamp
Anyone have any tips or tricks to using chaining two stamps together?· How do you program the second stamp?· How do they communicate?· Anyone have a link to a NV article or Stamp forum that covers this for beginners?· Thanks!

Post Edited (The Doctor) : 6/29/2009 6:31:11 PM GMT

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-06-29 19:49
    Nuts and Volts Columns #55 and #56 discuss a multi-Stamp network and include sample code as usual.
  • The DoctorThe Doctor Posts: 37
    edited 2009-06-30 12:19
    Thanks Mike!
  • The DoctorThe Doctor Posts: 37
    edited 2009-07-10 20:14
    I took a look at these two columns, and they are for a BS2-SX. I just have two BS2-IC. Any other thoughts?
  • $WMc%$WMc% Posts: 1,884
    edited 2009-07-10 20:29
    Doctor

    I haven't look at the two columns listed, But if you take a look at the CASE statement it will help you with the timing differences between one Stamp and another!

    Read through the Parallax syntax manual for PBasic. It has all the info you need to convert the timing!

    _______$WMc%__________

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Truth is out there············································ BoogerWoods, FL. USA
  • dev/nulldev/null Posts: 381
    edited 2009-07-10 21:16
    Hi, I have a project with 2 stamps and a Javelin connected together.
    What you want to do is to have one of the Stamps as a Master, and the other(s) as slaves, then it becomes fairly easy to make a good communication scheme.
    You use the SEROUT and SERIN serial commands to communicate. I use 2400 baud, which works seemlessly.

    I've had to add a WAIT parameter to my SERIN command on the Slave, because there is a lot of noise getting through, the SERIN on the slave gets triggered too often.
    So my SERIN on the Slave looks like this:
    SERIN pMasterRX, N2400, 500, Main, [noparse][[/noparse]WAIT("!"), STR mystring\3]

    I don't use flow control, as described in the Nuts&Volts column, but it is OK to use that.

    Look in the nuts&volts column, it's very informative.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Don't worry. Be happy
  • dev/nulldev/null Posts: 381
    edited 2009-07-10 21:19
    OH, and I forgot, I am waiting for two bluetooth modems I ordered from SparkFun. With these little gadgets, you can have wireless communication between Stamps up to 100m. They also interface with serial protocol, so you wood use SERIN and SEROUT as well. ooh, I can't wait to test those things.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Don't worry. Be happy
Sign In or Register to comment.