Arduino Touch Screen TFT LCD Tutorial
HTML-код
- Опубликовано: 8 фев 2025
- In this tutorial we will learn how to programming the TFT LCD Touch Screen. I used 2.8" TFT Touch Display ILI9325 Module and Arduino Uno for this tutorial. The topics we will view in this tutorial, Required Libraries, Add Text, Text Color, Font Size, Print Text, Create Button, Button Click, Add Frame, Draw Rectangle and Background Color.
Required Hardware
TFT LCD Touch Screen + Arduino :
goo.gl/JZHV0n
amzn.to/39w8MQT
amzn.to/39uvVmI
Package included:
1 x 2.8 Inch TFT LCD Shield Touch Display Module
1 x UNO R3 ATmega328P Board with USB cable
Recommended Items:
Use Your Muscles in Project - amzn.to/3wdL45C
37 Sensor & Module Packages - amzn.to/3m66WeQ
Try this Robot Arm - amzn.to/3fq8DCl
Best Resin 3D Printer - amzn.to/39tY8KB
Arduino Compatible Kits - bit.ly/2J2AFF7
Banggood Spring Sale - bit.ly/3slMbOn
Download Source Code and Library:
create.arduino...
The next " LCD Touch Screen" videos will be about the following tutorials
How to make "Distance Measurement" using Ultrasonic Sensor
How to make "Serial Monitor" with LCD Touch Screen
How to Control "Your LEDs" with LCD Touch Screen
Source Code: create.arduino.cc/editor/mertarduinotech/1be3c860-46ff-4e7a-98f3-1519a64c01f5/preview
Recommended Items:
Use Your Muscles in Project - amzn.to/3wdL45C
37 Sensor & Module Packages - amzn.to/3m66WeQ
Try this Robot Arm - amzn.to/3fq8DCl
Best Resin 3D Printer - amzn.to/39tY8KB
Arduino Compatible Kits - bit.ly/2J2AFF7
Banggood Spring Sale - bit.ly/3slMbOn
I realize Im kinda randomly asking but does anybody know a good place to stream newly released movies online ?
@Javier Kannon I would suggest FlixZone. You can find it on google =)
@Warren Oakley yup, have been watching on flixzone for months myself :)
@Warren Oakley Thanks, I signed up and it seems to work :D Appreciate it!
@Javier Kannon happy to help :D
I searched 3 Days for a good Video! Here it is! Thank you very very mutch! It´s the best video i saw on youtube to this project! Thanks!
You are the only one who explained how to draw a rectangle thanks a lot
Thank you for this. I've been trying to get my newly arrive screen working. This has helped a lot. John
Thanks, without using words you did an excellent job of explaining, by following closely it was clear what everything represented.
I appreciate your time
Wooow!!! Thank you so much for the explanation! I was searching for something very simple and straightforward and you've nailed it!!! Congratulations!
As always - awesome video! Would be interesting to see power relays connected to Arduino with few examples.
gördüğüm en açık anlaşılır ve basit tft ekran kullanımı videosuydu.
Thanks it so helpful just I encountered a little problem when I compile (redefinition of ' Touchscreen ts') thank you another time ,it's so interesting I will wait your answer as soon as possible .
Nice video!
I find Nextion displays having a much easier and effective approach: you create your screens with a PC based IDE and download them to the display, then you control it with arduino via commands and events.
Thank you very much. Great tutorial. Goodluck.
cool! This will definitely help out with my little video game i am making
Very good. I instandly ordered a set to experiment with 👍
Wonderful tutorial!You help solve the problem.Nice sir,Thank you very much!
Creative video, thanks :)
Truly happiness comes when I see the notification, from the channel's best channel ❤️
Ahmed Saman Same
This TFT works well with 8 bit parallel lines, but does it also works with SPI communication?
i love your videos ! good tutorial thank you !!! A french suscriber ;)
Hi, nice video.
Please can you make a video --> how control led with touch display.
Best Regards
Ch.
Good morning. I have this screen "3.5inch TFT Touch Shield (320x480 Pixel / XPT2046 Touch controller)" and I want to connect it to Arduino uno R3… I want to connect the DHT11 & MQ-3 sensors and control them from the screen but see temperature / humidity / Gas. I tried according to the video but it only shows me a white screen. Please if you can help me. Thanks in advance!
Mee too, whenever i want to show something on the screen, it goes white
Best Video on RUclips!!!!!!!!!!!!!
Thanks for this vídeo!!!!
good job man .... 4
but i think using this alternative way as below
BLuetooth Module
Any Tablet or Mobile
use the touch screen of the tablet or mobile to send commands over bluetooth to arduino is easy and wireless touchscreen
and need any html + javascript programming
or just
android programming to make the magic
best regards
Hai nice tutorial, which explains everything in detail.
And please say how to display the files from a sd card in a ILI9341_16 UTFT display. Where, the card must insert in the inbuilt card port in the shield.
This one was really really nice sir!!! This helped me a lot..thanks for this tutorial
after pinmode XM/YP, OUTPUT
can i make new buttons for more text ?
Hola , ne gusta este diseño, deseo hacer un pwm controlado con touchscreen, onda cuadrada. El ajuste de duty y ekeccion de frecuencia. Pueee ayudarme? De antenano gracias
Informative Video. I bought 3 complete units which I can calibrate but when running the program the touch does not work. I have tried all combinations, they all calibrate but that is as far as I can go. Any Ideas???
thank u for this video it is very useful to me
You are the best !
thank you
again the first and an another wonderful video
hello, can we create a button to go to the PREVIOUS page ?
Very good tutorial, teaching by figures and subtitles, especially for those who do not understand English perfectly.
Can this sketch be used with a 3.2 inch ILI9341 Touch Display? If so, what should be changed?
Thank you; I'll sign up for the channel.
Hi Dan.
I wish he would actually TALK instead of just putting this stupid music .. and at least make videos in full HD (1080p) so one could at least see what's written on his screen. Have a nice day!
@@oncledan282 Actually, the quality is not very good but, in particular, the caption/legend helped a lot because I have difficulties in English because it is not my native language.
@@oncledan282 I’m still waiting for your video in HD in multiple languages explaining this topic…. And just think all YOU have to do is put words to what he took the time to work out… shouldn’t take you more than a few weeks, let us know when you’re finished.
nice with video with good explaining of code.
Are all Pins used up with the TFT?
I can't find the libraries, where can they be downloaded ??
Will it be compatible with arduino due
hi, morning
very good video
it is possibile to use the sketch with ILI9341 ?
what i have to change?
ty very much
I have AS7341 Sensor, ARDUINO UNO and Adafruit 2.8" TFT Display.
Can you please tell me, how to read sensor data and display on TFT?
What is the type of this screen
çok açıklayıcı bir video olmuş , eline sağlık
How to turn off and dim the tft screen light?
Question, are the libraries you typed in your code supposed to be orange or just black text?
it it using all the pins? what is it for then?
very nice tutorial
Thanks bro , now I also can make this
Hello, how can we add more boutons ? i created 2 boutons, but i don't know what to do next, for exemple, ( speed , position ) if we press position, we'll have to chosse position parameters and if we press speed, we'll change speed parameters. thanks
Hi i have an old phone tft display MP1.3 is it possable to use it with arduino i know i can buy one for cheap but i want to use this one if its possable.
How can I add a new button to the second screen? Can you add a button that takes you back to the first screen?
i want to do this, did you find how to do it ?
is there a way to type directly onto the lcd?
I'm trying to make my LCD basically a type of scheduler
Good tutorial i don´t wait for de distance measurement jeje thanks ......go ahead!
jeje i can´t wait...
Can I use it with only 4 bit parallel data (D0 - D3) instead of using 8bit ??
Hello sir, how can I calibrate MINX and MAXY value my ili9486 TFT touchscreen?
please add a video for CNC plotter from old drives
can somebody tell me where to download the library files because I cant find it
Hi, I followed your tutorial, code uploaded without issues but I only have blank white screen showing. Any idea why?
"Touch_Screen_TFT_LCD:1:10: fatal error: Adafruit_TFTLCD.h: No such file or directory" I'm new to arduino and I have no clue why I dont have that file in my directory when I downloaded the sketch you put in the description. Help would be appreciated. I dont even have all of the library folders that you showed on the screen, my Touch_Screen_TFT_LCD file only includes a "sketch.json" file and a "Touch_Screen_TFT_LCD.ino" file.
great work. littlebit I am understand
please make videos using tft
good job all time and perfect music continue please
good tutorial for beginner but in my case text orientation reverse how can i change it? please help me to solve this problem.
Nice Vid, I wish it worked with the Arduino Mega2560.
Sir..which pins are actually not used by this shield?? I mean is there any pin which I can use for attaching any other hardware??
+Mert Arduino and Tech thank you Sir
its telling me that the "textsize" was not declared in the scope. plz help i need help.
@BigCheese Gaming Thank you for your advice but sadly it didn't work
Can we add image to background?
Very nice tutorial. I can't get the button to work though?
Hello, thanks for the videos they are really great. But I would have a concern about the TFT LCD DISPLAY, I would like to know how to connect it to an OV7670 camera to the arduino and the screen to have real-time images. Thank you
Did you ever get an answer for this?
How would I change the code to fit a 3.5 touchscreen?
change the resolution
Could you please share a playlist?
Do the C++ and other .ino code had to be unzipped to a specified folder?
puedes activar un servo motor con el touch screen para abrir puertas?
y una pregunta mas con el servo motor azul se puede abrir una puerta o se necesita uno mas potente
Es buena tu pregunta pero por favor escribel en ingles ya que mert radica en gran bretaña..ok
Can you activate a servo motor with the touch screen to open doors?
And one more question with the blue servo motor can open a door or you need a more powerful
gracias javier ramires
Which song is that???
Can u do something like this on temperature
I'm trying to get this to work on Arduino Uno. Tried to follow your instructions to open touchscreendemo from File/Examples/TouchScreen, but there is no such menu item in my IDE. I added the 3 libraries manually to the library folder prior to that.
Can you show us how to make a smartphone using this only
Is the stylus is included with touch screen
Could you help me so that there is communication of an LCD screen JM320240E-5V with the arduino, sending graphics to the screen.
I don't know what the controller is.
Thank you
I managed to get an ILI9486 3,5' TFT work with this code, using tft.begin(0x9341); instead of the "identifier" procedure or tft.begin(0x9486); (these cause white screen) . But the screen flickers intensely, although only static text is displayed; no text in loop. Any suggestion appreciated
How to type Word??? are there connect key board?
If u are less busy....I need lcd display for project........a speaker.....so I need to display the following
Name of speaker
Model
Battery level
Charging indicator
Reis sensörlerden aldıgımız degerlerı buna yazdırabılırmıyız
2.8" TFTLCD Arduino not working in Mega and Same LCD Same Code working in Arduino UNO Please help me
nothing happens for mine... only shows a whitescreen...
where in the video do you talk about having a white screen problem? I dont see it?
Same here and I cannot find the section in the video that explains it either. The demo sketch works but then the code to make it actually do something doesn't appear to be working.
ally monster the only way i managed to tinker with it was to load the phonecal example and edit the code to define button size location color etc
The solution i found, is to replace this:
uint16_t identifier = tft.readID();
tft.begin(identifier);
with this:
tft.begin(0x9341);
As I believe the LCD ID Detection isn't working right.
Hope this helped!
This worked for me thank you.
what is the name of the music you put in the video?
Thank you
Waiting for ur project
hello there! we have a group project for school that needed something like this. i was wondering if i can command motors with this tft lcd and arduino uno?
it is fairly possible to command motors with a touch display. I don' t know if you can use exactly this type of lcd module since it is a shield-version . Looking on the pictures of the given link i doubt that you can add additional parts to it (but I can't tell 100% correctly). Furthermore you might need an arduino with more digital pins (like the arduino mega or due) since the shield might occupy all pins of the arduino uno.
The link does not working. Impossible, does not donwload nothing.
Hello thank you so much for the video but one question can we change font?
@Prem Kumar yes you can
Hello, what if you want to make 2 pages +?
did you find how to it ? please help!!
How can I adapt this to a serial display?
where to put library files
Eski evde olan dokunmatik ekrana telefon anakartı baglayabilirmiyiz
Can we send messages/files using Arduino,TFT and HC 05 modules???????
Please reply????
The touch function does not work for me with a realtimeclock or other changing values on screen. What am I doing wrong?
У меня проблема с дисплеем, не зависимо какой СКЕТЧ загружаешь - всегда белый экран. Что мне делать?
nice from 3:24
Great work ^_^
i am using arduino id 0x5408 software and mcufriend library. tftlcd display is shows that mirror text .then what can i do . please send replay
i Just found a mistake in his code. If anyone is having trouble look up the definition of the "map" function , he has the values in the wrong place.
Here is what it should be
p.x = map(p.x, TS_MAXX, TS_MINX, 240, 0);
p.y = map(p.y, TS_MAXY, TS_MINY, 320, 0);
how did you find the coordinate of 50 260 180 270??