Dear Sir,
I was trying I2C LCD with ESP 32 using the following sketch. But the back light is very bright and the letters on LCD are very Faint. I tried to adjust the potentio meter to adjust the contrast but the effect was not much. Can you give me some software solution or hardware solution.
#include <LiquidCrystal_I2C.h>
// set the LCD number of columns and rows
int lcdColumns = 16;
int lcdRows = 2;
// set LCD address, number of columns and rows
// if you don’t know your display address, run an I2C scanner sketch
LiquidCrystal_I2C lcd(0x27, lcdColumns, lcdRows);
void setup(){
// initialize LCD
lcd.init();
// turn on LCD backlight
lcd.noBacklight();
//lcd.setContrast(255);
//lcd.setBacklight(200);
}
void loop(){
// set cursor to first column, first row
lcd.setCursor(0, 0);
// print message
lcd.print(“Hello, World!”);
delay(1000);
// clears the display to print new message
lcd.clear();
// set cursor to first column, second row
lcd.setCursor(0,1);
lcd.print(“Hello, World!”);
delay(1000);
lcd.clear();
}
I usually solve that problem with the potentiometer to adjust that…
Have you tried to uncomment and change those values to see the effect?
//lcd.setContrast(255);
//lcd.setBacklight(200);
Thanks for asking!
Yes sir I tried with
lcd.setContrast(255);
lcd.setBacklight(200);
But there was no change.
I will try.
Also I have ordered new I2C LCD. There could be a hardware problem in the existing LCD
What voltage are you feeding the LCD? The LCD needs 5V. if you feed it with the 3.3V of ESP32 the letters will look faint.
Greetings.
Mr. Serigo. Thanks a lot. You are right. I have given 3.3 V supply from ESP 32. That may be the reason for the letters to be faint. I will try with 5 V Supply and see the reasult.