Short(ish) overview on a very simple way to detect wether your Arduino project is loosing power.
Usually when such an event is detected, you'd want to save variables you wish to survive reboots to EEPROM (be it internal or external)
I've made a previous video on this topic with a different, more (needlessly) complex circuit : in that video however, I also go into detail on how the saving to the EEPROM is actually achieved: [ Ссылка ]
Ещё видео!