3.2 tft lcd ili9341 touch ssd1289 arduino made in china

Contact your seller on e-Bay. Ask him what display it is supposed to emulate. Look in the Supported Display file that comes with UTFT/URTouch libraries in the documents folder. See if that display is listed and use its definition in your programs.

3.2 tft lcd ili9341 touch ssd1289 arduino made in china

First thing you should do is calibrate your touch screen. If you go into the UTouch library in your arduino file there is a calibration file within the examples. Open it and follow the directions. The MOST important point here is that you absolutely need to choose your LCD module to calibrate it properly. Given this is about the SSD1289, your module is likely SSD1289 so use what is listed below.

Next thing is make sure you are using SSD1289 (or whatever the correct module is) as your module parameter in whatever sketch it is you"re trying to get to work.

3.2 tft lcd ili9341 touch ssd1289 arduino made in china

Contact your seller on e-Bay. Ask him what display it is supposed to emulate. Look in the Supported Display file that comes with UTFT/URTouch libraries in the documents folder. See if that display is listed and use its definition in your programs.

3.2 tft lcd ili9341 touch ssd1289 arduino made in china

I use the UTFT library, and pinned right all the DB connections, RS, WR , RD, CS and Reset regarding the requirement of the library UTFT - Rinky-Dink Electronics

3.2 tft lcd ili9341 touch ssd1289 arduino made in china

I puzzled some hours with exactly the same hardware setup and made a quick & dirty, but successfully test script, combining LCD, Touch and SD Card Features.

3.2 tft lcd ili9341 touch ssd1289 arduino made in china

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.

The third example is a game. Actually it’s a replica of the popular Flappy Bird game for smartphones. We can play the game using the push button or even using the touch screen itself.

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.

Next we need to define the fonts that are coming with the libraries and also define some variables needed for the program. In the setup section we need to initiate the screen and the touch, define the pin modes for the connected sensor, the led and the button, and initially call the drawHomeSreen() custom function, which will draw the home screen of the program.

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.

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:

3.2 tft lcd ili9341 touch ssd1289 arduino made in china

Put the screen(3.2 inch screen schematic) into shield (TFT01-3.2 shield schematic) first, then connect the shield to Arduino, it is quite straight forward.

3)Download and install UTFT ,URTouch ,SdFat,UTFT_Buttons and UTFT_SdRaw library file from following link and copy them into Arduino library folder. ( i.e. D:\arduino ide\Arduino 1.6.9\libraries )

Download the test program (http://www.kookye.com/download/3.2inchscreen/3.2inchtouchscreentest.zip), upzip and open it,then choose the correct board and port.

You will see the code in each sketch: UTFT myGLCD(CTE32_R2, 38, 39, 40, 41).The first value of code refer to the mode of LCD screen. Please write CTE32_R2 or ILI9341_16 if you LCD screen is ILI9341; Please write CTE32 if you LCD screen is SSD1289;

When you use the others LCD screen from the others seller, you could check the PDF instruction in documentation file or open the UTFT.h file to find the correct code.The controller mode could be identifitied by the back mark as the following pictures.

Note: In the project of testing the SD card,please insert the SD card into the slot in back of the 3.2’’ LCD screen. The format of files in SD card must be the FAT32, you need to put the test files(i.e. ICONS.RAW,WAIT4GPS.RAW,SK45) into the SD card root directory.

3.2 tft lcd ili9341 touch ssd1289 arduino made in china

You can get ili9341 with an operation range that suits your specific application, choosing from a wide selection of suppliers. Source wholesale ili9341 on Alibaba.com for your business and enjoy a wide variety and great deals.

ili9341 (Liquid crystal display) are made of liquid crystals that form digital images made visible through ambient light or through LED backlight. LCDs are used in the place of other displays that are less efficient such as cathode ray tubes (CRTs) and have become the most popular display type on the market.

Explore the extensive selection of wholesale ili9341 LCD displays, TFT, and HMI that can be used across a range of industries, including domestic, medical, industrial, automotive, and many others. You can choose from a number of standard industry sizes and find the ili96341 that are applicable to your required use. If you would like options that allow a smaller environmental footprint due to low power consumption, you can browse the Chip-on-Glass (COG) LCDs. COGs are designed without PCBs so have a slimmer profile.