Problem while interfacing LCD screen with Arduino I tried to interface an LCD screen with my Arduino but I have a problem - Nothing is being displayed on my LCD screen:



Here is the code:

#include&lt;LiquidCrystal.h&gt;

LiquidCrystal lcd(7, 8, 9, 10, 11, 12);  // sets the interfacing pins

void setup()
{
 lcd.begin(16, 2);  // initializes the 16x2 LCD
}

void loop()
{
  lcd.setCursor(0,0);           //sets the cursor at row 0 column 0
  lcd.print("16x2 LCD MODULE"); // prints 16x2 LCD MODULE
  lcd.setCursor(2,1);           //sets the cursor at row 1 column 2
  lcd.print("HELLO WORLD");     // prints HELLO WORLD
}
In the setup() you have to state what pin the Vo (display contrast pin) on the LCD is connected to. Before the 

lcd.begin(16,2)


try

analogWrite(pin Vo is connected to, contrast you want to set the screen to);


An example would be:

analogWrite(6,80);