2.8" TFT Touch LCD

From SainSmart Wiki
Jump to: navigation, search
2.8 inch tft lcd

Description:

SainSmart 2.8" TFT LCD Display is a LCD touch screen module. It has 40pins interface and SD card and Flash reader design. It is a powerful and mutilfunctional module for your project.The Screen include a controller ILI9325, it's a support 8/16bit data interface , easy to drive by many MCU like arduino families,STM32 ,AVR and 8051. It is designed with a touch controller in it . The touch IC is XPT2046 , and touch interface is included in the 40 pins breakout. It is the version of product only with touch screen and touch controller.

Features:

  • 240374PQ
  • 262K color
  • 240*320
  • 2.8 inch
  • Wide viewing angle
  • ILI9325:240 RGB x 320 TFT Driver
  • Integrated Power, Gate and Source Driver With RAM
  • XPT2046-WIRE TOUCH,WIRE TOUCH, UP TO 125kHz CONVERSION RATE, SERIAL INTERFACE
  • Voltage type: 5v or 3v voltage input voltage,input is selectable. Because TFT can only work under 3.3 V voltage, so when the input voltage VIN is 5V, need through the 3.3 V voltage regulator IC step down to 3.3V , when the input voltage of 3.3 V, you need to use the zero resistance make J2 short , is equivalent to not through the voltage regulator IC for module and power supply directly.
  • Note: the factory TFT module, are the 5 v power supply. By default.
  • Carrying on board SD holder, its work to SPI mode.

For Mega2560

1.This is SainSmart TFT LCD shield for Arduino MEGA2560,the sale page please click here.

2.You can download this shield schematic here.

Mega2560 shield.jpg 2.8 Mega shield install.jpg


Download Code and Upload

1.You can download Arduino Software (IDE) here

2.Download libraries 2.8TFT.zip here.Then put the UTFT and UTouch folder from Mega folder into the IDE libraries folder. Then run IDE.

For display

1.Open the File /Examples/UTFT/Arduino(AVR)/UTFT_Demo_320x240.ino .

2.8display1.png

2.Choose the right board and Port, upload the ino file into the MEGA ,then reset the board .The graphics could be seen then.

2.8 display1.png

For touch

1.Open the File/Examples/UTouch/Arduino/UTouch_Calibration.ino .

4.3 calibration1.png

2.Choose the right board and Port, upload the ino file into the MEGA ,then reset the board .The graphics could be seen then.

2.8 touch1.png

3.Click on the screen,then the following screen will appear:

2.8 touch2.png

4.Follow the screen instructions to calibrate operation

2.8 touch3.png

5.Open the file Arduino/libraries/UTouch/UTouchCD.h,and change the follow:

2.8change3.png

6.After calibration,you can try to use the other ino. Open the File/Examples/UTouch/Arduino/UTouch_ButtonTest:

Button1.png

7.Upload the ino file into the MEGA ,Then reset the board . The graphics could be seen then.

BUTTON.png

Resources

How to buy it ?

You can click here to get lcd kit for mega.

You can click here to get lcd kit for uno.