Тёмный

2.4" MCUFRIEND TFT Shield for Arduino UNO R3 | From ICStation.com 

Hugatry's HackVlog
Подписаться 6 тыс.
Просмотров 60 тыс.
50% 1

UPDATE: Current version of the library has support for ILI9342. Just uncomment line #define SUPPORT_9342, by removing two forward slashes.
This TFT shield has a display which includes ILI9342 controller. In this video I will go through the steps needed to make this shield work with Arduino Uno or other compatible boards.
Libraries that are needed for the display (can be installed using Library Manager on Arduino IDE):
github.com/prenticedavid/MCUF...
github.com/adafruit/Adafruit-...
Code in this message should be added to MCUFRIEND_kbv.cpp file (it's in the library's folder):
forum.arduino.cc/index.php?to...
Correct place for that code is inside the "switch" that starts at line 820, in the begin-function. Copy pasting that code right after the line 820 should work.
Library needed for the touch, needs to be downloaded and moved to the folder that includes your Arduino libraries.... Rename the folder that is in ZIP file to "TouchScreen":
github.com/adafruit/Touch-Scr...
The display was sent to me y ICStation.com and I didn't need to pay for it.
"2.4inch TFT Touch Screen Shield for Arduino UNO R3":
www.icstation.com/24inch-touch...
COUPON:
Code: hhics
Discount Amount: 18% off
Max Use: 1 (one for per user)
Amount Limit: 100
If you liked the video, please show it and hit the Like-button!
Check out my other videos:
/ hugatry
Subscribe:
ru-vid.com?...

Наука

Опубликовано:

 

18 май 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 70   
@icuderby5486
@icuderby5486 4 года назад
Thank you so much. I have been unable to get this display to work for years. but with your clear instructions it worked at the first attempt. big thumbs up
@Hackvlog
@Hackvlog 4 года назад
I know the feeling... I’m glad you found my video useful!
3 года назад
FINALLY! I can use my TFT now! Been years! THANKS!!!
@johnmellor6065
@johnmellor6065 6 лет назад
You really helped me get past a massive problem in getting my tft to work. very grateful
@ICStation2013
@ICStation2013 7 лет назад
Thanks for your awesome video, looking forward to your more awesome projects.^0^
7 лет назад
Yeah, really good project :D
@marcotulio-analogchannel306
@marcotulio-analogchannel306 5 лет назад
Thanks! It worked for (ID = 0x4532) with UNO and MEGA boards.
@aqilahzainuddin4248
@aqilahzainuddin4248 6 лет назад
IT WORKS! THANK YOU!
@sayantanmaiti2513
@sayantanmaiti2513 7 лет назад
really really thanks you my friend ...the awesome stuffs is running....real thanks my bro..real thanks.
@Hackvlog
@Hackvlog 7 лет назад
You're welcome!
@kasparsfolkmanis
@kasparsfolkmanis 3 года назад
Thank you very much! It really works now! :)))
@googleuser6875
@googleuser6875 5 лет назад
I just received a 2.4 inch display and tried to get it going on the Uno. There's not much on the board to identify it but it is a Mcufriend display. It simply had printed on the back of the board "www.mucfriend.com" "tftlcd for arduino uno (spiflash). After installing the needed libraries, running graphictest gives white screen, serial port output reports: Serial took 0ms to start ID = 0xC0C0 That's it and the screen stays white. Is there some configuration I have to do or is this screen not supported? Looking at the text file for the library, I don't see that Id as being supported. At this point I'm lost. Any help greatly appreciated.
@rushipatel5085
@rushipatel5085 5 лет назад
I am trying to upload the graphictest_kbv but when upload the IDE says "Sketch uses 34,054 bytes (105%) of program storage space. Maximum is 32,256 bytes." which is hilarious :p. Please help me with this.
@RyanUptonInnovator
@RyanUptonInnovator 5 лет назад
Can you get to work with raspberry pi zero?
@kaievardone
@kaievardone 4 года назад
can you help me about fixing the white screen on my tft screen? Appreciate it!
@Vitaliy1669
@Vitaliy1669 6 лет назад
thanks good
@cj_cejota
@cj_cejota 6 лет назад
Thank you very much, you helped me a lot! I have a questsion, do you know how to fix that on screen i see mirror image?
@Hackvlog
@Hackvlog 6 лет назад
Glad to hear that! The code that I told to add in the file MCUFRIEND_kbv.cpp has a line starting with "_lcd_capable". In that line, remove "INVERT_GS" and "|" either before OR after it. That should mirror the display.
@AmoghSrivastava
@AmoghSrivastava 4 года назад
@@Hackvlog This worked! Thanks :D
@oscaroteroes
@oscaroteroes 5 лет назад
Can this screen together with an Arduino UNO show a simple web page?
@eighta
@eighta 4 года назад
Really?
@ecosiabing4528
@ecosiabing4528 5 лет назад
this video was really useful but how to connect any sensor with this screen there's no empty pin ?
@Hackvlog
@Hackvlog 5 лет назад
The free A5 pin could be accessed using stackable shield between this display shield and the Arduino board. Other option is to solder wires to the A5 pin of this module. I know it's not elegant solution, but it would work.
@Zambezoni
@Zambezoni 3 года назад
You can use Arduino Mega. It is 100% compatible and also very afordable. Lot of PINs are on your dispose. This shield goes in without any problem.
@syedmuhammadtalha2484
@syedmuhammadtalha2484 7 лет назад
how to display bitmaps(images) from SD Card using mcufriend library could you help i am having trouble with reading images from Sd Card
@Hackvlog
@Hackvlog 7 лет назад
Hi. If you haven't already, you can check example showBMP_kbv_as7 that comes with the library and see if that works. I haven't tried it and can't try it at the moment, but to me it seems like it tries to show bitmap that is located in "bitmaps"-folder and has "tiger" and ".bmp" in the filename. Here is the example sketch, in case you don't see it in your Arduino IDE: github.com/prenticedavid/MCUFRIEND_kbv/blob/master/examples/showBMP_kbv_as7/showBMP_kbv_as7.ino
@syedmuhammadtalha2484
@syedmuhammadtalha2484 7 лет назад
thank you problem solved........
@ArmandoEscobarGonzalez
@ArmandoEscobarGonzalez 6 лет назад
GRACIAS
@kavithakonda9602
@kavithakonda9602 6 лет назад
i am using arduino id 0x5408 software and mcufriend library. tftlcd display is shows that mirror text .then what can i do . please send replay
@Hackvlog
@Hackvlog 6 лет назад
Try using "tft.begin(0x9320);" instead of "tft.begin(ID);" in your sketch. I've heard that the fix for this problem will be updated to the library at some point, but I don't know when. But until then, using "tft.begin(0x9320);" should work.
@sheikmohamed2461
@sheikmohamed2461 6 лет назад
for me duplicated 2 times, how do i fix it?
@Meteorboy
@Meteorboy 6 лет назад
can u help ? i get ID = "0xD3D3" which one i should uncomment ?
@jumbo999614
@jumbo999614 4 года назад
Got the same ID. Always show white screen no matter which sample sketch i run.
@spezidrohne9580
@spezidrohne9580 3 года назад
When i compile it, it says: Unable to compile for board arduino Uno Can someone help me??
@TheKetsa
@TheKetsa 7 лет назад
Plug and play ... but you lose access to all the pins. I don't get it.
@Hackvlog
@Hackvlog 7 лет назад
There is touch screen for input and serial (via the USB-to-serial -converter) for IO. Only one pin, A5, can be very limiting depending on the application. For some applications touch screen and serial over USB is all that is needed. On the other hand (if I'm not wrong) if microSD isn't used, one could use stackable shield under this display shield and make use of pins 10-13 as well. But I see your point, this display shield can limit the possibilites when it comes to adding hardware to the project.
@sayantanmaiti2513
@sayantanmaiti2513 7 лет назад
can we attach any sensor to the arduino along with this display?
@Hackvlog
@Hackvlog 7 лет назад
The pin A5 isn't used by this shield and you should be able to use that pin for attaching sensors. Pins D10-13 are, as far as I know, only used by the microSD slot. If you don't use microSD card you could use those pins aswell. At least in theory, it should be possible.
@sayantanmaiti2513
@sayantanmaiti2513 7 лет назад
Thanks bro..that will help.....please make a future video about making a photo frame with this module and SD card
@sayantanmaiti2513
@sayantanmaiti2513 7 лет назад
I also experimented it after what you said..I found that the TX RX and 10-13 are also unused..hence this is going to be very interesting..we could attach devices like HC05 also!!! Just we need some jumpers to connect the pins for the TFT
@boonware
@boonware 4 года назад
@@sayantanmaiti2513 Hi, dod you try attaching a HC-05? I am not trying to do the same. How did you find out that 10-13 are unused??
@sayantanmaiti2513
@sayantanmaiti2513 4 года назад
@@boonware I will suggest if you follow my instructable link here it will help you www.instructables.com/id/LCD-Weather-Monitor/ and 10-13 are spi pins ,they are only used when you use the SD card in the display module, otherwise those remain free
@Ahmadnaweed786
@Ahmadnaweed786 6 лет назад
mine says: Serial took 0ms to start ID = 0x4532 this is included in the library but still white screen.
@Hackvlog
@Hackvlog 6 лет назад
You need to uncomment the line (remove two forward slashes) "//#define SUPPORT_4532" in the file MCUFRIEND_kbv.cpp. It's line 6, at least in the latest version.
@Ahmadnaweed786
@Ahmadnaweed786 6 лет назад
Ok, what if the others remain uncommented? will that cause an error?
@Hackvlog
@Hackvlog 6 лет назад
Leaving other "SUPPORT_****" lines commented should not cause any errors, as far as I know.
@Ahmadnaweed786
@Ahmadnaweed786 6 лет назад
how do I edit .cpp file?
@Hackvlog
@Hackvlog 6 лет назад
Using a text editor like wordpad (comes with windows) or Notepad++.
@rohanshevade1807
@rohanshevade1807 5 лет назад
Can i use this shield and code with arduino mega 2560? (I'll use the same pins and make connections using jumper wires!)
@Hackvlog
@Hackvlog 5 лет назад
I'd guess you can, but I'm not sure.
@eighta
@eighta 4 года назад
Yes, and works
@IMBL_Tech
@IMBL_Tech 7 лет назад
is can we show the portrait display on 0x9342 tft lcd there is only display is land scape can any one help me for change display in portrait form...
@Hackvlog
@Hackvlog 7 лет назад
It is true, 0x9342 is in landscape mode by default. You can use "tft.setRotation(1);" to rotate the display 90 degrees. Try changing the value between 0, 1, 2, 3 and see which orientation is the one you want.
@IMBL_Tech
@IMBL_Tech 7 лет назад
i try but rotation was not changing
@IMBL_Tech
@IMBL_Tech 7 лет назад
Thank u dear...
@Hackvlog
@Hackvlog 7 лет назад
Hi, the setRotation -function should be called before drawing/writing. It will not affect things that have already been drawn on the display. If you first call tft.setRotation(1) and THEN start drawing to the display, display is in portrait mode. Hope this helped. Good luck with your project! :)
@IMBL_Tech
@IMBL_Tech 7 лет назад
Thank u realy correct... issu has been solved by your trick... Thnx again
@user-ey7nq3ii5n
@user-ey7nq3ii5n 6 лет назад
Can u any one help? I get code like this "Serial took 0ms to start ID = 0x6767 "
@Hackvlog
@Hackvlog 6 лет назад
In library's main source file, MCUFRIEND_kbv.cpp, there is line that starts with "//#define SUPPORT_8347D ". It's very close to the beginning of the file... Line 11 or something like that. Remove the two forward slashes. That should do the trick.
@user-ey7nq3ii5n
@user-ey7nq3ii5n 6 лет назад
Thanks
@prasanthkrishnan2925
@prasanthkrishnan2925 6 лет назад
i get code like this"Serial took 0ms to start ID = 0x4646 "
@Hackvlog
@Hackvlog 6 лет назад
Sorry, don't know how to get that working. There are no references to that ID in the library, like there was to the 0x4747. I have no idea what display controller has that ID, so I can't even point you to another library :(
@brindhasrinivasan7768
@brindhasrinivasan7768 4 года назад
Getting below message controller is unknown with 00 00 Read Registers on MCUFRIEND UNO shield controllers either read as single 16-bit e.g. the ID is at readReg(0) or as a sequence of 8-bit values in special locations (first is dummy) reg(0x0000) 00 00 ID: ILI9320, ILI9325, ILI9335, ... reg(0x0004) 00 99 99 00 Manufacturer ID reg(0x0009) 00 00 61 00 00 Status Register reg(0x000A) 00 08 Get Power Mode reg(0x000C) 00 66 Get Pixel Format reg(0x0061) 00 00 RDID1 HX8347-G reg(0x0062) 00 00 RDID2 HX8347-G reg(0x0063) 00 00 RDID3 HX8347-G reg(0x0064) 00 00 RDID1 HX8347-A reg(0x0065) 00 00 RDID2 HX8347-A reg(0x0066) 00 00 RDID3 HX8347-A reg(0x0067) 00 00 RDID Himax HX8347-A reg(0x0070) 00 00 Panel Himax HX8347-A reg(0x00A1) 00 00 00 00 00 RD_DDB SSD1963 reg(0x00B0) 00 00 RGB Interface Signal Control reg(0x00B4) 00 00 Inversion Control reg(0x00B6) 00 00 00 00 00 Display Control reg(0x00B7) 00 00 Entry Mode Set reg(0x00BF) 00 00 00 00 00 00 ILI9481, HX8357-B reg(0x00C0) 00 00 00 00 00 00 00 00 00 Panel Control reg(0x00C8) 00 00 00 00 00 00 00 00 00 00 00 00 00 GAMMA reg(0x00CC) 00 00 Panel Control reg(0x00D0) 00 00 00 Power Control reg(0x00D2) 00 00 00 00 00 NVM Read reg(0x00D3) 00 00 32 29 ILI9341, ILI9488 reg(0x00D4) 00 00 00 00 Novatek ID reg(0x00DA) 00 99 RDID1 reg(0x00DB) 00 99 RDID2 reg(0x00DC) 00 00 RDID3 reg(0x00E0) 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 GAMMA-P reg(0x00E1) 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 GAMMA-N reg(0x00EF) 00 00 00 00 00 00 ILI9327 reg(0x00F2) 00 00 00 00 00 00 00 00 00 00 00 00 Adjust Control 2 reg(0x00F6) 00 00 00 00 Interface Control
@prasanthkrishnan2925
@prasanthkrishnan2925 6 лет назад
Can u any one help ? i get code like this"Serial took 0ms to start ID = 0x4747 "
@Hackvlog
@Hackvlog 6 лет назад
Library's file MCUFRIEND_kbv.cpp has line "//#define SUPPORT_8347D" near the top... Uncomment that by removing "//", save the file and then compile + upload the sketch again. That should fix it.
@prasanthkrishnan2925
@prasanthkrishnan2925 6 лет назад
Thank you so much @Hugatry's HackVlog, I got the Output.
Далее
Сравнили apple и xiaomi!
0:21
Просмотров 47 тыс.
Здесь упор в процессор
18:02
Просмотров 216 тыс.