Это видео недоступно.
Сожалеем об этом.

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

Поделиться
HTML-код
  • Опубликовано: 11 ноя 2016
  • 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/ardui...
    Want to learn to code?
    👨‍💻 Check my new RUclips channel: bit.ly/3tku2n0

Комментарии • 209

  • @tonyblewitt6159
    @tonyblewitt6159 6 лет назад +3

    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

  • @amlansarkar8837
    @amlansarkar8837 7 лет назад +26

    Can you make a video on how to use the SD card slot in the display for displaying pictures and stuff!

  • @obALlhashmi
    @obALlhashmi 5 лет назад +5

    why does mine keep giving the error unable to complie for arduino uno/genuino?

  • @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.

  • @alan.millington
    @alan.millington 7 лет назад +1

    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 :)

  • @julioverne3825
    @julioverne3825 6 лет назад +1

    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!

  • @AzharKhan-ek3ri
    @AzharKhan-ek3ri Год назад +1

    can we somehow use this display with an esp 32

  • @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.

  • @BananaScience
    @BananaScience 5 лет назад +1

    Extremely helpful tutorial! Thanks!

  • @parasbhanot
    @parasbhanot 7 лет назад

    you can build Line chart or Bar-graph according to sensor values .

  • @cad3175
    @cad3175 7 лет назад +1

    ..a 3-option menu with 2-option sub-menus would be useful for many projects, like on a 3D printer, just a suggestion, thanks

  • @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!

  • @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 ?

  • @tom_the_jaffa_muncher9576
    @tom_the_jaffa_muncher9576 3 года назад +1

    I keep running into the same error: "Error compiling for board Arduino Uno." where am I going wrong?

  • @dilsonferreirasouza5814
    @dilsonferreirasouza5814 7 лет назад

    Do you have some example with more pages and botton?
    I'd like to learn more about it.

  • @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 ?

  • @brunovarotta
    @brunovarotta 6 лет назад +1

    Could you tell me if this will work on a 3.5'' TFT touch LCD shield. I can see it uses the same pins

  • @JoBest94
    @JoBest94 6 лет назад +2

    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

  • @Richie_
    @Richie_ 2 года назад

    Subscribed. I need to learn how to use these screens.

  • @mbaksa
    @mbaksa 7 лет назад +1

    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 лет назад +1

      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.

  • @eduardoschlichta431
    @eduardoschlichta431 7 лет назад

    will be cool put a image on display and using the touch screen apply you reduce the zoom

  • @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!

  • @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?

  • @chernoblyat1901
    @chernoblyat1901 2 года назад

    Question, I've seen some RUclipsrs use the TFT Adapter Board for this project, is it a must to use the TFT Adapter Board?

  • @florisbollen3770
    @florisbollen3770 6 лет назад +2

    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.

  • @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

  • @nihadabbikar5788
    @nihadabbikar5788 Год назад

    Can you do screen mirroring from a mobile phone using Arduino??

  • @lokeshkulhari5045
    @lokeshkulhari5045 2 года назад

    Sir, I have tried the same programme but the screen not indicating anything

  • @Kenneth548
    @Kenneth548 4 года назад

    2.8" TFTLCD Arduino display with white colour only after install the code on UNO. Please help

  • @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
    @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 !!

  • @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.

  • @amitrdevece
    @amitrdevece 6 лет назад +2

    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 ?

  • @legoscratch
    @legoscratch 7 лет назад

    What are the pin holes on the right for? They aren't marked

  • @tokyoposted
    @tokyoposted 6 лет назад +5

    all i get is a white screen im not sure why this is. there are 3 other people with the same issue

    • @DPVTECHNOLOGY
      @DPVTECHNOLOGY 6 лет назад

      It is due to the unknown driver. first, you have to find out the unknown driver.Then you will be able to solve it.If you give me your email address, I can send aa absolutely free link to solve this problem.

    • @julioverne3825
      @julioverne3825 6 лет назад +3

      I solved this issue with Lawrence Menten answer (change line 46 to tft.begin(0x9341), or the code of your controller).

    • @gaspersavle161
      @gaspersavle161 5 лет назад

      @@julioverne3825 now i get an upside down version of the image

    • @LabnehJr
      @LabnehJr 5 лет назад

      @@DPVTECHNOLOGY I stopped the white screen but the touch doesnt work.

    • @debeerpaul
      @debeerpaul 5 лет назад

      Julio Verne You're a genius! Solved my white block of death.

  • @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

  • @hmdmddh
    @hmdmddh 6 лет назад

    Hello thanks for the explaination, can we use this Touch screen and an arduino uno to build an oscilloscope?

  • @adsads7054
    @adsads7054 4 года назад

    please make with displacement tranducer and pressure tranducer and record the peak

  • @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

  • @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

  • @rajainayat
    @rajainayat 3 года назад

    Hello Mik
    Nice simple tutorial. I want you to make program like Sine wave graph or other graphs. Thanks

  • @shaunxthexmod777
    @shaunxthexmod777 Год назад

    hi can the touch screen ,Arduino Uno play. a gif animation ?

  • @chronobot2001
    @chronobot2001 4 года назад

    Can you still use devices with the SPI or I2C interfaces or does the screen prevent it?

  • @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?

  • @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.

  • @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 ??

  • @yadavraveendra6922
    @yadavraveendra6922 6 лет назад

    Thank You for the tutorials.

  • @Satyendrakumar-sm3np
    @Satyendrakumar-sm3np 6 лет назад

    Can you make video on how to take input from touch screen and store it in file

  • @BGLENN-dp4tx
    @BGLENN-dp4tx 4 года назад

    Where to find out about using the integrated SD card? Thanks.

  • @onesteffen
    @onesteffen Год назад

    how can i use the display with a arduino micro?

  • @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?

  • @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?

  • @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?

  • @killboysenior9763
    @killboysenior9763 7 лет назад

    how long is the ribbon cable attaching the lcd to the module

  • @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

  • @darrendackly4754
    @darrendackly4754 5 лет назад +1

    I tried the other solutions with no luck before finding the SWTFT.h library. I made these changers and now it works. I hope this help someone.
    If your using the mega you will need to open the swtft.cpp file and uncomment that board and comment out the uno on lines 15 and 16.
    github.com/compihu/SWIFT-Shield
    //#include
    #include
    #include // Hardware-specific library
    #include
    //Adafruit_TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET);
    TouchScreen ts = TouchScreen(XP, YP, XM, YM, 300);
    SWTFT tft;
    tft.begin(0x7783);

  • @muhammadhuseinkarbala8696
    @muhammadhuseinkarbala8696 5 лет назад

    I using driver ili9338. It works. But it can't touch. No respond when i touch every side. Can you help me please

  • @arduinoproject9234
    @arduinoproject9234 4 года назад

    2.8" TFTLCD Arduino not working in Mega and Same LCD Same Code working in Arduino UNO Please help me

  • @PDGAF
    @PDGAF 7 лет назад

    You need to do a tutorial on the MPU6050 ran off the Arduino Uno.
    P

  • @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

  • @pauldusa
    @pauldusa 7 лет назад

    Hi, simple is shields, u should do a 2.8 spi video

  • @DolpGamesOfficial
    @DolpGamesOfficial 7 лет назад

    Arduino: 1.8.1 (Windows 8), Board: "Arduino/Genuino Uno"
    F:\PROEKTY\arduino-1.8.1\screenTouch\screenTouch.ino: In function 'void loop()':
    screenTouch:78: error: 'TSPoint' was not declared in this scope
    TSPoint p = ts.getPoint(); //Get touch point
    ^
    screenTouch:80: error: 'p' was not declared in this scope
    if (p.z > ts.pressureThreshhold) {
    ^
    Multiple libraries were found for "TouchScreen.h"
    Used: F:\PROEKTY\arduino-1.8.1\libraries\TouchScreenLibrary
    Not used: F:\PROEKTY\arduino-1.8.1\libraries\Touch-Screen-Library-master
    Not used: F:\PROEKTY\arduino-1.8.1\libraries\TFTLCD22
    exit status 1
    'TSPoint' was not declared in this scope
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

  • @ElectroCoderEC
    @ElectroCoderEC 2 года назад

    error: 'textsize' was not declared in this scope

  • @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

  • @nsahaassam
    @nsahaassam 4 года назад

    Sir Can we use the display in FPV Camere

  • @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 :)

  • @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)

  • @thanasisathanasi4965
    @thanasisathanasi4965 5 лет назад

    Re file, me afto to papari mporeis na kaneis skip forward me kapia commands?

  • @Come_with_me9
    @Come_with_me9 6 лет назад

    good job keep going! sd card slot using ?

  • @valerioguagnelliscanzani643
    @valerioguagnelliscanzani643 5 лет назад

    Is it possible to use SD card as data logger?

  • @alexandreallais5447
    @alexandreallais5447 7 лет назад

    sorry but my tft don't work with my arduino mega... do you have an idea why ?

  • @RDCST
    @RDCST 3 года назад

    Why this doesn't work on Arduino Due?

  • @CristianoAlmeida
    @CristianoAlmeida 6 лет назад

    Unfortunately this LCD does not have its own editor program like nextion.

  • @antoniobruno3670
    @antoniobruno3670 7 лет назад

    Tks for sharing your knowledge !
    regards, Bruno.

  • @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

  • @yacovcohen3913
    @yacovcohen3913 5 лет назад

    How can we disable the display to save electricity ?

  • @geoffreyschuchardt5350
    @geoffreyschuchardt5350 Год назад

    So freaking cool!!

  • @64bittz93
    @64bittz93 6 лет назад

    does the screen use pin 13 of arduino uno?

  • @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

  • @chemicalvamp
    @chemicalvamp 7 лет назад

    Create an arduino uno serial monitor, so you can view Serial.print("Hello World!"); from your projects without using a computer.

  • @annibot5124
    @annibot5124 4 года назад

    My screen is just blank. pls tell what to do.

  • @deepsavani5785
    @deepsavani5785 7 лет назад

    can you help me make a speedometer display using tft and arduino??

  • @batorkiss7593
    @batorkiss7593 Год назад

    what app can i program with?

  • @abhi-rg4ky
    @abhi-rg4ky 7 лет назад

    sir can we play videos using digital pins ...... sir plzzzz help me with this ......

  • @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 ?

  • @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.

  • @ningarkumar389
    @ningarkumar389 7 лет назад

    sir how to use like button for lamps

  • @andywalker8540
    @andywalker8540 7 лет назад +1

    Great video) Maybe you can build a simple game for arduino for the next saturday?

    • @Educ8s
      @Educ8s  7 лет назад +1

      Yes, I have already thought of a game that we can build with this display!

    • @andywalker8540
      @andywalker8540 7 лет назад

      that's great)

  • @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.

  • @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 лет назад +1

      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

  • @josemoreira1012
    @josemoreira1012 4 года назад

    i run all the
    examples and keeps saying error why?

  • @zacpackman9186
    @zacpackman9186 7 лет назад

    i wonder if you could make it run doom ?

  • @acmgj8536
    @acmgj8536 7 лет назад

    nice video sir but speech is very quick ... amazing video ... i m new and want to make projects by using arduino .. uno ..

  • @irfanaslam5859
    @irfanaslam5859 7 лет назад +1

    sir what displays do you prefer

    • @Educ8s
      @Educ8s  7 лет назад

      Hello! I have published an article about the best Arduino displays. You can check it here: educ8s.tv/tutorials/best-arduino-display/

  • @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!

  • @engineeringtechniques6179
    @engineeringtechniques6179 7 лет назад

    can you make a small monitor out of this for us

  • @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?

  • @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