3

I have a 10kOhm linear Potentiometer. I connected it to analog 0, as in https://www.arduino.cc/en/Tutorial/Potentiometer.

The analogRead() gives a value between 0 and 1023, so I was expecting 0 if the potentiometer is at the lowest position, 1023 if it is at the highest position and 500 somewhere in the middle.

In fact I get ~40 at the lowest position, I get 1021 at the highest position (that's okay, I guess), and I also get 1021 at the middle. 500 is at a 1/4 position, I expected to have ~255 there.

I measured the resistance of the potentiometer. It reads ~200 Ohm at the lowest postion, 10kOhm (as expected) at the highest position and ~5kOhm in the middle, so, exactly as I expected.

So, what did I get wrong?

Alex
  • 31
  • 1
  • 2

2 Answers2

1

Unfortunately I cannot comment. I can't really think of a reason why your readings are the way they are. Though you did not present to us an image of what potentiometer you are using and how you are really wring it up.

It is possible that your potentiometer is a center tapped type with 4 pins. You could have possibly connected the positive rail to the center tap pin, ground to the side pin and the wiper pin to the Arduino pin so that you would have the result you are getting.

Or potentially, you wired it correctly except for the fact the positive rail you connected to was 10V, but that is really dangerous.

Have you tried measuring the resistance of the potentiometer from one side pin to the other side pin?

Bradman175
  • 223
  • 2
  • 10
0

It sounds like you have a log taper potentiometer rather than a linear taper potentiometer. These are used in audio applications.

You can tell the difference by looking at the resistance code. It may be written as:

103 B

or

10K B

both of which are 10KΩ LOG taper. The letter A or B as a suffix is the taper type. A is linear, and B is logarithmic. That's the "normal" standard, though, but Japan does it differently. They use A for Audio taper (log taper) and B for linear.

Majenko
  • 105,851
  • 5
  • 82
  • 139