Shop OBEX P1 Docs P2 Docs Learn Events
Can you link 2 Basic Stamps Hommework Boards — Parallax Forums

Can you link 2 Basic Stamps Hommework Boards

MrFusMrFus Posts: 27
edited 2007-06-10 03:05 in BASIC Stamp
It is posible to connect two Homework Boards?

I mean connect one of the I/O pins from board number 1 to one of the pins on the second board and send a series of high and low signals from the first to work as trigger to execute some especific subrutines?

How the electronics will be connected...?

Post Edited By Moderator (Chris Savage (Parallax)) : 7/11/2007 12:20:00 AM GMT

Comments

  • Kevin WoodKevin Wood Posts: 1,266
    edited 2007-06-09 08:56
    Sure, it's no problem. Take a look at the PBasic help file in the editor. At the bottom of the SEROUT & SERIN commands there are some schematics on how to connect multiple Stamps. Read both; I think there are some minor differences in the text.

    The same info is also in the Basic Stamp Syntax and Reference Manual, which you can download in pdf form. There are probably a couple of articles in the Nuts & Volts columns, which can also be downloaded from the Parallax site.

    Take a look at the schematics first, and post if you need more help.
  • MrFusMrFus Posts: 27
    edited 2007-06-09 14:11
    Thnaks for the info·tongue.gif· I will read today after work the help files and the manual reference of the BS2... I was looking to maybe connect my board to the robosapien V1 sistem and add autonomy to the robot plus an extra on sensors, but at this point I have found no to much information if some one already do something like that and how the work the software... cry.gif

    So now after plan 1 is not going to good I get to plan 2 that is design my own microbot, but using 2 boards to have a big big BIG number or I/O options to add features.

    Thanks and after read i I have some questions I will go back and when I start bulding something I will post the progress or the final design.

    Post Edited By Moderator (Chris Savage (Parallax)) : 7/11/2007 12:19:53 AM GMT
  • MrFusMrFus Posts: 27
    edited 2007-06-10 03:05
    OK I have read the help file on the serin and serout command... I think I have the idea at this point how the command work and the sintaxis, and I think I know how will my design work (at less I have the concept... still a·long road to implement the teorical to practical)

    I just want to confirm If I have get the idea clear:

    On a fisical way the Boards are going to be connected with 2 cables, one will have a 1k resistor connecting between P1 on both boards and the second one will connect the P0·and·a 10KΩ resistor connected to the Vss from both the boards... is this correct?

    On that way the BS will use the Pin 1 to send·and recieve the data and the Pin 0 to monitor the·change of the status of the pin·1 and know when the communication has stop (its like on the example on the book using the pushbutton).

    Then on software level, I will use the command serin to make the BS "listen" the P1 for the begining of a chain of data sended (plain numbers or ascii code for text input) and the serout on the other board·to set the microcontroler to use the P1 to start sending info... on the sintaxis I will determine the speed of the transfer, lenght, and some other details... the use of the P0 will help to control the pauses between bits to avoid send·information too fast and lose part of it...

    I hope I get the idea clear... today I get a second homework board from radioshack tongue.gif ...

    I will open the box and sort the electronic components, and put the board with them on a safe place until I finish to read the book of the first one (its really a good complement to the things I learn with my boe-bot, Im thinking to get another of the books as soon I finish this one, maybe the one that explain the use of IR comunication...) and I start working on this project.

    Post Edited By Moderator (Chris Savage (Parallax)) : 7/11/2007 12:19:38 AM GMT
Sign In or Register to comment.