Hey all, for a few days now, Im struggeling to come up with a solution to safely shutdown an arduino (let it save all the data it needs when power is lost). Has anyone attempted to build something like that? My circuit consists of a wall psu and a battery. Basic functionality should be: Wall suply stops -> battery takes over -> arduino does what it needs -> it shuts itself down (no power should be consumed when its off) Then, when the power comes back on, it automatically turns itself back on and is ready for another eventual power loss. Problem I was having was the transistor stayed switched on even when the arduino was shut down... Is there a better way, using a fat or something? I would like to get away with not using relay.
Thanks for anything you can think of.