LCD display character |||| at the end

Hi

I try to read a value of potentiometer on LCD screen Sparkfun ADM1602K. It’s a screen with 16x2 and my arduino is an Uno.

My code is simple:

#include <LiquidCrystal.h>

LiquidCrystal lcd(12,11,5,4,3,2);

void setup()
{
  analogWrite(6, 100);  //contrast of screen
  lcd.begin(16, 2);
  lcd.clear();
}

void loop()
{
  int sensorSpeed = analogRead(A0);
  // map it to a range from 0 to 5000:
  int motorSpeed = map(sensorSpeed, 0, 1023, 0, 5000);
  // read the sensorShortening value:
  
  lcd.setCursor(0,0);
  lcd.print("v= ");
  lcd.println(motorSpeed);
  lcd.println("mm/h");
  delay(100);
}

On the LCD, I have this:
v= 4970|||||mm/h|||||

Why I have this character ||| at the end ?

With Serial.print instead of lcd.print in the serial terminal, it’s ok. I don’t have ||||.
thank you

Ok I found my error, I used println...

lcd.print("v= "); lcd.print(motorSpeed); lcd.print("mm/h");

We haven’t had that problem show up since Sunday!

It’s really two characters, one for the and the other for the <LF,> that are tacked on to your string by println(). What actually is displayed is determined by the idiosyncrasies of your particular LCD controller but two vertical lines for each character seems to be quite common.

Don