Tutorial: How to save settings to MCU's EEPROM memory

preview_player
Показать описание
Tutorial: Learn how to use the EEPROM to save settings such as calibration values, passwords, etc. to non-volatile memory that will restore on power up, even if you have no battery backup. Shown are my favorite methods EEPROM.put and EEPROM.get that allow you to store bytes, int's floats, chars and more. Whether you use an Arduino, Teensy, or ESP32. chance are you will need to store some settings for future use. Hopefully this lesson will help you learn how to retain data.

Other useful tutorials

Some fun projects to build
Рекомендации по теме
Комментарии
Автор

If you are wondering how much memory EEPROM code consumes:

On a Teensy 3.2 Airduino IDE 1.8.13

#include <EEPROM.h>
EEPROM.put,
EEPROM.get
Compiled to 11140 bytes

Removing
#include <EEPROM.h>
EEPROM.put,
EEPROM.get

Compiled to 7016 bytes

KrisKasprzak
Автор

This is the info I was looking for. It is well presented with one exception. I had to type the program in from the info in the video. 2 hours later, I am still getting some compile errors and sorting it out. Many of the tutorial I really like have the code that I can copy and paste. It seems I don't type what is on the screen so well. Thanks for the video.

Nputaansuu
Автор

Great job,
I always learn something new from you.
Thanks

alanbacknd
Автор

Nice video, thanks. How much of the main program memory is used up by invoking the EEPROM?

alfatech