Tutorial: How to use 2.4 TFT Display in Arduino | SPFD5408 | ILI9341

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024

ความคิดเห็น • 141

  • @jameskidd7906
    @jameskidd7906 3 ปีที่แล้ว +16

    Hi TechToTinker
    I 've got this lcd since 2017 ...no way to make it work so i give up , till to day i find your tuto so i try and tadaa it work like a charm , the secret is the SPFD5408 lib so tank to u ,
    nb: sorry i'm not well in anglish

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว +1

      Hi @james kidd, I am glad you like it. Thank you for your valuable comment. Cheers.

    • @dickschweiger289
      @dickschweiger289 ปีที่แล้ว +1

      Your english is god enough :)

    • @Poples_the_hedgehog
      @Poples_the_hedgehog ปีที่แล้ว

      learn to spell dumb guy

  • @ArmchairDeity
    @ArmchairDeity 6 หลายเดือนก่อน

    Just got mine in the mail today! Excited to start working on some of my ideas for a microcontroller with a touch screen. But you have to walk before you can run, so I just wanted to say: Good demo/tutorial. I appreciate the basic examples and being able to learn from your experience!

    • @TechToTinker
      @TechToTinker  5 หลายเดือนก่อน

      Sounds great! Have fun.

  • @leglessinoz
    @leglessinoz 3 ปีที่แล้ว +1

    Finally a library that works (sort of) with my display. The output looks correct except that everything is mirrored (text is reversed).

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      @leglessinoz, glad that it works on your display. You are in the right track, just play with the rotation variable, and you should find the correct setup.

  • @joshg.1780
    @joshg.1780 4 ปีที่แล้ว +3

    Nice one idol, good content again, was about to order this LCD, I'm gonna watch this video for tutorial.

  • @elixpo
    @elixpo 2 ปีที่แล้ว +2

    I not only loved the tutorial but also loved the accent

    • @TechToTinker
      @TechToTinker  2 ปีที่แล้ว +1

      Thank you for that. Appreciated.

  • @rohelespares1131
    @rohelespares1131 3 ปีที่แล้ว +3

    Thank you sir for this video. Very helpful. ❤️❤️❤️

  • @ITQuickBoy
    @ITQuickBoy 2 ปีที่แล้ว +3

    Thanks for the great video! But there is a problem, the contents of the screen are upside down and read from right to left ... How to fix it?

    • @TechToTinker
      @TechToTinker  2 ปีที่แล้ว +1

      Try to search for the "rotate" or "rotation" inside the code.

    • @ITQuickBoy
      @ITQuickBoy 2 ปีที่แล้ว +1

      @@TechToTinker
      No, I got it. The manufacturer installed other drivers and the library flipped the image. ILI9341???

  • @Karam-S.
    @Karam-S. ปีที่แล้ว +1

    Great video! Just discovered how to use from this vid, can you upload a video about the micro sd in more detail (how to upload and select proper images)

  • @creators2568
    @creators2568 9 หลายเดือนก่อน

    well yes I tried but nothing worked , and finally decided to return it ,,,but after watching you video I am satisfied with this tft display

  • @MałgorzataGosia-k3x
    @MałgorzataGosia-k3x 7 หลายเดือนก่อน

    First code that turned on my display thanks

  • @kopimarvs
    @kopimarvs 6 หลายเดือนก่อน

    very informative sir.

    • @TechToTinker
      @TechToTinker  5 หลายเดือนก่อน

      So nice of you. Keep watching.

  • @ottosusenodelvitto3225
    @ottosusenodelvitto3225 ปีที่แล้ว

    Thanks brother thats beautiful explanation

  • @marcoboldrini6013
    @marcoboldrini6013 ปีที่แล้ว

    First of all thanks for this tutorial, everything works great except for the last 2 examples. Can you help me? I’m interested in the last example and I got: failed initialization. Is it related to file system? Or what?

  • @galihendah
    @galihendah ปีที่แล้ว

    I try to showing bmp image in lcd tft but it doesn't work, the file name is not found even if the file name is correct. Can you help me?

  • @vjrocksu3
    @vjrocksu3 3 ปีที่แล้ว +1

    hi, in my TFT display im displaying temperature value but the value is over writing and not clearing the previous one. pls help me sir.
    thank you..

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      @vijay kamble, use tft.setTextColor(WHITE, BLACK); when setting the font color. The first parameter is the font color while the second parameter is the background color. By doing this, you're erasing the previous display.
      Hope this helps. Please let me know. Cheers.

  • @q01b
    @q01b 9 หลายเดือนก่อน

    Hi. I have that exact display, and I am using Arduino Uno. The screen works for me, but not the touchscreen, I tried using your LED ON/OFF example but the buttons did not work. Any help?

    • @Taborovets
      @Taborovets 7 หลายเดือนก่อน

      Have you resolve your problem? A have this problem too

  • @JoxRapper
    @JoxRapper 3 ปีที่แล้ว +1

    Hi TechToTinker! I'm having some troubles with this screen...The touch is not responding...I need some help...I double checked everything from the video and downloaded the Joao's libraries but nothing seems to work about the touch...

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      @Jox Rapper, Im not really sure how may I help you. Are you able to make other examples to work with you?

    • @JoxRapper
      @JoxRapper 3 ปีที่แล้ว +1

      @@TechToTinker I think I found a way to make it work! Thank you man. Appreciate it!

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      @@JoxRapper glad that you're able to make it work. Thanks for letting me know.

  • @wrbueno
    @wrbueno 16 วันที่ผ่านมา

    Thanks! I like very much your video. Only a question: where can I get the samples images "TH-cam.bmp"
    "Logo.bmp","Subs.bmp","TTT.bmp","CLSS.bmp"?

  • @tftlcd102
    @tftlcd102 3 ปีที่แล้ว +2

    Hi TechTo Tinker
    I am new to TFT programming. I want to have 5 input names from user using 2.4 TFT ,Arduino UNO. I am thinking to create an array and use the Gets(STR[x]) function to take the input from the user. Will this function work with TFT?

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      Hi @TFT Lcd, I would like to say yes but as of now, I am not able to use or do like that but it should be possible. Please let me know if you are able to do it or if you need some help. Cheers.

    • @tftlcd102
      @tftlcd102 3 ปีที่แล้ว

      Thanks TechTo Tinker for responding. But could you suggest any other way or program to achieve the same? I am stuck with this.I would really appreciate any help regarding this.
      Thanks

  • @claudiomoura4315
    @claudiomoura4315 3 ปีที่แล้ว +2

    great content!
    what format and size is supported by the sd card screen

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว +1

      @Claudio Moura, any size should (correct me, I could be wrong on this) if I still remember it correctly. Format it to FAT32.

  • @sibaramdatta5625
    @sibaramdatta5625 ปีที่แล้ว

    Hi Sir. Your video are awesome & code is perfect one. Sir if I wish to display BMP picture more than five what should be change in code? How can I understand that my touch screen is perfect? I have already tested example tftpaint but my display is showing wrong . When pen is drawing horizontally display shwing vertical line & when pen drawing vertical display showing horizontal & pen where pin display showing some distance . Please answer me.

  • @Selflouisville
    @Selflouisville 3 ปีที่แล้ว +3

    Your videos are awesome. Could you do one on this same tft device in Micropython? Thanks again

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว +1

      @Selflouisville, Im glad that you like it. Noted on your request, we will see in future videos. Thanks

  • @sibaramdatta5625
    @sibaramdatta5625 ปีที่แล้ว

    Sir please answer me. I have sent a query six days ago but not yet received any answer at your end. My query was if I wish to display more than five BMP images then correct code for that. Awaiting for your support and response. You have answered all the queries two years ago but not answering now. What is the actual problem Sir? Please answer me.

  • @creators2568
    @creators2568 9 หลายเดือนก่อน

    nice and helpful video

  • @Sabhail_ar_Alba
    @Sabhail_ar_Alba 2 ปีที่แล้ว +1

    What use is it if all the Arduino I/O pins are used by it ?

    • @TechToTinker
      @TechToTinker  2 ปีที่แล้ว

      You may use Arduino Mega if you need more pins. In Arduino Uno, AFAIK there are 2 or 3 pins you may still use. The D0, D1, and the other I can't remember. You may check the datasheet.

  • @user-ju1co7zo5i
    @user-ju1co7zo5i 3 ปีที่แล้ว

    I have the exact same set up as you but spf5408 doesn’t work .

  • @pierre63ify
    @pierre63ify 3 ปีที่แล้ว +1

    Thank you so much for your video very helpfull ;)

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      @Pierre Roub, glad that you find it hrlpful. Thanks.

  • @REKRIOT
    @REKRIOT ปีที่แล้ว

    Can We show video with the SD card ?!

  • @NandiniShinde-ii1dp
    @NandiniShinde-ii1dp 3 หลายเดือนก่อน

    Can anyone tell me it cant be done on Arduino mega??

  • @rudyvlog2897
    @rudyvlog2897 5 หลายเดือนก่อน

    Thankyou sir

  • @Dancopymus
    @Dancopymus 3 ปีที่แล้ว +1

    Greetings TechToTinker.
    I have read that this SPFD5408 drive and ILI9341 are pretty much the same but, I have a sketch that in the header calls: #include however, my display is ILI9341, so what should I change in the code to use the ILI9341 display, and my display is not shielded and does not have the LCD_WR and LCD_RD pins. Thanks

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว +1

      Hi Daniel, perhaps you need to look for ILI9341 library which uses SPI instead. This uses the parallel control.

  • @bino8248
    @bino8248 8 หลายเดือนก่อน

    how to use tft with eps32?

  • @muhammadimaduddin6254
    @muhammadimaduddin6254 4 ปีที่แล้ว +1

    helloo..nice project..but why I cannot display picture at tft lcd...already insert micro sd and file in bmpfile...

    • @TechToTinker
      @TechToTinker  4 ปีที่แล้ว

      Hi Muhammad,
      #1. did you use Uno or Mega?
      #2. Did you try the example number 4 accessing the sd card?
      #3. The size of the bmp file should be maximum of 320x240 (landscape) or 240x320(in portrait)

    • @muhammadimaduddin6254
      @muhammadimaduddin6254 4 ปีที่แล้ว

      @@TechToTinker I use UNO and already succesful accessing the sd card..the problem now is the pic are appear

    • @muhammadimaduddin6254
      @muhammadimaduddin6254 4 ปีที่แล้ว

      are not appear*

    • @muhammadimaduddin6254
      @muhammadimaduddin6254 4 ปีที่แล้ว

      what size of pixel for the picture...hehe

    • @muhammadimaduddin6254
      @muhammadimaduddin6254 4 ปีที่แล้ว

      @@TechToTinker its okey....I already get the pic...my project was successfull....thankyou so much

  • @ofp6024
    @ofp6024 ปีที่แล้ว

    Can we access the gif from sd card

  • @halasansitorus5868
    @halasansitorus5868 5 หลายเดือนก่อน

    Thank You

    • @TechToTinker
      @TechToTinker  5 หลายเดือนก่อน

      You are most welcome.

  • @mellee3436
    @mellee3436 2 ปีที่แล้ว

    I used mcufriend library.

  • @wandersongw
    @wandersongw ปีที่แล้ว

    Are there some way to play videos?

  • @mbahsonofman5248
    @mbahsonofman5248 4 ปีที่แล้ว +1

    Good explanation.
    Thanks sir

    • @TechToTinker
      @TechToTinker  4 ปีที่แล้ว +1

      @Mbah SonOfMan, glad you like it. Thank YOU.

    • @mbahsonofman5248
      @mbahsonofman5248 4 ปีที่แล้ว

      @@TechToTinker I am one of your big promoters sharing the good work to all my groups. I encourage all to subscribe

    • @TechToTinker
      @TechToTinker  4 ปีที่แล้ว

      @@mbahsonofman5248 wow that's great. I really appreciate it. :)

    • @mbahsonofman5248
      @mbahsonofman5248 4 ปีที่แล้ว

      @@TechToTinker I have been working with gsm sim800l but I wish to send SMS with the network time stamp not using external rtc or ds3231 module

    • @TechToTinker
      @TechToTinker  4 ปีที่แล้ว

      You may try to look using NTP.

  • @claudiomoura4315
    @claudiomoura4315 3 ปีที่แล้ว

    Hello Master !
    to using the one with 32 giga card fat32 format and presents "initialization failed! ¨ this screen does not support this configuration? can you help me? thanks

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      @Claudio Moura, did you use Arduino Mega?

  • @purplefurture6960
    @purplefurture6960 4 ปีที่แล้ว +1

    How can i make compass hmc8553l show line moving depend on the direction on 2.4tft touch screen shoeld

    • @TechToTinker
      @TechToTinker  4 ปีที่แล้ว

      Hello @Purple Furture, I dont know how to answer you as of now since I dont have a copy of the compass.

    • @purplefurture6960
      @purplefurture6960 4 ปีที่แล้ว

      TechToTinker i just need need to know how to do the lcd part then i will take mu compass code

    • @TechToTinker
      @TechToTinker  4 ปีที่แล้ว

      Hi @Purple Furture, I hope you find a way to solve your question. If not, you may try to use the example # 2 drawing shapes.

    • @purplefurture6960
      @purplefurture6960 4 ปีที่แล้ว

      TechToTinker thank you done 😄

    • @TechToTinker
      @TechToTinker  4 ปีที่แล้ว +1

      @@purplefurture6960 wow nice, congratulations.

  • @konstantinosdamaskos4138
    @konstantinosdamaskos4138 3 ปีที่แล้ว

    Hello, the tft freezes after some hours. What can i do? I think it must be a stability issue. How i can reduse the noise on spi pins and make more stable the connections?
    Thanks in responce and congrats for tha amazing channel.

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว +1

      @kon dam, I haven't check the schematic diagram of the tft module if its properly designed (I doubt it). For your reference, check this page: www.pjrc.com/better-spi-bus-design-in-3-steps/
      It may also possible that the problem is on the program.
      Thank you and regards.

  • @elgie_
    @elgie_ 3 ปีที่แล้ว

    very educational

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      I'm glad that you liked it. Thanks.

  • @jumbo999614
    @jumbo999614 3 ปีที่แล้ว

    Do you have tuturial that teach TFT commands/functions to draw some complex shape.

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว +1

      Complex shape is derived from simple shape. What I mean is to use the simple shape (which is included in tutorial) for you to come up with complex shape.

  • @luie.no1noob
    @luie.no1noob 3 ปีที่แล้ว +1

    Will it work with esp8266 or it will need esp32?

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      I am using Arduino Uno. I have not tried it on ESP MCUs.

    • @sophalthoeun9936
      @sophalthoeun9936 ปีที่แล้ว

      ​@@TechToTinkerCould you test with ESP32?

  • @REALBLOXIE
    @REALBLOXIE ปีที่แล้ว

    Thank you bro

  • @सर्वांसाठीइलेक्ट्रोनिक्स

    hi sir let me now i have tested tft shall i upload all the code remaing foue atonce or separate i am new

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      @electronics for all, I do not understand what you mean to say. Can you send again? Cheers.

  • @liliansananikone3588
    @liliansananikone3588 2 ปีที่แล้ว

    Hi ! I opened the example file to draw bitmap images from the sd card but I have the following error message : "File not found".
    I do'nt understant why...
    Can you help me please ?
    Can you send me your spfd5408_learning_05_bmp file please ?

    • @TechToTinker
      @TechToTinker  2 ปีที่แล้ว

      Try checking always the video description. It contains additional information. Links to the companion blog post can also be found. Cheers.

  • @ronnietan7297
    @ronnietan7297 3 ปีที่แล้ว

    can it play videos from the SD CARD?

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      @Ronnie Tan, the microcontroller needs to buffer the video frames and I think it's not directly possible. BUT I have watched a video in TH-cam before that reads from SDCard and directed the video frames to the display. I somehow can't find it now.

  • @serviceteam4176
    @serviceteam4176 2 ปีที่แล้ว

    please share library

  • @jhonatanruiz9938
    @jhonatanruiz9938 3 ปีที่แล้ว

    hi, i have a problem loading imagens, the error is the image does not found and i dont know why, i'm use your code but dont found the problem and when i testing the example of sd card appears in the screen sd card failed, can you help me?

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      @Jhonatan Ruiz, can you give me more details of your setup? Did you use Arduino Uno or Arduino Mega?
      Did you copy the image to sdcard?
      Is the image is 320x240?

    • @jhonatanruiz9938
      @jhonatanruiz9938 3 ปีที่แล้ว

      @@TechToTinker i use Arduino Mega and copy the image (BMP format) in the same resolution but vertical

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      @@jhonatanruiz9938 what do you mean with the "but vertical"?
      #1. Is the image 320 x 240 (landscape image) but displayed wrong. Or,
      #2. or you want to create a vertical display?
      In any ways, can you send a picture of the display with problem at tech.to.tinker@gmail.com

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      Hi @Jhonatan Ruiz, got your email. the problem is you are using Arduino Mega (it will work when you use Arduino Uno). The reason is that Arduino Mega SPI port is not located on pins 11, 12, and 13 which is use when accessing the sdcard module. And if I remember correctly, I talked about this aspect in the video. Hope it helps.

    • @jhonatanruiz9938
      @jhonatanruiz9938 3 ปีที่แล้ว

      @@TechToTinker yes i got it but when i change the port spi for 50 doesn't change i will to try again thank you for your time

  • @DharmanshuSharma
    @DharmanshuSharma 3 ปีที่แล้ว

    really works👍👍

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      Wow, that's great man. Congrats. :)

  • @सर्वांसाठीइलेक्ट्रोनिक्स

    hi it help me a lot

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      wow, Im glad that it helps you. Thanks

  • @mytechnotalent
    @mytechnotalent 4 ปีที่แล้ว

    Great job!

  • @StrickBladeX
    @StrickBladeX 2 ปีที่แล้ว

    Cool

  • @-MavuruHemanth
    @-MavuruHemanth 2 ปีที่แล้ว +1

    Can you design one prototype like using touch screen whether it is detecting kid or adult by adding some security questions if he answered some questions means it will be detected as kid gave some access to some appliances like on/off light, fan and answered all questions it will be detected as adult means gave access to all appliances.
    Thanking you and hoping for a faster response. Looking forward to your reply bhai it will be very helpful and urgent to our project. Please consider this

  • @enggdna8574
    @enggdna8574 3 ปีที่แล้ว

    hey, can we use u8glib with this lcd?

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      @Engg DNA, I believe yes but I haven't tried. Please let me know if you are able to use it. Cheers.

  • @KILLZONERUSSIA
    @KILLZONERUSSIA 3 ปีที่แล้ว +1

    why screen is so slow?

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      Im not exactly sure why but Im guessing maybe because of mode of communication between the LCD and the Arduino or possibly because of the library. But what I am sure the Arduino Uno runs in 16MHz clock while the LCD has 320x240 pixels so a total of 76800 pixels that is needed to update more than 60 times a second so changes is not noticeable by human eye.

  • @robertvincent5169
    @robertvincent5169 3 ปีที่แล้ว

    can u do nodemcu recieve photos from telegram bot and display it?

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      @Robert Vincent, I haven't tried it before but it should be possible but I also don't know how.

  • @AEN_INDUSTRIES
    @AEN_INDUSTRIES 3 ปีที่แล้ว +1

    Can you share for Animation BMP file please?.

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      @AEN INDUSTRIES, links to additional details could be found in the video description. Cheers.

    • @AEN_INDUSTRIES
      @AEN_INDUSTRIES 3 ปีที่แล้ว

      @@TechToTinker For some animations showing pictures ?, Scroll dll?.

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      @AEN INDUSTRIES, I just updated the blog post to include the images. Hope it helps

    • @AEN_INDUSTRIES
      @AEN_INDUSTRIES 3 ปีที่แล้ว +1

      @@TechToTinker Ok, thanks.

    • @TechToTinker
      @TechToTinker  3 ปีที่แล้ว

      You are most welcome. Thanks @AEN INDUSTRIES.

  • @oscarenriqueporceldeperalt5441
    @oscarenriqueporceldeperalt5441 10 หลายเดือนก่อน

    BUENAS TARDES
    excelente explicación: yo tengo una pantalla LCD TFT 3.5" HSD8795-A1 DUAITEK . EN PRINCIPIO COINCIDEN LOS PINES CON EL ARDUINO UNO , Mi pantalla será totalmente compatible con la que usas en el video .
    desde ya gracias por la atención Oscar

  • @hazwanhaikal5240
    @hazwanhaikal5240 4 ปีที่แล้ว

    why the text being reverse?
    how to fix it

    • @TechToTinker
      @TechToTinker  4 ปีที่แล้ว

      Hello @Hazwan, in the source code:
      tft.setRotation(2); // This settings works for me with correct orientation
      try to experiment with it, possible value is 0 to 3

    • @tankangjie2108
      @tankangjie2108 3 ปีที่แล้ว

      th-cam.com/video/_mJIf1BnlU8/w-d-xo.html Try this step by step tutorial, it worked for me

  • @vincedepp1986
    @vincedepp1986 ปีที่แล้ว

    can i connect a tft screen to a jtag1 slot???

    • @vincedepp1986
      @vincedepp1986 ปีที่แล้ว

      my 1.80/1.77 fpc screen got broken and i see a jtag1 slots in my board with a 8pin slot same with 1.8 tft screen.. so i wonder if its gonna work?

  • @kuzeykaya5668
    @kuzeykaya5668 3 ปีที่แล้ว +1

    sory

  • @dickschweiger289
    @dickschweiger289 ปีที่แล้ว

    Wondering if you still has the library.
    It is discontinued so I dont know how to get it.
    Thank you !

  • @VAMPROCK19
    @VAMPROCK19 3 ปีที่แล้ว

    Super broken English. You'd learn it.