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

2^N - 1 quantization steps in ADC #1

Closed
bri-huang opened this issue Feb 10, 2014 · 1 comment
Closed

2^N - 1 quantization steps in ADC #1

bri-huang opened this issue Feb 10, 2014 · 1 comment

Comments

@bri-huang
Copy link

Your code uses 1024 instead of 1023 for converting the raw ADC value to a resistance of the thermistor. I'm pretty sure that the number of quantization steps is 1023 (2^N - 1) for the ADC. The Arduino reference for the AnalogRead() function shows that the resolution is = 5V / 1024, but I don't think that's correct.

http://en.wikipedia.org/wiki/Analog-to-digital_converter#Resolution

It's a minor difference in accuracy, but I think we should be consistant. I'm working up documentation for our Vernier Shield. I hope to have some good examples ready this week.

2-9-2014 5-58-05 pm

@Smythics
Copy link
Contributor

Smythics commented Apr 2, 2015

Thanks Brian! We took care of this. TS

@Smythics Smythics closed this as completed Apr 2, 2015
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

2 participants