Potentiometer mit dem Arduino programmieren
Potentiometer angeschlossen im Video
Der Code dazu
void setup() { // put your setup code here, to run once: pinMode(A0, INPUT); Serial.begin(9600); pinMode(10, OUTPUT); digitalWrite(10, LOW); } void loop() { // put your main code here, to run repeatedly: Serial.println( analogRead(A0) ); if(analogRead(A0) <700) { digitalWrite(10, LOW); } else { digitalWrite(10, HIGH); } delay(500); }