ili9488 with tuoch screen

Hello. Preobrela's such a thing. With controller LSD figured everything works. But with touch sreen there is a problem. Pour Point sketch touch running almost the entire area of the screen. When run TEST stitch it does not respond to 1/4 Eran. Where to dig .... ??

http://ru.aliexpress.com/item/Free-shipping-5pcs-lot-LCD-Display-Module-TFT-3-5-inch-TFT-LCD-screen-for-Arduino/1989274412.html

Understood. It was necessary to improve over the library, and everything worked.

In the archives of the Library folder are supported ili9341 240x320, ili9488 480x320, for quite uncomment the desired resolution and compile the sketch.

http://178.130.34.198/adafruit/adafruit.rar

You can add a function on / off LSD can only add to the Shield backlight control. Insert in .ccp

void Adafruit_TFTLCD::lcdoff(void) {
 
 CS_ACTIVE;
 CD_COMMAND;
 write8(0x28);
 CD_DATA;
 write8(0);
 CS_IDLE;
}

void Adafruit_TFTLCD::lcdon(void) {
 
 CS_ACTIVE;
 CD_COMMAND;
 write8(0x29);
 CD_DATA;
 write8(0);
 CS_IDLE;
}

Insert in .h

void	   lcdoff();
 void	   lcdon();

funk.h (225 Bytes)

little changed sketch tftpaint2. Now you can see the work of LСD Shield 3.95 ili9488.

tftpaint2_9327.ino (12 KB)

Helo diger67. I have this shield with ILI9488. I tried your file, but i can see only white color. Serial monitor stuck on paint message. I use arduino mega shield. Can you help me please on this? Thanks a lot

darry:
Helo diger67. I have this shield with ILI9488. I tried your file, but i can see only white color. Serial monitor stuck on paint message. I use arduino mega shield. Can you help me please on this? Thanks a lot

Hi. Are you sure that this is ili9488. More like it ili9327. Just download the sketch is not enough. It should also establish a library. The standard library adafruit no support ili9488 and ili9327. Start a terminal and see how determined the chip TFT.

Can you please share, how to check the ID of the chip please? Thanks a lot

Hello diger67.
I have same problem.
I got http://178.130.34.198/adafruit/adafruit.rar.

I added Serial.print in readID function.
And I tried.


uint16_t Adafruit_TFTLCD::readID(void) {

uint8_t hi, lo;

/*
for (uint8_t i=0; i<128; i++) {
Serial.print("$"); Serial.print(i, HEX);
Serial.print(" = 0x"); Serial.println(readReg(i), HEX);
}
*/

// caryg
// somehow executing this debug code causes
// us to correctly read 0x9341 below.
// some sort of timing issue?
// at least one of the Serial.print s below
// needs to execute then we read 0x9341
//uint16_t foo = readReg(0x04);
//Serial.print("Foo ");
//Serial.println(foo, HEX);

//delay(1000);

if (readReg(0x04) == 0x8000) { // eh close enough
// setc!
/*
Serial.println("!");
for (uint8_t i=0; i<254; i++) {
Serial.print("$"); Serial.print(i, HEX);
Serial.print(" = 0x"); Serial.println(readReg(i), HEX);
}
*/
writeRegister24(HX8357D_SETC, 0xFF8357);
delay(300);
if (readReg(0xD0) == 0x990000) {
return 0x8357;
}
}

uint16_t id = readReg(0xD3);
Serial.print("readReg(0xD3)=");
Serial.println(id,HEX);
if (id == 0x9341) {
return id;
}
if (id == 0x9488) {
return id;
}

id = readReg(0xEF); //
if (id == 0x9327) { //
return 0x9327; //
}

CS_ACTIVE;
CD_COMMAND;
write8(0x00);
WR_STROBE; // Repeat prior byte (0x00)
setReadDir(); // Set up LCD data port(s) for READ operations
CD_DATA;
read8(hi);
read8(lo);
Serial.print("hi=");
Serial.print(hi,HEX);
Serial.print(" lo=");
Serial.println(lo,HEX);
setWriteDir(); // Restore LCD data port(s) to WRITE configuration
CS_IDLE;

id = hi; id <<= 8; id |= lo;
return id;
}

TFT LCD test
Using Adafruit 2.8" TFT Breakout Board Pinout
TFT size is 240x320
readReg(0xD3)=0
hi=B5 lo=9
Unknown LCD driver chip: B509

It is not an ILI9488.

You have a R61509V controller. The screen is 240x400.

I suspect that you have "61509" rubber stamped on the bottom of your pcb.

AliExpress and Ebay vendors will say anything to get your money. Just treat their websites with caution.

Oh, the display should work just fine with the correct library. There does not seem to be any way to attach a ZIP file to a PM. PM me with your email address.

David.

Thank you very much for your answer.
The board have "61509" rubber stamped on the bottom of your pcb.
Could you upload a correct library in your Web site or Google Drive or DropBox?

This is my type mistake.
The board have "61509" rubber stamped on the bottom of your pcb.

This is a correct answer.
The board have "61509" rubber stamped on the bottom of my pcb.

I do not have a website or Dropbox account. Do you not have an Email ?

David

Hello David.

You can send a file to me using the following page.
You have to install nothing.
You don't need any password.

https://dbinbox.com/nopnop2002

When you use chrome, you can use Drag&Drop.

I have no intention of using any random dropbox.
I do not use Chrome.

David.

Please go to the new Thread to download the MCUFRIEND_kbv library.

https://forum.arduino.cc/index.php?topic=366304.msg2524865#msg2524865

David.

Thank you David.
Wonderful!
It work perfectly.
A picture of Shild I bought is attached.
I bought this Shild from AliExpress at $7.22.

Hello,
I bought mcfriend 3.95" TFT lcd (for arduino uno). It works with the adafruit library (touch not tested).
The controller is ili9488, resolution 320x480. De layout is the same as the pictures from nopnop2002.

My question is if this TFT-shield works with the UTFT library.
I tried several settings (LCD_RD = A0, LCD_WR= A1 etc.) and controllers but nothing seems to work.

Has anyone experience with the combination UTFT and this display?

Hi Hazo.
Can you give me your library who works with 9488?
Please attach to this post or send me on email taoloo897@gmail.com.
Many thanks

Hello tao13,

Attached the library and example that works on my UNO/MEGA in combination wirt mcfriend 3.95" display (ili9488 based). I found this in an earlyer contribute on one of the Arduino forums (sorry, i don't remember where).

Because of compatibility with other projects, i am looking for the UTFT library modified for ili9488 (3.95" 320x400 mcfriend). If some one reads this who can help me, please, publish your solution...
Thanks, Hans.

ADAFruit lib.zip (433 KB)

Many thanks Hazo.
I put the library in 1.6.5 and tried tftpaint2_9327 on arduino mega 2560 (put directly in the board , not use pins 22..29)
It works but with some problems:

  • move slow
  • works on a little area from lcd , but it is defined like 9488 with 480X240 dimmensions.
  • touch not work

I attached some pics.
Thanks again for your support.