Hi Guys,
I must admit, I’ve put this off for a while now. I’ve had this LCD for many months sitting in a draw after I failed to get it up and running.
First up, what am I talking about? seeedstudio.com/depot/lcd-82 … p-120.html
I’ve tried setting this per the provided examle and no joy. I’ve tried using alternate libraries including “LCD4Bit” (which I use on my other LCDs). In a vain attempt to minimise any other potential issues (like dodgy connections)
I’ve connected it directly to an Arduino Mega
(Sorry about the piss poor images, I’ve yet to join the 21st cent yet :s)
I tried hooking up a POT to double check whether the text was simply unreadable - no difference sadly.
#include <LiquidCrystal.h>
// LiquidCrystal display with:
// rs on pin 12
// rw on pin 11
// enable on pin 10
// d4, d5, d6, d7 on pins 5, 4, 3, 2
LiquidCrystal lcd(51, 48, 49, 46, 47, 44, 45, 42,43,40,41);
void setup()
{
// VSS/VDD
// Pin 1 [VSS]
pinMode(52, OUTPUT);
digitalWrite(52,LOW);
// Pin 2 [Vdd]
pinMode(53, OUTPUT);
digitalWrite(53,HIGH);
// Pin 3 [Vo] Driving voltage
pinMode(50, INPUT);
digitalWrite(50,LOW);
// Backlight
// Pin 38 aka LCD pin 16 LEDK
pinMode(38, OUTPUT);
digitalWrite(38,LOW);
// Pin 39 aka LCD pin 16 LEDK
pinMode(39, OUTPUT);
digitalWrite(39,HIGH);
// LCD Pin 1 [Vss] = Arduino 53
// LCD Pin 2 [Vdd] = Arduino 52
// LCD Pin 3 [Vo] = Arduino 50
// LCD Pin 4 [Rs ] = Arduino 51
// LCD Pin 5 [RW] = Arduino 48
// LCD Pin 6 [Enable] = Arduino 49
// LCD Pin 7 [DBO] = Arduino 46
// LCD Pin 8 [DB1] = Arduino 47
// LCD Pin 9 [DB2] = Arduino 44
// LCD Pin 10 [DB3] = Arduino 45
// LCD Pin 11 [DB4] = Arduino 42
// LCD Pin 12 [DB5] = Arduino 43
// LCD Pin 13 [DB6] = Arduino 40
// LCD Pin 14 [DB7] = Arduino 41
// LCD Pin 15 [LEDA] = Arduino 38
// LCD Pin 15 [LEDB] = Arduino 39
}
void loop()
{
// Print a message to the LCD.
lcd.print("hello, world!");
}