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

About the sample rate #15

Closed
QiuyueXue opened this issue Aug 2, 2016 · 1 comment
Closed

About the sample rate #15

QiuyueXue opened this issue Aug 2, 2016 · 1 comment

Comments

@QiuyueXue
Copy link

Hello, sorry to bother you but I have a problem now to set the sample rate. I learned from your documentation that I can change the sample rate by adc->setSamplingSpeed(SPEED), and the speed can be ADC_VERY_LOW_SPEED, ADC_LOW_SPEED, ADC_MED_SPEED, ADC_HIGH_SPEED or ADC_VERY_HIGH_SPEED, but I want to know the exact sample rate for the further algorithm, and I don't need a very high sample rate(441000 is enough).

I found that the sample rate is not stable when I use adc->setSamplingSpeed(SPEED), for example I got about 272000 data for two seconds, and got 460650 data for four seconds when I set the same sample rate.

So what should I do if I want an accurate sample rate? How to set it? Sorry to bother you, thanks a lot!

@palmerr23
Copy link

Hi,

Better to use the teensy forums for this kind of discussion: https://forum.pjrc.com/

Short answer is to use a clock on the teensy to trigger single (or synchronised) conversions.

Richard

@pedvide pedvide closed this as completed Oct 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants