Here is code and comment from one of the example sketches:
Indio.setADCResolution(16); // Set the ADC resolution. Choices are 12bit@240SPS, 14bit@60SPS, 16bit@15SPS and 18bit@3.75SPS.
Looking in Indio.cpp, analogRead has delay(sample_rate) and in analogReadMode routine, it sets sample_rate based on the ADC resolution. For example, for the above resolution of 16 bits, sample_rate is set to 67 ms, which will give 14.9 samples per second.
Your answer
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
Keep Informed
About This Forum
This community is for professionals and enthusiasts of our products and services.
Read GuidelinesQuestion tools
Stats
Asked: 12/19/15, 10:21 AM |
Seen: 3025 times |
Last updated: 1/4/16, 4:08 PM |