Go Down

Topic: mcufriend 2.8 inch TFT LCD display issues (Read 83362 times) previous topic - next topic

felixLU

Thanks for your help. Finally, everything running good.

pacosta

Hello guys, I have tried several things posted here. I have this lcd and when I run graphictest in my Arduino Uno R3, I see this in Serial Interface:

Unknown LCD driver chip: 154

Do you know what chip should I be using?

Thanks in advance,

b8el018

http://forum.arduino.cc/index.php?board=7.0

This works for me.


jawo87

Hello guys, I have tried several things posted here. I have this lcd and when I run graphictest in my Arduino Uno R3, I see this in Serial Interface:

Unknown LCD driver chip: 154

Do you know what chip should I be using?

Thanks in advance,
Having the same issue with a 2.4tft from mcufriend. Getting the result that the Chip ID is 0x0154. Tried several libraries so far, but nothing worked. Does any one have the same issue and found a library to get this Display work?

buhosoft

I have been investigated and i think that the TFT display use a S6D0154 controller.
Do you have the driver for Arduino?
See this item:

http://www.ebay.es/itm/TFT-LCD-SHIELD-2-4-ARDUINO-UNO-CONTROLADOR-S6D0154-CALIDAD-100/161570502961?_trksid=p2047675.c100012.m1985&_trkparms=aid%3D444000%26algo%3DSOI.DEFAULT%26ao%3D1%26asc%3D20140402094601%26meid%3D943a1d260453444eb793c48d4565cc6b%26pid%3D100012%26rk%3D8%26rkt%3D9%26sd%3D161503138880

volsoft

#20
Feb 01, 2015, 03:38 pm Last Edit: Feb 01, 2015, 03:40 pm by volsoft
My Cheap Lcd Working :)))))

if Lcd Driver Chip: 154
0x0154
Samsung S6D0154

library
https://github.com/samuraijap/TFTLCD-Library

if use Arduino mega 2560 change
pin_magic.h

https://drive.google.com/folderview?id=0B_beZobIWlVab0MyTFl0OHN3TE0&usp=sharing

EforeZZ

My Cheap Lcd Working :)))))

if Lcd Driver Chip: 154
0x0154
Samsung S6D0154

library
https://github.com/samuraijap/TFTLCD-Library
Thanks, it works! :)

What does not work for me are:
- touchscreen (does not show any touches)
- BMP file rendering: SD library reports successful read of the file, however I see only short white lines on the screen.

Magician

#22
Feb 04, 2015, 02:29 am Last Edit: Feb 04, 2015, 02:38 am by Magician
Want to thank volsoft #20, works for mcufriend  2.4"-UNO:
http://www.banggood.com/2_4-Inch-TFT-LCD-Shield-Touch-Board-Display-Module-For-Arduino-UNO-p-940735.html?p=P10613807093201410D8

Touch screen become responsive, just took half an hour to figure out that adafruit's original pins number changed:
from:
Code: [Select]

#define YP A3  // must be an analog pin, use "An" notation!
#define XM A2  // must be an analog pin, use "An" notation!
#define YM 9   // can be a digital pin
#define XP 8   // can be a digital pin

to:
Code: [Select]

#define YP A1  // must be an analog pin, use "An" notation!
#define XM A2  // must be an analog pin, use "An" notation!
#define YM 7   // can be a digital pin
#define XP 6   // can be a digital pin

EforeZZ

#23
Feb 04, 2015, 09:45 pm Last Edit: Feb 04, 2015, 09:47 pm by EforeZZ
Touch screen become responsive, just took half an hour to figure out that adafruit's original pins number changed
Thanks, it worked somehow. However, touch works very strangely: it is sensitive only on two edges of the screen, while most of the (center of the) screen and other two edges are very hard to click onto.

Touch map looks like this.

Is that a driver issue or a hardware issue with the touch sensor?

Magician

Quote
Is that a driver issue or a hardware issue with the touch sensor?
Sounds like hardware. If you have a multimeter, you can measure resistance across X & Y plate, see what you get. Library default 300, when I checked my TFT it's only 291. 

EforeZZ

Sounds like hardware. If you have a multimeter, you can measure resistance across X & Y plate, see what you get. Library default 300, when I checked my TFT it's only 291. 
My value is 292, that does not make much difference.

However, here is the solution:
Find the TouchScreen.cpp library and change the following value in it:
from
Code: [Select]
#define NUMSAMPLES 2
to:
Code: [Select]
#define NUMSAMPLES 1

That helped much!! I experimented with other values (up to 200), but "1" seems to be the best.


Another "bug" that was worth fixing was in tftpaint example:
Change from:
Code: [Select]
p.y = map(p.y, TS_MINY, TS_MAXY, tft.height(), 0);
To:
Code: [Select]
p.y = map(p.y, TS_MINY, TS_MAXY, tft.height()-BOXSIZE*2, 0);

EforeZZ

To get the BMP files rendering working you need to fix the TFTLCD lib according to: https://github.com/samuraijap/TFTLCD-Library/issues/2

canibalimao

#27
Feb 11, 2015, 10:45 am Last Edit: Feb 11, 2015, 11:27 am by canibalimao
Quick update - I have got the paint program to work completely now with the pin allocations above (albeit you do have to use a bit of force).

I did have to invert the coordinates for the X and Y on the touch points.

I'm not sure if the screen is flipped in either axis but this worked OK.


Can you explain to me what you have changed to invert the coordinates? Did you change the p.x and p.y map "elements"?

EDIT: I've found the way to do that. I've changed this:

Code: [Select]
p.x = map(p.x, TS_MINX, TS_MAXX, tft.width(), 0);
p.y = map(p.y, TS_MINY, TS_MAXY, tft.height(), 0);


To this:

Code: [Select]
p.x = map(p.x, TS_MINX, TS_MAXX, 0, tft.width());
p.y = map(p.y, TS_MINY, TS_MAXY, 0, tft.height());

arduHenry

Hi,
I also get my 154 tft working thanks to you, however I noticed two problems, I am newbie so maybe this are not problems:
1) I connected my Ardu Uno using USB and attached the TFT using cables. Tftpaint example works great but when the program starts, some dots are painted without touching the lcd in at the bottom of the lcd near to the color palette. I also appears more often when I am tauching the screen in other places.
2) It seems, that the program resets itself sometimes, after each 30 seconds screen gets white and repaints itself, after reconnecting the usb it seems to do it more rarely but still it happens

castingflame

#29
Feb 19, 2015, 03:15 am Last Edit: Feb 20, 2015, 02:42 am by castingflame
Hi guys thanks for all contributes to this thread. It helped me a lot. Thought I would write the step by step instructions that got my TFT working. Nothing new here, just hopefully a little less confusing for people like me.


HARDWARE

2.4 Inch TFT LCD Touch Screen Shield (chinese type from ebay) Mine is based on the S6D0154 controller. 

http://www.ebay.co.uk/itm/301447695328?_trksid=p2059210.m2749.l2649&var=600394488885&ssPageName=STRK%3AMEBIDX%3AIT


I installed these libraries into Sketch

https://github.com/samuraijap/TFTLCD-Library
https://github.com/adafruit/Adafruit-GFX-Library


Did NOT uncomment the following line

//#define USE_ADAFRUIT_SHIELD_PINOUT 1

in the Adafruit_TFTLCD.h  file that was installed above.

Opened a demo file from the newly installed TFTLCD Library (mentioned above).



Seems so stupidly easy now but being new to the hardware and software I went around in circles for a while so I hope this may help someone else.

Thanks again :)



Go Up