My favorites | Sign in
Project Home Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 21: Xbee analog inputs
1 person starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  ----


Sign in to add a comment
 
Reported by gzio...@gmail.com, Jan 10, 2012
What steps will reproduce the problem?
1.Trying to read some analog valeu with the getAnalog() function

What is the expected output? What do you see instead?
The output that appears is like this example.

Analog (AI0) is 419
Analog (AI1) is 419
Analog (AI2) is 419
Analog (AI3) is 419
Analog (AI4) is 993
Analog (AI5) is 419

Notice that AI0 and AI4 are the pins that i need to read, but the value of pin 0 is replicated to the other pins. Also, all values on pin 4 start to appear on pin 0 readings. I'm getting 19 samples per packet, and on the third sample, the value of pin 0 is equal to the value of pin 4 on the first sample, like this:

Sample 1:
Analog (AI0) is 419
Analog (AI1) is 419
Analog (AI2) is 419
Analog (AI3) is 419
Analog (AI4) is 993
Analog (AI5) is 419
Sample 2:
Analog (AI0) is 10
Analog (AI1) is 10
Analog (AI2) is 10
Analog (AI3) is 10
Analog (AI4) is 993
Analog (AI5) is 10
Sample 3:
Analog (AI0) is 993
Analog (AI1) is 993
Analog (AI2) is 993
Analog (AI3) is 993
Analog (AI4) is 32
Analog (AI5) is 993

What version of the product are you using? On what operating system?
Arduino 1.0 on windows 7

Please provide any additional information below.
I'm using the libelium Xbee shield, i think it is or was the official xbee shield. Is there any issue about this shield and the Xbee library?

Thanks in advance

Feb 2, 2014
Project Member #1 andrew.rapp@gmail.com
(No comment was entered for this change.)
Status: Accepted
Sign in to add a comment

Powered by Google Project Hosting