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?
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));
}
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.
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?
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.
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