Dividing by 1023 or 1024? The final verdict on analogRead

TolpuddleSartre:
In real life, we all bodge things, but I still think it is better if you know the underlying principles, for those edge cases where it will matter

Knew this years ago. I understand what the device does and how precise it is not.

If I give it 5V and it tells me 1023 that really means 4.995V to 5V if I go by numbers alone. That's a 5mV step.

The difference between 1/1023 and 1/1024 is less than a thousandth of that. Yeah... bodge... uhuh.

Let me know when you figure out the underlying realities including what the ADC is for.