Timeline for Arduino ADC read bad value
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S Mar 8, 2015 at 14:29 | history | suggested | Paolo Zanchi |
Added tags
|
|
Mar 7, 2015 at 19:34 | review | Suggested edits | |||
S Mar 8, 2015 at 14:29 | |||||
Mar 5, 2015 at 17:39 | vote | accept | rslite | ||
Mar 5, 2015 at 17:25 | answer | added | Edgar Bonet | timeline score: 3 | |
Mar 5, 2015 at 17:19 | comment | added | rslite | Actually you are right, I didn't understand your comment clearly the first time. I loop both reads one after another so it doesn't help. Looping the second one gets to the right value after a while (~5 ms) so I need to read once then wait 5 ms and read again. Please put your comment in an answer so I can accept it. | |
Mar 5, 2015 at 16:03 | comment | added | rslite | Yes, I ran them in a loop and get consistent results. The first one read correctly, but then the second one won't work. If the first one is commented, the second one works OK. | |
Mar 5, 2015 at 15:48 | comment | added | Edgar Bonet | Did you try taking the reading twice? The datasheet says: "The first ADC conversion result after switching reference voltage source may be inaccurate, and the user is advised to discard this result." | |
Mar 5, 2015 at 15:11 | history | migrated | from stackoverflow.com (revisions) | ||
Feb 20, 2015 at 1:42 | history | asked | rslite | CC BY-SA 3.0 |