a tiny circuit i designed and built in five copies for dancer Raffaella Galdi. with the help of a small magnetic sensor this circuit makes it possible to start and stop sound coming from a mp3 player. because the five circuit boards, speakers and mp3players are mounted inside pointy hats, the electronics had to be light and draw very little current from the battery.
for the sound volume control i used a vactrol (ldr+led) and the timing and fade in/out logic are encoded in the firmware of a little microcontroller (ATtiny45). to save battery, the tiny45 is put to sleep and is only active when the magnetic reed sensor is triggered. i used the great JeeLib.h for controlling the sleep cycles of the microcontroller.
schematics, firmware and partslist attached below.