xbee problem

coin12

New Member
i have 2 module of axe 210 when i connect one to max32 to pc and the other one is fitted with picaxe and i use an LDR as an input the reading on the terminal is fine its transmiting and reciveing ok .. but when i connect picaxe to picaxe and i place one LED as an output many problems happens like the led sometimes work sometimes doesnt sometimes it keeps on blinking
anyway i used this code as a test

picaxe A

init:

high 7

pause 100

main:

readadc 0,b0


serout 7, T2400, ($55,$55,b0)

pause 1000

goto main


picaxe B



main:
serin 7, T2400, ($55,$55),b0

debug

test_LDR:

if b0 > 40 then LDR_high

low 0
goto main

LDR_high:

high 0


goto main

is this code alright ,becoz i dunno wuts the problem
 

Technical

Technical Support
Staff member
The code looks ok, but $55 twice is not the best qualifier as $55 $55 is
0101010101010101
and so easily 'incorrectly overlapped'. Try $55 $44 or similar and see if that helps.
 

coin12

New Member
thxxxxxxxx technincal it works .. but why its mentioned on the tutorial ($55,$55) i got mad for 2 days becoz of that
 
Top