I'm not able to run 2.8'' TFT LCD Shield with Arduino Mega 2560
Thanks for the photos. We know this shield.
-
Install MCUFRIEND_kbv and Adafruit_GFX libraries via IDE Library Manager.
-
Plug the Shield into the MEGA2560
-
Run all the MCUFRIEND_kbv examples.
If you have a problem, quote which "example.ino" i.e. the example name.
David.
Please copy-paste from the Serial Terminal. Do not post a screenshot of the Terminal.
I would expect to see a valid ID from your Shield.
Please run LCD_ID_readreg.ino from the examples and paste the result.
David.
Read Registers on MCUFRIEND UNO shield
controllers either read as single 16-bit
e.g. the ID is at readReg(0)
or as a sequence of 8-bit values
in special locations (first is dummy)
reg(0x0000) 03 03 ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 07 07 07 07 Manufacturer ID
reg(0x0009) 0B 0B 0B 0B 0B Status Register
reg(0x000A) 0B 0B Get Power Mode
reg(0x000C) 0F 0F Get Pixel Format
reg(0x0061) 63 63 RDID1 HX8347-G
reg(0x0062) 63 63 RDID2 HX8347-G
reg(0x0063) 63 63 RDID3 HX8347-G
reg(0x0064) 67 67 RDID1 HX8347-A
reg(0x0065) 67 67 RDID2 HX8347-A
reg(0x0066) 67 67 RDID3 HX8347-A
reg(0x0067) 67 67 RDID Himax HX8347-A
reg(0x0070) 73 73 Panel Himax HX8347-A
reg(0x00A1) A3 A3 A3 A3 A3 RD_DDB SSD1963
reg(0x00B0) B3 B3 RGB Interface Signal Control
reg(0x00B4) B7 B7 Inversion Control
reg(0x00B6) B7 B7 B7 B7 B7 Display Control
reg(0x00B7) B7 B7 Entry Mode Set
reg(0x00BF) BF BF BF BF BF BF ILI9481, HX8357-B
reg(0x00C0) C3 C3 C3 C3 C3 C3 C3 C3 C3 Panel Control
reg(0x00C8) CB CB CB CB CB CB CB CB CB CB CB CB CB GAMMA
reg(0x00CC) CF CF Panel Control
reg(0x00D0) D3 D3 D3 Power Control
reg(0x00D2) D3 D3 D3 D3 D3 NVM Read
reg(0x00D3) D3 D3 D3 D3 ILI9341, ILI9488
reg(0x00D4) D7 D7 D7 D7 Novatek ID
reg(0x00DA) DB DB RDID1
reg(0x00DB) DB DB RDID2
reg(0x00DC) DF DF RDID3
reg(0x00E0) E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 GAMMA-P
reg(0x00E1) E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 GAMMA-N
reg(0x00EF) EF EF EF EF EF EF ILI9327
reg(0x00F2) F3 F3 F3 F3 F3 F3 F3 F3 F3 F3 F3 F3 Adjust Control 2
reg(0x00F6) F7 F7 F7 F7 Interface Control
The sketch is just showing (address | 0x03)
for every register address.
Your photo looks like regular "Blue 2.8 inch Uno Shield" which should be readable.
I assume that the chips on the pcb are: 74LV245 and AMS1117-3.3
I suggest that you try the shield on a different Arduino e.g. Uno, Mega, Zero, Due, .... And run the same sketch.
David.
The chip is AMS1117 3.3 DN628
I'm using arduino mega 2560 ... I will try on UNO and update you
It has 2 nos 74lvc245a nxp
Yes, the Shield is correctly designed. It should work 100%.
David.
Dear David,
I tried with Arduino UNO and I got the below...
Read Registers on MCUFRIEND UNO shield
controllers either read as single 16-bit
e.g. the ID is at readReg(0)
or as a sequence of 8-bit values
in special locations (first is dummy)
reg(0x0000) 03 83 ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 07 87 87 87 Manufacturer ID
reg(0x0009) 0B 8B 8B 8B 8B Status Register
reg(0x000A) 0B 8B Get Power Mode
reg(0x000C) 0F 8F Get Pixel Format
reg(0x0061) 63 E3 RDID1 HX8347-G
reg(0x0062) 63 E3 RDID2 HX8347-G
reg(0x0063) 63 E3 RDID3 HX8347-G
reg(0x0064) 67 E7 RDID1 HX8347-A
reg(0x0065) 67 E7 RDID2 HX8347-A
reg(0x0066) 67 E7 RDID3 HX8347-A
reg(0x0067) 67 E7 RDID Himax HX8347-A
reg(0x0070) 73 F3 Panel Himax HX8347-A
reg(0x00A1) A3 A3 A3 A3 A3 RD_DDB SSD1963
reg(0x00B0) B3 B3 RGB Interface Signal Control
reg(0x00B4) B7 B7 Inversion Control
reg(0x00B6) B7 B7 B7 B7 B7 Display Control
reg(0x00B7) B7 B7 Entry Mode Set
reg(0x00BF) BF BF BF BF BF BF ILI9481, HX8357-B
reg(0x00C0) C3 C3 C3 C3 C3 C3 C3 C3 C3 Panel Control
reg(0x00C8) CB CB CB CB CB CB CB CB CB CB CB CB CB GAMMA
reg(0x00CC) CF CF Panel Control
reg(0x00D0) D3 D3 D3 Power Control
reg(0x00D2) D3 D3 D3 D3 D3 NVM Read
reg(0x00D3) D3 D3 D3 D3 ILI9341, ILI9488
reg(0x00D4) D7 D7 D7 D7 Novatek ID
reg(0x00DA) DB DB RDID1
reg(0x00DB) DB DB RDID2
reg(0x00DC) DF DF RDID3
reg(0x00E0) E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 GAMMA-P
reg(0x00E1) E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 E3 GAMMA-N
reg(0x00EF) EF EF EF EF EF EF ILI9327
reg(0x00F2) F3 F3 F3 F3 F3 F3 F3 F3 F3 F3 F3 F3 Adjust Control 2
reg(0x00F6) F7 F7 F7 F7 Interface Control
The result is still garbage.
But at least is slightly different to your previous run. It is still (address | 0x03)
for every register address but with (address | 0x83)
for 2nd and succeeding bytes.
Did you use another Mega or Uno ?
David.
Dear David,
I tried this with UNO original and mega also, where is the issue ?
Thanks,
I tried 2 more screens and still the same issue coming !!!
I would expect your Blue 2.8 inch shield to work 100%.
If you get the same report with each shield it means the shields are identical.
If you get the same report with each different Arduino it means your Arduinos are all working ok.
It is possible that your Vendor has sold you 3 bad screens. Perhaps she got a bad batch from her Supplier.
I would ask the Vendor for help (or refund).
David.