Тёмный

Arduino Tutorial: 2.8" TFT LCD Touch Screen ILI9325 with Arduino Uno and Mega from Banggood.com 

educ8s.tv
Подписаться 124 тыс.
Просмотров 213 тыс.
50% 1

This is a 2.8" Arduino Touch Screen Tutorial with the ILI9325 driver. Is this Arduino touch display a good option for your Arduino projects? Keep watching in order to find out!
Hey guys, I am Nick and welcome to educ8s.tv a channel that is all about DIY electronics projects with Arduino, Raspberry Pi, ESP8266 and other popular boards. Today we are going to take a look at this 2.8" touch screen designed for Arduino. As you can see, I have loaded a demo program that displays a button on the screen. When I press the button with my finger, the program displays a message. As demonstrated the touch screen is working fine! Finally we can start building projects with a touch screen which are much more interesting and easier to use.
💻 Code & Parts: educ8s.tv/arduino-touch-screen...
Want to learn to code?
👨‍💻 Check my new RU-vid channel: bit.ly/3tku2n0

Наука

Опубликовано:

 

11 ноя 2016

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 209   
@brunovarotta
@brunovarotta 6 лет назад
Could you tell me if this will work on a 3.5'' TFT touch LCD shield. I can see it uses the same pins
@amlansarkar8837
@amlansarkar8837 7 лет назад
Can you make a video on how to use the SD card slot in the display for displaying pictures and stuff!
@tonyblewitt6159
@tonyblewitt6159 6 лет назад
This was a great help in getting the 2.8 TFT touchscreen to work (the one from Bangood )! I did however struggle for some time with the dreaded white screen . The driver for the device, I just received from them. Needs to be ILI9341. which is not on their information .I initial tried for a good while with the ILI9325 driver which sort of half works half works on the above tutorial ......so if you are struggling with one of these Bangood displays try entering 9341
@adlaneaitamrane2740
@adlaneaitamrane2740 5 лет назад
tftbmp isn't working with my arduino mega, does someone have a solution ? if i use the soft spi i have an error because this is a modified TFTLCD Library . Thanks
@riccardofinotti1019
@riccardofinotti1019 6 лет назад
Hi, would you know how to connect this shield to a Ramps 1.4 shield? I would like to use the touchscreen in my 3d printer
@BananaScience
@BananaScience 5 лет назад
Extremely helpful tutorial! Thanks!
@fcolpz9071
@fcolpz9071 6 лет назад
Hey!! I have the same touchscreen, I have seen the others tutorials with nextion, its possible to use nextion with this model of touchscreen ??
@vishalprajapati823
@vishalprajapati823 7 лет назад
i have 2.4 tft screen with 9335 written on back i had tried same instruction but it just ended giving a white screen .. what chnges should i do
@robertovaldez-castaneda6281
HEllo, im just trying to run your program about the ARduino mega 2560 and the 2.8 TFT LCD touch screen but there an error code on the line : TouchScreen ts = TouchScreen(XP, YP, XM, YM, 300); Can you explain this please? it says that "XP" was not declared on the scop > PLEASE HELP !!
@sirazulislamsiraz7631
@sirazulislamsiraz7631 7 лет назад
hi there... I am connecting ILI9341 display with ardunio uno. i am able to get image. but I can see this from angle. the display seems very bright. what can i do to solve this problem? thanks
@diegorincon811
@diegorincon811 7 лет назад
Great example, thank you. I was thinking to implement this display to show daily exchange rate between USD and other currencies. Is there a way to make arduino download daily exchange rates from internet o from a file on the web and display it on the TFT? (with a wifi or ethernet shield) Again, thank you
@mitropoulosilias
@mitropoulosilias 7 лет назад
that screen as a clock digital numbers with ds3231RTC with multi alarm function, sounds or songs on alarm, Why it does not work with due?
@alan.millington
@alan.millington 7 лет назад
I'd love to see a simple touchscreen controller for the little robot you built a few weeks ago. You could send commands via bluetooth and show the direction arrows on screen, could be very neat :)
@rosazuniga8012
@rosazuniga8012 7 лет назад
hello, I want to make a matrix of a few buttons sort of like dial pad. I saw you created one button how to do more than one, ( on/off , and numbers ) like to control LEDs, and stuff.
@360_tours
@360_tours 6 лет назад
My screen seems to be shifted down. When I change the origin and read the data point from the serial is doesn't change. Do you know of any solutions?
@VK2AHB
@VK2AHB 3 года назад
Hi Nick, I have two questions: 1) I have the blue 2.8" and a red 2.8". The blue one works fine, the red one is mirror reversed. How can I turn it right way round? Second question: With most of the pins taken up by the display, how can I add sensors like DS18B20 or DHT22?
@BGLENN-dp4tx
@BGLENN-dp4tx 4 года назад
Where to find out about using the integrated SD card? Thanks.
@dilsonferreirasouza5814
@dilsonferreirasouza5814 7 лет назад
Do you have some example with more pages and botton? I'd like to learn more about it.
@shaunxthexmod777
@shaunxthexmod777 Год назад
hi can the touch screen ,Arduino Uno play. a gif animation ?
@brianmoore5454
@brianmoore5454 6 лет назад
Nick...I am using the same 2.8" TFT LCD Arduino Shield as yourself in the video. However, I have tried downloading every combinations of Sketches and none of them work. I have followed most of your other videos and they nearly all work straight away but this TFT Shield is bugging me as I have a project waiting for a working screen menu. Any help would be most appreciated
@chronobot2001
@chronobot2001 4 года назад
Can you still use devices with the SPI or I2C interfaces or does the screen prevent it?
@JoBest94
@JoBest94 6 лет назад
Great video!, helped a lot with my project, I really like the part where you show ordinally what part of codes do what on the display
@hmdmddh
@hmdmddh 6 лет назад
Hello thanks for the explaination, can we use this Touch screen and an arduino uno to build an oscilloscope?
@thanasisathanasi4965
@thanasisathanasi4965 5 лет назад
Re file, me afto to papari mporeis na kaneis skip forward me kapia commands?
@yadavraveendra6922
@yadavraveendra6922 6 лет назад
Thank You for the tutorials.
@peterwebster3076
@peterwebster3076 7 лет назад
hey nother great video I want to use this project to create a digital photo frame but unsure how to do this ie changing the code if you know what I mean any help would be great cheers pete uk
@ci3jk4
@ci3jk4 7 лет назад
Hi, Could you please make a tutorial on how to make a simple menu with pages? I did figure out all the rest but I'm stuck on how to make the screen go to next page when (one of 3) button is pressed, to show different data. I know that the code behind this is quite simple, but cant figure it out... Just like jimbob dooley mentioned, a month ago :)
@nitlendghar
@nitlendghar 5 лет назад
Helloo sir, im trying to learn touch screen photo frame based on arduino forward reverse pause. As like audio video player. Pls
@chernoblyat1901
@chernoblyat1901 2 года назад
Question, I've seen some RU-vidrs use the TFT Adapter Board for this project, is it a must to use the TFT Adapter Board?
@augustoduccio
@augustoduccio 7 лет назад
really very interesting I am using this display with numbers but i am not able to cancel the previous number so in fews steps they are impossible to read. suggestions ?
@Kenneth548
@Kenneth548 3 года назад
2.8" TFTLCD Arduino display with white colour only after install the code on UNO. Please help
@AzharKhan-ek3ri
@AzharKhan-ek3ri Год назад
can we somehow use this display with an esp 32
@florisbollen3770
@florisbollen3770 6 лет назад
Hi, I've been looking all over the internet for some libraries that work with my arduino uno, and my touch screen shield, and you're the first that gets something on the screen, but I've got strange coloured lines all over the display, and a lot of snow in the background, how do I fix this?
@pass6123
@pass6123 6 лет назад
Hi, I also have the same problem. I would like to know if you could fin a solution.
@jeanfrancoishoussou6293
@jeanfrancoishoussou6293 6 лет назад
hello nick.Nice to meet you. sorry for my bad English .I am trying to resolve my white screen problem. I have try all library whithout solution. now i think that it's about my register and i upload LCD_ID redreg library to show a different values of my registers and i found this:Unknow LCD driver C0C0. i am using a 2.4 TFT SPI 240x320 whith arduino uno. I need help.
@parasbhanot
@parasbhanot 7 лет назад
you can build Line chart or Bar-graph according to sensor values .
@RTOHIO
@RTOHIO 3 года назад
I cannot get the example to compile, it says A2 is not defined in this scope. The comment in line says must be analog use An notation. I can find no info on how to use that notation in Arduino sketches. Github says if you are using the shield use TFTpaint_shield.ino but I cannot find that ino file either. Since it wont compile I cannot calibrate the screen. Any ideas? Been a subscriber for a while and like your approach.
@daleafboi_8315
@daleafboi_8315 2 года назад
Hi, when i try to upload the code to the Arduino, it doesn't do anything. It just sits with a blank screen. What should i do?
@64bittz93
@64bittz93 6 лет назад
does the screen use pin 13 of arduino uno?
@legoscratch
@legoscratch 7 лет назад
What are the pin holes on the right for? They aren't marked
@estudianteelectrico6728
@estudianteelectrico6728 5 лет назад
Hello Friend. great teaching content. Thank you for sharing your thoughts. Dude, I have some problems. The code generated by my TFT controller with the function: uint16_t ID = tft.readID () is 0x5408, but it does not spin when putting this code into the tft.begin (0x5408); But it rotates by putting tft.begin (0x9325); Another detail is that the texts have appeared mirrored, inverted, for example: youtube appears eduTuoy. Could you help me? Thank you.
@killboysenior9763
@killboysenior9763 7 лет назад
how long is the ribbon cable attaching the lcd to the module
@AakashSom
@AakashSom 7 лет назад
I am looking forward to some possible projects with this!!! I really can't figure out a proper project I can make with it!
@ProjectGuns
@ProjectGuns 7 лет назад
Hi Nick, great video. how about a project with this display making a .bMP photo display that will advance the photos from the SD card using the touch screen. Regards, Stan
@josephkidd3622
@josephkidd3622 5 лет назад
How many pins are left when used with the mega?
@amitrdevece
@amitrdevece 6 лет назад
can you make an oscilloscope with this display and uno ? what will be the maximum bandwidth and frequency range for this oscilloscope? will it be more useful than DSO138 mini oscilloscope ?
@thesavagedog28t61
@thesavagedog28t61 6 лет назад
here www.jaycar.com.au/oscilloscope
@fermarioav6473
@fermarioav6473 5 лет назад
Hello, I want to manufacture my own electric scooter, for this I want to add an LCD panel adafruit, I want to control the engine for acceleration and the three modes, Eco, Normal, and fast, for this I do not want it to be a touch screen but a Joistick, I want that show battery level, and acceleration, what would you recommend, do you know a similar project? Thank you
@muhammadhuseinkarbala8696
@muhammadhuseinkarbala8696 4 года назад
I using driver ili9338. It works. But it can't touch. No respond when i touch every side. Can you help me please
@rajeshthakur-zv5lo
@rajeshthakur-zv5lo 6 лет назад
sir , can you give the schematic to connect this lcd with Arduino mega.please I really need this.
@alexandreallais5447
@alexandreallais5447 7 лет назад
sorry but my tft don't work with my arduino mega... do you have an idea why ?
@deepsavani5785
@deepsavani5785 7 лет назад
can you help me make a speedometer display using tft and arduino??
@Richie_
@Richie_ 2 года назад
Subscribed. I need to learn how to use these screens.
@youpattube1
@youpattube1 7 лет назад
hello - another excellent video tutorial. you asked what kind of projects we want, well I would like you to take this one to the next step : make a simple arduino touch screen calculator.
@petrklima9099
@petrklima9099 5 лет назад
I have a problem. When I try to load the program to Arduino -> Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Vývojová deska: "Arduino/Genuino Uno" In file included from C:\Users\Petr\Documents\Arduino\libraries\Adafruit_TFTLCD\Adafruit_TFTLCD.cpp:19:0: C:\Users\Petr\Documents\Arduino\libraries\Adafruit_TFTLCD\pin_magic.h:166:28: warning: backslash and newline separated by space #define write8inline(d) {\ ^ C:\Users\Petr\Documents\Arduino\libraries\Adafruit_TFTLCD\pin_magic.h:172:30: warning: backslash and newline separated by space PORTG |= (d & 0x10)
@antoniobruno3670
@antoniobruno3670 7 лет назад
Tks for sharing your knowledge ! regards, Bruno.
@nsahaassam
@nsahaassam 4 года назад
Sir Can we use the display in FPV Camere
@petera_sha
@petera_sha 2 года назад
I would be interested to see this display working as a monitor through Hdmi or as second display for laptops or smartphones. Cheers!
@julioverne3825
@julioverne3825 6 лет назад
Hello, Nick. This is my first comment, although I see all your videos. I think in the code there's an error in the use of the "map" function. The correct lines should be: p.x = map(p.x, TS_MINX, TS_MAXX, 0, 320); p.y = map(p.y, TS_MINY, TS_MAXY, 0, 240); This is because in the map function you have to put first the low value, and then, the high value. Thank you for all your great work!
@lokeshkulhari5045
@lokeshkulhari5045 2 года назад
Sir, I have tried the same programme but the screen not indicating anything
@onesteffen
@onesteffen Год назад
how can i use the display with a arduino micro?
@valerioguagnelliscanzani643
@valerioguagnelliscanzani643 5 лет назад
Is it possible to use SD card as data logger?
@Satyendrakumar-sm3np
@Satyendrakumar-sm3np 6 лет назад
Can you make video on how to take input from touch screen and store it in file
@cad3175
@cad3175 7 лет назад
..a 3-option menu with 2-option sub-menus would be useful for many projects, like on a 3D printer, just a suggestion, thanks
@yacovcohen3913
@yacovcohen3913 5 лет назад
How can we disable the display to save electricity ?
@obALlhashmi
@obALlhashmi 5 лет назад
why does mine keep giving the error unable to complie for arduino uno/genuino?
@robertocuevas2038
@robertocuevas2038 3 года назад
Anyone solve your question
@edwatters6377
@edwatters6377 7 лет назад
Nick...I was having a problem with the display I purchased on eBay running your code. There are different drivers for 2,8" TFTs ....they may look the same but are not. For me I had to change the "identifier". In my case it was 0x8230. After that every thing worked great. Your videos are great... keep up the good work.
@acmgj8536
@acmgj8536 7 лет назад
Make FM radio and watch with it I wud like to see and make also if u provide complete guide for project
@adamfox6529
@adamfox6529 7 лет назад
Dear Nick I downloaded your modified Adafruit library and everything works fine, thank you !! I Why doesn't the standard (non-modified) Adafruit TFT libray work with this LCD ?
@abhi-rg4ky
@abhi-rg4ky 7 лет назад
sir can we play videos using digital pins ...... sir plzzzz help me with this ......
@arduinoproject9234
@arduinoproject9234 3 года назад
2.8" TFTLCD Arduino not working in Mega and Same LCD Same Code working in Arduino UNO Please help me
@nihadabbikar5788
@nihadabbikar5788 Год назад
Can you do screen mirroring from a mobile phone using Arduino??
@batorkiss7593
@batorkiss7593 Год назад
what app can i program with?
@eduardoschlichta431
@eduardoschlichta431 7 лет назад
will be cool put a image on display and using the touch screen apply you reduce the zoom
@mbaksa
@mbaksa 7 лет назад
How well does the touchscreen work? I see that it is a resistive type, which I hoped are the thing of past, since capacitive touchscreens are today's standard, and they work great.
@Educ8s
@Educ8s 7 лет назад
From my experience, it works pretty well. I didn't faced any problems at all!
@MarcRitzMD
@MarcRitzMD 7 лет назад
Resistive is not all bad. You get higher sensor resolution with them and you can use any tip on them. That is why using a fine tip pen can be used very accurately. The Nintento 3DS was thus able to use these cheap plastic pens
@legoscratch
@legoscratch 7 лет назад
mbaksa I thought the same but was very impressed! The screen is very responsive and you can change the amount of pressure detected
@ForeverMods
@ForeverMods 7 лет назад
For Arduino I find that resistive touch is better cause there is less tendency to hit other points on the display.
@CristianoAlmeida
@CristianoAlmeida 6 лет назад
Unfortunately this LCD does not have its own editor program like nextion.
@Granpepinillox
@Granpepinillox 7 лет назад
I have a problem. When I upload an example of de Touchscreen library, it dosen't work, the screen becomes white and the program is stop. But the Adafruit GFX works perfectly. How can I solve the mistake?
@robertochavero4542
@robertochavero4542 7 лет назад
Not sure if you figured it out yet. But I was getting the same issue. I changed the "tft.begin(0x9325);" to "tft.begin(0x9481);" and "tft.setRotation(1);" to "tft.setRotation(3);" not sure what they do but they worked. hope that helps
@zacpackman9186
@zacpackman9186 7 лет назад
i wonder if you could make it run doom ?
@adsads7054
@adsads7054 4 года назад
please make with displacement tranducer and pressure tranducer and record the peak
@ElectroCoderEC
@ElectroCoderEC 2 года назад
error: 'textsize' was not declared in this scope
@mellee3436
@mellee3436 2 года назад
Hi Nick. I recently purchased this board from Banggood and attached to a Uno purchased as well. The sketch compiles and uploads without trouble. The screen displays but the touch screen doesn't seem to work. The serial monitor displays Starting ... - but nothing more. Can you offer some advice please ? Arduiono IDE is 1.8.16. Regards, Mel
@mellee3436
@mellee3436 2 года назад
Lines 22-26 of your code.
@ningarkumar389
@ningarkumar389 7 лет назад
sir how to use like button for lamps
@PDGAF
@PDGAF 7 лет назад
You need to do a tutorial on the MPU6050 ran off the Arduino Uno. P
@alejandrofernandez-bo3fy
@alejandrofernandez-bo3fy 2 года назад
I would like to know how I make buttons with images. I mean, a button that is an image. I would also like to know how I make a slider
@josemoreira1012
@josemoreira1012 4 года назад
i run all the examples and keeps saying error why?
@guidovlaere
@guidovlaere 7 лет назад
Thanks a lot! This is a really good tutorial...! It is really very helpful! It would be nice to make a screen with several buttons what you can use for example as a light switch. Maybe it is an idea for next tutorials? I will check all other tutorials from you! Again, thank you very much!!!
@rajainayat
@rajainayat 3 года назад
Hello Mik Nice simple tutorial. I want you to make program like Sine wave graph or other graphs. Thanks
@xTheTechLegendx
@xTheTechLegendx 7 лет назад
Hi , great job , keep it up :) . I have a question since i am new with Arduino product , is it possible to control RGB leds through the LCD touch screen ?
@Educ8s
@Educ8s 7 лет назад
Yes of course
@xTheTechLegendx
@xTheTechLegendx 7 лет назад
Oh that's nice , can you create a simple example for that with 3.5 LCD and RGB strip ?
@obregr
@obregr 7 лет назад
hov abot 2.8" SPI Serial zhey are chema yo cam get at wit or widath toi ch
@annibot5124
@annibot5124 4 года назад
My screen is just blank. pls tell what to do.
@anandsherwood
@anandsherwood 6 лет назад
I can’t understand the 89 line Please reply
@goned216
@goned216 5 лет назад
Can you teach us how to make a simple OS with clock. calculator and that stuff with just An arduino R3, Ethernet Shield and this LCD TFT Touchscreen Please? Very Very Please?
@zeffofx
@zeffofx 7 лет назад
Hmm, I think it's a bit slow on loading images. Anyway, how about an e-mail reciever and sender with arduino + esp8266?
@Educ8s
@Educ8s 7 лет назад
Yes, loading images is slow. But don't forget we are using a 16Mhz Arduino Uno with 2K of RAM. Even loading an image with the amount of RAM available is a miracle! Yes, we try a project like the one you are proposing!
@ForeverMods
@ForeverMods 7 лет назад
Is it just me or do you also find that he goes too fast ? Like why modified library ? However the links are very detailed and you should really check them out. I find this channel to be awesome.
@engineeringtechniques6179
@engineeringtechniques6179 7 лет назад
can you make a small monitor out of this for us
@mog99lie
@mog99lie 7 лет назад
Hello, thank you for a supper project. I have also followed and built your robot project with great results. But I have a problem! My display looks 100% like yours, even down to the printing on the PCB. To get the code working I had to change the tft.begin(0x9325); to tft.begin(0x9341); I saw the 9341 on another simple project that worked. So now I got the first screen with button. The button didn't work! But after some tests when I touched "Hello" it worked... I went through the calabration entering very small differances in the X an Y but still the button only worked on the word hello!!! I tried touching the outer limits of the touch box and entering the values noted on the serial monitor but still only worked when I touched "Hello". Next I tried to change the values of the "if(p.x>60 && p.x180 && p.y50 && p.x10 && p.y
@priyankamathiksharamathial3907
hey did any other method work for u ?
@cad3175
@cad3175 7 лет назад
Nice thanks
@payaldas5597
@payaldas5597 6 лет назад
Can we use the same code for 2.4'tft lcd to get the same output....plz rly sir
@wlasov
@wlasov 5 лет назад
I think 2.4 is the same shit)
@RDCST
@RDCST 3 года назад
Why this doesn't work on Arduino Due?
@ivanvictor457
@ivanvictor457 7 лет назад
Good night, my display doesn't work right, the screen is white and some dots.. you know what's happing?
@DPVTECHNOLOGY
@DPVTECHNOLOGY 6 лет назад
It may be due to the unknown driver. first, you have to find out the unknown driver.Then you will be able to solve it.
@anandsherwood
@anandsherwood 6 лет назад
Can I use 2.4
@andywalker8540
@andywalker8540 7 лет назад
Great video) Maybe you can build a simple game for arduino for the next saturday?
@Educ8s
@Educ8s 7 лет назад
Yes, I have already thought of a game that we can build with this display!
@andywalker8540
@andywalker8540 7 лет назад
that's great)
Далее
ВОТ ЧТО МЫ КУПИЛИ НА ALIEXPRESS
09:35
Arduino Touch Screen TFT LCD Tutorial
9:10
Просмотров 260 тыс.
You can learn Arduino in 15 minutes.
16:34
Просмотров 10 млн