china 7 inch tft display free sample

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.

china 7 inch tft display free sample

Smart TFT LCD display embeds LCD driver, controller and MCU, sets engineer free from tedious UI & touch screen programming. Using Smart TFT LCD module, our customers greatly reduce product"s time-to-market and BOM cost.

china 7 inch tft display free sample

Beijing DWIN Technology is a world-leading high-tech industrial automation enterprise which is dedicated to the research, development, manufacture and sales of UART LCM. The head office of DWIN is located in the core area of China"s "Silicon Valley" Zhong Guan Cun. The company has set up offices in many provinces of China (Beijing, Suzhou, ChangSha, GuangZhou and ShenZhen etc.), established the effective sales channels and branches in Northern Europe, America, India, Turkey, Brazil and Korea. The manufacturing center of the company is seated at DWIN Hunan Technology Park covering 28000 m2. The manufacturing centers are equipped with high cleanliness assembly lines, quality improvement centers, laboratories and aging test workshops. A 4500-square-metre Application Support Center has been built in Guangzhou for providing technical support. Established in 2003, DWIN advocates its operation philosophy of "Professional, Creditable, and Successful". The company believes that only by creating value for the clients, could DWIN realize its idea of "Double win", and therefore could meet its need to grow and expand. Relying on the competitive advantage of its product in function, quality, service and price, DWIN plays a major role in the market of Industrial UART LCM, especially in the market of the construction machinery, healthcare instrument, and electronic equipment for export, which are products focused on high reliability. As a result, DWIN has already won the trust and support from clients like SANY Group, GE and SIEMENS. Creating value for the clients is DWIN"s belief; Technology innovation is DWIN"s focus; "Double Win" and mutual development are DWIN"s spirit!

china 7 inch tft display free sample

DS040BOE40T-007 is a 4.0inch normally black display mode,it applies to 4.0” color TFT-LCD panel.The 4.0inch color TFT-LCD panel is designed for electronic label,car box,white house,smart home,industrial equipment device and other electronic products which require high quality flat panel displays,excellent visual effect.This module follows RoHS.

6.Special share LCD can be customized,such as bar,square and round LCD display can be customized or any other special shaped display is available to custom.