Skip to main content

Timeline for Sampling rate of analog read

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
Jul 13, 2016 at 20:48 history edited JRobert CC BY-SA 3.0
updated to answer OP's question
Jul 13, 2016 at 20:26 comment added Edgar Bonet A single call to analogRead() typically takes anywhere between 106.4 and 114.5 µs depending on the phase of the ADC clock prescaler at the time of the call. It can take up to 120.4 µs if it gets interrupted by the timer 0 overflow ISR.
Jul 13, 2016 at 18:18 vote accept Dzung Nguyen
Jul 13, 2016 at 18:18 comment added Dzung Nguyen Thanks! So I could just use 50ms + 15.6 for the sampling rate, ignoring analogRead?
Jul 13, 2016 at 17:35 history answered JRobert CC BY-SA 3.0