As mentioned in the title I'm facing a problem in printing strings in the LCD. It's printing actually weird characters.
#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
void setup() {
lcd.begin(16, 2);
Serial.begin(9600);
lcd.print("hello, world!");
}
void loop() {
lcd.setCursor(0, 1);
lcd.print(millis()/500);
}
You can find the output of the LCD in the picture below: