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

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 พ.ค. 2024
  • 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
    Temperature sensor shootout: • Temperature sensor sho...
    Using 7-segment LED's: • Using 7-segment displa...
    Writing and reading to SD cards: • Tutorial: Writing and ...
    Getting those darn TFT LCD displays to work: • Tutorial: Getting TFT ...
    Turning stuff on or off: • Tutorial: Use your MCU...
    Writing analog signals/voltages: • Tutorial: Use analogWr...
    Using digital sensors: • Tutorial: Use digitalR...
    Using analog sensors: • Tutorial: Use analogRe...
    Talking to your Arduino: • Tutorial: How to talk ...
    Some fun projects to build
    Build a 3D printer filament meter: • Build a 3D printer fil...
    Homemade motorized table saw fence • DIY motorized table sa...
    High"er" res homemade Thermal Camera for $100: • DIY high-er res Therma...
    DIY Garage Parking Assistant: • DIY Garage Parking As...
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    If you are wondering how much memory EEPROM code consumes:
    On a Teensy 3.2 Airduino IDE 1.8.13
    #include
    EEPROM.put,
    EEPROM.get
    Compiled to 11140 bytes
    Removing
    #include
    EEPROM.put,
    EEPROM.get
    Compiled to 7016 bytes

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

    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.

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

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

  • @7alfatech860
    @7alfatech860 2 ปีที่แล้ว

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

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

      It looks like around 4K for 1 put and 1 get

    • @7alfatech860
      @7alfatech860 2 ปีที่แล้ว

      @@KrisKasprzak Thanks