tft lcd module with touch panel ili9486 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 next example is controlling an RGB LED using these three RGB sliders. For example if we start to slide the blue slider, the LED will light up in blue and increase the light as we would go to the maximum value. So the sliders can move from 0 to 255 and with their combination we can set any color to the RGB LED,  but just keep in mind that the LED cannot represent the colors that much accurate.

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.

As the code is a bit longer and for better understanding I will post the source code of the program in sections with description for each section. And at the end of this article I will post the complete source 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.

Next is the distance sensor button. First we need to set the color and then using the fillRoundRect() function we will draw the rounded rectangle. Then we will set the color back to white and using the drawRoundRect() function we will draw another rounded rectangle on top of the previous one, but this one will be without a fill so the overall appearance of the button looks like it has a frame. On top of the button we will print the text using the big font and the same background color as the fill of the button. The same procedure goes for the two other buttons.

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:

tft lcd module with touch panel ili9486 made in china

I"m trying to write a driver to use the module from a Pico. I have a preliminary spec I found online for the display chip, but am seeing some things that have yet to make sense to me. For one thing when I walk a "1" down the 16-bit color value the high-order byte seems to be ignored and the lower byte exhibits a RGB behavior in a 3-2-3 bit layout. I can make this work, but this limits the color availability to 256. This format is not documented in the spec I have. The spec outlines a 5-6-5 bit layout for 16-bit color. I then proceeded to attempt 18-bit color, but with this I get 6 bits red, nothing for green, and blue actually appears as cyan (mix of the green and blue).

The board seems to be driving the parallel inputs of the controller chip and doing the serial to parallel conversion using the four ICs shown at the bottom of the board in the picture instead of sending the SPI input directly to the chip. Since the board doesn"t seem to allow reading information from the main chip, it is difficult to tell if the high-order bits are even sent to the chip (only the lower byte is used by any of the instructions except "Memory Write" and "Memory Write Continue"). The controller chip is sandwiched between the lcd display and the board you can see in the picture. I kind of doubt I would be able to observe anything useful if I pulled the module apart since the ili9486 is packaged in a 1776-ball grid array.

tft lcd module with touch panel ili9486 made in china

The RPi LCD can be driven in two ways: Method 1. install driver to your Raspbian OS. Method 2. use the Ready-to-use image file of which LCD driver was pre-installed.

3) Connect the TF card to the Raspberry Pi, start the Raspberry Pi. The LCD will display after booting up, and then log in to the Raspberry Pi terminal,(You may need to connect a keyboard and HDMI LCD to Pi for driver installing, or log in remotely with SSH)

1. Executing apt-get upgrade will cause the LCD to fail to work properly. In this case, you need to edit the config.txt file in the SD card and delete this sentence: dtoverlay=ads7846.

This LCD can be calibrated through the xinput-calibrator program. Note: The Raspberry Pi must be connected to the network, or else the program won"t be successfully installed.

tft lcd module with touch panel ili9486 made in china

If liquid crystal leak out of a damaged glass cell, DO NOT put it in your mouth or touch eyes, if the liquid crystal touch your skin or clothes, please wash it off immediately using soap and water.

Unless otherwise agreed between ADIA and customer, ADIA will replace or repair any of its LCD modules which are found to be functionally defective when inspected in accordance with ADIA LCD acceptance standards (copies available upon request) for a period of one year from date of shipments. Cosmetic/visual defects over specs must be returned to ADIA within 30 days of shipment. Confirmation of such date shall be based on freight documents. The warranty liability of ADIA limited to repair and/or replacement on the terms set forth above. ADIA shall not be responsible for any subsequent or consequential events.

4.2.Module repairs will be invoiced to the customer upon mutual agreement. Modules must be returned with sufficient description of the failures or defects. Any connectors or cable installed by the customer must be removed completely without damaging the PCB’s eyelet, conductors and terminals.

Meanwhile, we do necessary Aging test and Reliability tests to our TFT Display modules, eg. Store and Operate in High and Low Temperature & High Humidity Environment, ESD and anti-interference test , Drop(with package) and Vibration Test.

A:Yes, sample order is always welcome for new projects or replacement of running projects. We have stock of many standard models of TFT LCD modules and Touch screens from 0.96inch to 13.3inch , which means delivery is able to be made the same day as order.

--In summary, based on our years of big output, we have been keeping good relationship with LCD panel, IC and other material suppliers, we had a steady supply even when there was heavy shortage of materials.

Founded in 2011, Shenzhen Yada Xingye Technology Co., Ltd. is a high-tech private enterprise specializing in R & D, production and sales of LCD, LCM, TFT color LCD, touch screen and industrial serial port screen. And can provide a complete set of display screen and display scheme (PCBA).

It has a variety of standard and differentiated LCD module (LCM), LCD and TFT color display products. Make LCD and LCM with various specifications and technical requirements according to customer requirements. The products are widely used in instruments, smart phones, tablet computers, POS machines, medical equipment, car machines, intelligent robots, smart home, intelligent wearable products, UAVs, VR / AR eyes, military products and other fields. The products strive to achieve high quality, micro power consumption, fast delivery, reasonable price and timely technical support. With a number of well-known enterprises at home and abroad to carry out extensive cooperation, products have won wide market application and recognition.

The company attaches great importance to product quality and strictly implements IOS9001 and RoHS management. Stable quality, professional technical support and timely service are the commitment of ADIA to customers. Today, the TFT market is more and more widely used. With the consistent persistence, ADIA works hard to create a professional and well-known manufacturer of TFT display screen industry together with customers and suppliers.

tft lcd module with touch panel ili9486 made in china

I don"t actually have a display at present. I purchased a 7in one some months ago. It had an LT7381 controller and was supplied with a Hunda LT7381 library for Arduino and some basic display design software. However, I couldn"t get the hardware to work despite it being described as Arduino compatible. As it turned out, it also didn"t display anything when used with the supplied USB adaptor and design software for the PC, so it may have been faulty anyway. I posted something at the time but the controller is quite new and there was not much feedback. I ended up sending it back and getting a refund although it still cost me to send it back to china.

The reason I posted was because the project is now at the stage where the LCD display really needs to be added and I intended to get advice before making another purchase. In the meantime I have been working on the project using a 20x4 display.

I don"t posses an Arduino shield which is why I was trying to ascertain whether I need something like that. What is their purpose? A lot of photos show the display plugged into one and then into typically a Mega 2560. I don"t understand what the purpose of the shield is? Is it just a convenient way to provide a means of fitting the board to an Arduino with level shifting? SPI needs only 4 wires. Can"t these be connected directly to the ESP SPI pins?

tft lcd module with touch panel ili9486 made in china

In this article, we are looking at the benefits of looking for Chinese TFT LCD manufacturers. Instead of resorting to other manufacturing means, opting for the Chinese is a much wiser and lucrative choice. If you are looking for Chinese LCD manufacturers, you should start with STONE Tech.

Handbags, wallets, phone cases, and other similar items have become the favorites of wholesalers and bulk buyers. These products are directly sold to end consumers. However, the fascinating thing about the Chinese production and manufacturing business is that it does not only cover the end-consumer products. Rather, you can also acquire raw and basic materials needed for the further manufacturing of goods and products. One such product is LCD displays.

LCD displays have become something of a necessity in today’s world of tech advancement. Many things in our daily life have been automated, and are operated using an interactive user interface. For these kinds of machines and gadgets, LCD displays are typically necessary.

In this article, we are looking at the benefits of looking for Chinese LCD manufacturers. Instead of resorting to other manufacturing means, opting for the Chinese is a much wiser and lucrative choice. If you are looking for Chinese LCD manufacturers, you should start with Stoneitech.com.

STONE Tech is an LCD manufacturer located in Beijing, China. It was founded back in 2010, and it has been developing TFT LCD display modules ever since. These modules can be used for a variety of different machines including electric equipment, precision instruments, and civil electronics etcetera.

One of the main benefits that you get with Stoneitech.com is that there is a wide range of diverse products that you can purchase. For example, there are three different application types that you can choose from which include the Industrial Type, Advanced Type, and Civil Type. Similarly, there is a range of different sizes that you can choose from. There are 11 different sizes that you can buy, ranging from the smallest 3.5-inch display to the large 15.1-inch one. The same goes for the Android series which where you can choose between 4.5-inch and 31.5-inch displays.

This is probably the biggest advantage that you can get when working with manufacturers from China. It can even be assumed that this is probably the biggest reason why the Asian country is at the forefront of the mass manufacturing business.

In the initial period of your business, you want to build trust with your customers and give them more value than they expect. The best way you can achieve this is by making your products available for less than the average price. And this can only be done if you are saving up on costs yourself.

The same applies to LCD displays. When you save up on costs when buying LCD displays, you can set a lower price for the whole machine or gadget that you are producing.

This is a very useful benefit for small start-up companies. Generally, manufacturers in the USA are not going to be very willing to work with you unless you are a big company or unless you have a large recognition and following. Due to this, smaller companies can have trouble getting their demands heard. However, the refusal of suppliers to do so is not unjustified. Smaller companies are going to start off with smaller orders. Small orders are not very lucrative and beneficial for suppliers. The larger the order, the more convenient it will be for the manufacturer.

However, with Chinese manufacturers, this problem is minimized. The Chinese often don’t care how big a brand you are and what recognition your company has. As long as you meet the minimum order requirements, you can get your products easily. This is highly advantageous for smaller companies. Due to this, smaller firms can get started and kick off their business.

When it comes to LCD modules, the orders are not received by the hundreds or thousands as is the case with other smaller products such as handbags and wallets etcetera. One module can cost around $250, and it is for this reason that the dynamics are a little different with this business. That is why STONE offers single pieces for sale as well as multiple pieces. This encourages smaller businesses to make their purchases since they can easily purchase as many modules as they like. As long as you meet the limit stated by the supplier, you are good to go.

The factories in China have more machines and workers working simultaneously. This means that you can get bigger orders more quickly. For example, if you are getting 10 units from a domestic supplier in 4 days, you will be able to get 12 units from a Chinese supplier in just 3 days. That means that the production rate is increased, and the time taken is also cut short. This is merely an example to show that both aspects of production are enhanced when you do business with the Chinese.

In the case of LCD modules, this benefit relates to a reselling business. For example, if you are planning on buying some modules to use in your machines etcetera, then there is not a very suitable opportunity for you to expand. If you want to start a business in another country, you will have to open a manufacturing unit there so that your products can be produced and then get sold. Or, you will have to transport your final products to the other country in order to run your business.

However, if you are buying the LCD modules to resale at a profit, you can use the Chinese markets to grow your business. You can buy the modules at a reduced price and then sell them at a profit in a different area or city where the people will be willing to pay more.

Now that we have seen the benefits of choosing Chinese manufacturers for LCD modules, let us narrow it down a bit and look at why you should choose STONE specifically.

With STONE, you get the option of buying a range of different-sized modules. If your business deals in making different electronics and machines that require panels of different sizes, you don’t have to look at multiple suppliers to fulfill your need. You could be making some products that require 3.5-inch panels, while some of your machines could be needing 15.1-inch modules. Instead of taking the trouble to go to different suppliers, you can enjoy an all-in-one experience from STONE.

One of the main things that you have to look at in any supplier is the level of reliability and trust. This is usually determined by the level of experience and the time that the supplier has spent in the market. STONE was founded in 2010 and has been producing LCD modules for the past 10 years.

If you are looking to buy LCD modules in bulk, look no further than the Middle Kingdom. China has become the hub of mass manufacturing and is the favorite spot for wholesalers and business owners.

In case you need some convincing about buying from the Chinese, we have compiled a list of benefits that you can enjoy when looking for TFT LCD manufacturers in China.

tft lcd module with touch panel ili9486 made in china

Kuman 3.5 inch 320*480 Resolution Touch Screen TFT LCD Display With Protective Case + 3 x Heat sinks+ Touch Pen for Raspberry Pi 3 Model B, Pi 2 Model B & Pi Model B+ SC11

@ bossredman- The XPT2046 is actually the touchscreen controller, not the TFT display controller. You say you don"t care about touch. The existing Teensy/Adafruit TFT display library is written for the ILI9341 TFT controller. This controller is capable of 320 X 240 max resolution. Your display is twice this. I strongly suspect it uses a different controller, so the existing library won"t work. That said, there is no reason the Teensy couldn"t drive your display if you can find a suitable driver. I have not personally seen other, higher resolution driver libraries mentioned in this forum, but others may have info that might help in this respect.

Can anyone recommend any other screens than the ones on the PJRC Store that will definately work with the Teensy 3.6 that have drivers/libraries available.

There are RA8875 based 5" and 7" TFT displays, and sumotoy has written a library for those. I"ve also used one and wrote my own driver (for ugfx) so that display family might be an option.

@bossredman: Since you are in the UK, you should take a look at the FT800 controller-based displays from FTDI, the UK firm that makes them. They have a very high performance TFT driver/graphics engine and you can get 3.5- 5" displays for less than the combo you listed above. FTDI supplies Arduino drivers for these displays- which I have used with the AVR chips found on Arduino boards in the past.

I took one of my spare FT800 4.3" TFT modules and wired it up to a spare Teensy LC I had on hand. The FTDI demo programs worked fine when compiled for Teensy LC- no changes needed. Should work OK on T3.6 as well. When I get a chance I"ll try it on my Kickstarter T3.5 module- I don"t have the T3.6 though.

I wrote several magazine articles centred around these FTDI FT800 displays a few years back, and I was impressed with them. The library routines are a bit harder to understand than the Teensy ILI9341 library, but this controller is MUCH more powerful.

After disabling the _CS and _DC lines from SPI direct control (to avoid timing issues with the 16 bit serial interface) there was < 20% benefit and the code is nearly 3 times as long.

After disabling the _CS and _DC lines from SPI direct control (to avoid timing issues with the 16 bit serial interface) there was < 20% benefit and the code is nearly 3 times as long.

Downloaded the https://github.com/palmerr23/ILI9486_Teensy_Library version of this library and added to my environment; compiled the example to test it out, and It compiled fine but I am curious as to where the drawCirlce(), drawTriangle() and a few other functions are located? They are not in the .cpp file, not referenced in the .h file yet the code compiles fine. What am I missing here? I don"t see any other included code that account for these routines. These functions are all referenced in the example code but I cannot find the source.

MISO, MOSI and SCLK are necessary for the TFT to work. They are not exclusive of the SD card. The SPI interface is a bus: you connect the same SCK, MISO and MOSI to all the pertinent devices, then each device has its own CS=chip select.

I would like to use a ILI9486 TFT and TP with it. They both work fine with a Mega2560 and when I wire it up as per the declarations in https://github.com/palmerr23/ILI9486_Teensy_Library .h file and run the graphictest program in the examples folder, the screen lights up, but doesn"t reset or show any data. I"m wiring as follows;

My two ILI9486 libraries are modifications of the Adafruit ILI9341 code - one generic and one based on the ILI9341_t3 Teensy-optimised code. From memory, the only changes I made were in the initialisation, so that the appropriate registers were written.

As Kurt says, it"s important to know exactly what TFT hardware you have, and particularly if you have any other hardware or (particularly) SPI-related libraries used. Uninitialised SPI hardware can sometimes transmit on the bus, if the CS pin hasn"t been intentionally driven HIGH.

Turns out the board is SPIO for touchscreen and parallel for LCD. My mistake. I bought it on the basis it was SPIO for both. As a shield, it just plugs into a UNO/Mega. It"s only by going via a breakout board and wiring every pin and seeing when it breaks, I was able to confirm that the LCD is using the parallel interface.

Might try using the breakout board to wire the parallel interface to Teensy and test that or more likely, I"ll use this as an excuse to buy a larger (7") TFT which is definitely SPIO :-)

Thanks again for your advice and attention. The Teensy 4.1 board is just ridiculously powerful. The only possible "improvement" I could ask for is a version with the RJ45 on board, but that would require an extra square centimetre of real estate - madness!

https://www.ebay.com/itm/3-5inch-TFT-SPI-Serial-LCD-Screen-Module-480x320-ILI9488-w-Touch-Support-65K/164144628286?hash=item2637c8423e:g:BAgAAOSwWG5egw0 0

Kuman 3.5 inch 320*480 Resolution Touch Screen TFT LCD Display With Protective Case + 3 x Heat sinks+ Touch Pen for Raspberry Pi 3 Model B, Pi 2 Model B & Pi Model B+ SC11

Is it this one: http://www.kumantech.com/kuman-35-inch-tft-lcd-display-480x320-rgb-pixels-touch-screen-monitor-for-raspberry-pi-3-2-model-b-b-a-a-module-spi-interface-with-touch-pen-sc06_p0014.html

If so no idea if it will work or not. It is for an RPI, so could be one of many different Setups with their own RPI driver. Might be lucky and be one that uses ILI9488 (or maybe ILI9486)

Sorry not sure without more information... You might try our KeDei driver or the ILI9488 driver or HX8357 driver... As all three have that resolution...

Is it this one: http://www.kumantech.com/kuman-35-inch-tft-lcd-display-480x320-rgb-pixels-touch-screen-monitor-for-raspberry-pi-3-2-model-b-b-a-a-module-spi-interface-with-touch-pen-sc06_p0014.html

If so no idea if it will work or not. It is for an RPI, so could be one of many different Setups with their own RPI driver. Might be lucky and be one that uses ILI9488 (or maybe ILI9486)

Beware though. I"m not out to bash BuyDisplay, I"ve used many of their displays in my projects. Mostly the 3-inch ILI9341 display with xpt-2046 resistive touch and the 4.3-inch display with capacitive touch and the 5206 (?) touch controler which both worked very well. They also have other touch controllers such as the GSL1680 on their 5-inch RA8875 display. The display is super nice and the display drivers work well with it. It"s the dang GSL1680 touch controller that has been a bear to get working, YES, I"m still trying. Some folks posted here that they got it working but I have had no such luck. So when you buy at BuyDisplay be sure to verify the touch chip you are getting. Besides that I do feel BuyDisplay is a good place to purchase displays. No bad feeling intended to other display vendors.

Yesterday, I wired the waveshare 4inch tft touch screen to teensy 4.1. One thing I had to change was the spi config on the display board. There are three switches to select the six pin spi connector or the outboard pins for spi.

Yesterday, I wired the waveshare 4inch tft touch screen to teensy 4.1. One thing I had to change was the spi config on the display board. There are three switches to select the six pin spi connector or the outboard pins for spi.

Looks like you have some stuff running. Not sure if we have adapted some of our other libraries like the ILI9488_t3 library to work with it or not... I know some have done with either this one or ILI9481_t3... library

There are no additional libraries needed with the examples. They coded all the hardware interaction in the demo. It is delightful to see this example compiles to a mere 34KB

tft lcd module with touch panel ili9486 made in china

The 3.5 inch TFT LCD Touch Display Shield for Arduino Uno is fully assembled, tested and ready to go. Add the touch display without wiring, no soldering! Simply plug it in and load up a library – you’ll have it running in under 10 minutes! Works best with any classic Arduino ATMEGA328 BoardSo spice up your Arduino UNO project with a beautiful large touchscreen display shield with a built-in microSD card connection. This TFT display is big (3.5″ diagonal) bright (4 white-LED backlights) and colorful (18-bit 262,000 different shades)!The Display comes with 480×320 pixels with individual pixel control. It has way more resolution than a black and white 128×64 display. As a bonus, this display has a resistive touchscreen attached to it already, so you can detect finger presses anywhere on the screen.

Features:3.5″ diagonal LCD TFT display, with bright 4 white-LED backlights, default state: onIt can control the backlight to connect the transistor to a digital pin480×320 Pixels, with colorful and 18-bit, 262,000 different kinds of shade4-wire resistive touchscreen8-bit digital interface, plus 4 control lines