Power supply self control using transistor

Well, RS flip flop is a lock circuit. There are two inputs, off and on=R and S. (and out puts Q and \Q)

BC547 might do well if you have a plain Arduino, not many LEDS and so on. But BC547 is a bit small, BC637 and so on are stronger.