Trying to have my text file saved even after power is removed

This is what I'm working with right now, going to make this portable with a battery but also don't want to lose all my saved key strokes once power is removed, trying to have some sort of safe guard if power is lost to were i can just pop out the micro-sd card and read my saved keystrokes on a text file or something

the reference showed a SD card module - use that if you have one
you could use the ESP32 Preferences library which saves to the ESP32 on-board NVM
however, it has similar problems to EEPROM with limited writes
consider an FRAM which has practically unlimited writes

So, save your keystrokes to the sd card maybe once every 10 minutes or use a backup battery and write to the sd card when main power is lost.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.