BS2sx and 433.92 MHz RF
chazbrazil
Posts: 27
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
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 Savage
Parallax Tech Support
csavage@parallax.com