Guys, Im looking for any idea. The matter is, I have an energy meter based on Arduino UNO platform (but no problem to move to any other Arduino). My energy meter is calculating total amount of energy produced by heatpump during heating season. The same principle like regular energy meter counting electricity used from grid. Value of total energy produced is continuously growing. Problem arise in case of electricity drop out, my meter resets all the values, including that total one and I lost this longterm value. Regular electricity meter keeps these value saved somehow and after such a drop-out it is counting on from last value.

My question is, how to solve it with Arduino resources. EEPROM is limited by number of write/erase cycles, SD card is the same story (for continuous recording of updated value - there are hundreds value updates a day).Does anybody has an idea where and how to store these total values to be automaticaly restored after electricity drop-out?

Radek