Hi All
Hope you support me in assembling 3.5 TFT LCD (ili9486) with arduino MEGA .
Thank you in advance
Hi All
Hope you support me in assembling 3.5 TFT LCD (ili9486) with arduino MEGA .
Thank you in advance
Install the MCUFRIEND_kbv library with the Library Manager.
Your screen will have inverted colours. My old ILI9486 Red shield shows correct colours. Current Red shields and Blue shields have inverted colours.
EDit the MCUFRIEND_kbv.cpp file
case 0x9486:
_lcd_capable = AUTO_READINC | MIPI_DCS_REV1 | MV_AXIS; //Red 3.5", Blue 3.5"
// _lcd_capable = AUTO_READINC | MIPI_DCS_REV1 | MV_AXIS | REV_SCREEN; //old Red 3.5"
When I make the next Release of the library, it will default to this new code.
David.
But i tried to connect directly with mega but i get white screen only , I think i need to connect this screen with wires to change pins as i think this LCD compatible with UNO directly , So please support in this point .
No, the shield plugs into a Mega in exactly the same way as it plugs into Uno, Zero, Due, ...
You select the correct Board in the IDE i.e. MEGA2560
Then build any of the Examples.
If you have a problem, you run the diagnose_TFT_support example.
Then paste the output from the Serial Terminal to your message.
David.
Just a quick THANK YOU to David, I have been trying to get this screen to work on my MEGA 2560 with all the libraries I could find, the MCUFRIEND_kbv was the one that worked.
Hello, could you advise me a little, I'm trying to use that library they mention, but do not compile the example program, could you tell me that I need to install apart from the library, could you also explain a little how to use that library?
I have the same screen model, and an arduino Mega 2560
same screen mode is not very helpful. (unless you quote message # )
Please post link to actual display e.g. Ebay sale.
David.
david_prentice:
same screen mode is not very helpful. (unless you quote message # )Please post link to actual display e.g. Ebay sale.
David.
Is this model: https://articulo.mercadolibre.com.mx/MLM-613677029-kuman-arduino-uno-r3-de-35-pulgadas-de-pantalla-tactil-tft-_JM
That is a Blue 3.5 inch Uno Shield. Usually contains ILI9481 or ILI9486.
Runs well with Uno. Runs on a Mega2560 but is slower than Uno.
Install Adafruit_GFX library with the Library Manager.
Install MCUFRIEND_kbv library with the Library Manager.
It has a resistive Touch Screen that shares pins with the TFT.
Install TouchScreen library from Adafruit with the Library Manager.
Most Arduino graphics libraries use Adafruit_GFX style methods.
So it is fairly easy to adapt programs for GLCD, OLED, TFT from Adafruit, MarekBuriak, Bodmer, ...
I suggest that you start with all the examples that come with your library.
Or just quote an example from a different library and ask if possible to "port" to the library you are using.
Always write new programs in the native GFX style.
David.
david_prentice:
That is a Blue 3.5 inch Uno Shield. Usually contains ILI9481 or ILI9486.
Runs well with Uno. Runs on a Mega2560 but is slower than Uno.Install Adafruit_GFX library with the Library Manager.
Install MCUFRIEND_kbv library with the Library Manager.It has a resistive Touch Screen that shares pins with the TFT.
Install TouchScreen library from Adafruit with the Library Manager.Most Arduino graphics libraries use Adafruit_GFX style methods.
So it is fairly easy to adapt programs for GLCD, OLED, TFT from Adafruit, MarekBuriak, Bodmer, ...I suggest that you start with all the examples that come with your library.
Or just quote an example from a different library and ask if possible to "port" to the library you are using.
Always write new programs in the native GFX style.
David.
Thanks David, I have already used the Rinky Dinky Electronics libraries, I used them on a TFT screen QVT_320X240 whit ILI9341 Controller, I see that in the MCUFRIEND_kbv library, you adapted the UTFT libraries of Rinky Dinky Electrónics, have you not yet adapted Rinky Dinky Electronics "URTouch" library ?, I've never worked with Adafruit bookstores, could you tell me where to find information on how to use Adadfruit's Libraríes?.
I can show you how to adapt your existing UTFT program to run on your Blue Uno Shield.
You should use GFX-style methods in a new program.
The README.md and the mcufriend_how_to.txt files have links to Adafruit GFX tutorials.
There are several examples included with the library.
There are thousands of GFX examples out there. Look at Adafruit's, Marek's or Bodmer's examples.
If you need to run the "same" program on your 40-pin QVT screen as on your new Uno Shield, you should choose one style and stick to it. Do not mix GFX and UTFT methods.
David.
hello mohamed008800
I have also your problem but please help me i read ur conversation but i my display still white screen
Please post a link to the sale or photo of the actual shield that you have bought e.g. like the OP did in message #0
The Library Manager will install the current Release which is v2.9.8
If you have any other versions or did not install with the Library Manager, please leave the IDE and delete those directory(s)
Then install properly with the Library Manager.
If you have any problems, post a photo of the shield plugged into the Mega2560 Arduino board.
David.
The shield will not work with bent pins.
Every male pin should mate with its corresponding female socket on the MEGA2560.
It is worth running LCD_ID_readreg sketch. It might not have an ILI9486.
Copy-paste the result from the Serial Terminal.
David.
hello im new to this and i used this shield with uno its work fine but it didnt work with mega 2560
plz help me now a days im going on a project but it want more memory then i have to choose Mega
If you know how to plug the shield into the Uno, it is exactly the same with the MEGA2560.
If you plug it in correctly, the LCD_ID_readreg output will be exactly the same as with the Uno.
Did you produce those JPGs on the Uno or the Mega?
It shows an ILI9486 controller.
It is much easier to copy-paste from the Serial Terminal. Press ctrl-A to select all the text. Ctrl-C to copy. Ctrl-V to paste to your Forum message.
If you find any "difference" between Uno and Mega, you should try a new Mega2560 board.
David.
Your mega.txt is different to the uno.txt
This means that there is something wrong with your MEGA2560. Try the shield on a different MEGA2560.
Meanwhile, edit your graphictest_kbv.ino example. In setup() force tft.begin(0x9486)
Run the sketch.
Does it work?
What ID does it say on the Serial Terminal?
What ID does it say on the Adafruit Test Results page?
Please do not PM. Ask your questions on the Public Forum.
You should always use the Library Manager to install libraries.
David.