Xbee ADC
Ok, so I'm working on a plan to bring my little brother's little Niko RC car (you know, these models that suddenly break down for no reason at all after three charges) back to life. The plan is:
- Yank out old electronics (fun job, done ^^)
- Test steering servo and current draw of drive motor
- Build new electronics
Basically, I'm going to refit the remote with two mini-joysticks and an xbee module. Now here's the thing: I've read that the xbee has onboard ADC's and I absolutely love this (no need for a microcontroller in the remote) but I can't seem to find a lot of info on how this whole system transmits it's data. With "transmitting it's data" I mean: what comes out at the receiving end and how can I read the ADC's output with my ARDUINO in the car (first time I'll be using arduino :D). Is there anyone here with any experience in this department?



@ Thu, 2011-04-28 01:02
This may help
This link (see zigbee stuff near the bottom) has some arduino libraries for interfacing the zigbee API. These two may each work:
@ Wed, 2011-04-27 23:30
What zigbee module are you
What zigbee module are you using? Something like this? I suggest you check out the documentation for the user manual and datasheet on them- it looks well documented.
@ Wed, 2011-04-27 23:43
I quote:
"UART Output:
When UART data is received the data is framed using our API structure. When the data is sent out the UART the data is automatically in API format, so the API doesn''''t need to be enabled. Notice how the data is listed from lesser ADC''''s to greater ADC''''s (ADC0 then ADC1 then ADC2 etc...). Below is an example of an API packet with ADC0 & ADC1 data:
7E 00 1C 83 56 78 22 00 05 06 00 00 00 03 FF 00 00 03 FF 00 00 03 FF 00 00 03 FF 00 00 03 FF 77
Where the UART API data stream can be broken down as:
* bit field where the bits line up as (Ax=ADCx & Dx=DIOx):
"
----------------
I'm sorry but it just is not clear to me, can I read the ADC-value with the arduino, or should I let the xbee convert the ADC value into a PWM-value which is then read by the arduino via an analog input?
@ Wed, 2011-04-27 23:32
60 mW
Well, yes, basically it's the same. I've read through the documentation but i's like chinese to me... I'll try to post an example of the ADC explanation, maybe you guys could translate it into understandable English for me :D