Shop OBEX P1 Docs P2 Docs Learn Events
BS2sx and 433.92 MHz RF — Parallax Forums

BS2sx and 433.92 MHz RF

chazbrazilchazbrazil Posts: 27
edited 2006-04-11 19:16 in BASIC Stamp
I'm trying to implement the extremely simple BS2 code with the BS2sx and I'm having no luck getting the two RF modules to communicate. Any suggestions?

Tx:
' {$STAMP BS2sx}
' {$PBASIC 2.5}

x········ VAR·· Word
y········ VAR·· Word


DEBUG "Beginning...", CR
DO
· PULSOUT 8, 3000
· SEROUT 8, 16468, [noparse][[/noparse]"!", x.HIGHBYTE, x.LOWBYTE, y.HIGHBYTE, y.LOWBYTE ]
· x = x + 1
· y = y + 2
· DEBUG DEC x, CR
· DEBUG DEC y, CR
· HIGH 0
· PAUSE 1000
· LOW 0
· PAUSE 1000
LOOP




Rx:

' {$STAMP BS2sx}
' {$PBASIC 2.5}

x·· VAR·· Word
y·· VAR·· Word

DO
· DEBUG "begin", CR
· LOW 0
· SERIN 7, 16468, [noparse][[/noparse]WAIT("!"), x.HIGHBYTE, x.LOWBYTE, y.HIGHBYTE, y.LOWBYTE]
· HIGH 0
· DEBUG "value captured. Outputting..."
· DEBUG DEC x
· DEBUG DEC y
LOOP

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-04-11 19:16
    It appears you have the wrong baud mode parameter for BS2sx.· 16468 is for the BS2.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
Sign In or Register to comment.