PDA

View Full Version : Linking a BS2 and a BS2px



roboboy3
10-27-2009, 04:12 AM
··· 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??

allanlane5
10-27-2009, 04:33 AM
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.

Tumbler
10-27-2009, 05:19 AM
Here you can find how to connect them.
http://forums.parallax.com/showthread.php?p=849307

JD
10-27-2009, 05:47 AM
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 (http://www.parallax.com)