I have been a bit confused about calculating the input current, so I'd be much obliged if someone could help.
Let's say that we have a potentiometer connected with an analog input as shown below. In a middle position the resistance of the potentiometer is spitted to R1 and R2.
How can I calculate the current in A0? How much will be the current value if (R1=0, R2=Rmax), (R1=Rmax, R2=0), (R1 and R2 !=0,Rmax)?
5V -------- | R1 | A0 -------- | R2 | GND