2-4 TFT LCD Touch Display en
2-4 TFT LCD Touch Display en
1
2.4 inch TFT Shield
Table of contents
Introduction
Specifications
Pin assignment
Connecting the microcontroller to the module 11
Installing the library 16
1.Graphic test 17
2.calibrate touch screen 18
3.Touch test 19
2
2.4 inch TFT Shield
Introduction
TFT LCD stands for Thin Film Transistor Liquid Crystal Display. It is a variant
of LCD that uses thin film transistor technology.
The liquid crystal display LCD, is a device that uses liquid crystals to block
light. Liquid crystals do not emit light directly, but block light coming from
the backlight of the screen, creating shapes on the screen.
TFT technology improves the quality of images by reducing the size of the
specific liquid crystal filter, which improves the readability and
addressability of each pixel of the screen, which in turn improves the
contrast of the screen. However, if you power part of the screen, the
crystals align and create a shadow or filter for the backlight.
3
2.4 inch TFT Shield
In addition, this LCD can be used to display pictures. To do this, the images
must be saved in 24-bit BMP colour format with a size of 240x320 and
moved to the µSD card and placed in the LCD screen, as the LCD has an
integrated µSD card reader. With the µSD card option, large amounts of
data can also be stored.
A great feature of this LCD is the large resolution of 240x320 pixels, which
allows the clear display of text, graphics and images, with the ability to
display 262000 different colours.
The module is very flexible and can be used in a wide range of applications,
e.g. in smartphones, navigation systems, game consoles, in industrial use
for displaying data in graphic formats, etc.
4
2.4 inch TFT Shield
Specifications
5
2.4 inch TFT Shield
Pin assignment
The 2.4 TFT LCD touch display has 28 pins. The pin assignment is shown in
the following figure:
6
2.4 inch TFT Shield
You can download the free Arduino IDE development environment from the
following link: https://www.arduino.cc/en/Main/Software
Windows users should definitely use one of the first two download options for
the Arduino IDE. The "Windows App" version from the Windows Store causes
connection problems, especially when using third-party board definitions.
7
2.4 inch TFT Shield
Option Explanation
8
2.4 inch TFT Shield
Install Arduino Software Installs the Arduino IDE - This option cannot
be deselected.
Create Start Menu shortcut Creates a shortcut in the Windows Start menu
(Optional)
Associate .ino files Creates a file name extension for files with
the extension .ino and links it to the Arduino
IDE
9
2.4 inch TFT Shield
After successful installation, the installation programme can be closed via the
"Close" button:
10
2.4 inch TFT Shield
11
2.4 inch TFT Shield
12
2.4 inch TFT Shield
5V 5V red
GND NC black
SD_SCK 13 cyan
SD_DO 12 purple
SD_DI 11 brown
SD_SS 10 pink
LCD_DI 9 green
LCD_DO 8 blue
LCD_D7 7 cyan
LCD_D6 6 purple
13
2.4 inch TFT Shield
LCD_D5 5 brown
LCD_D4 4 pink
LCD_D3 3 green
LCD_D2 2 blue
14
2.4 inch TFT Shield
Here are the steps to install the necessary library from the Arduino
Library Manager:
MCUFRIEND_kbv Install
1 - Click on the "Sketch" menu and select "Include Library" -> "Manage
Libraries".
2- Search for " MCUFRIEND_kbv" in the Library Manager using the
search bar at the top of the window.
3- Select the MCUFRIEND_kbv library from the search results.
4- Click on the "Install" button to install the library.
5- Wait until the installation is complete.
6- When the installation is complete, you should see a message in the
lower console stating that the library has been successfully installed.
7- Follow the steps "1.Graphic test", then "2.Calibrate touch screen".
After calibration, carry out the "3.Touchscreen test" and adjust the code
according to the coordinates obtained.
15
2.4 inch TFT Shield
1.Graphic test
16
2.4 inch TFT Shield
4- During the "touch screen test" you will see several points on the
screen. By touching and releasing these points you can check the
17
2.4 inch TFT Shield
3.Touch test
2- Please copy the coordinates that are displayed on the touch screen
after calibration and paste them into your code according to the
illustration (see lines #12 and #13).
18
2.4 inch TFT Shield
Now it's time to learn and create your own projects. You can do this with the
help of many example scripts and other tutorials that you can find on the
internet.
If you are looking for the high-quality products for Arduino and Raspberry Pi,
AZ-Delivery Vertriebs GmbH is the right place for you. You will receive
numerous application examples, complete installation instructions, eBooks,
libraries and support from our technical experts.
https://az-delivery.de
Have fun!
Imprint
https://az-delivery.de/pages/about-us
19