From Geeetech Wiki
Jump to: navigation, search



HY-TFT320 is a 3.2 inch TFT LCD Screen module, 320*240 (resolution), 65K color, 34pins interface , not just a LCD breakout, but include the Touch screen, SD card. So it’s a powerful extension module for your project.

This Screen includes a controller SSD1289, it’s 16bit data interface, easy to drive by many MCU like STM32 ,AVR and 8051.HY-TFT320 is designed with a touch controller in it . The touch IC is XPT2046 , and touch interface is included in the 34 pins breakout. Another useful extension in this module is the SD Card socket . It use the SPI mode to operate the SD card, the SPI interface include in the 40pins breakout.

Application Ideas

  • Digital Photo Frame (DPF)
  • Video terminals
  • Instrumentation
  • GPS
  • Game consoles
  • Video phones and Portable VCD, DVD


  • 3.2" Color TFT LCD
  • 320 x 240 Resolution
  • 65,536 Colors (16 Bit)
  • Powerful 16 Bit Microcontroller(SSD1289)
  • Built-in video RAM buffer
  • Integrated Resistive Touchscreen
  • Integrated SD card
  • 5V Operating Voltage
  • LED Backlight

pin difinition

TFT 3.2 With SD Touch Module 34 pins.png

example connections with arduino board:


3.2TFT IMG 1.jpg

The UTFT library is required to be installed to get this screen model display. This library is especially designed for 3.2” TFT LCD screen using 16 bit mode. The library require the following connections.

  • Connect HY-TFT320 to Arduino Mega2560
  BL CTR(pin23) -> 3.3V
  VCC -> 3.3V
  RD(pin4) -> 3.3V
  GND -> GND
  DB1~DB8 -> pin D37~D30
  DB10~DB17 -> pin D22~D29
  RS(pin2) -> D38
  WR(pin3) -> D39
  LCD_CS(pin1) -> D40
  RSET(pin5)-> D41

  • Connect HY-TFT320 to Arduino UNO


  BL CTR(pin23)-> 3.3V
  VCC -> 3.3V
  RD(pin4) -> 3.3V
  GND -> GND
  DB1~DB6 -> D8~D13
  DB10~DB17 -> D0~D7

Note: The TFT controller model needs to be declared in the initializing statement. ITDB02 myGLCD(38,39,40,41) needs to be modified as myGLCD(38,39,40,41,ITDB32S) when using Arduino Mega2560.ITDB02 myGLCD(19,18,17,16,ITDB32S) needs to be commented when using Aduino UNO. Otherwise it just show a blank screen. In practice, RS, WR, CS, RSET can be connected to any free pin. But the pin number must be in accord with myGLCD(RS,WR,CS,RST).

Touch Screen:

The LCD has a 3.2" 4-wire resistive touch screen lying over it. The Touch libraryneeds to be installed to get it works. This library is designed for 2.4’’ TFT, 3.2” TFT LCD screen module.

  • Interface the touchscreen to Arduino Mega2560:

Default pin number in example code:

  DCLK(pin34)-> D6
  T_CS(pin33) -> D5
  MOSI(pin30) -> D4
  MISO(pin29) -> D3
  T_PEN(pin31) -> D2

Note:TCLK, TCS, TDIN, TDOUT, IRQ also can be connected to any free pin. But the pin number must be in accord with the touch screen initializing statement myTouch(DCLK,CS,IN,OUT,IRQ).

Calibrate the touch screen: The default setting is accurate for 2.4” TFT module, but you need to calibrate when using 3.2” TFT module. A program to calibrate the touch screen is included in the example. If you touch screen is inaccurate, you need to run touch_calibration. Follow the on-screen instruction to calibrate the touch screen. Better not use your finger to calibrate it, use your accessory touch pen to pressure the frontsight with stength. Then record the calibration parameters and apply them in ITDB02_Touch.cpp in your touch screen library.

SD Card:

There is built-in SD card slot in the shield, so we can use it to upload images. But the images need to be converted RAW format first. SD libraries tinyFAT and tinyFAT_16 need to be preinstalled for displaying the image.

Note: The library only supports FAT16 fomatted SD card up to 2GB, so you need to fomat your SD card to FAT16. 4GB FAT16 fomatted SD card is tested not working. Long file names are not supported. Keep your file names compliant with 8.3 standard.

Interface SD card to Arduino mega:

  SCK(pin34) -> D52
  SD_CS(pin22) -> D53
  MISO(pin29) -> D50
  MOSI(pin30)-> D51

Touch Screen and SD Card share the MOSI and MISO, and they are controlled through T_CS and SD_CS separately.

When T_CS is enabled,Touch Screen works;when SD_CS is enabled,SD Card works.

How to buy it

Click here to buy 3.2“TFT LCD