Cant Read Linear Motorized Fader with Arduino Uno

Hello, i wanted to use my Linear Motor Fader:

https://www.reichelt.de/schiebepotentiometer-mono-10-kohm-linear-rsa0n11m9-lin10k-p73884.html?CCOUNTRY=445&LANGUAGE=de&trstct=pos_1&nbc=1&&r=1

With my Arduino Uno R3
However i cant read any data on my Analog Pin
If i try a normal Poti it works
I also connected The Pins correctly and if i try to read the resistance with my Multimeter i can see a difference in ohms.

Can somebody help me i dont know why it doesnt work?

Schematic:

I connected the left outher pin of my fader to 5V, the mid Pin to A0 and the left one to gnd I also tried switching them but id did not work.

Code:

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.println(analogRead(A0));
}

Hello maximusnolte

Welcome to the world's best Arduino forum ever.

Post your sketch, well formated, with well-tempered comments in so called code tags and schematic to see how we can help.

Have a nice day and enjoy coding in C++.

1 Like

The link you provided will give you the data sheet. A pot of any type will not give a voltage unless it is biased. Post an annotated schematic as requested by paulpaulson. Also note the motor is isolated from the pot and those connections should not have any effect on your readings.

1 Like

I now updated the Question but what do you mean by "biased" ?
I supplied the fader with 5V from the Arduino

In this context it just means you have a voltage across its end points, which according to your diagram, you do.

With it wired up like that, when you put your meter in voltage mode and put the leads on ground and A0, do you see a changing voltage at A0 when you move the linear pot?

1 Like

I see that the voltage is slightly de/increasing but not like 1V just 0.25V

And there's your problem. The ADC measures voltage. If it's not seeing a voltage on the A0 pin, it won't work. I suspect your linear pot is not wired up properly.

im sorry i did not notice but there is actually a .25V drop/increase

Post a picture with details of the hardware setup

Your pot is not wired correctly is the most likely answer. If it was wired correctly you would be seeing a change from 0 to 5V.

And when you edit a post that has already been replied to you make it harder for everyone else reading it to follow what's going on.

1 Like

RED is 5V
BLUE is gnd
Yellow is A0

in this config i get constantly 1023 in Serial,
if i change blue and red i get 0 constantly

Sounds like a short between the wiper and one of the end connections.

check these solderings.

grafik

Indeed. Not according to the datenblätter.

@maximusnolte take your own link and use it to find the data sheet, where you will see how to wire it for your purpose.

a7

3 Likes

It seems you lead the signal through a solderless breadboard. Those are notorious for poor electrical connections, so a major suspect in this case.

Incorrect image - Deleted

Sorry

@MaximoEsfuerzo did you get that from the datenblätter?

It's not what I saw when I looked.

If you found documentation of your wiring suggestion, please post a link to,it.

I am assuming that by posting what you did you are claiming that is the correct wiring.

a7

I´ve soldered my wires correctly and i have connection on all of them they do not short

i now wired it like in the datasheet, i now see a slight difference from 1023 to 1007, is there a way i can increase the difference? When i measured i saw that the voltage only drops by .25V