He sourced an ATtiny45 to drive a MOSFET which disconnects the battery when it gets too low. This would be easy to adapt to other uses, but note that there’s a voltage regulator involved as well ...