Become a leader in the IoT community!

New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!

Step 1 of 5

CREATE YOUR PROFILE *Required

OR
Step 2 of 5

WHAT BRINGS YOU TO DEVHEADS? *Choose 1 or more

Collaboration & Work 🤝
Learn & Grow 📚
Contribute Experience & Expertise 🔧
Step 3 of 5

WHAT'S YOUR INTEREST OR EXPERTISE? *Choose 1 or more

Hardware & Design 💡
Embedded Software 💻
Edge Networking
Step 4 of 5

Personalize your profile

Step 5 of 5

Read & agree to our COMMUNITY RULES

  1. We want this server to be a welcoming space! Treat everyone with respect. Absolutely no harassment, witch hunting, sexism, racism, or hate speech will be tolerated.
  2. If you see something against the rules or something that makes you feel unsafe, let staff know by messaging @admin in the "support-tickets" tab in the Live DevChat menu.
  3. No age-restricted, obscene or NSFW content. This includes text, images, or links featuring nudity, sex, hard violence, or other graphically disturbing content.
  4. No spam. This includes DMing fellow members.
  5. You must be over the age of 18 years old to participate in our community.
  6. Our community uses Answer Overflow to index content on the web. By posting in this channel your messages will be indexed on the worldwide web to help others find answers.
  7. You agree to our Terms of Service (https://www.devheads.io/terms-of-service/) and Privacy Policy (https://www.devheads.io/privacy-policy)
By clicking "Finish", you have read and agreed to the our Terms of Service and Privacy Policy.

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));
}“

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

  1. wafa_ath#0000

    Hey Aymen, try to adjust the blue square in the back of the lcd , it is adjustable resistor that can be used to fine-tune settings and calibration
    0image0.jpg

  2. aymen ammari#0000

    I’m not sure that I have that cercuit mounted, what is that

  3. Nayel#0000

    a potentiometer

  4. Nayel#0000

    for the clarity

  5. Nayel#0000

    of the pixels

  6. Nayel#0000

    try it you’ll see

  7. Nayel#0000

    you have it mounted on the breadboard

  8. Nayel#0000

    its the same

  9. aymen ammari#0000

    Yeah the potentiometer I know it, I’m talking about the hole black cercuit, I’ve tried to change mine but it doesn’t seem to work

  10. Nayel#0000

    It’s an i2c board

  11. Nayel#0000

    It helps minimise cables

  12. Nayel#0000

    To test if the boards work correctly or not use the I2C scanner example code

  13. Nayel#0000

    And if you see an exadecimal

  14. Nayel#0000

    Code

  15. Nayel#0000

    It’s works

  16. Nayel#0000

    I’id not try inverting the pins SDA and scl

  17. Nayel#0000

    And still if you don’t see an address change the board

  18. Nayel#0000

    Finally if you see an address but when you try using the LCD screen with another code

  19. Nayel#0000

    It may be due to the screen itself being broken

CONTRIBUTE TO THIS THREAD

Browse other Product Reviews tagged

Leaderboard

RANKED BY XP

All time
  • 1.
    Avatar
    @Nayel115
    1620 XP
  • 2.
    Avatar
    @UcGee
    650 XP
  • 3.
    Avatar
    @melta101
    600 XP
  • 4.
    Avatar
    @lifegochi
    250 XP
  • 5.
    Avatar
    @Youuce
    180 XP
  • 6.
    Avatar
    @hemalchevli
    170 XP