Difference between revisions of "2.4"TFT LCD"

From Geeetech Wiki
Jump to: navigation, search
(Display:)
 
(11 intermediate revisions by the same user not shown)
Line 25: Line 25:
 
*5V Operating Voltage
 
*5V Operating Voltage
 
*LED Backlight
 
*LED Backlight
 +
 +
==Schematic==
 +
[http://www.geeetech.com/Documents/2.4_TFT_schematic.pdf 2.4"TFT schematic]
  
 
==pin difinition==
 
==pin difinition==
Line 31: Line 34:
 
== Usage: ==
 
== Usage: ==
 
===Display:===
 
===Display:===
[ The UTFT 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=51 UTFT 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-TFT240 to Arduino Mega2560:
 
*Connect HY-TFT240 to Arduino Mega2560:
 
[[File:2.4TFTtoMega.jpg|400px]]
 
[[File:2.4TFTtoMega.jpg|400px]]
Line 42: Line 45:
 
  DB0->DB7 to D22->D29
 
  DB0->DB7 to D22->D29
 
*Connect HY-TFT240 to Arduino UNO
 
*Connect HY-TFT240 to Arduino UNO
 +
[[File:2.4TFT UNO.jpg|400px]]
 
  DB0->DB7 to D0->D7
 
  DB0->DB7 to D0->D7
 
  RD -> 3.3V
 
  RD -> 3.3V
Line 49: Line 53:
 
  RS->A5
 
  RS->A5
  
Note: The TFT controller model needs to be declared in the initializing statement. UTFT myGLCD(38,39,40,41) needs to be modified as myGLCD(ILI9320,38,39,40,41) when using Arduino Mega2560.UTFT myGLCD(ILI9320,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).
+
Note: The TFT controller model needs to be declared in the initializing statement. UTFT myGLCD(38,39,40,41) needs to be modified as myGLCD(GEEE24,38,39,40,41) when using Arduino Mega2560.UTFT myGLCD(GEEE24,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.4" 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.
+
[[File:2.4TFT-touch.jpg|400px]]
 +
 
 +
The LCD has a 2.4" 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 61: Line 67:
 
  OUT-> D3
 
  OUT-> D3
 
  IRQ -> D2
 
  IRQ -> D2
 +
 +
*Interface the touchscreen to Arduino UNO:
 +
Default pin number in example code:
 +
DCLK-> A1
 +
CS(pin30) -> D10
 +
IN -> A0
 +
OUT-> D9
 +
IRQ -> D8
 +
  
 
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).  
 
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).  

Latest revision as of 09:03, 2 May 2013

introduction

2.4TFTLCD.jpg

HY-TFT240 is a 2.4 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 ILI9320, it’s 8 bit data interface, easy to drive by many MCU like STM32 ,AVR and 8051.HY-TFT240 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.4" Color TFT LCD
  • 320 x 240 Resolution
  • 65,536 Colors (16 Bit)
  • Powerful 8 Bit Microcontroller(ILI9320)
  • Built-in video RAM buffer
  • Integrated Resistive Touchscreen
  • Integrated SD card
  • 5V Operating Voltage
  • LED Backlight

Schematic

2.4"TFT schematic

pin difinition

3.2TFT pin.jpg

Usage:

Display:

UTFT 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-TFT240 to Arduino Mega2560:

2.4TFTtoMega.jpg

RS -> D38
WR -> D39
CS(pin6) -> D40
RSET-> D41
RD -> 3.3V
DB0->DB7 to D22->D29
  • Connect HY-TFT240 to Arduino UNO
2.4TFT UNO.jpg
DB0->DB7 to D0->D7
RD -> 3.3V
RSET->A2
CS->A3
WR->A4
RS->A5

Note: The TFT controller model needs to be declared in the initializing statement. UTFT myGLCD(38,39,40,41) needs to be modified as myGLCD(GEEE24,38,39,40,41) when using Arduino Mega2560.UTFT myGLCD(GEEE24,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:

2.4TFT-touch.jpg

The LCD has a 2.4" 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
  • Interface the touchscreen to Arduino UNO:

Default pin number in example code:

DCLK-> A1
CS(pin30) -> D10
IN -> A0
OUT-> D9
IRQ -> D8


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 not accurate for 2.4” TFT module, so you need to calibrate when using 2.4” 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.

How to buy it

Click here to buy 2.4"TFT LCD