I have just bought my first Arduino (a Mega 2560 R3 clone by ELEGOO), and I got a cheap LCD display to go with it. I cannot for the life of me get it to display anything other than a row of white blocks (although I uploaded a different sketch that I change the numbers of one of the ports and now it shows the top 3 blocks of the second row as white as well).
When I read the notes on the example LCD sketch "Display" it says the following:
The circuit:
- 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
- LCD R/W pin to ground
- LCD VSS pin to ground
- LCD VCC pin to 5V
- 10K resistor:
- ends to +5V and ground
- wiper to LCD VO pin (pin 3)
However, when I plug my display into the Arduino the pins don't seem to go into the same ports and there is no other way of fitting it in. For reference my pins go:
LCD - Mega2560
VSS - AREF,
VDD - GND,
V0 - 13,
RS - 12,
RW - 11,
E - 10,
D0 - 9,
D1 - 8,
D2 - 7,
D3 - 6,
D4 - 5,
D6 - 4,
D7 - 3,
D8 - 2,
A - 1-TX,
K - 0-RX,
RST - RESET,
5V - 5V,
VIN - VIN,
A0 - A0,
A1 - A1,
A2 - A2,
A3 - A3,
A4 - A4,
A5 - A5,
I am not sure what to do any assistance you can provide would be greatly appreciated.
Liam