Nextion LCD Touchscreen Tutorial for Arduino. The Nextion LCD touchscreens are great for Arduinos because most of their functionality and processes are self-contained in the screen. The communication with an Arduino is via a Serial UART port. NOTE: The older.tft files are not compatible with the latest firmware. Please load the.HMI source. 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.
- 3For mega2560
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:
Assembling the shield and LCD to the Mega:
Using the LCD: UTFT example sketch
1.Download the Arduino Software here
2.Download the Display and Touch libraries here.
![Tutorial Tutorial](http://www.elecfreaks.com/wiki/images/thumb/e/e2/LCD_TFT01_3.2_12.jpg/550px-LCD_TFT01_3.2_12.jpg)
3.Put the UTFT and UTouch folder into the IDE libraries folder.
4.Open the File /Examples/UTFT/Arduino(AVR)/UTFT_Demo_320X240.ino.
5.Select the correct Port and Board in Tools,then upload the code .After that,the graphics could be seen.
Using the Touch Panel: UTouch example sketch
1.Open the File/Examples/UTouch/Arduino/UTouch_Calibration.ino.
2.Upload the ino file into the MEGA ,Then reset the board . The graphics could be seen then.
![3.2 Tft Lcd Arduino Tutorial 3.2 Tft Lcd Arduino Tutorial](/uploads/1/2/5/7/125777906/498597236.jpg)
3.Click on the screen,then the following screen will appear:
4.Follow the screen instructions to calibrate operation
5.Open the file Arduino/libraries/UTouch/UTouchCD.h,and change the fllow:
6.After calibration,you can try to use the other ino. Open the File/Examples/UTouch/Arduino/UTouch_ButtonTest:
7.Upload the ino file into the MEGA ,Then reset the board . The graphics could be seen then.
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
Retrieved from 'http://wiki.sainsmart.com/index.php?title=3.2%22_TFT_Touch_LCD&oldid=3611'