#65 Arduino EEPROM Basics - easy to do and useful to implement

Описание к видео #65 Arduino EEPROM Basics - easy to do and useful to implement

New! https://ralphbacon.blog

Storing data into non-volatile EEPROM memory (that does not lose that information when the Arduino is switched off) can be very useful, whether that's for remembering some configuration settings or the high score of your latest game.

Best of all, it's so easy to do these days as you don't have to know how long the data is for the data-type you're trying to store (nor do you have to switch the high and low end bytes around either - see what I mean?)

So don't forget the last value you calculated; use the EEPROM instead of an SD card - you can write to the same cell 100,000 times so you might not need an SD card at all in certain data logging situations.

Knowing how to do this is all part of the Arduino learning experience and here I actually implement an improvement to one of my existing projects (in daily [well, nightly] use) to make using it just that tad easier.

The sketch I'm using builds upon an earlier sketch for the project I have now enhanced but it will be child's play to use those lines in your code.

I've included the sketch used in the video here just for completeness:
http://bit.ly/EEPROM_basics

Background C# 'struct' information
http://playground.arduino.cc/Code/Struct

Writing ANY data type to EEPROM background (now part of standard EEPROM library):
http://playground.arduino.cc/Code/EEP...

The standard EEPROM library functions:
https://www.arduino.cc/en/Reference/E...

For advanced users, the extended EEPROM library (includes bit writing)
http://playground.arduino.cc/Code/EEP...


If you like this video please give it a thumbs up, share it and if you're not already subscribed please do so :)

My channel is here:
------------------------------------------------------------------
   / ralphbacon  
------------------------------------------------------------------
How can I remember this? Memory tip: "See" Ralph Bacon, geddit?

Комментарии

Информация по комментариям в разработке