2.4 INCH TFT DISPLAY Features
This module is a 2.4-inch TFT LCD module with “320X240” resolution and 65K color display. It is suitable for Arduino Uno and Mega2560 development boards, and also supports SD card expansion function. It uses 8-bit parallel port communication, and the driver IC is ILI9341.
You can download the datasheet of this module here.
2.4 INCH TFT DISPLAY Datasheet
2.4 INCH TFT Display Pinout
This module has 20 pins:
- 5V: Module power supply – 5 V
- 3.3V: Module power supply – 3.3 V
- GND: Ground
- LCD_RST: LCD bus reset signal, low level reset
- LCD_CS: LCD bus chip select signal, low level enable
- LCD_RS: LCD bus command / data selection signal, low level: command, high level: data
- LCD_WR: LCD bus write signal
- LCD_RD: LCD bus read signal
- LCD_D0: LCD 8-bit data Bit0
- LCD_D1: LCD 8-bit data Bit1
- LCD_D2: LCD 8-bit data Bit2
- LCD_D3: LCD 8-bit data Bit3
- LCD_D4: LCD 8-bit data Bit4
- LCD_D5: LCD 8-bit data Bit5
- LCD_D6: LCD 8-bit data Bit6
- LCD_D7: LCD 8-bit data Bit7
- SD_SS: SD card SPI bus chip select signal, low level enable
- SD_DI: SD card SPI bus MOSI signal
- SD_DO: SD card SPI bus MOSI signal
- SD_SCK: SD card SPI bus clock signal
You can see the pinout of this module in the image below.
Required Materials
Hardware Components
Software Apps
Interfacing 2.4 INCH TFT Display with Arduino
Step 1: Circuit
The 2.4-inch display is a ready-made shield for Arduino Uno, which can also be placed on the Arduino Mega. The pins of this shield are designed to be easily installed on the Arduino. The bad point about these modules is that they use all Arduino Uno pins.
Step 2: Library
You need the Adafruit TouchScreen, LCDWIKI_KBV, and LCDWIKI GUI libraries to use this display module.
To install these 3 libraries, download the file below and put its contents in the Arduino libraries folder.
needed libraries
Step 3: Code
First, download the following file.
main code 2.4 INCH TFT Display with Arduino
Open the downloaded file and upload the main.ino code on your Arduino Board. This code is for testing the display module and comes with full screen calibration.
Comments (18)
There are so many how to guides, however I like this one as it’s pretty much to the point without waffling and with the info I need. I only have one question, are the PlatformIO software files meant to be installed on the SD card to fit into the touch screen?
Hi
thank you for your Attention, that’s our honer.
no,we use SD Card for any high resolution data like image or video.
not for PlatformIO software.
can this work with ESP32?
Hi Tony,
To work with ESP32, u should use the TFT_eSPI Library.
you could use this link Interfacing 2.8 INCH TFT LCD Touch Screen with ESP32
Hi, in the code you posted here, the IDE tells me that it can’t find “LCDhelper.h” (“Compilation error: LCDHelper.h: No such file or directory”), but I’ve installed everything from the dependencies zip file. What am I missing?
Hi ike,
LCDHelper files are in the main.zip file. You should extract them and the main.ino file in a folder named main and then run it.
Hi Mohamed,
further up you write: …Arduino pins 2, 3, A5, and A4 are free while using this shield, and you can use them to for other purposes.
But looks like pin 2, 3 are used as LCD_D2, LCD_D3. Only RX and TX are not connected. But also not free for other purposes.
Pin A4 is LCD_RST
Only A5 is not in use?
Regards, Bater
Hi Bater
Thank you so much.
Yes, you are right. I fixed it.
Where and how do you configure the library for the TFT Sheild?
Hi Norman,
you can config your LCD type in the LCDHelper.cpp file.
after i uplod the progra, why my tft lcd just white screen
Hi fluffy,
What is your board model?
the driver st7789v doesn’t work
i’ve tried other,the letters appears backwards
Hi Magdi,
this LCD uses ILI9341,
if u have any problems with Mirroring, visit this link i put on github.
Hello
I am using 2.4 TFT LCD Shield with Arduino Uno. Please, is there any way to display images without using the SD card?
Could you please suggest to me another LCD that can be connected to the computer to display images and has almost same size with the 2.4 TFT LCD Shield?
Hi Ghanem,
Unfortunately, Arduino Uno and similar models have limited RAM capacity, making it challenging to display images directly from internal storage.
However, you can opt for an ESP32 board coupled with a TFT LCD that supports the SPI protocol. By using libraries like TFT_eSPI and JPEGDecoder, along with the SPIFFS file system of the ESP32, you can display images stored within the ESP32’s memory.
Moreover, since ESP32 boards come with Wi-Fi capabilities, you can set up a web server to receive input images, save them in SPIFFS, and then display them on your TFT LCD.
code Download link not working, gives error file not found .
Thank you! The link has been updated.
You can also find the latest version of this code in the repository.