Shop OBEX P1 Docs P2 Docs Learn Events
Linking a BS2 and a BS2px — Parallax Forums

Linking a BS2 and a BS2px

roboboy3roboboy3 Posts: 1
edited 2009-10-26 21:47 in BASIC Stamp
··· Does anyone know the best way to link 2 stamps? I am useing a BOE board and a super carrier board for the BS2px.Programming nightmare??

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2009-10-26 20:33
    Nope, it's really easy.

    Use SERIN/SEROUT and three wires -- one TX from BS2 to BS2px, one RX from BS2px to BS2, and a ground wire to connect the two boards.
    Then program one as a 'slave' to listen most of the time until the 'master' tells it to respond.
    Program the 'master' to query the 'slave' when it wants to transfer data.
  • TumblerTumbler Posts: 323
    edited 2009-10-26 21:19
    Here you can find how to connect them.
    http://forums.parallax.com/showthread.php?p=849307
  • JDJD Posts: 570
    edited 2009-10-26 21:47
    Roboboy3,

    Here is a small snippet that should help. This program uses SERIN (on·a BS2) and SEROUT (on a BS2px), both on PIN 10 and communicating at 9600 baud;·this is not a two way communication demo but could be converted to do so pretty easy.·Hopefully with this and·the other help above you can get your project up and running.

    Let us know of the results,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Respectfully,


    Joshua Donelson
    www.parallax.com
Sign In or Register to comment.