This equipment can change the analog signal of the music and so on into the flash of the lamp.
http://www.hobby-elec.org/e_dance.htm
a circuit which controls a thyristor by software of PIC.
http://www.hobby-elec.org/e_pic6_c.htm
Light controller with PIC16F873. This circuit is usable only in the direct electric current.
http://www.hobby-elec.org/e_pic6_5.htm