Make your Arduino “Remember” using the built in EEPROM - Tutorial

Поділитися
Вставка

КОМЕНТАРІ • 35

  • @billglass5160
    @billglass5160 2 роки тому

    Thanx for the video. I'm working on a library for storing and saving strings to internal or external EEPROM. You gave me an idea on what kind of functions are interesting to include in these libraries. This library will store your random number to one of 32768/1024 external/internal EEPROM addresses (address calculated automatically by the library). Each new random number will be stored at address+1 in a circular addressing mode. When you power up, the latest address will be again calculated by the library to enable you to fetch your latest random number. I'm doing this as a wear-levelling mechanism to prolonge the life of the EEPROM. You can only write 100000 times to any specific address. So now, you'll have about 100 million stores of your number before you have to change your Nano.

  • @ronvoy
    @ronvoy 3 роки тому

    thanks a lot man, that saves a lot resource and time than storing few bits of data in SD module.

  • @zzzzzzz1729
    @zzzzzzz1729 3 роки тому

    it really helps a lot man...your explanation for comments had cleared my doubts as well....Thanks for sharing 😊...!

  • @pileofstuff
    @pileofstuff 5 років тому +3

    I assume seeding the random number generator (maybe a sample from one of the open analog pins) would make that random number sequence become a bit less predictable?

  • @Hauketal
    @Hauketal 5 років тому +2

    Don't forget there is a limited number of writes an EEPROM cell can handle, about 100000 is guaranteed. Write as rarely as possible and never in a short loop.

    • @BrainybitsCanada
      @BrainybitsCanada  5 років тому +1

      That's correct, but also those 100,000 Writes are for "each" byte of the EEPROM... So you can write 100,000 times to byte#0, 100,000 times to byte#1, etc, before the bytes memory becomes unreliable. Thank you for your comment and for watching.

  • @stephanedenis5394
    @stephanedenis5394 5 років тому +1

    Very good tutorial, I was looking for a solution for a small project. It will help me. Thank you.

    • @BrainybitsCanada
      @BrainybitsCanada  5 років тому

      Thanks for watching Stephane, glad the video helped with your project. Cheers!

  • @TechBuild
    @TechBuild 3 роки тому

    Great video, your explanation was clearly understandable. Thanks for sharing!

  • @akroutsamo
    @akroutsamo 5 років тому +1

    thanks Mr, Ivan this is really a good Tuto (y) ;)
    it helps on my project that i still working on it

  • @gsrathore97x
    @gsrathore97x 3 роки тому

    You teach me a lot and very important from 1:38

  • @electricswine1
    @electricswine1 5 років тому +1

    Great vid, thanks. I have a homeautomation project that this would come in handy. But what if you hit the reset button, would that clear the memory?

    • @BrainybitsCanada
      @BrainybitsCanada  5 років тому +1

      Great question! No The reset button just restarts the code on the Arduino. So the EEPROM memory doesn't get affected. Technicaly you can't really clear the EEPROM memory, I think that when you receive a brand new Arduino, all the bytes in the EEPROM will contain "ones" or are set to "11111111", or a decimal value of 255 . So I guess if you wanted to get back to that state you could do a FOR LOOP to write a value of 255 to all the bytes. Thank again for a great questions and for watching! Cheers!

  • @stefanmayer444
    @stefanmayer444 3 роки тому

    Thanks for the very good explanation!

  • @taranagnew436
    @taranagnew436 5 років тому +1

    is there a way to store gifs or something on the memory of the chip on the uno?

    • @BrainybitsCanada
      @BrainybitsCanada  5 років тому

      The EEPROM memory is too small for pictures, but I have another video where I use the PROMEM memory to store some 16x16 pictures. Maybe it can help, check it out here: ua-cam.com/video/Q1iVtLQOZOI/v-deo.html

  • @James_Maguire
    @James_Maguire 4 роки тому

    If your using an int I presume it must assign 2 address bytes so when how do you know what address to put in brackets

  • @chronobot2001
    @chronobot2001 Рік тому

    Good video, but what I was hoping for was to see how to save two different numbers in that are as high as 60 million.

  •  2 роки тому

    thank you so much for your tutorial!!

  • @dilshankasthuriarachchi4737
    @dilshankasthuriarachchi4737 4 роки тому

    Where does the codes get to this?

  • @mukageegee
    @mukageegee 4 роки тому

    Thank you for the great tutorial. Are you sure your name isn't Al? (tall Guy from Police Squad!)

    • @BrainybitsCanada
      @BrainybitsCanada  4 роки тому

      Wow, totally forgot about that guy "Al" from Police Squad, had to google it... Thanks for the laugh!

  • @garthhowe297
    @garthhowe297 5 років тому

    Tres bien (that's close to the limit of my French) I didn't know there was space available to store data... interesting... 1001 uses I think.

    • @BrainybitsCanada
      @BrainybitsCanada  5 років тому +1

      Hi Garth, long time no see, hope all is well! Yes having some non volatile memory (even if it's just a little bit) can be very useful. Thanks for watching and hope to see you again soon. Cheers!

  • @Omarbg95
    @Omarbg95 4 роки тому

    Thanks for sharing 💁

  • @brigittefarah2684
    @brigittefarah2684 5 років тому

    I saw the easter egg!

  • @alibehrouz9833
    @alibehrouz9833 5 років тому +1

    greatttttttttt

  • @ericthered9655
    @ericthered9655 3 роки тому

    Camp Crystal Lake! LMAO!

  • @altamiradorable
    @altamiradorable 5 років тому +1

    C'est pas "byte" ton affaire ! lol !

  • @Haamedtm
    @Haamedtm 5 років тому +1

    what happened to your head?

  • @prasadkirkire6311
    @prasadkirkire6311 5 років тому +1

    😘😊😊👍🏻👍🏻👍🏻❤️

  • @MrSasha3050
    @MrSasha3050 5 років тому +1

    Классно

    • @BrainybitsCanada
      @BrainybitsCanada  5 років тому +1

      Еще раз спасибо за просмотр!