Shop OBEX P1 Docs P2 Docs Learn Events
how to use RF module 27980 and 27981 — Parallax Forums

how to use RF module 27980 and 27981

smc650307smc650307 Posts: 4
edited 2007-05-31 15:06 in BASIC Stamp
hi,
How do I·write the·code·from the·transmitter(it connect a BS2)·to·receiver(it connect another BS2)·

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-05-28 15:19
    Take a look at this page (it's the manual that should have come with your transmitter) www.parallax.com/dl/docs/prod/rf/27980-ParallaxRFTransmit-v1.0.pdf
    There is also one for the receiver.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • smc650307smc650307 Posts: 4
    edited 2007-05-30 07:00
    thanks

    How do I program to use one transmitter sending data to designed receiver(I have some receivers)
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-05-30 15:32
    The manual provided at the link above gives examples of sending data from the transmitter to the receiver. Without any additional clarification of what you’re looking for it is unlikely anyone will have a different answer. Please be more clear in your question. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • smc650307smc650307 Posts: 4
    edited 2007-05-31 04:44
    thanks
    My question:
    I have one transmitter and three receivers. I want to use one transmitter to send data to different receiver. what can I do?
  • FranklinFranklin Posts: 4,747
    edited 2007-05-31 04:47
    If all the receivers are on the same frequency then the message you send will have to have an identifier for which receiver it is intended for and that receiver will process the rest of the message while the others ignore the message. In other words, it would have to be done in software.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • smc650307smc650307 Posts: 4
    edited 2007-05-31 06:28
    Could you give me some example for it?
    Thx
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-05-31 15:06
    For one transmitter and three receivers you can use a header to identify which receiver the message is intended for. All three receivers will get the message, but only one will act. A simple example would be the transmitter sending out:

    SEROUT pin, baud, [noparse][[/noparse]“!ID01”, data]

    The first receiver might have the following:

    SERIN pin, baud, [noparse][[/noparse]WAIT(“!ID01&#8221[noparse];)[/noparse], data]

    While the second receiver might have:

    SERIN pin, baud, [noparse][[/noparse]WAIT(“!ID02&#8221[noparse];)[/noparse], data]

    I hope this helps. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.