The Snap-O-Lantern is a robotic mini-pumpkin. Normally, it just sits there, in disguise as a boring old pumpkin. But, every twenty seconds he comes to life. His LED eyes turn on, his jaw slowly opens, and then SNAPS shut-- and he goes back into stealth mode.
What's inside? A small hobby servo motor, driven by an AVR microcontroller. This is a minimal microcontroller project, and is very straightforward if you happen to already have a setup for programming one. We'll walk through the carving, setup, programming, and electronics. This is an open-source project, one of the world's first "gpl-o-lanterns"; source code is provided.
http://www.evilmadscientist.com/article.php/snapolantern