Quote Originally Posted by Macgman2000 View Post
Be careful that the module you select has a data in = data out feature. Some low cost modules need to have a "balanced" data stream in order to work well.

One of the symptoms is reduced range, the closer you are the more likely the data makes it through the demod stage. The further out you go the more you get DC offsets that creep up and cause the demod to hold states longer causing bit distortion. You should be able to see this on a scope.....latch the tx in continuous transmit at 30m and look at the output of the RX.

Nick
Thanks, Reading your post I am assuming that if I make the following changes to the code, it will help to balance the data stream and allow sufficient time to the receiver to process previous data before new one is thrown in:

receiver code:
main:
serin gpio.2,N2400,250,stop,["p34"],b
if b=24 then gpio.1=1
if b=54 then gpio.0=1
goto main

stop:
gpio.1=0
gpio.0=0
goto main

Transmitter code
main:
if gpio.0=1 then
serout gpio.5,N2400,["p34",54] : pause 50 : endif
if gpio.1=1 then
serout gpio.5,N2400,["p34",24] : pause 50 : endif

Have I understood the point right?