Need help on 16020A LCD Display (16x3)

I need help here.A newbie in arduino.I currently have an Uno r3.So i recently tried testing out my new lcd display.I wasnt working.Rechecked my wiring 3 times but all i see is black boxes.I tried setting the contrast but it dosent help.For anybody wondering,here is the code

// include the library code:
#include <LiquidCrystal.h>

// Creates an LCD object. Parameters: (rs, enable, d4, d5, d6, d7)
LiquidCrystal lcd(13, 12, 6, 5, 4, 3);

void setup() 
{
	// set up the LCD's number of columns and rows:
	lcd.begin(16, 2);

	// Clears the LCD screen
	lcd.clear();
}

void loop() 
{
	// Print a message to the LCD.
	lcd.print(" Hello world!");

	// set the cursor to column 0, line 1
	// (note: line 1 is the second row, since counting begins with 0):
	lcd.setCursor(0, 1);
	// Print a message to the LCD.
	lcd.print(" LCD Tutorial");
}

Thank you for anyone helping out :smiley:

Welcome! Great job posting the code. I’m assuming this is the classic LCD wiring assembly. You might want to proofread your question for clarity.

I couldn’t find any information on a 16020A LCD display (16x3), but I do have details on a 1602 (16x2) display. Your question suggests you’re using a 3-line display, but your code initializes a 2-line display. Could that mismatch be causing the issue? Let’s investigate further!

Please show us you wiring.

Along with the other replies, this contrast potentiometer is usually on an "I2C backpack" only. Would you post a picture of the reverse side of your LCD?

we can't see your wiring. Please post pictures.

very common problems with 4bit parallel connection are

  • missing ground connection for RW
  • breadboard power rails with interruption
  • unsoldered header on the LCD producing unreliable contacts
  • wrong contrast wiring

I propose you check the "Related topics" also.