Difference between revisions of "2.8"TFT LCD"

From Geeetech Wiki
Jump to: navigation, search
(Usage:)
(files)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
  
 
== introduction ==
 
== introduction ==
[[File:2.8tft1.jpg]]
+
[[File:2.8tft2.jpg]]
  
 
HY-TFT280 is a 2.8 inch TFT LCD Screen module, 320*240 (resolution), 65K color, 40pins interface , not just a LCD breakout, but include the Touch screen, SD card. So it’s a powerful extension module for your project.
 
HY-TFT280 is a 2.8 inch TFT LCD Screen module, 320*240 (resolution), 65K color, 40pins interface , not just a LCD breakout, but include the Touch screen, SD card. So it’s a powerful extension module for your project.
Line 30: Line 30:
  
 
== Usage: ==
 
== Usage: ==
[[File:2.8TFT2.jpg|600px]]
 
 
===Display:===
 
===Display:===
 
 
[http://www.henningkarlsen.com/electronics/library.php?id=39 The TFT library] is required to be installed to get this screen model display. This library is especially designed for TFT LCD screen using 16 bit mode. The library require the following connections.
 
[http://www.henningkarlsen.com/electronics/library.php?id=39 The TFT library] is required to be installed to get this screen model display. This library is especially designed for TFT LCD screen using 16 bit mode. The library require the following connections.
 
*Connect HY-TFT280 to Arduino Mega2560:
 
*Connect HY-TFT280 to Arduino Mega2560:
 +
[[File:2.8TFT2.jpg|400px]]
 
  LEDA -> 5V
 
  LEDA -> 5V
 
  LEDK -> GND
 
  LEDK -> GND
Line 41: Line 40:
 
  GND -> GND
 
  GND -> GND
 
  DB0->DB7 to pin D37->D30
 
  DB0->DB7 to pin D37->D30
  DB8->DB15 to pin D22->D29
+
  DB10->DB17 to pin D22->D29
 
  RS -> D38
 
  RS -> D38
 
  WR -> D39
 
  WR -> D39
Line 56: Line 55:
 
  DB6->A0
 
  DB6->A0
 
  DB7->A1
 
  DB7->A1
  DB8->DB15 to D0->D7
+
  DB10->DB17 to D0->D7
 
  RSET->A2
 
  RSET->A2
 
  CS->A3
 
  CS->A3
Line 62: Line 61:
 
  RS->A5
 
  RS->A5
  
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, TFT01_24) when using Arduino Mega2560.ITDB02 myGLCD(19,18,17,16, TFT01_24) 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).
+
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(GEEE28,38,39,40,41) when using Arduino Mega2560.ITDB02 myGLCD(GEEE28,19,18,17,16) 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:===
 
===Touch Screen:===
The LCD has a 2.8" 4-wire resistive touch screen lying over it. The Touch library needs to be installed to get it works. This library is designed for 2.4’’ TFT, 2.8” TFT LCD screen module.
+
The LCD has a 2.8" 4-wire resistive touch screen lying over it. [http://www.henningkarlsen.com/electronics/library.php?id=35 The Touch library] needs to be installed to get it works. This library is designed for 2.4’’ TFT, 2.8” TFT LCD screen module.
  
 
*Interface the touchscreen to Arduino Mega2560:
 
*Interface the touchscreen to Arduino Mega2560:
Line 81: Line 80:
  
 
===SD Card:===
 
===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.
+
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 [http://www.henningkarlsen.com/electronics/library.php?id=7 tinyFAT] and [http://www.henningkarlsen.com/electronics/library.php?id=33 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.
 
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.
Line 90: Line 89:
 
  MOSI-> D51
 
  MOSI-> D51
 
  CS -> D53
 
  CS -> D53
 +
 +
 +
== files ==
 +
 +
[[File:Test_software_and_code.rar]]
 +
 +
[[File:Test_picture.rar]]
 +
 +
[[File:TFT_pdf_file.rar]]
  
 
==How to buy it ==
 
==How to buy it ==
 
Click here to buy [http://www.geeetech.com/tft-28-lcd-with-sd-touch-module-arduino-compatible-p-408.html 2.8"TFT LCD]
 
Click here to buy [http://www.geeetech.com/tft-28-lcd-with-sd-touch-module-arduino-compatible-p-408.html 2.8"TFT LCD]

Latest revision as of 10:15, 11 March 2014

introduction

2.8tft2.jpg

HY-TFT280 is a 2.8 inch TFT LCD Screen module, 320*240 (resolution), 65K color, 40pins 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 ILI9331, it’s 16bit data interface, easy to drive by many MCU like STM32 ,AVR and 8051.HY-TFT280 is designed with a touch controller in it . The touch IC is XPT2046 , and touch interface is included in the 40 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

Specification:

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

pin difinition

3.2TFT pin.jpg

Usage:

Display:

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

  • Connect HY-TFT280 to Arduino Mega2560:

2.8TFT2.jpg

LEDA -> 5V
LEDK -> GND
VCC -> 5V
RD -> 3.3V
GND -> GND
DB0->DB7 to pin D37->D30
DB10->DB17 to pin D22->D29
RS -> D38
WR -> D39
CS(pin6) -> D40
RSET-> D41
  • Connect HY-TFT280 to Arduino UNO
LEDA -> 5V
LEDK -> GND
VCC -> 5V
RD -> 3.3V
GND -> GND
DB0->DB5 to D8->D13
DB6->A0
DB7->A1
DB10->DB17 to D0->D7
RSET->A2
CS->A3
WR->A4
RS->A5

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(GEEE28,38,39,40,41) when using Arduino Mega2560.ITDB02 myGLCD(GEEE28,19,18,17,16) 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 2.8" 4-wire resistive touch screen lying over it. The Touch library needs to be installed to get it works. This library is designed for 2.4’’ TFT, 2.8” TFT LCD screen module.

  • Interface the touchscreen to Arduino Mega2560:

Default pin number in example code:

DCLK-> D6
CS(pin30) -> D5
IN -> D4
OUT-> D3
IRQ -> 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 2.8” 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 -> D52
MISO -> D50
MOSI-> D51
CS -> D53


files

File:Test software and code.rar

File:Test picture.rar

File:TFT pdf file.rar

How to buy it

Click here to buy 2.8"TFT LCD