But should analog-values not be between 0-1023 ? I get only wierd random values changing all the time between 0 - ~200.
When I rotate the potentiometer, whatever direction, all the same.. only a ton of random values
void loop() {
int sensorValue = analogRead(sensorPin);
Serial.println(sensorValue)
}
What pin is your potentiometer out plugged into?
And why doesn't your code mention it anywhere?
You've taken steps backward from the first post.
And you're missing a ;
as the IDE probably told you.
OK 8) It was already a mission to find A2 (should have done a case sensitive grep so I would not have been slapped with e.g all the Atmega2560 references )
the curious thing is, when I pull the wire connected to the poti-middle-pin (2) out of the breadboard and touch the end with my finger, the values seems get down to ~0 ..I have tried all combinations that I could imagine, but with no effort. It somehow can't be, that they sold me 6 potis, all damaged(?)
the +/- -part of the breadboard is seperated in two independent circuits.
I have connetcted my 5v and GND on the left side.. but always testes my potentiometers on the right side of the breadboard -.- .. so there was no current and no ground to my potentiometer