Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xbee analog inputs #21

Open
GoogleCodeExporter opened this issue Apr 6, 2015 · 2 comments
Open

Xbee analog inputs #21

GoogleCodeExporter opened this issue Apr 6, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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

Original issue reported on code.google.com by [email protected] on 10 Jan 2012 at 1:09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant