Shop OBEX P1 Docs P2 Docs Learn Events
Parallax Transmitter, reciever and serial communication — Parallax Forums

Parallax Transmitter, reciever and serial communication

ShanShan Posts: 6
edited 2008-01-11 02:34 in BASIC Stamp
I'm using 27980-ParallaxRFTransmitter and 27981-ParallaxRFReceiver to communicate in between two robots. Both robot have transmitter and reciever. I connect the transmitter and reciever into the BS2 board in each robot. And i was able to communicate in between two robots.

Now my problem is my main controller is BS2P. not BS2. I'm using BS2 only for connect transmitter and reciever. When i switch on i want BS2P of one robot send data to BS2·of the same robot. Then that robot transmitter·which connects to·the BS2 board must transmit to the other robot reciever which connects to BS2 board. Once the other robot recieves it will command the BS2 of that robot to send information to the BS2P of the same·robot. So that BS2P can start it normal sequence. Until that i don't want the·second robot to start·it's normal sequence.
How can this can be done? I tried. But i failed. Help me..........cry.gif

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-12-09 16:53
    Shan said...
    How can this can be done? I tried. But i failed. Help me
    Just what have you tried? Please attach your code so we can see where you are on this project.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • sylvie369sylvie369 Posts: 1,622
    edited 2007-12-09 18:57
    Page 410 of the BASIC Stamp Syntax and Reference Manual Version 2.2 shows how to connect to Stamp modules to communicate through the SERIN and SEROUT commands:

    http://www.parallax.com/ProductInfo/Microcontrollers/BASICStampDocumentation/tabid/440/Default.aspx
  • ShanShan Posts: 6
    edited 2007-12-10 02:10
    Thanks for all of your replies. I have attached the unsuccessful codes i was using. As i have explained in my probem, master is the serial in robot.
    And slave is the serial out robot. So altogether i have four programs for both robot, two programs for each robot for BS2 and for BS2P.
    Waiting for your reply.....rolleyes.gif

    shan
  • WW Posts: 3
    edited 2008-01-10 19:58
    I am also using the Parallax receivers and transmitters. I need help with .BS2 code that will send simple text sentences to the receiver. Right now all I have is the programs (TX and RX) included with the PDF files - sending x and y information. rolleyes.gif

    George, W
  • FranklinFranklin Posts: 4,747
    edited 2008-01-11 00:25
    W0LMN, read the pages referenced above about serin and serout and try that. If your code does not work attach it and we will look at it. You should start your own thread for this though.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • WW Posts: 3
    edited 2008-01-11 02:34
    Franklin said...
    W0LMN, read the pages referenced above about serin and serout and try that. If your code does not work attach it and we will look at it. You should start your own thread for this though.

    Thanks Franklin - I will be studying and trying out new program syntax based on above ... will let forum no how I make out ...


    I was considering making this a new thread, but, since I am new in this forum I thought I would cool it
    rolleyes.gif
Sign In or Register to comment.