Looking for LCD GURU - s6d0139 driver need init tips - 2.6" LCD from ebay

I picked this up http://www.ebay.com/itm/301104737944 . It didn't come with any software or links to any drivers.

They call it a 2.8" but it is marked as a 2.6" on the shield. The specs are:

2.8 inch tft lcd display (with touch panel)
2 controller :spfd5408 ili9325 hx8347 (listed as S6D0139 in other similar auction)
320 x 240 resolution

Reading register 0 with tftlcd as in
uint16_t identifier = tft.readRegister(0x0);

reports 139Hex... maybe this means it is sds0139? This is a samsung driver and I unfortunately can't find a driver for it for arduino. It is listed in the auction as having the driver available and why bother putting it on an arduino shield if it isn't.

I have tried every library I can find out there I could find. My last attempts to get it functioning were with UTFT. I tried all the controllers listed above and numerous others. I'm hoping that someone else may have this same board and can pointing me to a working library and example. I only get a white screen and it never changes with any of the examples and libraries I have tried. the other alternative is that the unit is DOA.

Did you see this ?

Provide the following information:
1 lcd controller datasheet
2 test code
3 sch (pdf)

References?
Arduino Library and Datasheet

on this page :
http://www.ebay.com/itm/301104737944

I assume you didn't receive any of this ?

It should work with UTFT and the ili9325 driver. Did you supply correct pin numbers to UTFT?

Oliver

raschemmel:
Did you see this ?

Provide the following information:
1 lcd controller datasheet
2 test code
3 sch (pdf)

References?
Arduino Library and Datasheet

on this page :
http://www.ebay.com/itm/301104737944

I assume you didn't receive any of this ?

Yes I did. I have already requested it from him but he is having a hard time emailing it from China.

olikraus:
It should work with UTFT and the ili9325 driver. Did you supply correct pin numbers to UTFT?

Oliver

Yes I did try that one and I have double checked the pins are mapped to what looks like the correct mapping according to the information I have.

I am calling it like this
UTFT myGLCD(ILI9325C,A2,A1,A3,A4); // Remember to change the model parameter to suit your display module!

The vendor sent me some code and it doesn't work either. The screen stays white. I think mine is DOA.

I wouldn't assume that so quickly. I have not seen any posts yet about new equipment coming from china doa. It is almost always
a software or pin assignment issue but with shields you can rule out the pin assignment issue.

I got it working (sort of) but I had to use arduino 0023. The quality of this display is bad. I am not sure if it is caused by a configuration issue or not. The screen looks really washed out like the brightness is too high. The text bleeds across the screen as well.

Here is a vid - YouTube

Which lib did you use? Meanwhile i think UTFT will not work, because UTFT expects data pins at arduino pins 0 to 7, where your shield has these pins from 2 to 9.

Oliver

olikraus:
Which lib did you use? Meanwhile i think UTFT will not work, because UTFT expects data pins at arduino pins 0 to 7, where your shield has these pins from 2 to 9.

Oliver

I used "TFTLCD" provided by the seller. It appears to be a derivation of the adafruit driver. If you take a look at this video at the start you can see when I press the reset button on the UNO that the color looks perfect for a split second. I need to figure what is happening there and try and get it too look like that all the time.

Here is the datasheet for the lcd driver http://www.rockbox.org/wiki/pub/Main/CreativeZENXFi/DS-S6D0139_V0-5_Preliminary.pdf There is a function called MIE that supposedly dynamically adjusts the backlight based on the screen content. It is set with register 0x73. I tried various combinations to that register and it doesn't seem to make a difference. I need to figure out what happens when I hit the reset button.... because the image looks perfect for a split second when i do that.

I'm pretty sure the problem will be with the init function of the driver setting a register value to something non-ideal. Below are the init settings from tftlcd.cpp. I will go through them with the lcd driver document and try and make some sense of it.

static const uint16_t _regValues[] PROGMEM = {
   0x0000, 0x0001,
    0x0007, 0x0000,   
    0x0013, 0x0000,   
    0x0011, 0x2604,    
    0x0014, 0x0015,   
    0x0010, 0x3C00,  
    0x0013, 0x0040, 
    0x0013, 0x0060,     
    0x0013, 0x0070, 
       
    0x0001, 0x0127,      
    0x0002, 0x0700,  
    0x0003, 0x1030,    
    0x0007, 0x0000,    
    0x0008, 0x0404,    
    0x000B, 0x0200, 
    0x000C, 0x0000,   
    0x00015,0x0000,     
       
    //gamma setting    
    0x0030, 0x0000,      
    0x0031, 0x0606,    
    0x0032, 0x0006,    
    0x0033, 0x0403,  
    0x0034, 0x0107,  
    0x0035, 0x0101, 
    0x0036, 0x0707,   
    0x0037, 0x0304,   
    0x0038, 0x0A00,     
    0x0039, 0x0706,     
       
    0x0040, 0x0000,     
    0x0041, 0x0000,      
   0x0042, 0x013F,    
   0x0043, 0x0000,   
   0x0044, 0x0000,     
   0x0045, 0x0000,     
   0x0046, 0xEF00,    
   0x0047, 0x013F,     
   0x0048, 0x0000,     
   0x0007, 0x0011,  
   0x0007, 0x0017,     

};

void TFTLCD::initDisplay(void) {

ugh...this lcd config is over my head... I have tried different gamma configs and nothing seems to help

This is what the image looks like while the sketch is running

This is what the image looks like for a split second after I press the reset button on the UNO

So something happens during a reset which makes the image look like it should. Has anyone seen this before? Driver chip is s6d09139 http://www.rockbox.org/wiki/pub/Main/CreativeZENXFi/DS-S6D0139_V0-5_Preliminary.pdf If someone can help me make sense of this I'd really appreciate it.

thanks

I screwed up and ordered one of those too. Can you share the library as I can't seem to get them to send it to me. I attached a picture of the LCD part number that mine had.

IMG_0771[1].JPG

Any idea where I can get the modified library?

I finally got it working (sort of).
Got the display working and the touchscreen.
I haven't been able to make the SD work.

hi,

I've bought the same screen and i have the same problem. Screen too white. If i connect the RD to 3.3v i have a little better image but not 100% good.

Anyone have solved the problem? I think is a wiring problem or the MIE of this screen.

AGARZA, did you have yours working fine?

thanks

I bought the same shield. Original delivered library was written for alpha version arduino. I made some changes in it and in touchscreen library now it is working good. But I have still problem with backlight (brigtness). I will be very happy, if someone come with solution. (Maybe on HW base, I will try it next, if I will have the time)

hi,

did you have the card reader working properly? with the library example provided by the seller bitmap i have always errors.

about the image too clear i have make a change on some wirings and now it works with a great image quality.

thanks

Hi.

I also bought the exact same shield, and having some problems getting it up and running. :~
But following this thread it looks like there is hope after all.
It sounds like you two (Luxboy and acharis) between you have a complete solution for this board.

Luxboy < can you maybe post a schematic of the wiring ?

acharis < can you maybe post the code and libraries you are using ?

Thanks in advance.
Regards Torben.

LCD00 ->08
LCD01 ->09
LCD02 ->02
LCD03 ->03
LCD04 ->04
LCD05 ->05
LCD06 ->06
LCD07 ->07

GND->GND
5V->5V
3v3->A0

RD->3v3
WR->A1
RS->A2
CS->A3
RST->A4

that works great for me!

can anyone have the right process/code to make SD reader work?