What's the purpose of the resistor in this circuit?
djahng: voltage divider: v_analog = 5V * R2/(R2 + VR1)it's pretty meaningless by itself, you also need to know the bit resolution of the ADC and reference voltage.