Arduino - How to Save a String into EEPROM

Поделиться
HTML-код
  • Опубликовано: 14 июл 2024
  • Learn how to save an Arduino String into the EEPROM memory, so you can retrieve it later. To do that you will need to separate the String into different bytes.
    👉 Complete Arduino Course for Beginners: 🔥 rbcknd.com/arduino-for-beginners 🔥
    ✅ Click Here for the Corresponding Written Tutorial - Store a String into EEPROM: roboticsbackend.com/arduino-w...
    0:00 Intro
    0:30 How we are going to store a String into EEPROM
    1:44 Write String into EEPROM
    4:45 Read String from EEPROM
    8:42 Test the code and recap
    11:10 Outro
    👉 Get all my courses here 👉 rbcknd.com/all-courses
    Twitter: / roboticsbackend
    More Free Tutorials: roboticsbackend.com

Комментарии • 25

  • @p4dr1uh66
    @p4dr1uh66 2 года назад

    Great video! It helped me a lot

  • @dfn808
    @dfn808 10 месяцев назад

    Excellent tutorial, very well explained. Thanks for sharing.

  • @studentofedison421
    @studentofedison421 2 года назад

    nice topic to cover, and beautiful explaination

  • @gabrielreche3376
    @gabrielreche3376 Год назад

    great tutorial!

  • @unglaubichuberlieber8048
    @unglaubichuberlieber8048 2 года назад

    ich bedanke mich , alles gute !!!

  • @geralddiaz9758
    @geralddiaz9758 Год назад

    Thank you!

  • @hemersonallan
    @hemersonallan Год назад

    AWESOME ! Thanks

  • @Fun-io9kv
    @Fun-io9kv 2 года назад +1

    Thanks . Good solution and great explanation . I use vscode for writing arduino sketches . It is officially supported and user friendly

  • @fadigorgos9510
    @fadigorgos9510 2 года назад

    Thanks

  • @shakhky
    @shakhky 2 года назад

    Thanks .

  • @masoudjafarzadeh
    @masoudjafarzadeh 2 года назад

    At the first tank you
    Would you pleas how can we extract sms and write number phone in eeprom for use in the program
    Thanks again

  • @spaceshuttle8332
    @spaceshuttle8332 2 года назад

    Is it possible to do this same thing or something similar with an external flash memory connected to the arduino?

  • @saeidpourafshar4824
    @saeidpourafshar4824 2 года назад +1

    Hi, I wanted to send the code but it did not work, in my code which works with gsm800l module, Some numbers in the form, ?? , Or blanks, are written
    Please help
    Thanks

  • @0124akash
    @0124akash 10 месяцев назад

    Sir, how to send data through keypad to Arduino EEPROM, and then store data display on LCD, when press '*' button.

  • @billglass5160
    @billglass5160 2 года назад

    It's annoying when one makes comments that are too helpful for others so they are anonymously removed. In the name of myself, I will remove all of my helpful comments. Have a nice day!

    • @RoboticsBackEnd
      @RoboticsBackEnd  2 года назад

      What comments are you talking about? I haven't removed any comment on the channel (sometimes youtube removes comments that look like spam but that's about it)

    • @billglass5160
      @billglass5160 2 года назад

      @@RoboticsBackEnd It's RUclips then. I used your idea for my project and then added new features that I wanted to share with you all.

  • @dhavalshukla6615
    @dhavalshukla6615 2 года назад

    Hey, I was trying to store like you do here, into a String variable ssid data read from EEPROM, the node mcu I am using is ESP32 WROOM32D and it seems, maybe my logic is wrong? But I am not too sure, what you do here, I have tried to do similar but all I have been getting is inverted question marks instead of actual ssid and pass. here's the code snippet: ssid+=char(EEPROM.read(address)); this is of course in a for loop, somehow a month ago, this had worked without problems when I ran it, and now it's like my knowledge has lost all meaning, idk what is the reason, I have been scratching my head around as to why so sudden and uncharacteristic departure in behavior, sigh. Anything would be helpful for this.

    • @christygovender4959
      @christygovender4959 2 года назад

      I experienced the same issue with ESP8266. To solve:
      1) Add this line to your setup function - EEPROM.begin(512);
      2) Read comment and edit code accordingly in READ function - data[newStrLen] = '\0';

    • @dhavalshukla6615
      @dhavalshukla6615 2 года назад

      @@christygovender4959 I unfortunately don't remember. It was a project I was working on and don't know how I figured it out. Might be I might have used Read and Readstring commands from Arduino to read. I hope you figure it out.

    • @christygovender4959
      @christygovender4959 2 года назад

      @@dhavalshukla6615 I've figured it out, I've edited previous comment with solution I used. Hope it's helpful to you

    • @dhavalshukla6615
      @dhavalshukla6615 2 года назад

      @@christygovender4959 thanks. Had it figured out month ago but I'm sure this will be useful to someone else!

  • @electronron1
    @electronron1 2 года назад +1

    Doesn't EEPROM.put and EEPROM.get do the same thing?

    • @RoboticsBackEnd
      @RoboticsBackEnd  2 года назад +1

      EEPROM.get() is to read from the EEPROM, and EEPROM.put() is to write to EEPROM. Now, with put() it's going to do the same thing as for EEPROM.write(), but it checks the data first, and will only write if the data is different.
      So in the end, using put() could be better than write(), however as this tutorial is aimed at complete beginners, I wanted to stay with super simple things :)