Hi,I have installed an LCD display to my Arduino, and it appears to be working fine, but:When trying to create a procedure for displaying integer values read from an analog output pin (generated by at pot-meter), the display shows readings between 1 and 9000, when I can see on the Serial Monitor, that the output from the pin is actually between 1 and 1024 (as expected).The value is defined using the command 'int potValue = analogRead(A0);The value is read using the command 'potValue = analogRead(A0);The value should be displayed using the command 'lcd.print(potValue);The pin is also used to control the speed of a DC motor which works fine. Output on pin A0 is shown on the Serial Monitor as 1-1024, but the display shows values between approx. 1 and 9000.The commands are part of a loop. It appears as if the initial readings are correct, but hereafter values below 1024 are displayed as 10 times the actual value (just guessing).Anybody has a piece of sound advice for me?Thx!
Serial.println(potValue); lcd.setCursor(7,0); lcd.print(" "); lcd.setCursor(7,0); lcd.print(potValue, DEC); //shows values correctly? delay(1000);