I recently bought a 20x4 LCD Screen and connected it to my Arduino Uno using the following schematic
I have used a 10K potentiometer and when I turn it only makes it a slight bit brighter, and otherwise it is extremely dim and the only way you can read the text is if you put it under a direct light source such as a flashlight.
This is my code:
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
// put your setup code here, to run once:
lcd.begin (20, 4);
lcd.print ("welcome!!!!");
}
void loop() {
// put your main code here, to run repeatedly:
}
I have checked all the connections multiple times
The LCD pins have been connected like this:
LCD RS pin to digital pin 12
LCD Enable pin to digital pin 11
LCD D4 pin to digital pin 5
LCD D5 pin to digital pin 4
LCD D6 pin to digital pin 3
LCD D7 pin to digital pin 2