Analog Read Input with Multimeter

Hi, I need help regarding with code of arduino or in the circuit. I don't know what to troubleshoot. A multimeter is connected to the potentiometer. So,the tester reading and controller reading of resistance must be matched. But the result is that whenever I connect the multimeter to the potentiometer, the multimeter reads error on its resistance, and the Potentiometer reading can't be changed even I adjust the wiper.


CODE:
int potPin = A3;
int potVal = 0;

void setup(){
Serial.begin(9600);
}

void loop(){
potVal = analogRead(potPin);
Serial.println(potVal);
}

@klpa

But the result is that whenever I connect the multimeter to the potentiometer, the multimeter reads error on its resistance, and the Potentiometer reading can't be changed even I adjust the wiper.

You cannot read the resistance with the multimeter while the 5V is connected to the pot. If it were a real circuit you would probably damage your multimeter. You need to disconnect the 5V when you use the multimeter and dicconnect the multimeter when using the arduino.

OR set you multimeter to read volts and compute the resistance.

Your results plotted on a graph show good linearity.
What more do you expect?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.