I have a simple and basic question. I am using Arduino uno to read the output from a 10K potentiometer. I understand that Uno uses a 10 bit ADC, therefore it can display outputs from 0 as 0V to 1024 as 5V.
Question: I am getting these values from the pot and displayed on the serial monitor of arduino IDE, while I vary the resistance of the 10K Pot. How am I supposed to calculate or know the output voltage and resistance corresponding to the values from 0 to 1024?
Another question is, when I vary the POT's knob to a maximum point i.e. 5V, the output displayed is 1007 or 1008. Isn't it supposed to output 1024 for 5V?