elleny

2.4-inch TFT touch screen module with font library

 
Overview

Introduction

2.4-inch SPI serial TFT color screen module, 65K color, with resistive touch screen, screen driver IC is ILI9341. The onboard font chip can easily display Chinese characters on low-configuration platforms. Constant current backlight design ensures longevity.

characteristic

  • 4-wire SPI serial communication interface, saving IO resources
  • With resistive touch screen
  • With font chip, display the complete GB2312 Chinese font with extremely low memory consumption (<0.5kB)
  • Constant current backlight driver ensures screen backlight lifespan
  • With mounting holes for easy DIY

parameter

  • Display area: 2.4 inches
  • Number of valid colors: 65536 (65k, RGB565)
  • Screen control IC: ILI9341
  • Supply voltage: 2.8~3.3V
  • Interface: SPI;
  • Maximum communication rate (actual measurement): display panel: 60Mbps; font IC: 42Mbps; touch control IC: 5Mbps
  • Touch type: 4-wire resistive touch; Touch control IC: XPT2046
  • Font IC: GT20L16S1Y/GT30L32S4W or other compatible models

Attachment description

file nameillustrate
Demo video.mp4Function demonstration video
STM32F407VG-MiniDev-2R4LCD-Demo.zipSample code project file
STM32F407VG-MiniDev-2R4LCD-Demo.hexCompiled executable binary file
ILI9341_DS_V1.02_20101206.pdfData sheet of display control chip ILI9341
SPEC-Z240IT010 specification v0.0(N).PDFPanel specifications
DS_GT20L16S1Y.PDFSpecification of font chip GT20L16S1Y
Font chip GT20L16S1Y user manual.PDFUser manual of font chip GT20L16S1Y
C19076_XPT2046.PDFData sheet of touch control chip XPT2046

Make, test code and more

Screen link (the same model used in the ESP32 game console): Yao Yuanhong 2.4-inch tft LCD display ILI9341 7789 SPI serial port screen driver color LCD . 2.4-inch universal display modules from other merchants can generally be used as long as the interface and packaging are correct.

The provided sample code is compatible with the font IC GT20L16S1Y. If you use other models of font IC, you need to add the proprietary driver code of the font IC based on the provided driver. The reserved pads on the screen support two font ICs: GT20L16S1Y/GT30L32S4W. If there are other compatible models, you can also choose them as needed.

Link to the development board used in the demonstration video: STM32F103/205/407Vx small development board , the MCU model is STM32F407VG. If you use this development board, the screen module can be directly plugged into the board for use.

The sample code is written using CubeIDE. If you are using the same development board, you can compile, download and use it normally after directly importing it into CubeIDE.

If you are using other compatible STM32F407 development boards or do not want to compile the code, you can also directly download the compiled binary file "STM32F407VG-MiniDev-2R4LCD-Demo.hex" in the attachment. Please make sure your MCU model is STM32F407VE/VG or STM32F407ZE/ZG or other compatible models, then connect your development board and screen as follows
screen pinsDevelopment board/MCU IOillustrate
GNDGNDpower supply ground
VCC3.3VPower supply, voltage range 2.8~3.3V
CL(SCLK)PB3SPI clock
SI(MOSI)PB5SPI master output slave input
SO(MISO)PB4SPI master input slave output
DCPE1LCD controller data/command selection
RSTPB8LCD controller reset (active low)
BLKPD9LCD panel backlight control (active high level, pull-up by default)
CSPB6LCD controller chip select (active low level)
TPPB7Touch interrupt input signal, pulled up by default, automatically pulled down when the screen detects a touch
TCSPD10Chip select signal of touch control IC (active low level, pull-up by default)
WCSPD8Chip select signal of font IC (active low level, pull-up by default)

Precautions

Notice! ! ! ! Because the screen module is connected to 3 devices on the same SPI bus, it needs to be time-shared through the CS pins of the devices. At most one device's CS chip select signal can be active (low level) at the same time. It is strictly prohibited to pull two or more CS signals low at the same time, otherwise there is a risk of damaging the screen module. Please pay strict attention when writing your own driver code!

Sample code function description

projectFunction
LCD panel inspectionDisplay solid colors, gradients and pictures to check whether the LCD panel has dead pixels and evaluate the display effect. Please click on the screen to switch. It will automatically exit after all projects are tested.
Touch screen calibrationUse this feature if you find that your touch is offset. Follow the on-screen prompts and click on the center of the cross to complete the calibration.
Touch function test (drawing board)A simple free drawing program that can be used to test touch screen functionality. You can select colors and brushes on the left side above, and click the X in the upper right corner to exit.
Font IC function demonstrationDemonstrates the display effects of different character sets and fonts in the font chip GT20L16S1Y. Please click on the screen to switch. It will automatically exit after all projects are tested.

picture

Front view

image.png

Rear view

image.png

Function Demonstration Figure 1 (Drawing Board)

image.png

Function demonstration picture 2 (GB2312 Chinese character display)

image.png
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2024-11-22 12:19:07

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号