© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
DevHeads IoT Integration ServerDIIS
DevHeads IoT Integration Server•2y ago•
20 replies
aymen ammari

Why isn't my "Hello World" displaying on the LCD screen despite correct connections and power?

Hey Devs , I've been trying to make this simple LCD screen circuit that displays "Hello World".
I have made my connections like this
And my code is very simple
 int rs = 7, en = 8, d4 = 9, d5 = 10, d6 = 11, d7 = 12, readPin = A2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void setup() {
  // put your setup code here, to run once:
  lcd.begin(16, 2);
  //16 columns, 2 rows
  pinMode(readPin,INPUT);
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
  lcd.setCursor(0, 1);
  lcd.print("Hello World");
  lcd.print(millis()/1000);
  Serial.println(analogRead(readPin));
}
 int rs = 7, en = 8, d4 = 9, d5 = 10, d6 = 11, d7 = 12, readPin = A2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void setup() {
  // put your setup code here, to run once:
  lcd.begin(16, 2);
  //16 columns, 2 rows
  pinMode(readPin,INPUT);
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
  lcd.setCursor(0, 1);
  lcd.print("Hello World");
  lcd.print(millis()/1000);
  Serial.println(analogRead(readPin));
}




I have triple-checked the connections and have even dismantled and reconnected everything twice, but nothing seems to help.

My soldering of the headpins on the LCD also seems fine.

I have already tried the following:

Disconnecting all data pins connecting only the power pins to get a row of black boxes on the top.
Adjusting the potentiometer.
Connecting both ends of the potentiometer to GND, as suggested by someone on some other forum thread.
Checking if my potentiometer is defective. I disconnected everything and performed an analogRead on the potentiometer(as shown in the code), and the potentiometer correctly varies from 0 to 1023 on turning its wheel.
None of these have helped. Since the lights are turning on, I don't think there's a problem with the LCD either. Can anyone please help me out?
file0.jpg
Solution
It may be due to the screen itself being broken
Jump to solution
DevHeads IoT Integration Server banner
DevHeads IoT Integration ServerJoin
The DevHeads IoT Integration Server accelerates technology engineering by helping pro devs learn, share and collaborate.
2,984Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Why isn't my ESP8266 RFID Reader Providing Expected Output on the Serial Monitor?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
3y ago
Why Does My ESP32-WROVER-B Fail to Power On Intermittently?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
15mo ago
Zero Ohms resistor on the Power Line
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
3y ago
Why Isn't the CM4 Able to Pull the ESP32's RX Pin Down to 0V?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
14mo ago