3.2" TFT Touch LCD

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

Description:

SainSmart 3.2" 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 SSD1289, it's a support 8/16bit data interface , easy to drive by many MCU like STM32 ,AVR and 8051. It is designed with a touch controller in it . The touch IC is ADS7843 , and touch interface is included in the 40 pins breakout. It is the version of product only with touch screen and touch controller.

Specification:

  • 240374PQ
  • 65K color
  • 320*240
  • 3.2 inch
  • Wide viewing angle
  • SSD1289:240 RGB x 320 TFT Driver
  • Integrated Power, Gate and Source Driver With RAM
  • ADS7843:4-WIRE TOUCH, UP TO 125kHz CONVERSION RATE, SERIAL INTERFACE


For mega2560

LCD and Shield pinouts:

3.2 lcd 1.jpg 3.2 lcd shield.jpg

Assembling the shield and LCD to the Mega:

3.2 lcd 2.jpg 3.2 lcd 3.jpg


Using the LCD: UTFT example sketch

1.Download the Arduino Software here

2.Download the Display and Touch libraries here.

3.Put the UTFT and UTouch folder into the IDE libraries folder.

4.Open the File /Examples/UTFT/Arduino(AVR)/UTFT_Demo_320X240.ino.

3.2 UTFT code.jpg


5.Select the correct Port and Board in Tools,then upload the code .After that,the graphics could be seen.

3.2 display.jpg

Using the Touch Panel: UTouch example sketch

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

3.2 touch.jpg

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

Calibration1.jpg

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

Calibration3.jpg

4.Follow the screen instructions to calibrate operation

Calibration2.jpg

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

Calibration6.jpg

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

Buttontest.png

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

Buttontest2.png

Using the 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.You can use the tool here. SD libraries need to be preinstalled for displaying the image.

1.Open the folder ITDB02_tinyFAT16/Image-files,and copy all the RAW file into SD,afer that, pulg the SD card in the screen.

2.Put the SD libraries(ITDB02_Graph16、ITDB02_tinyFAT16 and tinyFAT) into the folder arduino-0023/libraries ,then upload the ino File/Examples/ITDB02_tinyFAT16/_240x320_Portrait.After reset, you can see the image in screen.

Note:The SD library only can be use in version arduino-00xx and 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.

Resources