Hi,
I have got 2 XBee (Series 1/802.15.4)'s communicating with each other through my Arduino, using the XBee-Arduino library. I am sending the analog pin data from the remote XBee to the one on the Arduino. This works fine when I plug my remote XBee into the MakingThings XBee board (http://www.makingthings.com/store/acces … board.html) and I get the following serial printout:
With analog pin 0 connected to ground:
Received I/O Sample from: 2
Sample 1:
Analog (AI0) is 0
with analog pin 0 connected to +3.3v:
Received I/O Sample from: 2
Sample size is 1
Sample contains analog data
Sample 1:
Analog (AI0) is 1023
with analog pin 0 not conected to anything:
Received I/O Sample from: 2
Sample size is 1
Sample contains analog data
Sample 1:
Analog (AI0) is 263
This is exactly what I want. However, when I plug the same XBee radio into the sparkfun XBee explorer (http://www.sparkfun.com/commerce/produc … ts_id=9132) I get the following printout whether pin 0 is connected to ground, +3.3v or nothing (basically nothing changes):
Received I/O Sample from: 2
Sample size is 1
Sample contains analog data
Sample 1:
Analog (AI0) is 1023
I’ve tried to use other pin’s and each give the same results. Does anyone have any idea why this is? Surely the MakingThings and Sparkfun board are doing exactly the same thing (simply allowing easy access to the pins)?
Thanks,
Chris