Hi I'm new to teensy and I'm using a teensy3.2 and I want to get the data from teensy to my laptop with a stable and accurate sample rate(I don't need very high, higher than 16k is enough).
I have tried the function adc->setSamplingSpeed(SPEED) in the ADC library to set the sample speed,but the result I got is not good. I don't know the actual sample rate and I got about 272000 data for two seconds, and got 460650 data for four seconds when I set the same sample rate.
So is there any simple way for me to set an accurate sample rate? Thanks for your help!
I have tried the function adc->setSamplingSpeed(SPEED) in the ADC library to set the sample speed,but the result I got is not good. I don't know the actual sample rate and I got about 272000 data for two seconds, and got 460650 data for four seconds when I set the same sample rate.
So is there any simple way for me to set an accurate sample rate? Thanks for your help!