I have wired this as these instructions below; I tried pin 3 both through a 10k pot and also directly to 5v. The backlight is illuminated but the program also below doesn’t run?. Help please
Martyn
VSS
GND
Ground
VDD
+5V
Power
VO
Potentiometer middle pin
Controls contrast
RS
12
As per LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
E
11
Enable
D4
5
Data
D5
4
Data
D6
3
Data
D7
2
Data
A (LED+)
+5V via 220Ω resistor
Backlight anode
K (LED−)
GND
Backlight cathode
I received an insrtuction when submitting to format the code using the code link but it didn't do anything; guidance on this also would be appreciated please.
#include <LiquidCrystal.h> // include the library code
// constants for the number of rows and columns in the LCDconst int numRows = 2;const int numCols = 16;
// initialize the library with the numbers of the interface pinsLiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup(){lcd.begin(numCols, numRows);lcd.print("Hello, World!"); // Print a message to the LCD.}
void loop(){// set the cursor to column 0, line 1// (row numbering starts with 0, so line 1 is the second row):lcd.setCursor(0, 1);// compute seconds and print the number of seconds since the sketch started:unsigned long seconds = millis() / 1000;lcd.print(seconds);// clear any leftover digits if the number of digits shrinkslcd.print(" ");}
BTW: If you are satisfied with the result just mark this thread as solved by checking the box "Solution" of the post that finally helped you. So other members can see that this thread does not require support anymore!