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

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 มิ.ย. 2020
  • 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
  • วิทยาศาสตร์และเทคโนโลยี

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

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

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

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

      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
    @MrBobWareham 6 หลายเดือนก่อน

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

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

    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  3 ปีที่แล้ว

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

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

    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 ปีที่แล้ว +1

      Your welcome, thanks for the feedback

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

    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.5003 3 ปีที่แล้ว

    Great info, thanks for sharing

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

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

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

      Oh no,least future screens might be saved 😁

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

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

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

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

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

      @@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  3 ปีที่แล้ว

      Brilliant

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

    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  3 ปีที่แล้ว

      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.

  • @spartansrj8128
    @spartansrj8128 18 วันที่ผ่านมา

    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

  • @ahmedmoustafa6829
    @ahmedmoustafa6829 11 หลายเดือนก่อน

    Perfect solution
    I will try it

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

    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  3 ปีที่แล้ว +2

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

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

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

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

  • @danilocarrara7494
    @danilocarrara7494 3 หลายเดือนก่อน +1

    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  3 หลายเดือนก่อน +1

      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

  • @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  ปีที่แล้ว +1

      3.3v pin to ili9341, sorry for any confusion

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

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

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

    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.

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

    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  ปีที่แล้ว +1

      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.

  • @1over137
    @1over137 ปีที่แล้ว

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

  • @mohammadm.7477
    @mohammadm.7477 3 ปีที่แล้ว

    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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

    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  ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      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  ปีที่แล้ว +1

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

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

    The Gold Nugget" here:" 1:17

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

    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 2 หลายเดือนก่อน

      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 14 วันที่ผ่านมา

      @@jumbo999614 did you found the solution?

  • @rishabhrathaur6167
    @rishabhrathaur6167 14 วันที่ผ่านมา

    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 11 หลายเดือนก่อน

    never worked for me :(