LCD screen prints weird symbols

#include <LiquidCrystal.h>

LiquidCrystal lcd(9, 8, 7, 6, 5, 4);

void setup(){
  lcd.begin(16,2);
}

void loop(){
  lcd.clear();
  lcd.print("Hello World!");
}

The lcd is connected properly i checked multiple times, it keeps printing symbols that i dont know does anybody know what might be wrong Iam very new to Arduino pls be nice

Your topic has been moved to a more suitable location on the forum because you are not reporting an issue with the project hub

Try with a : delay(1000); after your lcd.print("Hello World");
Or try the Hello world example from the Liquidcrystal.h library.

  • remember to change the pin numbers to yours (LiquidCrystal lcd(9, 8, 7, 6, 5, 4);).

Your ground is not connected on one or all of your devices, and the speed of loop() is printing what it thinks is "good" (what you see), fast. Try moving the code in loop() into setup() for now... and see what you get (also, check your wiring)

#include <LiquidCrystal.h>

LiquidCrystal lcd(9, 8, 7, 6, 5, 4);

void setup() {
  lcd.begin(16, 2);
  lcd.clear();
  lcd.print("Hello World!");
}

void loop() {
  // nothing here
}