So, I tried to find correct one driver , I tried follow some threads, I instaled and tried to make work it.
One of Adafruid - edited - master ? worked for me when I choosed some H745 or H**** something - name was completly different so I made it works.
Than I tried to change resolution in library file. And tried to "calibrate" touchscreen
But, I was not able to calibrate touchscreen and one problem will appeared when I changed resolution
It started flickering on some wrong frequency and when I looked at display from top black looked like pruple. From side - 60 degree it looks like black. Probably some wrong values which changes frequency was set .
Could someone tell me please if had a same issue and found a solution how to make this LCD with Touchscreen works ?
I found no information on original mcufriend.store and one file I tried to download was not here - 404 not found
First off. Thanks for posting your question in a well-titled thread with the sale link and photos of your actual item. You have an extreme case of a link that shows inaccurate information. e.g. different photos, wrong text, ...
Since you appear to have been fiddling with libraries, I suggest that you make a fresh start.
Install the current Arduino IDE v1.6.7
Delete any library installation of Adafruit_GFX, Touchscreen, MCUFRIEND_kbv.
Download and Install fresh copies of Adafruit_GFX, Touchscreen, MCUFRIEND_kbv libraries.
Plug the shield into your MEGA2560.
From the IDE -> File->Examples->Mcufriend_kbv->LCD_ID_readreg
Open your Serial Terminal at 9600 baud.
Build, Upload and Run LCD_ID_readreg.
Copy-paste the report from the Serial Terminal and post it here.
From the IDE -> File->Examples->Mcufriend_kbv->graphictest_kbv
Build, Upload and Run graphictest_kbv sketch.
If you follow these steps exactly, I will be 99% confident that your shield will work first time.
If there is a problem, please describe which numbered step went wrong. And how it went wrong.
When we see the result from (8 ), we can probably advise several other libraries.
Without this information, we are no better at guesswork than you are.
point 5 - it uploaded but did nothing ... here I finished
edit:
A , I am sorry , still in progress ...
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)
david_prentice , it could sound weird, but ... although we are in this post, can I ask for some guide how to make work some simple program for this LCD shield and touchscreen.
I can not cope with touchscreen and sample: tftpaint. Something is wrong - not fit to mine one, and it does not work - black screen
Probably is there something I have to edit. ( for example , sample: calibration_kbv works for me from all examples )
Some simple "program" will be helpfull for me. I tried to check some easy example but it is not clear enough for me.
I am just wondering what minimum libraries I have to include to make work this LCD plus Touch together ...
And what I have to define - what is necessary and must be before setup and loop ( or in setup once )
Forexample:
I would like to draw rectangle somewhere
then I wanted with "if" to change this rectangle color if I touch drawn rectangle area.
for example from green color to blue.
Can I ask you for some sample? Could you write please some ?
With define part and included libraries ? and than with mentioned fuctional code ?
I apologise , if it sounds that I am not very clever and do not know read but see something easy once on very -very simple example is better than quessing how it works because I do not invent it. It will be very precariously.
I think it will be helpful for more newbies to write some example in order to understand how it works.
The text on the board (attached): 3.95" TFTLCD for Arduino Mega 2560 (ili9488).
These are the results of LCD_ID_readreg.INO. I followed your instruction and first updated all libraries and IDE.
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) 04 04 ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 04 04 04 04 Manufacturer ID
reg(0x0009) 05 05 05 05 05 Status Register
reg(0x0061) 65 65 RDID1 HX8347-G
reg(0x0062) 66 66 RDID2 HX8347-G
reg(0x0063) 67 67 RDID3 HX8347-G
reg(0x0064) 64 64 RDID1 HX8347-A
reg(0x0065) 65 65 RDID2 HX8347-A
reg(0x0066) 66 66 RDID3 HX8347-A
reg(0x0067) 67 67 RDID Himax HX8347-A
reg(0x0070) 74 74 Panel Himax HX8347-A
reg(0x00A1) A5 A5 A5 A5 A5 RD_DDB SSD1963
reg(0x00B0) B4 B4 RGB Interface Signal Control
reg(0x00B4) B4 B4 Inversion Control
reg(0x00B6) B6 B6 B6 B6 B6 Display Control
reg(0x00B7) B7 B7 Entry Mode Set
reg(0x00BF) BF BF BF BF BF BF ILI9481, HX8357-B
reg(0x00C0) 4C 4C 4C 4C 4C 4C Panel Control
reg(0x00CC) 44 44 Panel Control
reg(0x00D0) 5C 5C 5C Power Control
reg(0x00D2) 56 56 56 56 56 NVM Read
reg(0x00D3) 57 57 57 57 ILI9341, ILI9488
reg(0x00DA) 5E 5E RDID1
reg(0x00DB) 57 57 RDID2
reg(0x00DC) 54 54 RDID3
reg(0x00EF) EF EF EF EF EF EF ILI9327
reg(0x00F2) F6 F6 F6 F6 F6 F6 F6 F6 F6 F6 F6 F6 Adjust Control 2
reg(0x00F6) F6 F6 F6 F6 Interface Control
{
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) 04 04 ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 04 04 04 04 Manufacturer ID
reg(0x0009) 05 05 05 05 05 Status Register
reg(0x0061) 65 65 RDID1 HX8347-G
reg(0x0062) 66 66 RDID2 HX8347-G
reg(0x0063) 67 67 RDID3 HX8347-G
reg(0x0064) 64 64 RDID1 HX8347-A
reg(0x0065) 65 65 RDID2 HX8347-A
reg(0x0066) 66 66 RDID3 HX8347-A
reg(0x0067) 67 67 RDID Himax HX8347-A
reg(0x0070) 74 74 Panel Himax HX8347-A
reg(0x00A1) A5 A5 A5 A5 A5 RD_DDB SSD1963
reg(0x00B0) B4 B4 RGB Interface Signal Control
reg(0x00B4) B4 B4 Inversion Control
reg(0x00B6) B6 B6 B6 B6 B6 Display Control
reg(0x00B7) B7 B7 Entry Mode Set
reg(0x00BF) BF BF BF BF BF BF ILI9481, HX8357-B
reg(0x00C0) 4C 4C 4C 4C 4C 4C Panel Control
reg(0x00CC) 44 44 Panel Control
reg(0x00D0) 5C 5C 5C Power Control
reg(0x00D2) 56 56 56 56 56 NVM Read
reg(0x00D3) 57 57 57 57 ILI9341, ILI9488
reg(0x00DA) 5E 5E RDID1
reg(0x00DB) 57 57 RDID2
reg(0x00DC) 54 54 RDID3
reg(0x00EF) EF EF EF EF EF EF ILI9327
reg(0x00F2) F6 F6 F6 F6 F6 F6 F6 F6 F6 F6 F6 F6 Adjust Control 2
reg(0x00F6) F6 F6 F6 F6 Interface Control
}
Attached are images of the tft lcd.
Would greatly appreciate any insights you have on this, thanks.
The library webpage says: MCUFRIEND_kbv Library for Uno 2.4, 2.8, 3.5, 3.6, 3.95 inch mcufriend Shields
The LCD_ID_readreg sketch says: Read Registers on MCUFRIEND UNO shield
Your shield will not fit on a Uno. Your shield only fits on a Mega2560 or Due.
I suggest that you try the UTFT library and ILI9481, R61581, ILI9486 controller.
Or try Rowboteer / Bodmer's "TFT_HX8357.h" library.
If your controller is an ILI9481, the "TFT_HX8357.h" library will work well and fast.
If your controller is an ILI9488, the "TFT_HX8357.h" library will "work" but not in all rotations.
In another thread I have posted a UTFT sketch that will diagnose (guess) which controller you have.
It would be helpful to others if you could run it and report what you find.
david_prentice helped me with getting started and set-up , finding working drivers to my - mentioned LCD.
NOW I would like to finish my work which I started a year ago but have not finished yet.
I just have test version with 1602 display.
Please someone who has some experiance, or you david_prentice, can I ask for some sample ?
One clickable button for example with toggle function ( it changes color after click ) will be enough for understanding.
I would like to get know which lines of code - setup code , must be included to make it works properly. ( just necessary code )
I have some idea how it generates picture on screen and how this TFT works.
But I would like to get to know some code - sample for initializing touchscreen area and visible display area.
thank you so much
And example of one button. Can I please ? Thank you
david_prentice:
First off. Thanks for posting your question in a well-titled thread with the sale link and photos of your actual item. You have an extreme case of a link that shows inaccurate information. e.g. different photos, wrong text, ...
Since you appear to have been fiddling with libraries, I suggest that you make a fresh start.
Install the current Arduino IDE v1.6.7
Delete any library installation of Adafruit_GFX, Touchscreen, MCUFRIEND_kbv.
Download and Install fresh copies of Adafruit_GFX, Touchscreen, MCUFRIEND_kbv libraries.
Plug the shield into your MEGA2560.
From the IDE -> File->Examples->Mcufriend_kbv->LCD_ID_readreg
Open your Serial Terminal at 9600 baud.
Build, Upload and Run LCD_ID_readreg.
Copy-paste the report from the Serial Terminal and post it here.
From the IDE -> File->Examples->Mcufriend_kbv->graphictest_kbv
Build, Upload and Run graphictest_kbv sketch.
If you follow these steps exactly, I will be 99% confident that your shield will work first time.
If there is a problem, please describe which numbered step went wrong. And how it went wrong.
When we see the result from (8 ), we can probably advise several other libraries.
Without this information, we are no better at guesswork than you are.
David.
I DO THOSE but lcd do nothing . and in debug box of arduino write:Invalid library found in C:\Users\farin\Documents\Arduino\libraries\UTFT: C:\Users\farin\Documents\Arduino\libraries\UTFT
withnotstanding i have this library in this folder . please help me . why my lcd dont work ?
Some of this thread seems to be about Mega Shields e.g. message #6, #7. My MCUFRIEND_kbv library is for Uno shields.
Please follow those instructions if you have a mcufriend Uno shield. Report each step as you go.
If you have a completely different shield, post a link to the actual item.
We can probably help you. But only if you stick to one appropriate thread and provide sensible information.
NO I HAVE MEGA2560 BOARD and in serial terminal has wrote:
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) 04 04 ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 04 04 04 04 Manufacturer ID
reg(0x0009) 05 05 05 05 05 Status Register
reg(0x0061) 65 65 RDID1 HX8347-G
reg(0x0062) 66 66 RDID2 HX8347-G
reg(0x0063) 67 67 RDID3 HX8347-G
reg(0x0064) 64 64 RDID1 HX8347-A
reg(0x0065) 65 65 RDID2 HX8347-A
reg(0x0066) 66 66 RDID3 HX8347-A
reg(0x0067) 67 67 RDID Himax HX8347-A
reg(0x0070) 74 74 Panel Himax HX8347-A
reg(0x00A1) A5 A5 A5 A5 A5 RD_DDB SSD1963
reg(0x00B0) B4 B4 RGB Interface Signal Control
reg(0x00B4) B4 B4 Inversion Control
reg(0x00B6) B6 B6 B6 B6 B6 Display Control
reg(0x00B7) B7 B7 Entry Mode Set
reg(0x00BF) BF BF BF BF BF BF ILI9481, HX8357-B
reg(0x00C0) 4C 4C 4C 4C 4C 4C Panel Control
reg(0x00CC) 44 44 Panel Control
reg(0x00D0) 5C 5C 5C Power Control
reg(0x00D2) 56 56 56 56 56 NVM Read
reg(0x00D3) 57 57 57 57 ILI9341, ILI9488
reg(0x00DA) 5E 5E RDID1
reg(0x00DB) 5F 5F RDID2
reg(0x00DC) 54 54 RDID3
reg(0x00EF) EF EF EF EF EF EF ILI9327
reg(0x00F2) F6 F6 F6 F6 F6 F6 F6 F6 F6 F6 F6 F6 Adjust Control 2
reg(0x00F6) F6 F6 F6 F6 Interface Control
and on my shiled wrote (ili9481)
i will be very thankful if you help me
They may look similar but the pcb traces and plated-through holes are obviously not the same.
Only you can compare the photos with the screen that is in your hand. Is it a true photo?
Do you have 9 resistor packs?
Both of those photos show regular 16-bit shields. They should both work out of the box with UTFT. I suggested the relevant constructors in message #1 of that thread.
Of course Ebay vendors often give false descriptions. And they are equally likely to sell you a defective shield or a good shield was damaged in the post. They do not care because they have already got your money.
In which case UTFT or Bodmer's TFT_HX8357 library should work.
Have you tried a different Mega2560?
Have you tried both libraries?
Have you installed UTFT from the official download location
I bet that there are several members who have bought the same Shield that you have.
If they compare their shield with your photo #2, they can tell you what works for them.
Did your shield arrive with broken glass and bent pins?
My device looks exactly the same as Ghosts picutres in post #0
So far i have done everything in steps 1-7 and I have pasted below step 8 when I run the program LCD_ID_readreg....
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)
As it stands I am not able to use the LCD screen. When I run the program graphictest_kbv I get an "image" but it is full static (like an old VCR player)