Good afternoon. I bought such a TFT display. The second day I've been sitting on the Internet, I've tried different libraries (ili9481, ili9468, ili9488, ili9341, HX8357) with different parameters, different examples, different pins, chips... I can't start the display. Tell me: 1. Which Arduino pins should LCD D0 - LCD D7 be connected to. I found the MCUFRIEND_kbv-master library.zip where I can set RD, WR, RS, CS and RST pins when initializing the display. But even with this library, it does not work. Please tell me where to connect which pins and which library to use? How connected I have: RD - 40, WR - 41, RS - 38, CS - 39, RST - 37, LCDD0 - LCDD7 -> 49, 48,47,46,45,44,43,42.
Did you use a cheap display?
And what is cheap and expensive in your concept? It's not the first time I buy from this seller (other products) and everything has always been fine. I decided to buy a TFT this time.
Are you saying that your display is not printed with the pin labels, like the one in the picture you posted? That display plugs directly into an UNO/Mega.
The MCUFRIEND_kbv library generally does not need to have the pins specificed if you are using one of the "standard" pin layout displays. Have you run the diagnostic sketch from that library? If so, copy and past the serial output from that sketch to this discussion.
16:15:50.927 -> Diagnose whether this controller is supported
16:15:50.958 -> There are FAQs in extras/mcufriend_how_to.txt
16:15:50.990 ->
16:15:51.023 -> tft.readID() finds: ID = 0xD3D3
16:15:51.054 ->
16:15:51.054 -> MCUFRIEND_kbv version: 3.1.0
16:15:51.086 ->
16:15:51.086 -> Probably a write-only Mega2560 Shield
16:15:51.118 -> Try to force ID = 0x9481
16:15:51.630 ->
16:15:51.630 -> PORTRAIT is 320 x 480
16:15:51.630 ->
16:15:51.630 -> Run the examples/graphictest_kbv sketch
16:15:51.695 -> All colours, text, directions, rotations, scrolls
16:15:51.727 -> should work. If there is a problem, make notes on paper
16:15:51.824 -> Post accurate description of problem to Forum
16:15:51.887 -> Or post a link to a video (or photos)
16:15:51.920 ->
16:15:51.920 -> I rely on good information from remote users
I've just read the comments on Ali. I bought it before 2022. And the last comment from 2022 in which one man says that he has an SPFD5408 controller. Downloaded it. Installed. The example shows where to connect LCDD0 - LCDD7. Specified all control pins. And again - a white screen.
Where did you get that version from? The released version is v3.0.0.
The official release is available with Library Manager; no need to download any .zip-file.
Your display seems to have bidirectional level converters. Report chip IDs to confirm.
It should report the controller ID, if you plug directly on an Arduino UNO.
What processor board did you use?
Jean-Marc
The display https://www.aliexpress.com/item/33037701213.html
is from a Top Brand, 97.0% Positive feedback
installed version 3.0.0
Launched a test sketch:
09:12:30.388 -> Diagnose whether this controller is supported
09:12:30.420 -> There are FAQs in extras/mcufriend_how_to.txt
09:12:30.452 ->
09:12:30.485 -> tft.readID() finds: ID = 0xD3D3
09:12:30.517 ->
09:12:30.517 -> MCUFRIEND_kbv version: 3.0.0
09:12:30.550 ->
09:12:30.550 -> Probably a write-only Mega2560 Shield
09:12:30.581 -> Try to force ID = 0x9481
09:12:31.093 ->
09:12:31.093 -> PORTRAIT is 320 x 480
09:12:31.093 ->
09:12:31.093 -> Run the examples/graphictest_kbv sketch
09:12:31.159 -> All colours, text, directions, rotations, scrolls
09:12:31.191 -> should work. If there is a problem, make notes on paper
09:12:31.255 -> Post accurate description of problem to Forum
09:12:31.351 -> Or post a link to a video (or photos)
09:12:31.383 ->
09:12:31.383 -> I rely on good information from remote users
I want to connect to Arduino Mega, not Arduino Uno
Hello alvasmes
Check out the differnces of the pinning between Arduino Uno and Arduino Mega.
That's it, I beat him. I'm in shock and don't understand why it works like this.
Pinout from one sketch:
//-- Arduino UNO or Mega 2560 Plugged as shield
#define LCD_RST A4 //A1
#define LCD_CS A3
#define LCD_RS A2
#define LCD_WR A1
#define LCD_RD A0
#define LCD_D0 8
#define LCD_D1 9
#define LCD_D2 2 //10
#define LCD_D3 3 //11
#define LCD_D4 4
#define LCD_D5 5 //13
#define LCD_D6 6
#define LCD_D7 7
The sketch itself is different
GLUE Demo 480x320
based on the UTFTGLUE.h library in which it is written
// Arduino Mega:
// -------------------
// Standard Arduino Mega/Due shield : <display model>,38,39,40,41
// CTE TFT LCD/SD Shield for Arduino Mega : <display model>,38,39,40,41
#include <UTFTGLUE.h> //use GLUE class and constructor
UTFTGLUE myGLCD(29,38,41,39,37,A0); //all dummy args
where 29 is a completely different 16 bit chip
#define CTE70CPLD 29 // CPLD (16bit)
And it all works!!
I'm shocked. Explain why this is happening?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.