Screen stuck on blank page

Hello guys,
I'm currently working on a school based project, and a part of this project need an arduino screen.
So we decided with my teacher to buy:
-an Arduino Mega (this model: https://www.amazon.fr/gp/product/B06XKZY117/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1)
-an screen (this screen: https://www.aliexpress.com/item/3-8-3-95-inch-320-480-TFT-Color-LCD-Display-Module-Screen-ILI9486-9488-Drive/32916041971.html?spm=a2g0s.9042311.0.0.3da24c4dV8CfmA)
We also decided to connect the arduino mega, with the screen directly via connectors included (just clip pins).
But unfortunately, the screen is stuck on white screen. Nothing happens.
I tried many libraries, but nothings changes...
Can someone help me?
I really need that to work.
Thanks,
Tom

Thanks for the links to your Mega2560 and your screen.
It means that people can give you an accurate answer in one reply.

  1. The LCD_RD pin does not work. The display is write-only.

  2. The LCD uses an 8 Bit data bus. UTFT and other libraries expect a 16 bit data bus.

  3. The Touch controller is hard-wired to the SPI bus.

  4. The XPT2046 chip-select pin is digital #53

  5. The SD Card chip-select pin is digital #48

  6. Install MCUFRIEND_kbv and Adafruit_GFX libraries via the IDE Library Manager..

  7. Edit utility/mcufriend_shield.h to #define USE_SPECIAL

  8. Edit utility/mcufriend_special.h to #define USE_MEGA_8BIT_SHIELD

  9. In your sketch setup() you must force the controller ID e.g. tft.begin(0x9486);

Please do not use flying wires to connect the Shield.
God invented Shields so that they can plug into your Mega2560.

You must use a proper hardware library for the Touch e.g. XPT2046_Touchscreen.h

It is a little different to most Mega2560 shields but everything should work ok.

David.

Edit. Added numbered steps. Added the CS pin numbers for Touch and microSD.

david_prentice:
Thanks for the links to your Mega2560 and your screen.
It means that people can give you an accurate answer in one reply.

The LCD_RD pin does not work.
The LCD uses an 8 Bit data bus. UTFT and other libraries expect a 16 bit data bus.
The Touch controller is hard-wired to the SPI bus.

Install MCUFRIEND_kbv and Adafruit_GFX libraries via the IDE Library Manager..
Edit utility/mcufriend_shield.h to #define USE_SPECIAL
Edit utility/mcufriend_special.h to #define USE_MEGA_8BIT_SHIELD
In your sketch setup() you must force the controller ID e.g. tft.begin(0x9486);

Please do not use flying wires to connect the Shield.
God invented Shields so that they can plug into your Mega2560.

You must use a proper hardware library for the Touch e.g. XPT2046_Touchscreen.h

It is a little different to most Mega2560 shields but everything should work ok.

David.

Hello David.
Thanks for your help, so precious.
I followed all your instructions, but the screen stay white.
I modified lines as you said, and add the id as you said.
You advise me to change my screen?
Thanks
Tom

It should work.

Make notes on paper as you complete each step.

The "edits" are very simple. You just remove the two slash characters //

Every male pin on the shield should mate with a corresponding female socket.

David.