Arduino Tutorial: 2.4" TFT Color Display ILI9341 240x320

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ก.พ. 2018
  • On this tutorial I show how to use with arduino the 2.2" or 2.4" 240x320 TFT color display with the ILI9341 driver.
    - Buy 2.4" TFT ILI9341: amzn.to/2YZzkT6
    - Buy Arduino nano: amzn.to/3iru0op
    Recommended Tools:
    - Electronic Parts Tester (ESR LCR-T4): amzn.to/2QvQJlP
    - Breadboard (good quality): amzn.to/2QsyY3C
    - Storage Case for Jumper Wire: www.walmart.com/ip/The-Hillma...
    - Multimeter (Fluke 17B+): amzn.to/2L3PNQk
    - Rigol DS1054Z Digital Oscilloscope: amzn.to/2C5ZwD7
    Note: As an Amazon Associate I earn from qualifying purchases.
    Example sketch using UCGLIB library: drive.google.com/open?id=1ipH...
    UCGLIB library: github.com/olikraus/Ucglib_Ar...
    Example sketch using Adafruit library: drive.google.com/open?id=11Z5...
    Adafruit library: github.com/adafruit/Adafruit_...
    GFX library: github.com/adafruit/Adafruit-...
    Website: www.interlinkknight.com/
    Patreon: / interlinkknight
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    haven't fully carried out your instructions but I recognize good info when I see it -- thanks!!

  • @BGLENN-dp4tx
    @BGLENN-dp4tx 4 ปีที่แล้ว +3

    Thank you for taking the time for this tutorial. Nice job.

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

    Thank you very much, I was thinking my LCD was burnt. I used your UCGLIB library and it worked. But the other one you made available didn't work on my LCD, I don't know why.
    big hug and congratulations

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

    I've just received a 2.2" version, so this will help me get started Thanks

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

    Works like a charm. Thanks a lot!

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

    thanks.. it worked perfectly.. thanks from Brazil

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

    thanks for the tutorial

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

    Thank you man!

  • @MrBobWareham
    @MrBobWareham 6 ปีที่แล้ว

    Thank you

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

    Wow many thanks, this is very well explain! As i finally start to understand how to show something.. How can we match a sensor or so to created a bar graph ? Like to move a potentiometer and have it move/increase a rectangle... ?

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

      Remap the sensor value with the value of the object in the display

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

    Gracias!! Es de gran ayuda

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

    Hi friend,
    At first thank you about this work, but I would like to tell you I have found way to eliminate the flicker issue with custom font through dealing with last valve and current valve by using if_statement.

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

      Do you mean that refreshing only when the value is different? That helps, but doesn't eliminate the flickering completely.

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

    Thank you so much! Can you do a tutorial on interfacing an LCD with an OSD?

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

      I don't understand your petition

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

      @@interlinkknight Sorry bad wording. Can you make a tutorial on the MAX7456 OSD (On Screen Display) to display information over the screen of a TFT LCD in one of your tutorials?

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

      I have many projects right now and I never used that display so I can't help you on that. Maybe someday

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

    Thanks a lot..., you're a crack!!!

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

    Good tutorial, well done. However the 2.4" screen you have does not have the touch screen components fitted

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

      How do you know that my 2.4" screen doesn't have the touch screen? It has the pins for that so I am assuming it does have touch screen. I just don't know how to make it work.

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

      There's no chip at U1

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

      Oh, you are right. I didn't pay attention to where those pins where going, but now that I see is obvious it goes to a place where it should be a chip. That explains why I could not get the touch screen to work. Thanks for letting me know.

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

      Nice video, as always!

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

      can you soder a chip on to it ?

  • @CONNIEMALAN
    @CONNIEMALAN 6 ปีที่แล้ว

    Hi
    Will you do a tutorial on touch feature?

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      No. My display didn't came with the touch screen IC so I can't

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

    thanks for tutorial!
    will it work on uno? i test it but i see just a white screen :(
    could it possible my lcd be damaged?

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

      The arduino nano is essentially an arduino uno so yes, my example works with arduino uno. Did you put the resistors?

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

      Mine did the same, ours not damaged maybe the code and yes i did put right resistors!

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

      @@NoajmIsMyName just wondering if you succeeded because I'm using arduino uno so I would like to know if it works

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

    What if i use 3.3v insted of 5v? Is it necessary to use resistors?

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

      In that case you would not need resistors

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

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

    Hello, the biggest tft 3.2" with the ili9341 processor, would it work normally? different only in size, OK ?

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

      Yeah. It would be slower to refresh, but that's arduino's fault

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

    why my lcd just white screen after uploading done ?

  • @user-mh8uz1xf1j
    @user-mh8uz1xf1j 5 ปีที่แล้ว

    Thanks. Is it any ways to make SPI-bus works faster. I am using modern 32 arduino-due,but displays works slow, is it any ways to change frequancy for spi bus. Thx sorry for my english.

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

      As far I know you can't change that.

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

      Try the ILI9341_DUE library, and make sure it's using SPI DMA mode. This library is faster than some others. marekburiak.github.io/ILI9341_due/

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

    Canțt you connect directly to 3.3v on the arduino?

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

    can we print .bmp or jpeg images onto the tft display?

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

    with the esp8266 is the same??? my screen is dark of my ili9341

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

      I've never use it with an ESP8266.
      Can you first test with an arduino uno/nano?

  • @josecomd
    @josecomd 6 ปีที่แล้ว

    How you refresh the screen?

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      You should take a look at my example sketch.

  • @PP-yg6ll
    @PP-yg6ll 4 ปีที่แล้ว

    i guess Ucglib.h not support ili9488 (only ili9486) ;( ?

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

    Hi, I am new in Arduino. I would like to build a multi functional dash for my paramotor. Would you be able to help me? Many thanks. Richard

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

      I wish I could, but I don't have enough time. I'm sure you can do it

  • @davidb8398
    @davidb8398 6 ปีที่แล้ว

    Hi sir. It does work touch screen on STM32?

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      Mine didn't came with touch screen capability.

    • @davidb8398
      @davidb8398 6 ปีที่แล้ว

      InterlinkKnight
      Thank you sir.! Is that STM32 mini module has condition for touch screen generally? Thank you once again!

    • @interlinkknight
      @interlinkknight  6 ปีที่แล้ว

      I don't know

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

    This display with touchscreen?

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

      And I have 2.8,it's can?

  • @RimYTT
    @RimYTT 25 วันที่ผ่านมา

    how to write in Cyrillic (Russian) using this library?

    • @interlinkknight
      @interlinkknight  25 วันที่ผ่านมา

      I have no idea

    • @RimYTT
      @RimYTT 25 วันที่ผ่านมา

      @@interlinkknight ok

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

    i get a lot of errors when i try to upload the code

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

      Maybe you have the wrong library

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

      @@interlinkknight it's the library from the link you posted on video description.

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

      I don't know. All I know it works for me. Clean your arduino installation, folders, etc. Use arduino uno or nano.

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

    DONT WORK

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

    Your examples won't download.3-12-2019

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

      I just try it and works. Maybe you had a temporary problem. Check again.

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

      @@interlinkknight Yes, this time it downloaded, thanks.

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

      So after installing your example into the arduino IDE, I installed your library ver 1.5.2. I am trying to use an Arduino mini-pro 3.3v to avoid level changing. When I try to upload the sketch I get the following:
      Arduino: 1.8.7 (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328P (3.3V, 8 MHz)"
      Sketch uses 22928 bytes (74%) of program storage space. Maximum is 30720 bytes.
      Global variables use 314 bytes (15%) of dynamic memory, leaving 1734 bytes for local variables. Maximum is 2048 bytes.
      avrdude: verification error, first mismatch at byte 0x0071
      0x8d != 0x18
      avrdude: verification error; content mismatch
      avrdude: verification error; content mismatch
      I'm not sure what this means, can you help? Thanks

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

      This time I installed library ver 1.4.0 with the following errors:
      WARNING: library Ucglib claims to run on (all) architecture(s) and may be incompatible with your current board which runs on (avr) architecture(s).
      C:\Users\flagt\Documents\Arduino\libraries\Ucglib\src\clib\ucg_circle.c: In function 'ucg_draw_disc_section.constprop':
      C:\Users\flagt\Documents\Arduino\libraries\Ucglib\src\clib\ucg_circle.c:160:1: internal compiler error: Segmentation fault
      }
      ^
      Please submit a full bug report,
      with preprocessed source if appropriate.
      See for instructions.
      lto-wrapper.exe: fatal error: C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc returned 1 exit status
      compilation terminated.
      c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed
      collect2.exe: error: ld returned 1 exit status
      exit status 1
      Error compiling for board Arduino Pro or Pro Mini.

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

      Sorry but I don't know.

  • @Mr.Leeroy
    @Mr.Leeroy 4 ปีที่แล้ว

    lol your 2.4" module clearly is missing a touch IC, no wonder you do not know how it works..

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

      Yeah, I noticed that after making the video

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

      My screen is same as yours - without touch controller. Is it possibile to upgrade it by some soldering?