??? 12/28/09 06:48 Read: times |
#171964 - Consistent not a simple subset of accurate Responding to: ???'s previous message |
Stephen Mattix said:
It does not have to be very accurate for the project, just has to be consistent. I'm also trying not to use any extra hardware if at all possible. If you sample at random times in relation to the input signal, and you take a limited number of samples, then your result will neither be accurate nor consistent, unless you just, by random luck, happens to take your samples at times when you do catch the true maxima. At that specific time, you'll manage to be accurate (in case the ADC is calibrated), but you'll still not be consistent since your "good" reading was just accidental. For consistent results, you either have to sample at a speed way higher than the input signal, so that you always capture enough information to compute the relevant parameters of the input waveform (you can optionally manage that while capturing less than a full period of the input signal, if you know that it is a pure sine wave with a DC offset). Or you need to have a knowledge about the input waveform, and a way control the sampling rate/time offsets, to allow you to combine the samples from multiple periods of the input data before computing the relevant parameters of the input waveform. Or thirdly, if you sample at random times, and collects enough samples, and knows the that the input signal is a pure sine wave with a constant DC offset, you can use statistical methods to compute the DC component and the amplitude of the AC component even if never actually getting any sample at a maxima - this is possible since the dV/dt is different in different parts of the curve, so you'll get a higher percentage of samples close to the maxima/minima, and a lot fewer samples close to the crossing of the DC offset. The distribution of the amplitudes from the samples (without bothering about the time stamps when they were measured) will be enough for the computation, and you can also compute a statistical confidence. |
Topic | Author | Date |
ADuC816 Problem | 01/01/70 00:00 | |
Sample rate ? | 01/01/70 00:00 | |
Isn't that exactly what you should get? | 01/01/70 00:00 | |
Indeed! | 01/01/70 00:00 | |
Hmm | 01/01/70 00:00 | |
average of the repetitive peak ? | 01/01/70 00:00 | |
Better | 01/01/70 00:00 | |
Clarification | 01/01/70 00:00 | |
Signal Frequency | 01/01/70 00:00 | |
magnitude | 01/01/70 00:00 | |
Dump a number of samples to check | 01/01/70 00:00 | |
it is possible? | 01/01/70 00:00 | |
fast sample-and-hold | 01/01/70 00:00 | |
sorry, but | 01/01/70 00:00 | |
and | 01/01/70 00:00 | |
it won't | 01/01/70 00:00 | |
Undersampling often quite powerful | 01/01/70 00:00 | |
what is conclusion for OP? | 01/01/70 00:00 | |
How about precision rectification? | 01/01/70 00:00 | |
re:ADUC816 | 01/01/70 00:00 | |
sure, you can | 01/01/70 00:00 | |
Most cheaper digital scopes uses repetitive sampling | 01/01/70 00:00 | |
how about | 01/01/70 00:00 | |
SF=1 | 01/01/70 00:00 | |
Consistent not a simple subset of accurate | 01/01/70 00:00 | |
Dumping Values | 01/01/70 00:00 | |
*EDIT* | 01/01/70 00:00 | |
Circuit![]() | 01/01/70 00:00 |