Another AXE210 Problem

kamilan

Member
I've followed the Xbee tutorial pdf.

I want to get PICAXE to PICAXE communication working.

HARDWARE.

I have two XBee modules set to a BAUD rate of 4800 and two PICAXE 18X chips.

THE PROBLEM

This is very strange. I have one board sending out the character "A" every second. The Receiving board only works when I connect PIN7 to another input pin using a long piece of wire (atleast 10+cm, doesn't work with a short piece).

I've looked at input pin7 on an oscilloscope and it is receiving the data. As I said, very strangely, the board/code only seems to work, when input pin7 is connected to another input pin via a long wire.

One would assume, that using a short piece would work but NO!

'--SENDER CODE:
init: setfreq m8
pause 100

main: serout 7, T4800_8, ("A")
pause 1000
goto main

'--RECEIVER CODE:
init: setfreq m8

main: high 0
pause 1000
serin 7, T4800_8, ("A")
low 0
pause 1000
goto main

Is it the board or am I doing something wrong?

Cheers

K
 

hippy

Ex-Staff (retired)
Not sure why the wire is having an affect but in your receiver code, remove both PAUSE commands and see if that improves things.
 
Top