ILI9341 SD card or other problems with ESP32? Try this.

Ғылым және технология

A quick rough and ready one take video of a solution to a problem I had when I had several components on my board and a "as delivered" ILI9341. Until the extra components went on everything was fine, then it wasn't.... Here's my solution to the problem.
Affiliate links for the items shown: Clicking these costs you the same price but gives me a small commission, please consider supporting this channel by using them :)
ILI9341 screen : amzn.to/2PWDcVG
For other projects and ideas see :
Web : www.xtronical.com
If you'd like to support me via Patreon then the link is below and that would be just amazing. Patreons have access to all videos early plus can view all the posts on Patreon. There are other rewards if you're interested. If you just want to watch videos then that's also fantastic because without people viewing I wouldn't even do half of what I do. So thanks very much :)
Patreon at : / xtronical
I also do Kofi (Coffee) if you want to tip me for a brew! : ko-fi.com/xtronical
Credits
Intro/Outro Music by Creo Music : www.creo-music.com

Пікірлер: 58

  • @paulearleyyt
    @paulearleyyt Жыл бұрын

    This was just what I needed! Thanks for this quick but, as always, clear video!

  • @XTronical

    @XTronical

    Жыл бұрын

    That's very kind, thank you

  • @SebastianMusil
    @SebastianMusil Жыл бұрын

    Man, thank you. This saves my day. I was sure i had done my wiring right... But the touch only works sometimes or after along while powered up. With this tweak my application works flawlessly! Big thumbs Up!

  • @MrBobWareham
    @MrBobWareham8 ай бұрын

    Nice info, well done, and thanks for the heads-up will save a lot of time.

  • @softwarepole
    @softwarepole3 жыл бұрын

    My man! That was it. I've been playing with those screens on stm32 and raspberry pi for some time now, just tried to use SD card reader for the first time and the screen crashed. My guess was that the spi on both are somehow shared and I can't talk to it with two SPI on my mcu at different speeds. BUT! Then I found this, soldered the jumper and it works! BIG THANKS!

  • @geoffw.5003
    @geoffw.50033 жыл бұрын

    Great info, thanks for sharing

  • @victororo462
    @victororo4623 жыл бұрын

    Wow! Very awesome! I'm just starting with the ESP32. And I'm now learning and having to do new things. Arduino was straight forward. But the ESP32 you gotta go a little further. But this would have made me give up. Very good to know! I just got the ILI9341 up and running with the demos. Thanks for the video!

  • @XTronical

    @XTronical

    3 жыл бұрын

    Your welcome, thanks for the feedback

  • @brianharper9798
    @brianharper97984 жыл бұрын

    Trying to remember but I think I've only ever used the tft screens on 3.3v boards the Due, Teensy and ESP's. Didn't even notice if there was a jumper on my display. I'm really enjoying playing with the ESP32. Keep up the good work......

  • @XTronical

    @XTronical

    4 жыл бұрын

    Thank you, appreciated, I love the esp32, my favourite

  • @b0bjedump
    @b0bjedump4 жыл бұрын

    Thanks for sharing!! Pretty sure I have had this issue and even trashed a screen because I thought it was faulty.

  • @XTronical

    @XTronical

    4 жыл бұрын

    Oh no,least future screens might be saved 😁

  • @davidburke52
    @davidburke524 жыл бұрын

    Brilliant!!! I was experiencing issues.. will try this tomorrow. Thanks

  • @XTronical

    @XTronical

    4 жыл бұрын

    Fingers crossed. Let me know how you get on, what were the issues, was it the SD card like mine?

  • @davidburke52

    @davidburke52

    4 жыл бұрын

    @@XTronical yes. Kept reporting no SD card mounted randomly.. I was PWM the lcd light. That was causing voltage fluctuations I guess. Not had it happen since shorting the j1

  • @XTronical

    @XTronical

    4 жыл бұрын

    Brilliant

  • @ahmedmoustafa6829
    @ahmedmoustafa6829 Жыл бұрын

    Perfect solution I will try it

  • @jrhitokiri
    @jrhitokiri Жыл бұрын

    Thanks for sharing! I was using an ST7796 and was pulling my hair out as to why the SD Card wasn't working even if I had your code in another video copied. This was what I was missing!

  • @XTronical

    @XTronical

    Жыл бұрын

    Great when something helps.

  • @paulhoshovsky877
    @paulhoshovsky8772 ай бұрын

    Thanks for the video. To recap. The ESP32 VIN is 5VDC. I connect the 3.3 VDC (pin 16) to the IL19341 VCC pin. With this power supply arrangement, both the display and the touch screen work correctly. I have had erratic results with the SD card. Sometimes, the JPG files are displayed correctly and other times nothing is displayed. Does the SD require 5VDC? Thanks

  • @spartansrj8128
    @spartansrj81283 ай бұрын

    I have the marauder installer on my esp32, I use this tft screen, but I always get a message, I don't initialize the sd card

  • @1over137
    @1over137 Жыл бұрын

    I have also been told if you are using the SDCard on 3.3V you want to remove the resistors R1, R2, R3 as they are there to protect the SDCard from 5V SPI and will interfere with 3.3V SPI.

  • @XTronical

    @XTronical

    Жыл бұрын

    Really, that's interesting. Never had problems but if I do will give it a go.

  • @peut
    @peut4 жыл бұрын

    These "standard"breakout boards are a bit annoying to use with 3.3V devices. Question: Is the big flat chip (U2 on the big screen) a level shifter?

  • @XTronical

    @XTronical

    4 жыл бұрын

    It's the xpt2046, a touch screen controller. Had to get my magnifier out!

  • @haxxy40
    @haxxy404 жыл бұрын

    Do these screens have logic level conversion for the sdcard data pins in case you power them with 5V? I never used the sdcard because I don't think they do

  • @XTronical

    @XTronical

    4 жыл бұрын

    Mmmm.... You may be right I've never investigated, I'm not near one right now. I'll try to remember to see if I can see tomorrow.

  • @Rubiniuz
    @Rubiniuz Жыл бұрын

    Hey Xtronical, using our videos I have been able to fill the screen via code. i have the same display but with backlight support. aka the ST7789V driver. I updated my User setup to make it work. but now I also bridged the gap between the joints but when i insert a sd card my esp disconnects from the pc. do you have any idea as to why? P.S. having it not bridged makes it so that i cant mount an sd card

  • @Rubiniuz

    @Rubiniuz

    Жыл бұрын

    extra info. I grabbed my second display which is the same and not bridged. when I insert the sd card the screen goes black

  • @facumunoz9478
    @facumunoz94782 жыл бұрын

    Hello, me again, sorry, the 2.4'' screen did not work so I decided to buy the 2.8'' the same as yours. Now on the serial monitor I get "Card Mount Failed", do you know what could be the problem?

  • @XTronical

    @XTronical

    2 жыл бұрын

    Did you try the hardware mod suggested on the back of the board to basically disable the voltage regulator on the screen? Also check your size of memory card. There's a max limit, think it's 32gb, could be 16, can't quite remember. Fairly sure 32. Bigger than this and won't work. I tend to use 8gb cards. Nice and cheap.

  • @1over137
    @1over137 Жыл бұрын

    Note as well ... not all of these have the touch control chip. Your small one doesn't. The large one does.

  • @johnvine5731
    @johnvine5731 Жыл бұрын

    I'm confused here! The VCC voltage was not mentioned. I have an ESP-32 dev board. I have connected the 5V pin on the dev board to VCC on the ILI9341 board. Were you connecting 3.3V or 5V to the VCC pin on the ILI9341 board. Thanks.

  • @XTronical

    @XTronical

    Жыл бұрын

    3.3v pin to ili9341, sorry for any confusion

  • @johnvine5731

    @johnvine5731

    Жыл бұрын

    @@XTronical No problem, thanks for replying. And thanks very much for your videos.

  • @akalankashani9907
    @akalankashani99072 жыл бұрын

    May I know if two esp32 can be connected to one sd card? If so, how to connect it? Please help me know about it.

  • @XTronical

    @XTronical

    2 жыл бұрын

    Yes, it could be done. But would require some form of communication between the two to ensure they don't access at the same time. Doable but not trivial.

  • @danilocarrara7494
    @danilocarrara74945 ай бұрын

    Man, thanks a Lot! I was checking and rechecking all 😅! I would like to aski something: I was trying to use another esp32 gpios like: SD_CS = GPIO32 SD_MOSI = GPIO33 SD_MISO = GPIO25 SD_SCK = GPIO26 I have initialized all without any problems, but esp32 could not run the firmware after i flashed it. It's work just if I force a reboot from button dev kit. I was wondering why it's happened. If I use the default gpio communications, with SPI, works all fine.

  • @XTronical

    @XTronical

    5 ай бұрын

    I double checked those gpios and can't see any problems. I did have a problem a few weeks ago where I couldn't upload and switch some connections around and all worked fine but I can't remember what the connections were. Sorry can't be more helpful

  • @cb900c
    @cb900c Жыл бұрын

    The Gold Nugget" here:" 1:17

  • @mohammadm.7477
    @mohammadm.74773 жыл бұрын

    I am using these on DUE which is 3.3v by default,should I still modify this?, the SD card does not initialize currently, while I have connected screen and SD card to SPI pins and CS 4,10 pins of DUE,and use SPI.begin(4) and for 10,but does not work.

  • @XTronical

    @XTronical

    3 жыл бұрын

    If you are powering the screen with that 3.3v then yes, you should do the alt.

  • @mohammadm.7477

    @mohammadm.7477

    3 жыл бұрын

    @@XTronical Thanks for your reply no it is connected to 5V of Due's SPI, Main LCD to SPI1 and SD to the extended SPI, but whatever I tried,card does not initialize

  • @XTronical

    @XTronical

    3 жыл бұрын

    I'm not familier with the DUE, are you sure the spi runs at 5v? Sorry I can't help more.

  • @mohammadm.7477

    @mohammadm.7477

    3 жыл бұрын

    @@XTronical it has extended SPI ,which could be initialised from setup by SPI.begin(CS), SPI ports offer 5V and gnd for the client, the TFT works on one SPI port ,but SD fails to initialize on 2nd port, there are few documents available,

  • @sowfine
    @sowfine Жыл бұрын

    uuuuuhm. Well, tried this, and when inserting an SD-Card it fried my Esp32 instantly. Lots of "brownout detector triggered" messages, and that was the last thing I heard from the device. I really have no idea why. I do get the idea of bypassing the voltage regulator if you power the screen with 3.3v anyways - still, for me it did just harm the setup. You might not have any idea or suffered from the same effect at any point?

  • @XTronical

    @XTronical

    Жыл бұрын

    No, never happened, done it around 3 times. I'd double check everything, ensure 5v wasn't getting through somewhere to your esp32.

  • @sowfine

    @sowfine

    Жыл бұрын

    Yeah, will. If not, by any chance, there's 5v coming from wemos d1 minis 3.3v port, I've no idea. Will triple check, thanks anyway! It's a journey, every single time 🙂

  • @1over137
    @1over137 Жыл бұрын

    I got a new one in the post. 2.4" with touch screen + SD. Says "V1.3" on it. different PCB layout and different (visually) screen make. It doesn't work. Spent hours debugging it. Then swapped it like for like on the breadboard for another one without touch. Worked instantly. Swap back to the new V1.3, nothing, just white screen. I suppose this is the way with these chinese modules. For every few batches of fine ones, there is a batch of garbage.

  • @XTronical

    @XTronical

    Жыл бұрын

    Yes, very possibly. The heart pulse sensors are also very hit and miss. Least they used to be.

  • @facumunoz9478
    @facumunoz94782 жыл бұрын

    Why the SD card reader didn't work on the 2.4'' screen? I have the same screen and when I plug in the SD card the screen turns black.

  • @XTronical

    @XTronical

    2 жыл бұрын

    Make sure different chip select lines for sd card and screen. They can share the other connections but not chip select

  • @facumunoz9478

    @facumunoz9478

    2 жыл бұрын

    @@XTronical do you mean in the user setup?

  • @facumunoz9478

    @facumunoz9478

    2 жыл бұрын

    i just uncomment what you said in the video, is that ok ? i conected the sd's cs pin to pin 5, and the screen's cs pin to pin 15 #define TFT_MISO 19 #define TFT_MOSI 23 #define TFT_SCLK 18 #define TFT_CS 15 // Chip select control pin #define TFT_DC 2 // Data Command control pin #define TFT_RST 4 // Reset pin (could connect to RST pin) //#define TFT_RST -1 // Set TFT_RST to -1 if display RESET is connected to ESP32 board RST // For ESP32 Dev board (only tested with GC9A01 display) // The hardware SPI can be mapped to any pins //#define TFT_MOSI 15 // In some display driver board, it might be written as "SDA" and so on. //#define TFT_SCLK 14 //#define TFT_CS 5 // Chip select control pin //#define TFT_DC 27 // Data Command control pin //#define TFT_RST 33 // Reset pin (could connect to Arduino RESET pin) //#define TFT_BL 22 // LED back-light

  • @jumbo999614

    @jumbo999614

    5 ай бұрын

    Same thing happened to me. I can run "TFT_Meter" and "TFT_Clock" sample sketches. But "ESP32_SDcard_jpeg" customized sketch. Screen doesn't load image files. Just blank screen

  • @rishabhrathaur6167

    @rishabhrathaur6167

    3 ай бұрын

    @@jumbo999614 did you found the solution?

  • @rishabhrathaur6167
    @rishabhrathaur61673 ай бұрын

    rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0030,len:1344 load:0x40078000,len:13964 load:0x40080400,len:3600 entry 0x400805f0 SD Card Type: SDHC SD Card Size: 7680MB initialisation done. ERROR: File "220_30fps.mjpeg" not found! ERROR: File "220_15fps.gif" not found! ERROR: File "rishabh.avi" not found! ERROR: File ".fe_tmp" not found! ERROR: File "risha.jpg" not found! ERROR: File "cropped_11zon.jpg" not found! ERROR: File "risha.jpeg" not found! ERROR: File "220_30fps.mjpeg" not found! ERROR: File "220_15fps.gif" not found! ERROR: File "rishabh.avi" not found! ERROR: File ".fe_tmp" not found! serial monitor output, its it not able to open it.

  • @stefi300972
    @stefi300972 Жыл бұрын

    never worked for me :(

Келесі