This video shows the working mechanism to accompany the how-to blog at http://raspi.tv/how-to-make-your-own-... I show three flag waving mechanisms based on three different platforms. The one directly on the Pi is less smooth than the ATMega controlled ones. I don't think there's anything that can be done about this (although I hope I'm wrong).