2.4" TFT LCD TOUCH SCREEN SHIELD FOR ARDUINO. (Troubleshooting white screen and touch problems)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone today I'm going to be showing you how to use the 2.4 inch TFT LCD touchscreen shield for Audrina and the she'd am using now is the clone 2 version not the original one they mean I want to show you how tangible to the back good so some of the major issues that may find if he's in this kind of huge the problems mainly come from the libraries that you're going to be using because the libraries are usually made for the original versions of the issue but in this case this is the cloned version or they call it the China version so if you're having this kind of shield may find you're going to have a number of problems with it so you need to have some knowledge about to do some background checks in your code so that you can be able to use they should appropriately as the series is this sample yeah you see I have the command line pins this area of the power pins and then on from the 0 to disadvantage that the data pins and then you have the SD control pins knowledge it has the SD card slot where you can be able to put a micro SD in case you have some images or any other information that you want to display on the shield it really comes with the stylus all this kind of peonies can help you write down on to use for the touch function however something else I want to notice that these cloned versions come from different manufacturers and therefore they come in different forms sometimes you may find may buy and you try watch it but you try to do all the types of Corrections are not and still does not work for exam in my case I've had to buy over a number of them I own like five of these and some of them to terrified work to cut down on the original ones then others are working but even after some kind of manipulation so you may find that even after you followed all the steps have shown you here till you LCD display will have some issues especially with the inversion of text and touch properties or that so just take note of that I have to put a disclaimer that it's best to get an original one but if you can't afford then it's ok can always use this one so here when you how to attach it with arduino so this shield is made to fit properly can easily fit it properly here with Arduino Canessa Fito and Arduino mega as you know oh no so it's fitting a nice walk with Arduino mega flag indeed various examples they'll be showing you how or which pins you can be able to use so that you can fit it in a type of a do you know that you have so let me now show you how I'm going to use this TFT LCD shield with adrena using various libraries so if I can use this TFT LCD you need to first install some useful libraries in this case you need a adafruit gfx library which contains most of the necessary commands and the libraries that are important for the working of this LCD so in most cases the first problem you're going to find when you install this LCD and you don't try this i want to run any program you find that the LCD will give you a white screen and that's because if you have to download the Adafruit library we must probably use the latest version most cases that version is not very compatible with the TFT LCD so the first thing you have to do is that you have to use an older version of the Adafruit library so you're going to go to sketches and then you go to manage libraries and from here you can be able to see all the libraries that you have in your IDE and then from a root of usage we are interested in the adafruit gfx library so we are going to type here you type adafruit gfx so it is this library here then you see obvious the one point five point three and so if you check here most cases you'll find that you are going to be having the newer versions of this library because be installing the library the first time so but for this kind of display we are using this kind of library does not properly so what you need to do you need to first scroll down and go to the older versions most probably you use the one I've used I've used one point five point three like the one I've used I think that's the beta libraries so you take that you know that'll be the first problem you're going to use in case we are seeing a white screen then you need to change the version of the other foot gfx library that you are using so after that you install the library then you can be able to check for other problems in case you find any we cannot run some sample programs for example good file go to examples I look for other fruits tft-lcd of course the first library you need to go the first program you are going to check out is the graphics test to see if your LCD is running so I open this one and we see so this is the graphics text or the graphics program from the other fruit GFX library and from this program here if you upload this program though it is here still wants anything because you need to specify they kind of brave that you are using so in this case I need to make sure I show you something change this part of the quad one you can comment out this part from here I will just comment it out up to here where you see 50 beginning so you comment it out I need to specify the idea for identifier so another identify they tell me to specify the kind of driver of the LCD you are using so in this case I'm using the nine three four one so just go here copy this and paste it here where is that in fire you change it and you put the driver then from there you can just compile and upload the program so as you see from the display you're gonna be getting various graphic displays and texts to show you that your LCD is working properly so in case you get any problem then you out first go back and observe the code and make that change otherwise that's one of the common enough that you are going to make with this kind of code and this kind is change should always be made for all the programs you're gonna be getting from this example yeah we cannot try another example let me try the TFT BPM or BMP so this kind of library is for displaying BMP images on the SD card that is attached to the TFT display you need to first upload some images onto your sd card and those images should be in the BMP format so this is Myall code that I'll try for displaying BMP images so it's very simple maybe opportunity changer ah here you can change the number of files for example I'm gonna be showing for images as well obviously for then you give the name of the image easier and then the rest of the code is just as it is maybe as always don't forget to change this part here I need to change identifier to the driver of the LCD that you are using so you can upload this code and then you see what you are going to be getting I'll put the name in the description below - well can be able to access this code so when this code is uploaded to the adrenal you'll be able to observe the various images that have been uploaded onto the SD card and the pictures will be moving on by warrants or by slowly reason why they're moving stories because the processing power that you know through either slow issue when these pictures move faster you may need a more powerful microprocessor then the last example I'm going to show you the donut is a bit more challenging and that is the use of the touch properties because nobody sees a touch screen so I want to that property and that case I'm gonna be using the tf2 paint so this is our 58 example like before the gun first comment out this part put identifiers so I will just comment out this part real fast then after I'm going change this from identifier okay let's upload and see what we get so after uploading you will get a white screen meaning that the code is not working make sure that has been uploaded so in that case that means there's a problem with the code you are using and most probably that problem is around here and we have declared these pins here so example I have analog pin a1 a2 and then I have dick the pins 7 and 6 so in most cases you need to change this Patea depending on the kind of LCD that you are using so you fail LCD these pins are ok then it will work properly there's no need of changing them but in case you get a white screen they need to change these pins for example my case I'm gonna change this from a 1 I'm going to change it to a 3 then I'm going to change this to I leave the two locked up then I will change the 7 to 9 and 19 the 6 to 8 let me applaud again and see so now when you upload you see that now the touch property is working but again you see that the working is not really good in other words you the screen is embodied when you write in one place you are right in one place that the paint is in a different place like sorts of that issue we need to go deeper into the code need to go to where this library is stored so in this case I'm going to go to where my ordinary berries are stored from ABC one in Dutch means every node in library this is where the library is a stored then I look for the touch screen library touch screen file folder then inside here there are quite a number of files so I'm going to edit this touch screen C++ file so I'm going to the simple data like the notepad plus plus so what you do look for this point here the time TS point so in every chain make some changes around here yes make these 1 0 2 3 minus X and then make this 1 0 2 3 minus y then save and then you go back we upload the code and check it out and see still you observe that the problem is not yet solved so there is a problem with the alignment of the the movement of the pain and the pain that is really being shown there so in other words not result of time what you have to do is that you keep on changing these values is value and that value and they change the alignment of the pain on the touch screens but for my case actually twice 1005 1005 was okay and then I go back and upload so now you observe that the writing is okay so the problem has been solved now that is the major problem that are confronting this LCD display when you're using the Adafruit library when you're using other libraries hope that was a good introduction to how to used a TFT display don't forget subscribe to my channel like my other videos and hopefully I'll be having more projects involving this TFT LCD touchscreen display thanks for watching
Info
Channel: MYTECTUTOR
Views: 44,898
Rating: undefined out of 5
Keywords: 2.4 tft lcd shield white screen, 2.4 tft lcd touch screen problem, 2.4 inch tft lcd touch screen shield for arduino
Id: i77SHNEjmAA
Channel Id: undefined
Length: 12min 20sec (740 seconds)
Published: Sun Apr 19 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.