Hello everyone,
Im facing issue with LCD Display .I have uploaded simple Hello World program but still it not printing anything. But getting LCD I2C adapter address in serial Monitor.
1.Arduino UNO Used.
Please post your full sketch, using code tags when you do
Here is code
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// LCD setup: address 0x27, 16 columns, 2 rows
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
// Initialize the LCD
lcd.begin(16, 2); // Now works with the correct library
lcd.backlight(); // Turn on backlight
// Initialize the LED
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
// LED ON, show first message
digitalWrite(LED_BUILTIN, HIGH);
lcd.setCursor(0, 0);
lcd.print("Hello World! "); // spaces to clear leftover chars
lcd.setCursor(0, 1);
lcd.print("Arduino Rocks! ");
delay(1000);
// LED OFF, show second message
digitalWrite(LED_BUILTIN, LOW);
lcd.setCursor(0, 0);
lcd.print("Goodbye! ");
lcd.setCursor(0, 1);
lcd.print("See you soon! ");
delay(1000);
}
LCD display backlight turning ONOFF continuously but not showing anything on Display.
Hi, @ajit2307
To add code please click this link;
Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.
Thanks... Tom....
![]()
Your code does not print anything to serial monitor, so please explain how you see the adapter address.
It looks like you tried to use code tags when posting the sketch and failed
Edit your post, select the text of the sketch then click the < CODE > icon above the edit window to add the code tags. Delete the quotation marks at the start and end of the sketch that you added
For future reference :
In my experience the easiest way to tidy up the code and add the code tags is as follows
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.
I have uploaded separate program of address. And tested through serial monitor
If I understand correctly you have run an I2C scanner sketch and know that the address of the screen is 0x27 but you get no output on the LCD when you run the sketch that you posted. Instead the LCD backlight turns on and off
Add a Serial.begin() and print a message in setup(). Does the message print once or every time that the LCD backlight turns on/off ?
Hey @TomGeorge
Please check i have attached the screenshot of my hardware circuit,I took trail with the Nano also same issue is happening.
Does the same flashing happen if you power the UNO or Nano via USB and the LCD display just from the 5V pin on the UNO/Nano instead of the SMPSU?
Yess ,I have checked with without loop program LCD backlight was continuous ON ,and then checked with loop program ,LCD was turning ON-OFF continously.
Yes ,
I tested the display with a variable resistor, but nothing was showing on the display
What is this "loop program" that you are referring to?
Is it the one in post #3? If so, then I would suggest try commenting out this line:
lcd.backlight(); // Turn on backlight
in case its doing something unexpected. The backlight should be on by default anyway.
If its some other sketch, then could you post it so we can see it please?
did you solder yourself the I2C backpack ?
Try
lcd.init();
and remove lcd.begin(16,2);
No, It is already soldered
@BitSeeker will check and let you know
You are applying 5V to VIN pin, won't work.

