Go Down

Topic: mcufriend 3.5 TFT problem with mega2560 -> SOLVED!!!!!!! (Read 17672 times) previous topic - next topic


Nov 13, 2014, 07:44 pm Last Edit: Nov 14, 2014, 04:19 pm by vespapierre

I have read many posts regarding this problem. Tried a lot libraries. Just have the white screen on my tft.
It has the mcufriend.com on the back.

Tried also henningkarlsen lib with R61581 driver...
If needed I can enclose picture.

Thanks for any help!

Specification is:
3.5 inch TFT LCD Screen For Arduino MEGA 2560 Board
Dimension :3.5inch
Controller :R61581
Resolution:  400x270
data bits: 8 -16
Interface pin number :37 pin
Distance:1 mm

3.5 inch LCD screen interface definition (37pin):
1    NC
2    VDD
3    VDD
4    CS
5    RS
6    WR
7    RD
8    RESET
9    DB0
10    DB1
11    DB2
12    DB3
13    DB4
14    DB5
15    DB6
16    DB7
17    DB8
18    DB9
19    DB10
20    DB11
21    DB12
22    DB13
23   DB14
24    DB15
25    GND
26    NC
27    NC
28    NC
29    NC
30    LED-K6
31    LED-K5
32    LED-K4
33    LED-K3
34    LED-K2
35    LED-K1
36    LED-A
37   GND



the problem is solved!!

1. Download Henning Karlsen's UTFT library here:


2. Open the example : UTFT_Demo_480x320

this is with:

Code: [Select]

UTFT myGLCD(CTE32HR,38,39,40,41);

3. Upload

And be happy!
My specification said this 400*270  (however 240) and with controller R61581.

So use 480*320 and CTE32HR.



. .  . and I wasn't I glad of it being solved.  I bought two of these devices about a year (and a bit) a go.  Fortunately, I have been pre-occupied with a zillion other project so (OK - I'll admit to being slack).

Despite going to the Henning Karlsen and MCUfriend sites, none provide the definitive holistic answer I needed.  Yep, that elusive device nameand the correct library.


HI Guys

I have just bought the mcufriend 3.5inch. I did as described and it works, EXCEPT:

The image is flipped horizontally and the writing is backwards??

Any help to fix this???




My GitHub:



I fixed it....

Firstly I used the R61581 as the driver in the code:

// Remember to change the model parameter to suit your display module!
UTFT myGLCD(R61581,38,39,40,41);

and then I had to edit the R61581's initlcd.h file. and change:


Its the hex Ox4A that did the trick!



Hello guys, could you help me to connect the pins from 3.5" TFT LCD (ili9488) to Arduino Mega 2560?
Its total pins are different with the previous one, i have searched using Google but i haven't found that have the same total pins with mine.

This is the LCD pins image link

and if you have the code, would you mind share it with me.

Thank you guys.


hey frnds i hv been trying to solve the issue of my 3.5 " tft module from mcufriends using arduino uno but only white light glows nothing else i tried many library but led me no where. i posted in many forum for help but there has been no reply please if any one had simmilar issue and have been solved i wld be glad if i get some help. plz my mail id is vishal.mhatre390@gmail.com


Please do not use PM for non-personal questions.

Look at MCUFRIEND_kbv library

Run the LCD_ID_readreg.ino sketch if the library does not recognise your shield.

Please ask further TFT related questions in the Displays Forum.



i download the latest version of arduino (1.6.7). this version automatically have utft lib and example but still i cant setup lcd 3.5 mcufriend with controller ili9481 and see white background .who can help me? maybe im wrong in pinout please tell me how this shield link to board mega2560? tnk


My problem is seem. I just get white screen! With  MCUFRIEND_kbv library is not working. I tried differend libraries. I tried set as R61581, ILI9327, CTE32, CTE35.
I have simple TFT panel. When I upload the code to Board is blinking, this touch panel is do nothing.

My Touch panel is 3.95 ILI9488 480x320
Board is MEga 2560.


I recently purchased MCUfriend TFT 3.5 inch and getting white sceen
i have applied al the suggested steps  listed here
Can you please tell me how to find the Modle number mine doesnot say anu model number on the back

I tried following

1. Download Henning Karlsen's UTFT library here:


2. Open the example : UTFT_Demo_480x320

this is with:

Code: [Select]

UTFT myGLCD(CTE32HR,38,39,40,41);

3. Upload

No luck
I also tried what is suggested here

noticed some information on the SR monitor

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(0x000A) 06 06   Get Powsr Mode
reg(0x000C) 04 04   Get Pixel Format
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) 44 44 44 44 44 44 44 44 44   Panel Control
reg(0x00C8) 44 44 44 44 44 44 44 44 44 44 44 44 44   GAMMA
reg(0x00CC) 44 44   Panel Control
reg(0x00D0) 54 54 54   Power Control
reg(0x00D2) 56 56 56 56 56   NVM Read
reg(0x00D3) 57 57 57 57   ILI9341, ILI9488
reg(0x00DA) 56 56   RDID1
reg(0x00DB) 57 57   RDID2
reg(0x00DC) 54 54   RDID3
reg(0x00E0) E4 E4 E4 E4 E4 E4 E4 E4 E4 E4 E4 E4 E4 E4 E4 E4   GAMMA-P
reg(0x00E1) E5 E5 E5 E5 E5 E5 E5 E5 E5 E5 E5 E5 E5 E5 E5 E5   GAMMA-N
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


I also have an mcufriend 3.5" screen with an ili9488 chipset, and am having the white screen problem.

On a whim, I decided to use separate wires to hook the screen up to my Due, 1) to make sure that the screen is only going to use 3.3v, and 2) because the shield I got from ebay doesn't pass any voltage from the arduino to the lcd.

I didn't get any farther than hooking up power to the screen, and still got the white.

Attached are the pics of the shield I have.

Any ideas?



Dear All, I'm also out of luck! :smiley-confuse:  pics attached!


J'ai récemment acheté MCUfriend TFT 3,5 pouces et j'obtiens un écran blanc.


Go Up