user16926: 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:


user26717: Whenever I use an LCD display I make sure to use the I2C backpack.  It takes actual effort to hook it up wrong if you use them.  So if this were me, I would desolder all those pins and get one.
Here is a good description of how they work:
https://learn.adafruit.com/i2c-spi-lcd-backpack/overview

16926: <p>As mentioned in the title I'm facing a problem in printing strings in the LCD. It's printing actually weird characters.</p>

<pre><code>#include &lt;LiquidCrystal.h&gt;
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);
}
</code></pre>

<p>You can find the output of the LCD in the picture below:</p>

<p><a href="https://i.stack.imgur.com/RbpMc.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RbpMc.jpg" alt="LCD error !!"></a></p>
 26717: <p>Whenever I use an LCD display I make sure to use the I2C backpack.  It takes actual effort to hook it up wrong if you use them.  So if this were me, I would desolder all those pins and get one.</p>

<p>Here is a good description of how they work:
<a href="https://learn.adafruit.com/i2c-spi-lcd-backpack/overview" rel="nofollow noreferrer">https://learn.adafruit.com/i2c-spi-lcd-backpack/overview</a></p>
