Ongaku Yokai
Member
Teensy 3.6
I am just trying to test out a potentiometer with this simple code:
Ive tried outside leads to 3.3v (normal, or 250ma max) and analog ground, and inside lead to both a0 and a1 (at diffrent times with different code) and all i get are random numbers between 400 and 700.
Nothing connected
A0 to analog ground
A0 to 3.3v
Tried different very similar examples
Tried responsive analog read example.
Reading of random numbers from 400 to 700 every time.
Not sure what im doing wrong. Digital reads work correctly btw and tested sending midi data to ableton.
I am just trying to test out a potentiometer with this simple code:
Code:
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println(analogRead(A0));
delay(1000);
}
Ive tried outside leads to 3.3v (normal, or 250ma max) and analog ground, and inside lead to both a0 and a1 (at diffrent times with different code) and all i get are random numbers between 400 and 700.
Nothing connected
A0 to analog ground
A0 to 3.3v
Tried different very similar examples
Tried responsive analog read example.
Reading of random numbers from 400 to 700 every time.
Not sure what im doing wrong. Digital reads work correctly btw and tested sending midi data to ableton.