ESP32 and SPIFFS Step By Step

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ค. 2023
  • ESP32 and SPIFFS Step By Step.
    Working through some example sketches to play video on ESP32 and the ILI9341, I find the wiring for the SD card does not seem to work like it does on the ILI9225. So I push on to use SPIFFS examples. This is when I realize I have not worked with SPIFFS before so let's learn how to work with SPIFFS on ESP32.
    My previous video:
    Getting Started with ESP32 and the ILI9341 TFT LCD Display
    • Getting Started with E...
    Working on examples from:
    Play Video With ESP32
    www.instructables.com/Play-Vi...
    Arduino ESP32FS Plugin
    github.com/me-no-dev/arduino-...
    How to delete a file from SPIFFS
    techtutorialsx.com/2019/02/24...
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @SercanSalkir
    @SercanSalkir 11 วันที่ผ่านมา +1

    man i've been failing so hard for days just to make my own mini tv. i still could not make it work but while watching your videos it makes me smile when you smile :D i guess that makes what all these hard stuff bearable. so thank you. hope someday i can play a video with my ST7735S

    • @ShotokuTech
      @ShotokuTech  11 วันที่ผ่านมา +1

      I think the display will work. It's the ESP32 that has the limitations. There is no separate GPU or sound chip. I like the Raspberry Pi Zero 2 W is a strong candidate. I just thought of that while I was answering your comment.
      th-cam.com/video/uQ27XDXj42Y/w-d-xo.htmlsi=tsEjK-_Tx44PwhST

    • @SercanSalkir
      @SercanSalkir 11 วันที่ผ่านมา +1

      @@ShotokuTech thank you for this quick response, i was not expecring this. And the solution looks like just what i needed. I will try it. Thank you so much sensei!

    • @ShotokuTech
      @ShotokuTech  11 วันที่ผ่านมา +1

      @@SercanSalkir It will be interesting to see the display connected to the Pi. It's something I have not tried yet.

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

    this was a very SPIFFy tutorial!

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

      Thanks Jimmy! You nailed it with this comment!

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

    This esp32 series is the best❤️

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

      Thanks. I am working on the next one already.

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

    This is a little complicated, very useful, thanks for sharing

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

      Thanks Judy. I still learn something new every day!

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

    no way this was 4 hours ago I've just been fighting through this today lol

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

      I tried to get it to you in time! LOL. Thanks.

  • @BobHolowenko
    @BobHolowenko 6 หลายเดือนก่อน +1

    Thank you! You helped me solve my issue.

    • @ShotokuTech
      @ShotokuTech  6 หลายเดือนก่อน

      Thank you. Good to hear. Best wishes.

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

    more cool stuff!

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

    I finally got this to work, but my .rgb video is all scrambled.

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

      The MJPEG video works? Thanks.

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

    Sd card failure may be due to power supply issue. Seems like I saw somewhere that sd card has a spike in current draw that causes failure. I think they added a capacitor somewhere to smooth out the power spike. Maybe this can help you solve your issue. Good luck.

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

      Thanks. Yes it seems something may be missing when using the ILI9341 versus the ILI9225 the author is using in their example.

  • @tukangngoprek9119
    @tukangngoprek9119 25 วันที่ผ่านมา +1

    does it work on arduino 2.3.2?

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

      To be honest I have never gone back to try it on newer versions. Mostly because I am always working on the next thing. Best wishes.

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

    Cool!

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

      Thanks. More to come. Taking it one step at a time.

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

    Interesting...🤔

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

    Such a wonderful video

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

      Thanks for watching Judy Plus!

  • @ernestorivero9909
    @ernestorivero9909 9 หลายเดือนก่อน +1

    Como yo paso para una variable char el contenido que guarde en el archivo prueba.txt.
    Yo hice esto pero no funciona:
    File file2=SPIFFS.open("/prueba.txt")
    if(!file2)
    {
    Serial.println(Failed to open file for reading");
    return;
    Serial.print("contenido ");
    While(file2.availble())
    {
    char rc=file2.read();
    }
    Serial.print(rc);
    file2.close();
    No me funciona

    • @ShotokuTech
      @ShotokuTech  9 หลายเดือนก่อน

      Parece que estás haciendo algo diferente. La lucha es real, amigo.

    • @ernestorivero9909
      @ernestorivero9909 9 หลายเดือนก่อน +1

      @@ShotokuTech no entendí su repuesta

    • @ShotokuTech
      @ShotokuTech  9 หลายเดือนก่อน

      @@ernestorivero9909 This is the original code:
      #include "SPIFFS.h"
      void listAllFiles(){
      File root = SPIFFS.open("/");
      File file = root.openNextFile();
      while(file){
      Serial.print("FILE: ");
      Serial.println(file.name());
      file = root.openNextFile();
      }
      }
      void setup() {
      Serial.begin(115200);
      if (!SPIFFS.begin(true)) {
      Serial.println("An Error has occurred while mounting SPIFFS");
      return;
      }
      File file = SPIFFS.open("/test.txt", FILE_WRITE);
      if (!file) {
      Serial.println("There was an error opening the file for writing");
      return;
      }
      if (file.print("some content")) {
      Serial.println("File was written");
      } else {
      Serial.println("File write failed");
      }
      file.close();
      Serial.println("

      ---BEFORE REMOVING---");
      listAllFiles();
      SPIFFS.remove("/test.txt");
      Serial.println("

      ---AFTER REMOVING---");
      listAllFiles();
      }
      void loop() {}

    • @ernestorivero9909
      @ernestorivero9909 9 หลายเดือนก่อน +1

      @@ShotokuTech Gracias profe pero ya lo logre hice esto:
      static byte n=0;
      char rc:
      char ra[20];
      While(file.available())
      {
      rc=file.read();
      ra[n]=rc;
      n++;
      }
      Serial.print("ra ");
      Serial.println(ra);
      Con esto paso el contenido que tengo en el archivo de SPIIFF a una variable char y luego con esta variable puedo hacer cualquier cosa

    • @ShotokuTech
      @ShotokuTech  9 หลายเดือนก่อน

      @@ernestorivero9909 nada

  • @jaguarshen
    @jaguarshen 11 หลายเดือนก่อน +1

    amayzing!!!

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

      Thanks!

  • @jaguarshen
    @jaguarshen 11 หลายเดือนก่อน +1

    omaygoood vaow

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

      Yes!!😃

  • @jaguarshen
    @jaguarshen 11 หลายเดือนก่อน +1

    no