Linear Potentiometer not Working

I am using this linear potentiometer with my Teensy 4.1 but my analog output doesn't change at all when I actuate the probe.

This is the datasheet for the sensor:

This is how I have it wired:

With red going to vcc, black to ground and orange to pin A0. I have swapped this pot with a simple rotary pot with the exact same code and wiring and it works. I'm not sure how I can test if my sensor is faulty or what the issue here is.

The picture shows a connector, which you did not mention. Always post the exact device specification and a link the to the relevant data sheet.

To make sure that you have wired the device correctly, use your multimeter to measure the resistances between all the wires connected to it. Verify that the resistances change as expected, when you move the shaft.

Edit: after I posted this, you changed the picture. The connector may not be wired correctly.

Sorry about that. I updated the picture. Here's the link to the datasheet. This is the actual wiring connections of interest:
image

DS.SLPKS.ENG.03.03.23 (opkon.com.tr)

I believe the only difference between the diagram and my picture is that the sensor pins are rotated on the shaft body.

Hard to read, but that red wire looks like it's going to pin 2, not pin 3

What does your multimeter report for the resistance measurements?

2 Likes

red wire is definitely going to pin 3, sorry if the pic is unclear.

When I attach one pin to positive and one to the Vout, I get no change in resistance. The multimeter is stuck at 1. I tested my cheap rotary pot(the one we often see for arduino projects) the same way and when I rotate the dial I get a resistance varying from 0 to 6. My multimeter was set to to 20K so I assume this means a varying resistance of 0kohm to 6kohm. This leads me to believe the linear pot is broken...

Hi,
Have you tried you DMM on other pin combinations?

That pinout diagram could be plug OR socket.
Check mirror image of the pinout diag you have.

Tom.. :smiley: :+1: :coffee: :australia:

If "1" is a sign of an open connection or infinite resistance on your multimeter (as on mine), then that open connection is the problem.

Either the pot is defective or much more likely, your wiring is wrong.

Wow that worked thank you so much!!

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