Arduino-friendly 240x320 LCD Display Tutorial (ILI9341)

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 พ.ค. 2024
  • In this video I'll give an overview and programming tutorial for these handy little 240x320 color LCD displays. These things are great for IoT device interfaces or homebrew portable gaming and are compatible with almost every major microcontroller or SBC out there.
    Mine came from HackerBoxes (which you should totally go check out) but you can find these screens from all kinds of sources online.
    /* HackerBoxes 0027 */
    Previous video: • HackerBox 0027 CypherP...
    Box: hackerboxes.com/collections/p...
    /* ILI9341 */
    Datasheet: cdn-shop.adafruit.com/datashe...
    Adafruit Library: github.com/adafruit/Adafruit_...
    Espruino Library: www.espruino.com/ILI9341
    /* ESP32 */
    DevKitC: www.espressif.com/en/products...
    /* Espruino */
    WiFi: www.espruino.com/WiFi
    /* Credits */
    Microphone for this video was provided by Samson Technologies
    www.samsontech.com/samson/prod...
    #Arduino #ESP32 #Espruino
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @fastslash25
    @fastslash25 4 ปีที่แล้ว +5

    out of all of the tutorials for this, this one was the only one I could understand! well done!

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

    Hi! The format of the video is great. Congratulations ! Good job !

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

    I was looking for a tutorial like this to make my display work. And it made it, thank you.

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

    Really, really, realllllly helpful for me at the right time.
    Very cool explanation.
    Thanks a lot.

  • @Kyle-ye4nj
    @Kyle-ye4nj 5 ปีที่แล้ว +6

    Excellent tutorial!

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

    Connect the LED pin to a 0-3.3V DAC to vary the brightness of the backlight. Teensy has a 12 bit DAC built in that works well for this.
    Note that some of these "ILI9341" displays actually don't work with the ILI9341 library; however they do work work the ILI9340 library instead.

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

    Thanks for the video, I'm trying to use this display first with arduino to make a badge-like thing , and when I learn a little more with the ESP32

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

    Nice walk thru!

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

    Awesome tutorial....thank you.

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

    You can use GEANY for open/edit/save c/cpp/h/hpp and many other formats instead of MS.

  • @facts-nuk
    @facts-nuk 4 ปีที่แล้ว

    Awesome Video

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

    Nice video, one thing you mentioned SPI being slow... Does not have to be, on a Teensy 3.2 or 3.6 these displays can update really fast with the hardware optimized library. I used it a year or two ago and was impressed.

    • @NamasenITN
      @NamasenITN 7 หลายเดือนก่อน +1

      I confirm this. Here is a demo where a relatively high refresh rate is used for (some sort of) spectrum analysis in real time - th-cam.com/video/0r5KmFLbN90/w-d-xo.html

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

    Great video Davy.
    Do you have any video for ESP32 with 3.5" ILI9486 TFT LCD shield?
    I have this LCD shield, but I'm struggling with wiring of LCD shield.

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

    When I run the fillScreen command, the LCD only paints a portion of the screen - looks like a square - rather than a rectangle (I have the 2in 240x320 pixels LCD Module). Any idea what I am doing wrong? Or is this a defective piece of hardware?

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

    thank you!

  • @s.m.yusefmirmohamady9581
    @s.m.yusefmirmohamady9581 2 ปีที่แล้ว

    very very good and usefull for me,
    thank you so much

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

    Davy is very good at making easy to understand tutorials. I bought a matching screen and was able to get everything working the first time. I am using it to display Time, Day, Date, Temperature and Altitude. All the time and $$ spent only to find out that there is no way to overwrite text. for example when the minute changes on the clock it just writes over the previous number without erasing it first leaving behind a jumbled mess. What am i missing? is there any solution to this problem? Adafruit just says to overwrite the text location with a rectangle of the background color however that works but leaves the text flashing.

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

    In the sketch, set.Rotation etc does not turn Red.
    Yours shows in Red but mine has remained Black lettering.
    It verifies ,compiles and uploads without errors but I don’t see anything on the ILI9341 screen.
    Please can you help.
    Also can you tell me how I can see the program run on the serial monitor.

  • @55Makk
    @55Makk 3 ปีที่แล้ว

    Very very nice

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

    Could you make a tutorial for the touch aspect of the screen?

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

    gee... what a wonderful video.... this is something that i have not checked out to see how these little screens function... there is an old but nice milling machine that runs on Windows-(C). so is there a way to do some research on how to update the old non-working touch-screen to something like this and stay with windows-C? Thanks a lot...:)

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

    Can you use these to playback video files off the SD card storage? If so, could you use an Arduino simply for playback control (for instance, to advance to the next video file when a sensor is triggered), rather than to generate the video itself and send it over SPI? I'm looking for a way to do simple playback from and SD card using an Arduino (not a Pi) on a small-scale display. Thanks!

  • @jedandecko5585
    @jedandecko5585 5 ปีที่แล้ว

    Nice one, tnx. Can y maybe explain how to work with pictures?

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

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

    On such a display, the letters are inverted
    horizontally by 180 degrees (that is, the entire
    display screen). I have tried many libraries, but
    there is no result. Advise me where to dig?????

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

    does anyone tell you that you sound like the guy that makes the "daily dose of Internet" videos

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

    Helpful. I'm trying to get this screen to work on esp32s.
    No luck so far so will.give yours a try go raw and see if it happens for me..
    Trying to get i2c data to display charts on a screen. Four variables... Like it's easy... Right.. nope.

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

    As of writing this i am having an issue. My LCD is still white. Not that the lcd is bad, its a well reviewed lcd, a Hiletgo tft spi v1.2. But yet nothing is working. I really would appreciate some help here

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

    how can we do speeding of screen by using this adafruit library . plz tell me

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

    Is that an SD card holder on the back?

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

    anyone help me get an stm32f103 blue pil M3l.... or Black pill M4 going with one of these screens...

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

    can i do that with arduino uno ?

  • @Jones12ax7
    @Jones12ax7 5 ปีที่แล้ว

    I was trying with St7735 and I got much faster results using hardware SPI instead of software SPI on ESP32. I guess it will true for this model too. Mine will arrive next week and I tell you the results

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

      any results yet? I am intrested in the capabilities of these. I just managed to grab one off of ebay for free but it arrives in 2 months lol. I will be trying to make a "gaming calculator" with it (every bored teenagers dream)

    • @Jones12ax7
      @Jones12ax7 5 ปีที่แล้ว

      @@MineThing It worked very well with Adafruit and Hardware SPI. It's really fast! I used the following pins: IO18 for SCK, IO19 for MISO and IO23 for MOSI. It must be these ones because of the hardware SPI. The DC and CS can be any other. On Arduino, declare the lib object likes this, omitting the hardware pins:
      Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
      Let me know if I can help. Good luck!

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

    ESP - Micropython playlist, pls 🙏

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

    Damn! Why is so slow? It's the LCD or the library?
    I have an 8bit LCD and run faster with a slow 8bit microcontroller; with that processor should run faster.
    I saw the same ESP with a bigger display and fill the whole LCD faster.
    I think the problem is the library.

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

      I saw this too. I think it's because the badly optimized library.

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

      @@fseeletronicos Must be that. Such processor running at 160MHz should handle a small LCD very easy.

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

      @@RDCSTYeap. It's like having a Ferrari and trying to run fast with 1ton weight behind.

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

      this TFT have only SPI, 10MHz

  • @Lee.Davis_onesandzeros
    @Lee.Davis_onesandzeros 2 ปีที่แล้ว

    Hello I really would like to get in touch with you I am I'm willing to pay you just for an hour of conversation I have so many questions

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

    The downvote was for "LCD display".