sainsmart 3.2 tft lcd display tutorial for sale
The 3.2 inch TFT LCD module is a special design for Raspberry Pi for portable application. It features a 3.2” display with 320x240 16bit color pixels and resistive touch screen. The LCD is well mated with Pi board and interface with Pi via the high speed SPI port, and support console, X windows, displaying images or video etc. It also provides 4 press buttons for user defined functions.
RPi LCD needs to use a SPI interface, but in the original image file of Raspberry Pi, the displayer is driven via a HDMI port. So the original image is not applicable for RPi LCD, and you should install the LCD driver to your Pi or use the Ready-to-use image file provided by Sainsmart,click here.
Download the LCD driver and extract it to your Raspbian OS (e.g. copy the driver to your Pi by sftpor using U disk). Then run the following command via putty:
This LCD can be calibrated using a program called xinput_calibrator which is pre-installed on the offer image. However, it was not pre-installed on original Raspbian OS. So in this case, you should get and install the program manually with
After running these commands, there will be a prompt for four-point calibration shown in the LCD screen. Click the points one by one to finish the touch calibration. Then, the new calibration data will be displayed in the terminal, as shows below. Please get these data for future use.
SainSmart 3.2" TFT LCD Displayis 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.
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.
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.
3.2"inch TFT LCD Module Display Power than SainSmart w/Resistive Touch,Tutorial. 3.2"TFT LCD Display with Breakout Board andwith Resistive Touch Panel. 3.2"TFT LCD Display with Breakout Boardand with Capacitive Touch Panel. I t supports 8080 8-bit /9-bit/16-bit /18-bit parallel ,3-wire,4-wire serial spi interface.Built-in optional microSD card slot, optional. Description E R-TFTM032-3 is 240x320 dots 3.2" color tft lcd module display with ILI9341 controller board,superior display quality,super wide viewing angle and easily controlled by MCU such as 8051, PIC, AVR, ARDUINO,ARM and Raspberry PI.It can be used in any embedded systems,industrial device,security and hand-held equipment which requires display in high quality and colorful image. I t supports 8080 8-bit /9-bit/16-bit /18-bit parallel ,3-wire,4-wire serial spi interface.Built-in optional microSD card slot, optional 3.2 inch 4-wire resistive touch panel with controller XPT2046 an d 3.2 inch capacitive touch panel with controller FT6236 . It"s optional for font chip, flash chip and microsd card. W e offer two types connection,one is pin header and the another is ZIF connector with flat cable mounting on board by default and suggested. Lanscape mode is also available. O f course, we wouldn"t just leave you with a datasheet and a "good luck!".Here is the link for 3.2"TFT Touch Shield with Libraries, EXxamples.Schematic Diagram for Arduino Due,Mega 2560 and Uno . For 8051 microcontroller user,we prepared the detailed tutorial such as interfacing, demo code and Development Kit at the bottom of this page.3D drawing is available. 3.2 inch Series TFT Display L ist ↓ Display Part Number Description ER-TFT032-2(RTP) 3.2" TFT LCD 240x320 Pixels Display with Controller ic ILI9320 and Resistive Touch Panel ER-TFT032-3.1(RTP) 3.2" TFT LCD 240x320 Pixels Display with Controller ic ILI9341 and Resistive Touch Panel ER-TFT032-3.1(CTP) 3.2" TFT LCD 240x320 Pixels Display with Controller ic ILI9341 and Capacitive Touch Panel ER-TFT032A3-3(RTP) 3.2" TFT LCD 240x320 Pixels Display with Controller ic ST7789V and Resistive Touch Panel ER-TFT032A3-3(CTP) 3.2" TFT LCD 240x320 Pixels Display with Controller ic ST7789V and Capacitive Touch Panel ER-TFTM032-3(RTP) 3.2"TFT LCD Display with Breakout Board and with Resistive Touch Panel ER-TFTM032-3CTP) 3.2"TFT LCD Display with Breakout Board and with Capacitive Touch Panel W hat"s inc luded in the package ↓ Num Accessory Name Qty 1 3.2 inch TFT Display with Breakout Board 1 2 3.2" Resistive Touch Panel with controller XPT2046 1 * The touch panel is attached on the display by default. * We default pin header connection , 5V power supply and 4-wire serial interface .Please send message if you want FFC connection , 3.3V power supply and other interface , or buy from our own store [link removed by eBay] . O ptional Accessory List (Click the part number to buy accessories) ↓ Category Part Number Description Flash Chip W25Q128FVSG WINBOND (P/N:25Q128FVSG) 128M Bit Flash Chip MicroSD Card ER3297 New Original MicroSD (TF) 1GB Memory Card Font 1 ER3300-1 15X16 dots fonts chip,it supports Chinese,Japanese(compatible with Unicode) and 150 countries character Font 2 ER3301-1 11X12,15X16 dots fonts chip, it supports Chinese,ASCII and 150 countries character Font 3 ER3303-1 11X12 , 15X16 , 24X24 dots Chinese font, It supports GB2312,GB12345 and ASCII character, also compatible with Unicode Font 4 ER3304-1 12x12,16x16,24x24,32x32 dot matrix Chinese font, supporting GB2312 Simplified Chinese and ASCII * If choose the above accessories,we"ll mount on display by default except the flash chip. Ebay doesn"t allow listings to contain external links,so the documents link may be invalid. Please copy the below entire link to your browser for checking our documents(at the bottom of the page) or for bulk order. https://www.buydisplay.com/default/3-2-inch-capacitive-touchscreen-240x320-tft-lcd-module-display D atasheet - TFT LCD Display,Controller,Connector ↓ Format Documents Name (Downloadable) Version Language Update Date Size 3.2 inch 240x320 Dots Display with Adaptor Board Datasheet 2.0 English Jan-09-2016 709K Controller ILI9341 Datasheet 1.0 English Jul-02-2013 3.2M 40 Pins 1.00mm Pitch ZIF Connector Drawing 1.0 English Apr-19-2013 268K Datasheet - Touch Panel with its Controller IC,Connector ↓ Format Documents Name (Downloadable) Version Language Update Date Size 3.2 inch 4-Wire Resistive Touch Panel Drawing 1.0 English Jun-06-2016 302K Resistive Touch Panel Controller XPT2046 Datasheet 1.0 English May-08-2007 579K 3.2 inch Capacitive Touch Panel Outline Drawing 1.0 English Dec-02-2015 254K Capacitive Touch Panel Controller FT6236 Datasheet 1.0 English Jul-24-2014 674K Datasheet for Flash Memory,MicroSD Card Slot ↓ Format Documents Name (Downloadable) Version Language Update Date Size 128M-BIT Flash W25Q128FV Datasheet 1.0 English Oct-01-2012 1.0M MicoSD Card Slot Drawing 1.0 English Dec-12-2013 1.2M Datasheet for Font Chip ↓ Format Documents Name (Downloadable) Version Language Update Date Size Summary for Font Chip 1.0 English Aug-07-2013 133K ER3300-1 Datasheet 1.0 English May-08-2010 621K ER3301-1 Datasheet 1.0 English Mar-27-2014 2.0M ER3303-1 Datasheet 1.0 English Oct-01-2013 688K ER3304-1 Datasheet 1.0 English Apr-12-2013 935K T utorial - 8051 Microcontroller Demo Code,Interfacing,Development Board&Kit ↓ Format Documents Name (Downloadable) Version Language Update Date Size 3-Wire SPI,Touch Panel,Font Chip,Flash,MicroSD Demo Code 1.0 English Nov-28-2014 180K 4-Wire SPI,Touch Panel,Font Chip,Flash,MicroSD Demo Code 1.0 English Nov-28-2014 180K 8080 8-Bit,Touch Panel,Font Chip,Flash,MicroSD Demo Code 1.0 English Nov-28-2014 179K 8080 16-Bit,Touch Panel,Font Chip,Flash,MicroSD Demo Code 1.0 English Nov-28-2014 179K ER-TFTM032-3 Interfacing Document 1.0 English Aug-2014-23 176K 8051 Microcontroller Development Board & Kit for ER-TFTM032-3 N/A N/A N/A N/A Specification Gross Weight (kg)0.0760 ManufacturerEastRising Continuity SupplyWe promise the long term continuity supply for this product no less than 10 years since 2015. Part NumberER-TFTM032-3 Display Format240x320 Dots Interface8080 8-bit Parallel , 8080 16-bit Parallel , 3-Wire Serial SPI, 4-Wire Serial SPI IC or EquivalentILI9341 AppearanceRGB on Black Diagonal Size3.2” ConnectionPin Header, FFC-Connector Outline Dimension64.9W)x89.4(H)mm Visual Area48.60x64.80mm Active Area48.60(W)x64.80(H)mm Character SizeNo Dot (Pixel) SizeNo Dot (Pixel) Pitch0.2025x0.2025 IC PackageSMT Display TypeTFT-LCD Color Touch Panel OptionalYes Sunlight ReadableNo Response Time(Typ)25ms Contrast Ratio(Typ)500:1 Colors65K/262K Viewing Direction12:00 Viewing Angle RangeLeft:60.0 , Right:60.0 , Up:50.0 , Down:50.0 degree Brightness(Typ)280cd/m2 Backlight ColorWhite Color Backlight Current (Typ)120mA Power Supply(Typ)3.3V, 5V Supply Current for LCM(Max)130mA (Vdd=3.3V) 150mA (Vdd=5V) Operating Temperature-20℃~70℃ Storage Temperature-30℃~80℃ Series NumberER-TFT032-3 About Us We"re China-based global display manufacturer named EastRising Technology Co.,Ltd. that has a worldwide business in design, produce and sell various displays for small to large companies since 2003. Our web site is [link removed by eBay] . Link for video and image of our production line and equipment. RoHS reports for all material we used on display module. Long Term Continuity Supply Warranty We promise the long terms continuity supply and would never end.Some controller IC may stop the production,we"ll try our efforts to find the completely compatible ones.If the equivalent is unavailable, we¡¯ll make the new tooling and use the most similar IC as replacement.So you don"t have to worry even your research time is very long. Shipping Policy All products will be checked carefully and packed in good condition before shipping.We e-mail all customers with tracking information immediately after the shipment for status tracking. Item will be shipped within 1 business day after the payment has been received. Customs fees and import duties for exports are buyer"s responsibility. Warranty All products are covered under our limited warranty, which provides all products are free of functional defects for a period of one year from the date of receipt and all products are free of visual defects and missing parts for a period of 30 days from the date of receipt.If a product was damaged during shipping or the order is incorrect,you must notify us within 2 days of receipt. How to return a product First request an RMA number from our sales with the information:part number,reason for return,order number. Our sales will then either issue an RMA number, ask you for more information, or offer to help you resolve a technical problem so that the product does not need to be returned. Products must arrive here in the same condition as when you received them. You are responsible for return shipping and insurance.Please make sure your RMA number is on the shipping label and on any documents you include with the product. After we receive the product, we inspect it to determine the cause of any defect, then update by email with our findings. This process usually takes five business days.
Reason: The hooks on the backight of ER-TFT032-3.1 is always complained by most customers for inconvenient assembly. So we cancel the hooks in the new version of ER-TFT032-3.2.That"s the only difference for these two versions.
ER-TFT032-3.2 is 240x320 dots 3.2" color tft lcd module display with ILI9341 controller and optional 4-wire resistive touch panel and 3.2 inch capactive touch panel with controller FT6236,superior display quality,super wide viewing angle and easily controlled by MCU such as 8051, PIC, AVR, ARDUINO ARM and Raspberry PI.It can be used in any embedded systems,industrial device,security and hand-held equipment which requires display in high quality and colorful image.It supports 8080 8/16-bit parallel,3/4-wire serial interface. FPC with zif connector is easily to assemble or remove.Lanscape mode is also available.
Of course, we wouldn"t just leave you with a datasheet and a "good luck!".Here is the link for 3.2"TFT Touch Shield with Libraries, Examples.Schematic Diagram for Arduino Due,Mega 2560 and Uno . For 8051 microcontroller user,we prepared the detailed tutorial such as interfacing, demo code and development kit at the bottom of this page.
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.
3.2"" TFT LCD module with 40 IO, it is more than a LCD module and colleagues also includes an SD card slot, whether with touch function. (Here we are with touch screen function module)
In this Arduino touch screen tutorial we will learn how to use TFT LCD Touch Screen with Arduino. You can watch the following video or read the written tutorial below.
For this tutorial I composed three examples. The first example is distance measurement using ultrasonic sensor. The output from the sensor, or the distance is printed on the screen and using the touch screen we can select the units, either centimeters or inches.
As an example I am using a 3.2” TFT Touch Screen in a combination with a TFT LCD Arduino Mega Shield. We need a shield because the TFT Touch screen works at 3.3V and the Arduino Mega outputs are 5 V. For the first example I have the HC-SR04 ultrasonic sensor, then for the second example an RGB LED with three resistors and a push button for the game example. Also I had to make a custom made pin header like this, by soldering pin headers and bend on of them so I could insert them in between the Arduino Board and the TFT Shield.
Here’s the circuit schematic. We will use the GND pin, the digital pins from 8 to 13, as well as the pin number 14. As the 5V pins are already used by the TFT Screen I will use the pin number 13 as VCC, by setting it right away high in the setup section of code.
I will use the UTFT and URTouch libraries made by Henning Karlsen. Here I would like to say thanks to him for the incredible work he has done. The libraries enable really easy use of the TFT Screens, and they work with many different TFT screens sizes, shields and controllers. You can download these libraries from his website, RinkyDinkElectronics.com and also find a lot of demo examples and detailed documentation of how to use them.
After we include the libraries we need to create UTFT and URTouch objects. The parameters of these objects depends on the model of the TFT Screen and Shield and these details can be also found in the documentation of the libraries.
So now I will explain how we can make the home screen of the program. With the setBackColor() function we need to set the background color of the text, black one in our case. Then we need to set the color to white, set the big font and using the print() function, we will print the string “Arduino TFT Tutorial” at the center of the screen and 10 pixels down the Y – Axis of the screen. Next we will set the color to red and draw the red line below the text. After that we need to set the color back to white, and print the two other strings, “by HowToMechatronics.com” using the small font and “Select Example” using the big font.
Here’s that function which uses the ultrasonic sensor to calculate the distance and print the values with SevenSegNum font in green color, either in centimeters or inches. If you need more details how the ultrasonic sensor works you can check my particular tutorialfor that. Back in the loop section we can see what happens when we press the select unit buttons as well as the back button.
Ok next is the RGB LED Control example. If we press the second button, the drawLedControl() custom function will be called only once for drawing the graphic of that example and the setLedColor() custom function will be repeatedly called. In this function we use the touch screen to set the values of the 3 sliders from 0 to 255. With the if statements we confine the area of each slider and get the X value of the slider. So the values of the X coordinate of each slider are from 38 to 310 pixels and we need to map these values into values from 0 to 255 which will be used as a PWM signal for lighting up the LED. If you need more details how the RGB LED works you can check my particular tutorialfor that. The rest of the code in this custom function is for drawing the sliders. Back in the loop section we only have the back button which also turns off the LED when pressed.
In order the code to work and compile you will have to include an addition “.c” file in the same directory with the Arduino sketch. This file is for the third game example and it’s a bitmap of the bird. For more details how this part of the code work you can check my particular tutorial. Here you can download that file:
The display is driven by a ST7735R controller ( ST7735R-specifications.pdf (2.1 MB) ), can be used in a “slow” and a “fast” write mode, and is 3.3V/5V compatible.
Adafruit_ST7735 is the library we need to pair with the graphics library for hardware specific functions of the ST7735 TFT Display/SD-Card controller.
Basically, besides the obvious backlight, we tell the controller first what we are talking to with the CS pins. CS(TFT) selects data to be for the Display, and CS(SD) to set data for the SD-Card. Data is written to the selected device through SDA (display) or MOSI (SD-Card). Data is read from the SD-Card through MISO.
So when using both display and SD-Card, and utilizing the Adafruit libraries with a SainSmart display, you will need to connect SDA to MOSI, and SCL to SCLK.
As mentioned before, the display has a SLOW and a FAST mode, each serving it’s own purpose. Do some experiments with both speeds to determine which one works for your application. Of course, the need of particular Arduino pins plays a role in this decision as well …
Note: Adafruit displays can have different colored tabs on the transparent label on your display. You might need to adapt your code if your display shows a little odd shift. I noticed that my SainSmart display (gree tab) behaves best with the code for the black tab – try them out to see which one works best for yours.
Low Speed display is about 1/5 of the speed of High Speed display, which makes it only suitable for particular purposes, but at least the SPI pins of the Arduino are available.
After connecting the display in Low Speed configuration, you can load the first example from the Arduino Software (“File” “Example” “Adafruit_ST7735” – recommend starting with the “graphictest“).
Below the code parts for a LOW SPEED display (pay attention to the highlighted lines) – keep in mind that the names of the pins in the code are based on the Adafruit display:
#define sclk 4 // SainSmart: SCL#define mosi 5 // SainSmart: SDA#define cs 6 // SainSmart: CS#define dc 7 // SainSmart: RS/DC#define rst 8 // SainSmart: RES
#define sclk 13 // SainSmart: SCL#define mosi 11 // SainSmart: SDA#define cs 10 // SainSmart: CS#define dc 9 // SainSmart: RS/DC#define rst 8 // SainSmart: RES
You can name your BMP file “parrot.bmp” or modify the Sketch to have the proper filename (in “spitftbitmap” line 70, and in “soft_spitftbitmap” line 74).
#define SD_CS 4 // Chip select line for SD card#define TFT_CS 10 // Chip select line for TFT display#define TFT_DC 9 // Data/command line for TFT#define TFT_RST 8 // Reset line for TFT (or connect to +5V)
#define SD_CS 4 // Chip select line for SD card#define TFT_CS 10 // Chip select line for TFT display#define TFT_DC 9 // Data/command line for TFT#define TFT_RST 8 // Reset line for TFT (or connect to +5V)
This function is used to indicate what corner of your display is considered (0,0), which in essence rotates the coordinate system 0, 90, 180 or 270 degrees.
However, if your application needs your screen sideways, then you’d want to rotate the screen 90 degrees, effectively changing the display from a 128×160 pixel (WxH) screen to a 160×128 pixel display. Valid values are: 0 (0 degrees), 1 (90 degrees), 2 (180 degrees) and 3 (270 degrees).
tft.print("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur adipiscing ante sed nibh tincidunt feugiat. Maecenas enim massa, fringilla sed malesuada et, malesuada sit amet turpis. Sed porttitor neque ut ante pretium vitae malesuada nunc bibendum. Nullam aliquet ultrices massa eu hendrerit. Ut sed nisi lorem. In vestibulum purus a tortor imperdiet posuere. ");
desertcart is the best online shopping platform where you can buy SainSmart 3.2" TFT LCD Display +FT LCD Adjustable Shield for Arduino UNO Mega2560 R3 (General) from renowned brand(s). desertcart delivers the most unique and largest selection of products from across the world especially from the US, UK and India at best prices and the fastest delivery time.
desertcart ships the SainSmart 3.2" TFT LCD Display +FT LCD Adjustable Shield for Arduino UNO Mega2560 R3 (General) to and more cities in Samoa. Get unlimited free shipping in 164+ countries with desertcart Plus membership. We can deliver the SainSmart 3.2" TFT LCD Display +FT LCD Adjustable Shield for Arduino UNO Mega2560 R3 (General) speedily without the hassle of shipping, customs or duties.
Yes, it is absolutely safe to buy SainSmart 3.2" TFT LCD Display +FT LCD Adjustable Shield for Arduino UNO Mega2560 R3 (General) from desertcart, which is a 100% legitimate site operating in 164 countries. Since 2014, desertcart has been delivering a wide range of products to customers and fulfilling their desires. You will find several positive reviews by desertcart customers on portals like Trustpilot, etc. The website uses an HTTPS system to safeguard all customers and protect financial details and transactions done online. The company uses the latest upgraded technologies and software systems to ensure a fair and safe shopping experience for all customers. Your details are highly secure and guarded by the company using encryption and other latest softwares and technologies.
If someone, like me, would like to solder the whole thing together and make an attachable shield on the TFT, needs a 2×20 socket strip, a breadboard and soldering tools.
The other pins of the display must be connected via the blocks. Some pins of the Pi (like MOSI, SLCK, …) are used more often, this should be considered when connecting. The connections are as follows (on the left are the pins of the Pi, on the right those of the display).
Dieses Bauteil hat mehrere Inverter. Wir benötigen nur eines davon. Zum Beispiel kannst du Pin 1 (1A) als Eingang nehmen (Ausgang von 74HC4040) und Pin 2 (1Y) als Ausgang zum Pin 5 (WR) des Displays.
sudo modprobe flexfb debug=3 width=240 height=320 regwidth=16 setaddrwin=2 init=-1,0x00,0x0001,-1,0x03,0xA8A4,-1,0x0C,0x0000,-1,0x0D,0x080C,-1,0x0E,0x2B00,-1,0x1E,0x00B7,-1,0x01,0x2B3F,-1,0x02,0x0600,-1,0x10,0x0000,-1,0x11,0x6068,-1,0x05,0x0000,-1,0x06,0x0000,-1,0x16,0xEF1C,-1,0x17,0x0003,-1,0x07,0x0233,-1,0x0B,0x0000,-1,0x0F,0x0000,-1,0x41,0x0000,-1,0x42,0x0000,-1,0x48,0x0000,-1,0x49,0x013F,-1,0x4A,0x0000,-1,0x4B,0x0000,-1,0x44,0xEF00,-1,0x45,0x0000,-1,0x46,0x013F,-1,0x30,0x0707,-1,0x31,0x0204,-1,0x32,0x0204,-1,0x33,0x0502,-1,0x34,0x0507,-1,0x35,0x0204,-1,0x36,0x0204,-1,0x37,0x0502,-1,0x3A,0x0302,-1,0x3B,0x0302,-1,0x23,0x0000,-1,0x24,0x0000,-1,0x25,0x8000,-1,0x4f,0x0000,-1,0x4e,0x0000,-1,0x22,-3
flexfb debug=3 width=240 height=320 regwidth=16 setaddrwin=2 init=-1,0x00,0x0001,-1,0x03,0xA8A4,-1,0x0C,0x0000,-1,0x0D,0x080C,-1,0x0E,0x2B00,-1,0x1E,0x00B7,-1,0x01,0x2B3F,-1,0x02,0x0600,-1,0x10,0x0000,-1,0x11,0x6068,-1,0x05,0x0000,-1,0x06,0x0000,-1,0x16,0xEF1C,-1,0x17,0x0003,-1,0x07,0x0233,-1,0x0B,0x0000,-1,0x0F,0x0000,-1,0x41,0x0000,-1,0x42,0x0000,-1,0x48,0x0000,-1,0x49,0x013F,-1,0x4A,0x0000,-1,0x4B,0x0000,-1,0x44,0xEF00,-1,0x45,0x0000,-1,0x46,0x013F,-1,0x30,0x0707,-1,0x31,0x0204,-1,0x32,0x0204,-1,0x33,0x0502,-1,0x34,0x0507,-1,0x35,0x0204,-1,0x36,0x0204,-1,0x37,0x0502,-1,0x3A,0x0302,-1,0x3B,0x0302,-1,0x23,0x0000,-1,0x24,0x0000,-1,0x25,0x8000,-1,0x4f,0x0000,-1,0x4e,0x0000,-1,0x22,-3
HY-TFT320 is a 3.2 inch TFT LCD Screen module, 320*240 (resolution), 65K color, 34pins 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 SSD1289, it’s 16bit data interface, easy to drive by many MCU like STM32 ,AVR and 8051.HY-TFT320 is designed with a touch controller in it . The touch IC is XPT2046 , and touch interface is included in the 34 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.
The UTFT library is required to be installed to get this screen model display. This library is especially designed for 3.2” TFT LCD screen using 16 bit mode. The library require the following connections.
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,ITDB32S) when using Arduino Mega2560.ITDB02 myGLCD(19,18,17,16,ITDB32S) 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).
The LCD has a 3.2" 4-wire resistive touch screen lying over it. The Touch libraryneeds to be installed to get it works. This library is designed for 2.4’’ TFT, 3.2” TFT LCD screen module.
The default setting is accurate for 2.4” TFT module, but you need to calibrate when using 3.2” 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.
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.
In this guide we’re going to show you how you can use the 1.8 TFT display with the Arduino. You’ll learn how to wire the display, write text, draw shapes and display images on the screen.
The 1.8 TFT is a colorful display with 128 x 160 color pixels. The display can load images from an SD card – it has an SD card slot at the back. The following figure shows the screen front and back view.
This module uses SPI communication – see the wiring below . To control the display we’ll use the TFT library, which is already included with Arduino IDE 1.0.5 and later.
The TFT display communicates with the Arduino via SPI communication, so you need to include the SPI library on your code. We also use the TFT library to write and draw on the display.
In which “Hello, World!” is the text you want to display and the (x, y) coordinate is the location where you want to start display text on the screen.
The 1.8 TFT display can load images from the SD card. To read from the SD card you use the SD library, already included in the Arduino IDE software. Follow the next steps to display an image on the display:
Note: some people find issues with this display when trying to read from the SD card. We don’t know why that happens. In fact, we tested a couple of times and it worked well, and then, when we were about to record to show you the final result, the display didn’t recognized the SD card anymore – we’re not sure if it’s a problem with the SD card holder that doesn’t establish a proper connection with the SD card. However, we are sure these instructions work, because we’ve tested them.
In this guide we’ve shown you how to use the 1.8 TFT display with the Arduino: display text, draw shapes and display images. You can easily add a nice visual interface to your projects using this display.