I am using Arduino nano for a project in which I have on a counter which is continuously increasing. And I want to retain count after a power failure. Data is changing more frequently so storing it continuously into EEPROM is not an option as EEPROM has erase/write cycle limitation. Additionally, data is of 4-byte maximum.
please, can anyone suggest an IC or circuit design which can detect a power failure and interrupt Arduino so that it can save data into EEPROM.
I guess I will have to use a capacitor to power Arduino after the power goes down so that Arduino will be able to save data into EEPROM.