Arduino Tutorial: 2.4" TFT Color Display ILI9341 240x320
ฝัง
- เผยแพร่เมื่อ 26 ก.ย. 2024
- 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.co...
- 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.c...
UCGLIB library: github.com/oli...
Example sketch using Adafruit library: drive.google.c...
Adafruit library: github.com/ada...
GFX library: github.com/ada...
Website: www.interlinkk...
Patreon: / interlinkknight
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
Super funny I have experienced the same thing!!
I've just received a 2.2" version, so this will help me get started Thanks
Cool. Good luck
Good luck, let me know if you need help!
haven't fully carried out your instructions but I recognize good info when I see it -- thanks!!
Thank you for taking the time for this tutorial. Nice job.
Works like a charm. Thanks a lot!
thanks for the tutorial
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.
Do you mean that refreshing only when the value is different? That helps, but doesn't eliminate the flickering completely.
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... ?
Remap the sensor value with the value of the object in the display
great vid mate
Thanks
Good tutorial, well done. However the 2.4" screen you have does not have the touch screen components fitted
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.
There's no chip at U1
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.
Nice video, as always!
can you soder a chip on to it ?
Gracias!! Es de gran ayuda
De nada.
Thank you man!
Thank you so much! Can you do a tutorial on interfacing an LCD with an OSD?
I don't understand your petition
@@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?
I have many projects right now and I never used that display so I can't help you on that. Maybe someday
What if i use 3.3v insted of 5v? Is it necessary to use resistors?
In that case you would not need resistors
why my lcd just white screen after uploading done ?
how to write in Cyrillic (Russian) using this library?
I have no idea
@@interlinkknight ok
This display with touchscreen?
And I have 2.8,it's can?
Thank you
Thanks a lot..., you're a crack!!!
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?
The arduino nano is essentially an arduino uno so yes, my example works with arduino uno. Did you put the resistors?
Mine did the same, ours not damaged maybe the code and yes i did put right resistors!
@@NoajmIsMyName just wondering if you succeeded because I'm using arduino uno so I would like to know if it works
i guess Ucglib.h not support ili9488 (only ili9486) ;( ?
with the esp8266 is the same??? my screen is dark of my ili9341
I've never use it with an ESP8266.
Can you first test with an arduino uno/nano?
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.
Maybe add pull up resistors? Maybe 5k
@@interlinkknight Ok, I will try it. Thank you!!
Hi
Will you do a tutorial on touch feature?
No. My display didn't came with the touch screen IC so I can't
Hello, the biggest tft 3.2" with the ili9341 processor, would it work normally? different only in size, OK ?
Yeah. It would be slower to refresh, but that's arduino's fault
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.
As far I know you can't change that.
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/
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
I wish I could, but I don't have enough time. I'm sure you can do it
can we print .bmp or jpeg images onto the tft display?
There's a way, but I don't know how
Canțt you connect directly to 3.3v on the arduino?
I don't understand your question
How you refresh the screen?
You should take a look at my example sketch.
Hi sir. It does work touch screen on STM32?
Mine didn't came with touch screen capability.
InterlinkKnight
Thank you sir.! Is that STM32 mini module has condition for touch screen generally? Thank you once again!
I don't know
i get a lot of errors when i try to upload the code
Maybe you have the wrong library
@@interlinkknight it's the library from the link you posted on video description.
I don't know. All I know it works for me. Clean your arduino installation, folders, etc. Use arduino uno or nano.
DONT WORK
Your examples won't download.3-12-2019
I just try it and works. Maybe you had a temporary problem. Check again.
@@interlinkknight Yes, this time it downloaded, thanks.
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
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.
Sorry but I don't know.
lol your 2.4" module clearly is missing a touch IC, no wonder you do not know how it works..
Yeah, I noticed that after making the video
My screen is same as yours - without touch controller. Is it possibile to upgrade it by some soldering?