Materiales:
- 1 potenciómetro de 1 kOhm.
CÓDIGO:
void setup() { Serial.begin(9600); // Iniciamos la puerta serie } void loop() { int Lectura = analogRead(A5) ; Serial.println( Lectura); delay(200) ; }
Ver los resultados en el MONITOR SERIAL.
Arduino con Potenciómetro