2.4 inch TFT touch LCD Screen Module For Arduino UNO R3 SD low price jocks

I bought a shield on ebay that has the text "aitendo UL024TF ILI9325"
It has a 2.4 TFTLCD , a touch screen and a SD reader with the following pins

Pins on the shield Pin Arduino UNO

LCD_RST A4
LCD_CS A3
LCD_RS A2
LCD_WR A1
LCD_RD A0

LCD_D2 D2
LCD_D3 D3
LCD_D4 D4
LCD_D5 D5
LCD_D6 D6
LCD_D7 D7

LCD_D0 D8
LCD_D1 D9

SD_SS D10
SD_DI D11
SD_DO D12
SD_SCK D13

Tested library TouchScreen from ladyada (AdaFruit) Touch-Screen-Library-master.zip

using example touchscreendemoshield
Pin used follow...

// These are the pins for the shield!
#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

Tested library SD from ladyada AdaFruit GitHub - adafruit/SD: fixes & updates to the Arduino SD library - totally in progress. works but in beta
using example SD_listfiles with CS set to 10
Pin used follow...

  • SD card attached to SPI bus as follows:
    ** MOSI - pin 11
    ** MISO - pin 12
    ** CLK - pin 13
    ** CS - pin 10

For TFTLCD , used Adafruit TFTLCD-Library-master.zip from

and Adafruit-GFX-Library-master.zip from

VERY IMPORTANT: THE PINOUT FOLLOWS THE adafruit 2.8" TFT Breakout Board Pinout
Therefore, before compiling, please go to Adafruit_TFTLCD.h in the libraries directory
and be sure to have commented the line that follows

// **** IF USING THE LCD BREAKOUT BOARD, COMMENT OUT THIS NEXT LINE. ****
// **** IF USING THE LCD SHIELD, LEAVE THE LINE ENABLED: ****

//#define USE_ADAFRUIT_SHIELD_PINOUT 1

To test the shield please use the graphicstest example with some modifications,
considering that the chip in the aitendo shield has TWO VERY IMPORTANT
ISSUES:
1 - Answers 0 HEX to the request to identify the chip.
uint16_t identifier = tft.readID();
2 - The chip is a 9341

Therefore, you have to change the first 85 lines , those preceding
tft.begin(identifier);
to what follows:

// IMPORTANT: Adafruit_TFTLCD LIBRARY MUST BE SPECIFICALLY
// CONFIGURED FOR EITHER THE TFT SHIELD OR THE BREAKOUT BOARD.
// SEE RELEVANT COMMENTS IN Adafruit_TFTLCD.h FOR SETUP.

#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_TFTLCD.h> // Hardware-specific library

// The control pins for the LCD can be assigned to any digital or
// analog pins...but we'll use the analog pins as this allows us to
// double up the pins with the touch screen (see the TFT paint example).
#define LCD_CS A3 //
#define LCD_CD A2 //
#define LCD_WR A1 //
#define LCD_RD A0 //
#define LCD_RESET A4 //

// When using the BREAKOUT BOARD only, use these 8 data lines to the LCD:
// For the Arduino Uno, Duemilanove, Diecimila, etc.:
// D0 connects to digital pin 8 (Notice these are
// D1 connects to digital pin 9 NOT in order!)
// D2 connects to digital pin 2
// D3 connects to digital pin 3
// D4 connects to digital pin 4
// D5 connects to digital pin 5
// D6 connects to digital pin 6
// D7 connects to digital pin 7
// For the Arduino Mega, use digital pins 22 through 29
// (on the 2-row header at the end of the board).

// Assign human-readable names to some common 16-bit color values:
#define BLACK 0x0000
#define BLUE 0x001F
#define RED 0xF800
#define GREEN 0x07E0
#define CYAN 0x07FF
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
#define WHITE 0xFFFF

Adafruit_TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET);
// If using the shield, all control and data lines are fixed, and
// a simpler declaration can optionally be used:
// Adafruit_TFTLCD tft;

void setup(void) {
Serial.begin(9600);
Serial.println(F("TFT LCD test"));

#ifdef USE_ADAFRUIT_SHIELD_PINOUT
Serial.println(F("Using Adafruit 2.8" TFT Arduino Shield Pinout"));
#else
Serial.println(F("Using Adafruit 2.8" TFT Breakout Board Pinout"));
#endif

Serial.print("TFT size is "); Serial.print(tft.width()); Serial.print("x"); Serial.println(tft.height());

tft.reset();

uint16_t identifier = tft.readID();

if(identifier == 0x9325) {
Serial.println(F("Found ILI9325 LCD driver"));
} else if(identifier == 0x9328) {
Serial.println(F("Found ILI9328 LCD driver"));
} else if(identifier == 0x7575) {
Serial.println(F("Found HX8347G LCD driver"));
} else if(identifier == 0x9341) {
Serial.println(F("Found ILI9341 LCD driver"));
} else if(identifier == 0x8357) {
Serial.println(F("Found HX8357D LCD driver"));
} else {
Serial.print(F("Unknown LCD driver chip: "));
Serial.println(identifier, HEX);
Serial.println(F("If using the Adafruit 2.8" TFT Arduino shield, the line:"));
Serial.println(F(" #define USE_ADAFRUIT_SHIELD_PINOUT"));
Serial.println(F("should appear in the library header (Adafruit_TFT.h)."));
Serial.println(F("If using the breakout board, it should NOT be #defined!"));
Serial.println(F("Also if using the breakout, double-check that all wiring"));
Serial.println(F("matches the tutorial."));
// return;
}

//tft.begin(identifier);
tft.begin(0x9341);

...

IT WORKS. SOLVED.

Edit: Deleted post... have to revise my thinking before answering :slight_smile:

I'm sure this question is a dup but I can't find the answer in the 6 pages of posting here:) Anyway, I've found myself in the same boat as many having an LCD with a 7783 chip and no library. Can someone point me to where I can find the libs for this display that will work on an UNO? I've asked the manufacturer but I expect this will take 5 or 6 email before the light turns on. Thanks in advance!

Found it.

Hi,

Thank's for dias1973 for second test code on post #4, from ILI9327 3.5" LCD TFT with Arduino - Displays - Arduino Forum
also for me is work too on:

  • 3.5" LCD TFT for UNO R3 and also work on:
  • 2.4" LCD TFT for UNO R3

PS:
-this 2.4" LCD TFT for UNO R3 before this code just garbled pixels shows
reade posts #66 from:
http://forum.arduino.cc/index.php?topic=223769.60

Good Evening,

I recently got a similar set. 2.4 inch TFT LCD Shield. It almost looks like the others, also red board. On the back there are 3 chips. 2x HC245 (9H4T74) 1x AMS1117. I have downloaded from the Internet a library. Here it shows me my display is blank, but only scattered pixels. I use No SD card, and would like to use the Paint function ... Or that at least something can show.

But for hours with me doing nothing, as small colored pixels. "Pixel Cloud" the rest of the screen is white.

If someone uses the same shield, it would be great if you could help me. From best, if available. Library and example. Thank you.

Good evening,

I have recently bought a el-cheapo (mcufriend) 2,8 inch tft touch screen on ebay.

After a couple of hours of reading and trying (and some cursing too :smiley: ) I finaly got the LCD a bit working.
Im using the ST7783 library as posted in this topic and I got some images on the screen.

But the problem is that there are a couple of white/rainbow lines on the left side of the screen.

The other problem is that when I use the tftpaint demo and I draw a line from left to right, the lcd is painting from right to left. So the screen is mirrored I gues.

Anyone have ideas to fix this problem, because Im out of options.

Thanks in advance!

Regards,
Theo

PHTVS:
Good evening,

I have recently bought a el-cheapo (mcufriend) 2,8 inch tft touch screen on ebay.

After a couple of hours of reading and trying (and some cursing too :smiley: ) I finaly got the LCD a bit working.
Im using the ST7783 library as posted in this topic and I got some images on the screen.

But the problem is that there are a couple of white/rainbow lines on the left side of the screen.

The other problem is that when I use the tftpaint demo and I draw a line from left to right, the lcd is painting from right to left. So the screen is mirrored I gues.

Anyone have ideas to fix this problem, because Im out of options.

Thanks in advance!

Regards,
Theo

Hi.
My first shitty display adapter did this to my 3.5" touch LCD but later found that it was a cheapo clone.. bought a new - original adapter - and everything worked.. Your display problem though: can it be an offset issue? that you need to correct some values in the library.. (Y-coordinates) I haven't investigated any further on this as i'm using UTFT from Henning Karlsen and haven't had the misfortune to do it myself.

  • If - you're using Henning Karlsens display lib UTFT there's a calibration routine included which sets the coordinates for you.. ultimate niftyness.

I also have the mentioned mirror problem and i can not solve it.

by the way posting 61 of this thread did do the work for me to initialize the display

the shortcut in posting 62 did not work for me.

i only now have the problem that everything is mirrorred

marc

Take o look of the library header, atleast TFTLCD library has invert x y obtion there to add.

guys, i have this tft:
http://www.ebay.com/itm/360699426541?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649

could you help me to identify it's chip driver? Clearly it's not ili9341 or ili9340.
Help me with the identifier code and pin definition pls.

Hi Jeroi

What do you mean with your quote
"Take o look of the library header, atleast TFTLCD library has invert x y obtion there to add. "
can you give me an example for what to look for or what to add or what to change.

thanks

marc

casemod:
The board feeds the SD with 5V signals and 3.3V power, so you need an SD card with 5V tolerant pins. Most are, but do check.
I can confirm the reader on this shield does work.

To bring back subject to the table. I have this shield and I do not want to fry the SD card, how to understand it will survive 5v? the card is 4G transcend HC class 4?

Lalokiel:
guys, i have this tft:
http://www.ebay.com/itm/360699426541?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649

could you help me to identify it's chip driver? Clearly it's not ili9341 or ili9340.
Help me with the identifier code and pin definition pls.

You are off topic... you can start a new thread... but as you are a Newbie... the display looks identical to the one I have and that does have an ILI9341 driver. You MUST use logic level converters without them it WILL NOT WORK even if your connections and software are correct. Look here and try the setup for the 2.2" display.

In future it would be a good idea to start a new thread!

dexter_lab:
To bring back subject to the table. I have this shield and I do not want to fry the SD card, how to understand it will survive 5v? the card is 4G transcend HC class 4?

There are quite a few pitfalls when using SD Cards:

  1. 5V logic levels tends to blow them, so level converters are necessary (if not already fitted to the board)
  2. Some are sensitive to logic rise and fall time speeds and do not work unless the edges are fast
  3. Some are not compatible with the libraries for some reason I have never bothered to fathom!

Re. 1 and 2: You have 3 options:
a) Cheap one is to use a resistor divider, this is "frowned upon" by purists but does work if low value resistors are used, I have not had problems with 1K2 and 1K8 (see here). With these low values (circa 700 Ohms source impedance) rise fall times are typically 10 to 15ns
b) Use a xxx4050 buffer, these are a "better solution" but slew rate( rise and fall times) is typically about 8-12ns with a 3.3V supply so may be marginal
c) Use 74LCX245 chips, these give edge speeds of <3ns but you can then get "ringing" (decaying oscillations) on the edges if you do not use a proper PCB layout or use long "breadboard" wiring. Adding 22 to 33R series resistors at the output pin of the buffer will help kill off these inductive rings (which play havoc with edge critical signals like clocks and strobes).

Re: 3. Generally this is simply found out by trying a few different cards.

marc-duyn:
I also have the mentioned mirror problem and i can not solve it.

by the way posting 61 of this thread did do the work for me to initialize the display

the shortcut in posting 62 did not work for me.

i only now have the problem that everything is mirrorred

marc

There is a solution for those who have a problem with inverted touch-screen coordinates. In "tftpaint" sketch it can be easy resolved by changing these 4 strings:

#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

to

#define YP A2
#define XM A1
#define YM 6
#define XP 7

it works on MEGA2560 with libraries Adafruit-GFX, SWTFT-Shield and Adafruit Touch-Screen

hey i bought a 2.4 TFT Touch lcd on ebay.. but i cant see any chip set on the tft shield... i searched in therent but i was unable to find one.. plz help

wshashisampath:
hey i bought a 2.4 TFT Touch lcd on ebay.. but i cant see any chip set on the tft shield... i searched in therent but i was unable to find one.. plz help

Install Adafruit-GFX and SWTFT-Shield libraries, use this sketch and open serial monitor, you'll see something like this:

TFT LCD test
LCD driver chip: 9325
Done!

#include <Adafruit_GFX.h> // Core graphics library
#include <SWTFT.h> // Hardware-specific library

SWTFT tft;
int pause = 1000;

void setup(void) {
Serial.begin(9600);
Serial.println(F("TFT LCD test"));

tft.reset();

uint16_t identifier = tft.readID();

Serial.print(F("LCD driver chip: "));
Serial.println(identifier, HEX);

tft.begin(identifier);

tft.fillScreen(BLACK);

Serial.println(F("Done!"));
}

void loop(void) {
tft.setRotation(0);
tft.fillScreen(BLACK);

tft.fillRect(0, 0, 100, 100, RED);
delay(pause);

tft.fillRoundRect(100, 100, 100, 200, 10, tft.color565(0, 255, 0));
delay(pause);

tft.fillTriangle(10, 10, 200, 200, 10, 200, tft.color565(0, 0, 255));
delay(pause);

tft.drawCircle(100, 100, 50, YELLOW);
delay(pause);

tft.drawLine(200, 0, 100, 100, WHITE);
delay(pause);

}

I bought one of these from Banggood (Both unoR3 and 2.4"TFT) what a pain to get everything working....after a lot of reading forums and testing library's I finally got everything working, not bad for a first timer lol.

From what I gather there are a few different models of screen drivers, the one I have is ILI9341 8bit

So I used include files for the TFT screen;
Adafruit_GFX_AS.h
Adafruit_GFX.h
Adafruit_ILI9341_8bit_AS.h

For the Touch part I used;
"TouchScreen.h" From Touch-Screen-Library-Master demo

For the SD Card I used the Arduino SD library after changing the following to work with the screen;

#define LCD_CS A3 // Chip Select goes to Analog 3
#define LCD_CD A2 // Command/Data goes to Analog 2
#define LCD_WR A1 // LCD Write goes to Analog 1
#define LCD_RD A0 // LCD Read goes to Analog 0

#define LCD_RESET A4 // Can alternately just connect to Arduino's reset pin
#define SD_CS 10 // Card select for shield use

Adafruit_ILI9341_8bit_AS tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET);

Mike C.

Skyser:
There is a solution for those who have a problem with inverted touch-screen coordinates. In "tftpaint" sketch it can be easy resolved by changing these 4 strings:

#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

to

#define YP A2
#define XM A1
#define YM 6
#define XP 7

it works on MEGA2560 with libraries Adafruit-GFX, SWTFT-Shield and Adafruit Touch-Screen

Hi,i've the same problem.
I have 2.4'' TFT display, MCUFRIEND (it had ILI9341 LCD driver) on Arduino Uno.
I've used this library,beacuse i have problem with the white screen,this: Library and videotutorial

I have tftpaint inverted touch-screen coordinates,but the change had no effect.
Can you help me?