Max XBee ADC sample rate spec >1mS?

XBee projects like the adapter, xBee tutorials, tweetawatt/wattcher, etc. from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
greyf350
 
Posts: 16
Joined: Mon Oct 14, 2013 1:56 pm

Max XBee ADC sample rate spec >1mS?

Post by greyf350 »

I was looking at the AC voltage/current waveforms in the TweeAWatt tutorials/guides and comparing with some of my own measurements. It appears to me the published 1mS XBee sampling rate spec is a bit optimistic.

17 samples @ 1mS sample rate should return a single 16.7mS 60Hz cycle, but it appears to me 12 samples is more accurate. That could only mean the best case sample rate is closer to 1.3-1.4mS??

I'm running the latest 10ED firmware if that is of any consequence.
Last edited by greyf350 on Mon Nov 25, 2013 7:00 pm, edited 1 time in total.

User avatar
adafruit_support_bill
 
Posts: 88087
Joined: Sat Feb 07, 2009 10:11 am

Re: Max XBee ADC sample rate spec >1uS?

Post by adafruit_support_bill »

We can only speculate on the firmware internals. The engineers on the Digi forum can probably give you a more definitive answer: http://www.digi.com/support/forum/

thefatmoop
 
Posts: 352
Joined: Tue Aug 19, 2008 4:36 pm

Re: Max XBee ADC sample rate spec >1uS?

Post by thefatmoop »

Nah that's not right. For S1 I think the RF link is only 2*115.2kb/sec, and a lot of that BW is loss to retransmissions

User avatar
greyf350
 
Posts: 16
Joined: Mon Oct 14, 2013 1:56 pm

Re: Max XBee ADC sample rate spec >1mS?

Post by greyf350 »

The way the TAW works is, it's intended to measure voltage and current for exactly one 60Hz period. It assumes a sample rate of exactly 1mS per sample, and therefore 16 or 17 samples will cover a 16.7mS period. Makes perfect sense. However, looking at the documented waveforms and examples, 17 samples always returns 1 and a fraction of the next 60Hz cycle which, if all samples are used for RMS calculations, will result in erratic readings depending on where the first sample starts especially with low power factor loads.

I'm seeing 12 samples per 60Hz period is sufficient and acceptably accurate since the 1mS sample rate setting is nowhere close to 1mS.

Anything more or less results in wildly erratic measurements just like these college kids were seeing, but they simply dismissed the errors as being caused by a 'low sample rate.'
http://www.ee.duke.edu/files/ece/GWDD2010_Hamner.pdf‎

Locked
Please be positive and constructive with your questions and comments.

Return to “XBee products (discontinued)”