LCD glows but shows no characters

As i have shown in the pictures below, the Lcd screen connected to my arduino does glow, but shows no characters or any kind of legible output.

I have set the potentiometer to a reasonable value so that is not the issue here.
The code also runs fine in Proteus simulation.

So please help me detecting the fault and successfully run my lcd.

 #include<LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);  // 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
  delay(500);
  lcd.clear(); 
  delay(500);
  lcd.setCursor(2,1);           //sets the cursor at row 1 column 2
  lcd.print("HELLO WORLD");   // prints HELLO WORLD
  delay(500); 
  lcd.clear();
  delay(500); 
}

You are using this pin mapping ?:

LiquidCrystal(rs, enable, d4, d5, d6, d7)  // from https://www.arduino.cc/en/Reference/LiquidCrystalConstructor

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);   // ie rs=pin 12, enable=pin 11 etc.

Do you really expect us to check your wiring using those pictures?

Do you know that a 'reasonable value' for the potentiometer is at or almost at one end of it's travel? The choice of end is NOT arbitrary.

Now about the code. For an initial test you don't want to aim at a moving target. Delete all of the 'clear' and 'delay' statements and then move all the remaining code from loop() to setup(). For this test loop() should be empty between the {} brackets.

Don

I would certainly turn the knob on the pot meter (10k) first to the middle position and then up & down until the correct contrast is achieved. Wiring seems Ok.

Wiring seems Ok.

How on earth did you determine this?

Don

6v6gt:
You are using this pin mapping ?:

LiquidCrystal(rs, enable, d4, d5, d6, d7)  // from https://www.arduino.cc/en/Reference/LiquidCrystalConstructor

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);   // ie rs=pin 12, enable=pin 11 etc.




![|500x407](http://www.geeetech.com/wiki/images/f/f9/1602wiring_diagram1.jpg)

6v6gt:
You are using this pin mapping ?:

LiquidCrystal(rs, enable, d4, d5, d6, d7)  // from https://www.arduino.cc/en/Reference/LiquidCrystalConstructor

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);   // ie rs=pin 12, enable=pin 11 etc.




![|500x407](http://www.geeetech.com/wiki/images/f/f9/1602wiring_diagram1.jpg)

Yes sir, I am specifically using this pin diagram.

Members, I thank you all for your insight into this problem. I admit i didnt clearly show you the connections clearly for you to analyze it. I apologize.
But guess what, The LCD has started working finally. i don't know how or why, i just lightly touched the wires, moved them a little and voila.. maybe the connections were lose or something. But it finally woks.