Linking a BS2 and a BS2px
roboboy3
Posts: 1
··· 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
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.
http://forums.parallax.com/showthread.php?p=849307
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