How to create a simple Touchscreen GUI || Arduino LCD & Touchscreen Tutorial

Sdílet
Vložit
  • čas přidán 18. 08. 2018
  • Only $2 for 10pcs PCBs (10cm*10cm): jlcpcb.com
    Previous video: • DIY Plasma Arc Speaker
    Multiplexing video: • Electronic Basics #5: ...
    Facebook: / greatscottlab
    Twitter: / greatscottlab
    Support me for more videos: www.patreon.com/GreatScott?ty=h
    You can download my example code here: / 20817428
    You can get an 8-Bit Parallel TFT LCD here: (affiliate links)
    Aliexpress: s.click.aliexpress.com/e/_d7b...
    Ebay: rover.ebay.com/rover/1/711-532...
    Amazon.de: amzn.to/2BkQnb8
    Websites which were shown in the video:
    cdn-shop.adafruit.com/datashe...
    github.com/adafruit/TFTLCD-Li...
    github.com/adafruit/Adafruit_...
    www.nxp.com/wcm_documents/tec...
    www.sparkfun.com/datasheets/L...
    In this video I will show you how TFT LCDs and resistive touchscreens work and how we can utilize an Arduino in order to control them. At the end I will then show you how to create a simple GUI for an Arduino project which has a touchscreen as an input.
    Thanks to JLCPCB for sponsoring this video
    Visit jlcpcb.com to get professional PCBs for low prices
    Music:
    2011 Lookalike by Bartlebeats
  • Věda a technologie

Komentáře • 724

  • @philipatkinson1532
    @philipatkinson1532 Před 2 lety +11

    Thank you. I just bought one and was getting very frustrated with its partial function. Simple things such as knowing it’s supposed to be used in a vertical orientation make a big difference! I don’t expect to fully understand the complex theoretical bits, it’s not not my day job, impressed that you do though. More impressed by your consistent ability to explain the relevant bits of complexity in order to use the product, across all of your videos. Very useful and solidly reliable, a ‘go to’ site where you’ve published for anything I’ve bought. Phil

  • @zebsolaria4763
    @zebsolaria4763 Před 2 lety +2

    Sir - I rarely comment on videos - HOWEVER today I chose to make an exception. I have watched MOST of your videos, and they rank among the best most informative learning activities I think anyone interested in electronics can choose to spend their time doing. What great work! Thank YOU!!!

  • @Emet-wd5mz
    @Emet-wd5mz Před 6 lety +86

    9:37
    GreatScott - *all we had to do *
    My brain - *was follow the damn train cj*

  • @ams0063
    @ams0063 Před 6 lety

    You literally read my mind. A few days back I was also thinking about a touch screen display for my arduinos and now you made a video about them. Wow amazing you are awesome.

  • @jonahswain
    @jonahswain Před 6 lety +8

    One thing to consider is that while the parallel interface requires fewer clock cycles to set the data it may actually take more clock cycles on the microcontroller because many microcontrollers offer hardware SPI, I2C, and UART modules which operate independently of the rest of the processor.

  • @simangundeep8770
    @simangundeep8770 Před 5 lety +2

    What I like from each of your video is how you end up your video 👍,
    "stay creative" that's so GREAT

  • @MrPenguin098
    @MrPenguin098 Před 5 lety

    I say wow Great Scott! As a newbie in electronics I'm learning a lot watching your videos. I've started from your into to electronics. Thanks.

  • @techjeff6227
    @techjeff6227 Před 6 lety +1

    Thank you! I've been passively brainstorming how I'm going to implement my touchscreen UI for one of my projects.

  • @markmark2961
    @markmark2961 Před 6 lety +1

    I really love how you always make projects about things what I am fancying to try :D Love you man (nohomo), keep up the good work!

  • @jinn3690
    @jinn3690 Před 5 lety

    The great tutorial video that I haven't watch before. That was so explicit. Good job man

  • @budbrady3289
    @budbrady3289 Před 6 lety +390

    I understand 5% but enjoy 100%. Thanks!

    • @budbrady3289
      @budbrady3289 Před 6 lety +37

      JustGame ....Understand that I'm 65 and still in an analog world. Fortran IV is the only computer language I ever "learned." I'm am ordering an Arduino training kit when I can afford it. Digital here I come!!!

    • @TobyCowles
      @TobyCowles Před 6 lety +9

      Bud Brady you will pick it up the more you watch, I know when I first started watching GS I was just getting into electronics and barely understand anything but just hearing the terms used and working on my own projects I have a much deeper understanding of these videos

    • @sensiblewheels
      @sensiblewheels Před 6 lety +3

      Bud Brady That's great to know. May I ask where are you from?

    • @budbrady3289
      @budbrady3289 Před 6 lety +4

      Anirudh Appala northern Indiana USA

    • @sensiblewheels
      @sensiblewheels Před 6 lety +1

      Bud Brady Okay. I'm from India. Not sure how the logistics is going to work but I'd love to sponsor a basic kit for you!

  • @promisenwaobilor95
    @promisenwaobilor95 Před 6 lety +48

    Am always looking forward to your videos. they're all GREAT

    • @fentzke
      @fentzke Před 6 lety

      Like Frosted Flakes!
      czcams.com/video/O6EcMSWRpms/video.html

  • @Greg74948
    @Greg74948 Před 4 lety +1

    Thank you, GreatScott for this very informative and helpful video! It will definitely help me with using my LCD touch screen shields, which I bought just a few days ago. :)

  • @fisherdigital
    @fisherdigital Před 5 lety +1

    Thank you for all the work you put into your videos. I learn very easily from your teaching technique. Thank you.

  • @WhitEagle7
    @WhitEagle7 Před rokem

    bro, I feel like every project I start working on, you already have a video about it! Amazign!

  • @victorchorques4893
    @victorchorques4893 Před 6 lety

    Great video again! Is always welcome to have in-depth explanation of technologirs used.

  • @baseandtrance1110
    @baseandtrance1110 Před 6 lety +1

    This is just much more than great Mr Great Scott I needed such a video since so long cause I love to make everything from scratch even an LCD or anything
    Thank you so much for this

  • @xH3X3Nx
    @xH3X3Nx Před 3 lety

    Very well detailed and instructive!!! The layout of the information and presentation are prefect. Much thanks and keep it coming.

  • @mrbdrm2
    @mrbdrm2 Před 6 lety +1

    You actually bringing really important and usable information to us.
    Thank you very much

  • @dzorzstops5136
    @dzorzstops5136 Před 6 lety +1

    Perfect video. I love your videos. Just keep like this. The world needs people like you.

  • @striker8paints
    @striker8paints Před 6 lety

    Many thanks for this video, I've been trying to wrap my head around how to use tft displays for a while. I need to get one of those shields for testing now. Thanks!

  • @fazlanahmed5657
    @fazlanahmed5657 Před 5 lety +1

    No words. Really found a better person. Well done ...

  • @1996BRECHT
    @1996BRECHT Před 6 lety +2

    I really like those zoomed in views of the LCD, could watch that all day :O

  • @alankhaev8467
    @alankhaev8467 Před 6 lety

    I can't wait until you get 1 million subscribers. I've been watching your videos for 2.5 years now!

  • @ArN5
    @ArN5 Před 6 lety

    Awesome videos man so glad you are still making more!

  • @brycef.5812
    @brycef.5812 Před 6 lety +2

    Keep up the awesome vids. Highest quality go-to channel for any electronics project

  • @MehmetSutas
    @MehmetSutas Před 5 lety +4

    Although those screens are listed as 5V tolerant, they work with 3.3volts. You need to use a level converter such as BSS138 mosfet in order to use SPI interface.

  • @ninadtaralekar
    @ninadtaralekar Před 6 lety

    Hello Scott.. thanks for the video... You have taken exact examples with the gist of the codding and basic working.. thanks a lot for presenting variety of projects..

  • @hermannpaschulke1583
    @hermannpaschulke1583 Před 6 lety

    The serial one works great with the Raspberry pi, because the kernel has the needed FBTFT driver built in. There is a driver for the touch panel, too so you can use it to run the normal Xorg gui on it.

  • @BuildItnow
    @BuildItnow Před 6 lety +4

    Really interesting video. Looking forward to 1 million video special!

  • @PabloSanchez-Ke-x2
    @PabloSanchez-Ke-x2 Před 3 lety +1

    Inspiring videos! Great channel! You make the projects not scary, and that's excellent for electronic beginners! Thanks!!

  • @DimiEG
    @DimiEG Před 5 lety

    Your tutorials is always interesting and useful. Thanks.

  • @GonzoRibeiro
    @GonzoRibeiro Před 6 lety

    As always...liked your video, detailed explanation, links to material and the last but not the least...learnt something!

  • @unusualfabrication9937

    usually I hate it when youtubers are sponsored, but when it's something that is related, like your electrical engineering and JLCPCB I find it very likable

    • @unusualfabrication9937
      @unusualfabrication9937 Před 6 lety

      actually I hate sponserships from mobile games, website builders and audible
      fuck audible

  • @HarryBrentonMusic
    @HarryBrentonMusic Před 6 lety +4

    Great! Now time to apply this to my Raspberry Pi Rover so I can access controls on competition day!

  • @budandbean1
    @budandbean1 Před 6 lety

    Really enjoyed this! You are really a super person sharing your knowledge, thank you for helping everyone. I’d love to see more videos using these screens if possible. I’ve got to get some first. :-) Thank You 🙏🏻!

  • @dileanperdomo3821
    @dileanperdomo3821 Před 5 lety +2

    Well deserved million subscribers, btw

  • @Kostanj42
    @Kostanj42 Před 6 lety

    that looks so cool! gotta try it! btw roard to 1 million!

  • @gursharanmarwaha3376
    @gursharanmarwaha3376 Před 6 lety +1

    A great creative video as always! 👌👌

  • @669fusion
    @669fusion Před 6 lety +1

    definitely was searching for such vid!!!
    thanks a lot scott!!!!!

  • @danj5015
    @danj5015 Před 6 lety +2

    This... is... exactly what i needed!!
    Thx for the video!!

  • @noahrodeghiero9640
    @noahrodeghiero9640 Před 6 lety

    I have always wanted to put one of these on my rc car but i didnt know how to implament it, Great vid scott!

  • @shraiwi
    @shraiwi Před 6 lety +1

    I have learned pretty much everything I know about electronics from you... Thank you so much!

    • @greatscottlab
      @greatscottlab  Před 6 lety +1

      Glad you enjoy the videos and learn something new. Thanks for watching :-)

  • @xero110
    @xero110 Před 6 lety +41

    Every time I see you writing, using highlighters, and rulers it reminds of school in Germany. I lived in Germany and attended school until the 5th grade. I really am amazed at how much better schools are in Germany. I was so far ahead when I started school in the US. Ahead in everything, but English that is. Anyways, sorry for the off-topic rant, keep up the great videos.

    • @zachburke8906
      @zachburke8906 Před 6 lety +3

      88HD even schools between states in the us vary massively.
      Moved a few times as a kid, pretty much did 4th grade twice.

    • @owendavidmalicsi5900
      @owendavidmalicsi5900 Před 5 lety

      In the Philippines, they use different colored pens to highlight.Not barging...sorry

    • @sirsundays
      @sirsundays Před 5 lety +3

      Irony: Most parents and kids think the school system and quality in germany is bad and needs to be renewed.

    • @llluuuyyyooo
      @llluuuyyyooo Před 5 lety

      Brilliant

  • @dangthanhthienan
    @dangthanhthienan Před 5 lety

    Thank you very much. Your work is extremely informative and easy to understand!

  • @Miracle-Pheonix
    @Miracle-Pheonix Před 6 lety +267

    Your 1 million subscribers coming soon

  • @cw41486
    @cw41486 Před 6 lety

    Great video as always sir. Gives me many ideas to put into my own projects. Thank you.

  • @DaDavid15
    @DaDavid15 Před 6 lety

    Really enjoyed your tft lcd theory breakdown

  • @freeelectron8261
    @freeelectron8261 Před 5 lety

    Good tut on colour touch screens for Arduino projects - thanks! Nice handwriting btw.

  • @vedant3321
    @vedant3321 Před 6 lety +72

    Highlighter used upto it's maximum capacity 😉

  • @VarunSingla
    @VarunSingla Před 4 lety +1

    The video is very very good. I watched other videos also. Your video gives information of about 100 videos in one.

  • @ArduinoBasicsBlogspot
    @ArduinoBasicsBlogspot Před 5 lety

    Great tutorial - very informative as always.

  • @joemulkerins5250
    @joemulkerins5250 Před 3 lety

    Absolutely excellent information as always! Thank you.

  • @YFTOUCH
    @YFTOUCH Před rokem

    Very professional!wonderful! Thanks for your sharing!

  • @suraj-ram7488
    @suraj-ram7488 Před 6 lety

    Thank you so much, I have been wanting to know this for so long, Thank you sir

  • @NilsBelde
    @NilsBelde Před 6 lety +36

    Very nice. Like always. I like your videos. Just a small correction: it should be 0-239 and 0-319 at 7:39.

    • @johndoesson
      @johndoesson Před 4 lety +4

      A programmer once said "We are celebrating our 0th year wedding anniversary"

  • @8867348
    @8867348 Před 6 lety +1

    Love your videos. However, i don't understand most of them. I find it amazing how you use all those formulas to figure out everything.

  • @cfrank901
    @cfrank901 Před 5 lety

    Great video, very informative, exactly what I needed.

  • @tharinduuld
    @tharinduuld Před 6 lety

    Very useful video....... GreatScott! ..
    Keep continuing .....

  • @ninaddeshmukh2621
    @ninaddeshmukh2621 Před 6 lety

    Your videos are always cool we always learn something new fro. ur videos keep uploading

  • @lahirupamodya6188
    @lahirupamodya6188 Před 6 lety

    it is such a coincidence that I ordered my first a TFT colour LCD display on AliExpress on today morning : )

  • @AntenainaLand
    @AntenainaLand Před 6 lety

    Sssssssssstay creative and I will see you next time! great video as always!

  • @charlesroberge172
    @charlesroberge172 Před 4 lety

    Very nice and clear information!
    thank you...I was programming one!

  • @antoniosimoni
    @antoniosimoni Před 6 lety

    Hi Scott! Nice video as always. I used these displays in the past, than I discovered nextion displays and my life changed 😂 I suggest you to try these displays... You can do amazing things with them easier 😏

  • @mondmichel
    @mondmichel Před 6 lety

    sehr gut erklärt!! Vielen Dank für die tolle Anregung... Daumen hoch!

  • @topten7064
    @topten7064 Před 4 lety +1

    You are great teacher and good voice, thank you very much

  • @CalebSkurdal
    @CalebSkurdal Před 4 lety

    Amazing as always!!!

  • @BakaPheeze
    @BakaPheeze Před 6 lety

    as usual a nice video. good work

  • @geetanshgautam
    @geetanshgautam Před 5 lety

    More touchscreen projects, please. Love your videos.

  • @ChrisLeeW00
    @ChrisLeeW00 Před 6 lety

    Excellent content as always

  • @TheAdekdinal
    @TheAdekdinal Před 6 lety

    thanks for make this guide
    you rock greatscott!

  • @mihaelpanjkrc7870
    @mihaelpanjkrc7870 Před 6 lety +1

    Great as always!

  • @reedsabc
    @reedsabc Před 6 lety

    I had the same issues with 4 wire SPI version, switch to libraries, you can use all Adafruit commands with little or no changes to sketch.

  • @somethingpersonfem
    @somethingpersonfem Před 4 lety

    Thanks for this great Video from Germany !

  • @hamzahteknik2018
    @hamzahteknik2018 Před 3 lety

    GreatScott is a Great Channel..... so amazing,,so smart,, wonderfull,,

  • @doosrah8029
    @doosrah8029 Před 5 lety +2

    What equipment and knowledge will I need to become a pro at designing display panels?

  • @MarionMakarewicz
    @MarionMakarewicz Před 6 lety

    the money shot: "How the hell can we provide a total of 1040 control lines for the Arduino?" I just love your videos. Thanks so much for enlightening me.

  • @bertoid
    @bertoid Před 6 lety

    I would like to have seen you try the serial interface module as well.
    To see if it's just too slow, or fast enough at least for limited applications.

  • @ArrtusMusic
    @ArrtusMusic Před 6 lety +18

    Hey, Scott! Do you think you can make your own Smart Glass? Like the dimmable transparent glass. Would love to see a video on it!

  • @alexwoolum
    @alexwoolum Před 6 lety +1

    The issue you had with the first screen was logic level voltage. Try putting a 10k resistor on all the data lines and it will work.

  • @petrichors
    @petrichors Před 6 lety

    You are truly a great Scott. Thats Amazing,, Thanks a lot, man.

  • @KrisKasprzak
    @KrisKasprzak Před 4 lety

    I have been able to use Arduino Uno's and Nanos with those types of screens but you have to use series resistors with all pins connected to the display simply because those displays are native 3.3 volt and don't like the 5-volt signals

  • @ADILKHAN-er9tp
    @ADILKHAN-er9tp Před 5 lety

    Very nice video. NASA level research...

  • @electroboy7422
    @electroboy7422 Před 6 lety

    a lot work there, big bravo to you 💪💪💪💪👍👍👍👍👍

  • @------country-boy-------

    great video! i would love to find out what goes on in those screen driver chips! Do the pixels just represent what is in the video ram? i wonder how circles and polygons drawn on the screen. I bet lots and lots of trigonometry!

  • @crxxpslvyr7887
    @crxxpslvyr7887 Před 6 lety

    yeah brand new video!!!!

  • @wggaminigunatunga801
    @wggaminigunatunga801 Před 4 lety

    You are great. I don't have words to express my gratitude. In my mother tongue " ඔයාට බොහෝමත්ම ස්තූතියි".

  • @snouthusky3554
    @snouthusky3554 Před 4 lety

    Unless mentioned before, cheapo screens like the SainSmart are likely to lose touch functionality after a year or so unless you add a protective shield (like a phone display cover) and protect the flat-cable by putting something hard on top of it, or repeated use/clicks will lead to intermittent failure due to material stress. They're cheap and good for experimenting with, but go with a tougher-quality display if it's meant to be used over a long period of time, or in rough environments such as being carried around in a pocket.

  • @mupschiplayz1802
    @mupschiplayz1802 Před 6 lety +18

    Im still wondering how these people with 10 million subscribers like Unbox Therapy can get that popular with doing very simple videos (just unboxing things) and you, Scott, (only!) 800.000 Subscribers...

    • @orange_tweleve
      @orange_tweleve Před 5 měsíci +4

      Because those channels focus on mass audiences who just watches videos without any indepth knowledge on anything and at best case be aware of the specs list of whatever being advertised and say it back like a parrot. They are the type of people who will tell you the ram of a phone that's 8gb is the same as a pc 8 gb because they only know that aspect but rather not know anything about bus speed etc.

  • @abd00raad
    @abd00raad Před 6 lety

    Thanks a lot for this amazing videos.
    It is very informative

  • @nuwanbalasooriya3078
    @nuwanbalasooriya3078 Před 3 lety

    Thank you...
    I learned a lot of new things.
    Nuwan, from Sri Lanka.

  • @amirbabaei5286
    @amirbabaei5286 Před 5 lety

    Hi. Very great video.
    Is it possible to connect HMI DELTA to microcontroller?

  • @RikyLoGo99
    @RikyLoGo99 Před 6 lety +2

    I would like if you make microcontrollers tutorials. Please consider that :c
    I love how you explain things.❤️

  • @user-sh5dc5tj5u
    @user-sh5dc5tj5u Před 4 lety

    Thank u for this information . Can u use the micro controller for operate this screen

  • @AminemBD
    @AminemBD Před 6 lety

    GreatScott! is addicted to highlighters haha

  • @RolfResler
    @RolfResler Před 5 lety +1

    FYI:
    The Display you tied on @5:42 is 3.3V only. Although it claims to be 5V tolerant, it is NOT.
    Mine was not working as well, so I used a Level-Converter and... "voila", it works perfectly. (You can also use a couple of resistors, but that turned out to be not reliable at all)
    You can use 3.3V Arduino boards.
    I use a Bluepill STM32 board now with the ADAFRUIT_GFX_AS and Adafruit_ILI9341_STM libraries and this is fast as lightning.
    But thanks for the great video!!!

  • @alyology0
    @alyology0 Před 6 lety

    i used to watch jefree star youtube vids and now im watching scott's! and i luv itttt

  • @brainfornothing
    @brainfornothing Před 5 lety

    Very useful ! Thanks for sharing !

  • @ok-tr1nw
    @ok-tr1nw Před 6 lety +1

    Your the best greatscott

  • @avejst
    @avejst Před 6 lety

    Thanks for sharing 😀👍
    Nice project 👍