Arduino Touchscreen Display - Using a Resistive Touchscreen

  Переглядів 395,220

DroneBot Workshop

DroneBot Workshop

День тому

Today we’ll learn how touchscreen displays work, both Resistive and Capacitive. We will also create a simple touchscreen interface using an inexpensive Arduino shield.
Detailed Article with code - dronebotworkshop.com/touchscr...
More articles and tutorials at dronebotworkshop.com
Connect on the DroneBot Workshop Forums! - dronebotworkshop.com/touchscr...
Today we are back in the workshop, working with an inexpensive Arduino LCD Touchscreen Display Shield.
We’ll begin by looking at how touchscreens work, both the Resistive and Capacitive variety. Then we’ll check out a great resource to download all of the spec sheets, libraries, and sample code for dozens of popular LCD displays.
After we get some sample code for pour resistive touchscreen display we will run through it and put our display to the test.
Finally, we’ll design a simple touchscreen interface to control three LEDs. You can use it as the basis for a more complex design.
Here is a breakdown of today's video:
00:00 - Introduction
03:13 - How touchscreens work
06:57 - Look at touchscreen shield
11:09- Obtaining touchscreen software
14:14 - Installing libraries and demos
16:24 - Touchscreen demos
23:13 - Arduino hookup
24:18 - Arduino sketch
34:48 - Our Interface in action
This isn’t the last time we’ll be looking at touchscreens, I have a capacitive touchscreen that I'll be showing you very soon.
So let's keep in touch!

КОМЕНТАРІ: 199
@xno_elysiumx3744
@xno_elysiumx3744 2 роки тому
Anyone noticed that he uses multiple cameras and often change his perspective from one to another camera like in professional TV shows. This Channel is 100% quality!
@n_kliesow
@n_kliesow 9 місяців тому
They were very random to me 😂 I rewind a bit to hear he uses it for different topics but I couldn't notice a schema
@acestudioscouk-Ace-G0ACE
@acestudioscouk-Ace-G0ACE 2 роки тому
Excellent, a great learning resource! I learn loads every time I come to the Workshop!
@rudolfherwig7279
@rudolfherwig7279 4 роки тому
Hi DroneBot, i like your clear pronunciation! It's very often hard to understand some english speaking bloggers because my native language is german. But following you is very easy. Even your recitation is very interesting and I can participate a lot.
@insoft_uk
@insoft_uk Рік тому
Demos I find are great to test the product that it works, the first one cycles through the R G B which I think is the most useful checking for dead stuck or lazy pixels
@Mystic0Dreamer
@Mystic0Dreamer 4 роки тому
Yet another excellent video. Your attention to detail makes you the King of How To. It's comforting to see you back with your mind-blowing videos. Thank you so much for what you do.
@rlsimpso
@rlsimpso 4 роки тому
Very well said. Seconded.
@davidchristians3550
@davidchristians3550 3 роки тому
Pp
@ManojAg
@ManojAg 3 роки тому
Absolutely spot on
@jamalfinnley4135
@jamalfinnley4135 2 роки тому
instablaster.
@ujjwalchoudhary8301
@ujjwalchoudhary8301 2 роки тому
Still didn't got a like from him lmaoooooo
@forrestberg591
@forrestberg591 4 роки тому
Just discovered your channel. Wow! What great content for people interested in this sort of stuff. Disappointed I hadn't stumbled upon it sooner. Subscribing and planning to watch all your old Arduino vids!
@incorporeal3793
@incorporeal3793 3 роки тому
Looking to build a DIY star tracker and this is just the thing I was looking for, to add a touchscreen for real-time speed adjustment.
@redst292
@redst292 2 роки тому
Your video is inspiring. I've never thought a touchscreen can be used with an Arduino.
@hubertmargreiter3508
@hubertmargreiter3508 4 роки тому
Excellent presentation, thanks for uploading.
@geoffthomas8528
@geoffthomas8528 4 роки тому
Hello, well impressed with your presentations videos in the DroneBot workshop, Your teaching style is without waffle, to the point, informative and well structured. I am now revisiting after many years the Arduino and Raspberry prototyping tools. However, what I also found interesting from your videos, was the design layout of your workshop. As I am now retired I want to revisit a lot of the projects that I have shelved over the years. First things first I want to build a compact but well facilitated workshop that will meet all my requirements from electronics, metal work and woodworking. Would it be possible for you to make a short video outlining how you designed and facilitated your workshop. I thing this could be of great interest to others like me. thank you once again for your commitment to helping others.
@lorinfortuna1547
@lorinfortuna1547 3 роки тому
A+ content. covers most of the "Why is that?" questions :)
@peterhuesmann3956
@peterhuesmann3956 2 роки тому
Fantastic, just what I was looking for!
@MiCoopRS
@MiCoopRS 3 роки тому
WOW, all your videos including the very OLD ones, 2019...even...I just or have already subscribed and continue to spend hours watching and then applying the things I have followed along on....sometimes, my project does not work at first, however, seems I am a good trouble shooter. I have purchased 5 tiny Nano brds, to make the projects smaller and I'd rather install the working Nano, v2 a Arduino UNO R3, but the first project I tried, well, the computer could not detect the usb...Oh it could be a BAD cable, yet there was power....OH WELL, this is the FUN or learning...Starting from NANO to UNO... I'll keep researching... I wanted to REACH OUT and say, YOUR stuff is amazing... keep up the Great work... I had a few days off work and have just begun my journey back into Electronics.... not yet retired but you got to keep the BRAIN exercised..... Merry Christmas and Looking forward to a better, we all hope..... 2021
@YFtouchscreen
@YFtouchscreen 11 місяців тому
So detailed explanation.Great tutorial!Thanks for your sharing.
@steveweiser2792
@steveweiser2792 3 роки тому
Very Nicely explained, I am an electronic enthusiast and a new subscriber to your channel.
@bobengelhardt856
@bobengelhardt856 8 місяців тому
Very professional video - thank you for presenting it. At the end you mention that there will be another video on capacitive TS & other examples. I can't find that video - do you have a link?
@thomasmcann9474
@thomasmcann9474 3 роки тому
Your work on UKposts should be shared more, every kid needs to see your work, I think it should be compulsory, the tech is there to enslave machines and get them to work for us
@daveharkin4731
@daveharkin4731 4 роки тому
Just like to say thank you for your videos, I really appreciate the time and effort you put into them, please keep them coming
@donaldwright2426
@donaldwright2426 4 роки тому
Thanks for this video tutorial and learning. Because of you, I purchased the same touchscreen and tested it today! Wow, this is fun! Can you imagine that in the early 90, I prototyped a wire-wrapped MC68HC11 to create something like an Arduino and I wanted to interface to an LCD? At that time, LCD screens were extremely pricy! Here I'm, some 25-30-year latter, getting back in the µcontroller world and with the internet, information and tutorials are so easy to find. Luckily, I found your channel on youtube. I found your videos so informative that I've joined your newsletter as of today (2020-01-09). Again, thanks for the quality of your video.
@raysanders332
@raysanders332 3 роки тому
I should have watch your video three days ago, thanks. Excellent video. Best ever.
@justinw.2376
@justinw.2376 2 роки тому
Best explanation of the touch screen I’ve found. This helped me fix the issue I was having with my screen. Thank you!!!!
@robbyprust
@robbyprust 4 роки тому
Nice video , you always explain things in detail . I have that same display and the touch screen part stopped working . Good display except for that ,but your explanation of how the touch screen works has me exploring what might be wrong with it. They are so expensive though
@jimmymark8232
@jimmymark8232 4 роки тому
Great work, a very good technical teacher, keep up the good work of sharing 👍
@sarkybugger5009
@sarkybugger5009 4 роки тому
Congratulations on the 100k subscribers!
@sarkybugger5009
@sarkybugger5009 3 роки тому
@Harsha Addanki Check the date of my post!
@anonymous.youtuber
@anonymous.youtuber 3 роки тому
Brilliantly explained, as usual ! 👍
@moroart4566
@moroart4566 2 роки тому
please can i know ..what's the launguage he used it ?
@fatonisodiq9341
@fatonisodiq9341 6 місяців тому
this is the best teaching channel
@tonyano9191
@tonyano9191 11 місяців тому
Great advice saved my job!
@EL34XYZ
@EL34XYZ Рік тому
I messed up and bought a 3.5 LCD without touch from Ali Express. I ordered the correct one with touch. Looking forward to using a touch screen
@kenkondasilva2488
@kenkondasilva2488 4 роки тому
Thank you!!! This is excellent.
@dualxsurvival155
@dualxsurvival155 3 роки тому
Got my sub love how u lay out the information
@osamarabee3927
@osamarabee3927 4 роки тому
sir you are a great teacher i really love the way you explain stuff i hope you still in a good shap and health and happy for ever i love you man
@Corbald
@Corbald 4 роки тому
The biggest drawback of resistive screens is that it's relatively easy to wear a groove into the surface, especially along UI elements like scroll bars.
@MrDe0
@MrDe0 3 роки тому
man your channel is underrated !!
@tinkmarshino
@tinkmarshino 4 роки тому
good to have you back... hope you got some good vacation time in... I got some nice fishing in while you were gone... Thanks for the touch screen video.. I have been wanting to use one but have not found a reliable video to follow.. Now though I am going to order mine and do my little project.... thanks again for the share and carry on Bill..
@manwenqin5920
@manwenqin5920 3 роки тому
What products do you need to order for your project?
@tinkmarshino
@tinkmarshino 3 роки тому
@@manwenqin5920 the same kind that Bill has there why? Do you have some?
@manwenqin5920
@manwenqin5920 3 роки тому
@@tinkmarshino I have, Can you tell me about the product model? I can help you find it.
@tinkmarshino
@tinkmarshino 3 роки тому
@@manwenqin5920 Well I am not exactly sure which one I want.. Send me the site for your outfit and I will go and look to see. Thanks
@grandtitan7967
@grandtitan7967 4 роки тому
This helped me so much i am a begginer in arduino and programing and all that stuff and you really helped me a lot... I appreciate your work very much!
@jnkmal9519
@jnkmal9519 3 роки тому
"...we're back in *TOUCH* today." I see what ya did there. Nice!
@raagamparmar179
@raagamparmar179 4 роки тому
Hmmm...... Interesting. The display can be used to make an interface for home automation system, as in the project made in the video.
@Ivor_Nastyboil
@Ivor_Nastyboil 4 роки тому
Good to see you back. Excellent video as usual. The only thing I don't like about your videos is the massive tool envy I get when watching them :).
@ALGH2101
@ALGH2101 2 роки тому
Now that's a nice set of tools! Whats your favorite brand, type ,and size cutters for cutting the ends off things like R, C , L's leads that are not needed and sticking out from soldered circuits?
@abuwaleed1191
@abuwaleed1191 3 роки тому
hi, very good video again, I question, is there capacitive display available like this Resistive ?
@wendygrant2735
@wendygrant2735 2 роки тому
Well explained as always.👍👍👍
@khukuma
@khukuma 4 роки тому
Love to see you back. I was worried as you were not uploading videos for the last several weeks. Salutes from Pakistan.
@abdillahmursyid7616
@abdillahmursyid7616 3 роки тому
great video.. i want to ask, can i make pen tablet with arduino? something like wacom ctl, no lcd but just like trackpad
@yahyagtari766
@yahyagtari766 4 роки тому
Thanks for all this information, please I need information about mkr 1300
@michaelschmidt1700
@michaelschmidt1700 3 роки тому
Thank you for this video, it helps me a lot. But could you please explain how to add a MicroSD Card Adapter to the display, because I use a Arduino Mega 2560 and I need the pictures from the SD Card for my project.
@belleluze
@belleluze 4 роки тому
Wonderfully executed sir. As an idea you should make a tutorial/video on making a Geiger meter, like making the high voltage and taking reading of an lcd. Thank you for your time.
@michaelhawthorne8696
@michaelhawthorne8696 4 роки тому
Brilliant video !.....I have one of these displays but only have an UNO... I might invest in a Mega. I have a 7" touch screen from Kuman, I might dig that out too. That LCDwiki is a fantastic site. Thanks for uploading.
@Vetle1
@Vetle1 2 роки тому
Great channel!
@arduino5267
@arduino5267 3 роки тому
Thank you sir
@michaeldickerson2873
@michaeldickerson2873 3 роки тому
You and your videos are awsome
@BikingWithSlothy
@BikingWithSlothy 3 роки тому
really nice vid
@PerchEagle
@PerchEagle 4 роки тому
Could you do a tutorial about the model that uses 2.8 tft SPI mode?
@cheerstolove5078
@cheerstolove5078 Рік тому
Hie... I have a request. May you kindly do a series on QR or BarCode modules such as the RT830C or 870. I could not find any solid tutorials on those
@essamaframhanna
@essamaframhanna 3 роки тому
Thanks for this Excellent video, I wonder to know how can I use the same 3.5" LCD and OV7670 Camera connect to Arduino UNO, to get Live picture.. Of course I'll use Breadboard instead connecting the LCD directly to Arduino, Neglecting touchscreen pins..
@saydiy1528
@saydiy1528 9 місяців тому
good job. can you show a round image in a round area instead of a rectangle area? thanks.
@604smit
@604smit 4 роки тому
nice and interesting subject, thanks
@gazzacroy
@gazzacroy 4 роки тому
cool stuff nice video
@projyuaharoni
@projyuaharoni 4 роки тому
thank you for the video ! I cant find the touch s pins. no mark for it. is it go with another pins?
@aberateklehaimanot9804
@aberateklehaimanot9804 4 роки тому
Great teacher,thanks again for sharing Sir.
@abdalrhmanalaa9982
@abdalrhmanalaa9982 11 місяців тому
realy iam a big fan of usrs i have learned many thing from you sir you are realy super i love our videos realy thank you for every thin you done and been doing
@mecatx
@mecatx 4 місяці тому
Great video. I am trying this setup with a DHT22. How do i get power tot he DTH22 form the mega arduino Thank you for great videos.
@Sparky5
@Sparky5 2 роки тому
I use the 4D systems touch screens with free Workshop 4 IDE software. Great for a non-programmer like myself.
@petercolls3385
@petercolls3385 3 роки тому
Very good video - Excellent presentation - Question where can you buy the screens shown on the LDC Wiki site - Thanks
@cicizhao2118
@cicizhao2118 3 роки тому
hello Peter, do u have the needs for the LCD Screens?
@thanassissarakatsianou2290
@thanassissarakatsianou2290 4 роки тому
First of all, I thank you for your excellent and detailed videos you offer to the public! I was wondering (because I'm in the middle of a project) if it's possible to have an ethernet shield and a touch LCD screen (like the one you 're presenting in this video) connected together on an Arduino Mega?
@allouette401
@allouette401 4 роки тому
Very happy that you are back .
@thomasvideoa
@thomasvideoa 4 роки тому
Nice video! Could you make some tutorial videos about How to use Nextion LCD touch screen which is popular among diyers but has little references?
@faridrifai2166
@faridrifai2166 Рік тому
God bless you sir
@josephanthony9294
@josephanthony9294 4 роки тому
Excellent video as ever. I have an identical board where all the demos work but will not accept any touch input. can anytone tell me which pins I can use to measure the touch resistance. I am beginning to wonder whether screen is faulty. Thanks
@fireteamomega2343
@fireteamomega2343 3 роки тому
There's so many different screen shields usually if it doesn't work it's because you have the wrong library drivers ILI9486...81...84 ?. Does the touchscreen calibration example work ? If not find you must one that does. Be sure you have Ts touchpoint lines included TS_MIN MAX as well (set from your calibration) it sets up p object value and screen size parameters. Bool also needs to be set false true false usually it's assigned to ifpressed. Throw read resistive code everything serial monitor down into loop. Run it pull up serial monitor and write down the x y values where you are touching. Then finally check your if (t.x < && line numbers I often put in the opposite values then realize when it doesn't work that my numbers are backwards.
@samiboulaid
@samiboulaid 3 роки тому
you are the top of the tops
@BlueClefto
@BlueClefto 3 роки тому
Gramps is the best!
@ygt602
@ygt602 3 роки тому
Do you do tft with the distance sensor?
@THE16THPHANTOM
@THE16THPHANTOM 3 роки тому
can you use shift registers to increase the nano pins? would that make the libraries completely useless and require some rewriting to compensate? i have no time to go hardcore mode and write the software myself.
@TheElectronicDilettante
@TheElectronicDilettante Рік тому
This is the only person in front of the camera ,on UKposts, that's more concerned with content accuracy and production quality. He should be on PBS or some other educationally driven outlet. In a perfect world, Bob Ross would still be painting Happy Trees followed by The Drone Bot W.S. to give us a well rounded Sunday morning lineup.
@qzorn4440
@qzorn4440 3 роки тому
very, very nice video I am repairing a CNC 3-axis milling machine, Siemens Windows_NT Acramatic 2100 LCD display with a 5-wire 14" touchscreen. The touchscreen went bad, do you have any suggestions? I would like to just replace the stick-on touchscreen with the ribbon cable and connector with may be the glass window. thanks. :)
@nelsongomez8547
@nelsongomez8547 7 місяців тому
Hello friend congrats Friend, what kind of model Is his display touch screen? Do you have the link where Did you buy that one?
@user-zy1dl1rt6t
@user-zy1dl1rt6t 6 місяців тому
good ,keep going
@danielbernhard1250
@danielbernhard1250 4 роки тому
Nice Video. How much overhead does it add to an existing sketch? I`m about to build a little project. I`ve got an interrupt pin used for calculating RPM out of a time (used 1 impuls per round on an gear-Motor between about 1 and 40 RPM). Then i use 4 digital pins for some buttons(wich i would exchange with the touchscreen). An other Pin is driving an PWN signal to the Gearmotor. 2 pins are used for relais for a heater and an cooling fan. An other pin drives a MOSFET to a little pump via AnalogWrite. An Steppermotor is driven (NEMA17) by using the millis() funktion to calculate the timing. I really like the idiea of having an touchscreen user interface. But if the stepper is running with about 20 RPM the cycles left for everything else, are decreasing a lot in order to have an accurate timing of the pulses. Next point is. I only have an Uno, Nano or an arduino Due. The due should be much more powerfull. But cause of the Cortex core, im worried about compatiblity issues with some libraries and the logical level of 3.3V.
@RyanStokes4GOVFL
@RyanStokes4GOVFL 4 роки тому
Is there a way I can debug and test my screens without having to compile and load the Arduino? Like a simulator?
@ElieWar
@ElieWar 4 роки тому
Thank you
@nadenglish3811
@nadenglish3811 Місяць тому
Thank you so much, I am using it with Arduino mega and everything is mirrored, touch, words and everything what do I do?
@skiiid4078
@skiiid4078 4 роки тому
this is nice :)
@santiagotinta6737
@santiagotinta6737 4 роки тому
Can you do a menu interface tutorial with the 2.8" TFT Touch Shield for Arduino with Resistive Touch Screen, please
@walidel-sharoud8339
@walidel-sharoud8339 4 роки тому
Great video as usual!! 4D systems produce programmable touchscreens that are much easier to use. It will be great if you manage to cover them as well.
@startobytes
@startobytes 4 роки тому
Hi could you make it with you about the nrf24l01 Module and how to Connect it with the Arduino Uno?!
@andrew58344
@andrew58344 3 роки тому
Hi I was wondering if someone could give me some advice. I have a system that uses a manual mixer value to supply water at a constant temperature to my gas boiler. I want to add an arduino that is controlled by a water thermostat and in turn controls a electronic valve of some kind. Also I would like to have a touchscreen connected to be able to set the temperature
@TheElectronicDilettante
@TheElectronicDilettante Рік тому
Is it possible to add a diode, or some other device to isolate the pins) to pins 1 & 0 of the display pin out and still use 1&0 for serial communication??
@floridian080
@floridian080 3 роки тому
A problem I've encountered is using a 2.8" TFT shield and separate SPI SD board with Arduino Due. The Due header is not accessible when shield is attached. Do you have a solution to this problem. Can MOSI, MISO and SCK be reassigned? Thanks for any help you can offer.
@electronic7979
@electronic7979 4 роки тому
Helpful video. I like it
@LaxmanSingh-wh9vy
@LaxmanSingh-wh9vy 2 роки тому
21 july.2021- very good sir -Laxman Singh
@Krejstrup
@Krejstrup 3 роки тому
Q: How do you make a panel with a screen like that? If I'd like to put that on a electronics box or a plane panel in the car or int my boat (no water!). Just a square hole would be quite ugly. Good vid, as usual.
@jaanbrosmusicofficial
@jaanbrosmusicofficial 3 роки тому
I'm trying to interact with an APP on my phone by indirectly touching the the screen. Modern touchscreens, as I'm sure everyone here knows are capacitive rather than resistive, so that means that I should be able to interact with it as long as I can bring a small current to the screen where I want to touch. I'm experimenting with using some speaker cable and a couple other wires I have laying around the house to see how far away I can be and still pass enough current through the wire to register a touch on the screen, based on my distance and the size and quality of the wire. What I'm finding though is that touching wire to the screen seems to register a touch even without me touching the wire. So is there already a current inside wire? Is it the type of wire I am using? I was under the impression that a wire on its own had no current and only passes electricity when there is an outside source. Is there anything I can do to decharge the wire, or block it somehow?
@joymakerRC
@joymakerRC 2 роки тому
Thanks bro. love your face.
@sweetleaf7751
@sweetleaf7751 4 роки тому
Wow Your Videos are amazing
@rounaqul2020
@rounaqul2020 4 роки тому
He is so calm and sensitive look. Nice, I feel sleepy, but nice video.
@tjmb71844
@tjmb71844 2 роки тому
I want to control 16 servos using a MEGA, and a PCA9865. I want to select the servo to be controlled using on-off switches and I want two LEDS per servo to show position. I also want to use a TFT 2.8 Display (not sure for what yet). Can you help me with a hook-up diagram? Also do I need a TFT sheild with the MEGA to get the 3V?
@Himanshu-bu8hc
@Himanshu-bu8hc 4 роки тому
Sir pls make a video on Arduino Modbus library and by use of RS 232 connect arduin with plc
@user-by2bs4kp7b
@user-by2bs4kp7b 2 роки тому
that intro music reminds me of the theme music of "The office"
@geraldbuchler3011
@geraldbuchler3011 4 роки тому
@dronebotworkshop why did u use Boolean and then put in numbers instead of true/false. I know it works but as a programmer it confuses ...
@Abc-sl1nf
@Abc-sl1nf 11 місяців тому
Can you get current time from the Internet to display on that?
@muhammadtasbi8408
@muhammadtasbi8408 3 роки тому
I have problem looking for the libraries for my 7 inch tft lcd ...
Arduino GIGA Display Shield
56:14
DroneBot Workshop
Переглядів 50 тис.
GC9A01 Round LCD with ESP32 & Arduino
45:46
DroneBot Workshop
Переглядів 265 тис.
In 10 Minutes This Room Will Explode!
10:00
MrBeast
Переглядів 52 млн
You’ve Never Seen A Race Like This 🚀
00:21
Red Bull
Переглядів 39 млн
How Do Touchscreens Work?
8:36
Branch Education
Переглядів 3,8 млн
Building a USB-C touchscreen monitor (new for modern devices)
13:45
Biggest TFT 7" for Arduino or ESP32 - Parallel Communication
10:16
Electronoobs
Переглядів 42 тис.
How Touchscreen Works In Simple Words
10:00
BRIGHT SIDE
Переглядів 1,3 млн
Arduino MASTERCLASS | Full Programming Workshop in 90 Minutes!
1:25:31
Programming Electronics Academy
Переглядів 2,2 млн
A Display From Arduino | Arduino GIGA Display Shield
20:17
techiesms
Переглядів 9 тис.
Sensors - which one to use
17:06
Electronoobs
Переглядів 1,3 млн
MINHA IRMÃ MALVADA CONTRA O GADGET DE TREM DE DOMINÓ 😡 #ferramenta
0:40
ТВОРИТ ЧУДЕСА 🤯
0:19
Top YouTubs
Переглядів 551 тис.
5 минусов отношений с китаянкой!
0:58
Petya English
Переглядів 1,3 млн