I had a lot of fun learning low power techniques and interrupt service routines on Arduino with this fun project. The box contains 2 servos, one to operate the lid and the other for the lever to turn the switch off. It doesn't actually switch itself of, it just goes to sleep until the next curious user switches it on!Full build details and code here:
Full video and build details here: