Simple stepper motor music

While working on a project with a stepper motor, I decided to make it play a simple melody. As one might expect, the step rate matches the dominant audio frequency heard pretty well.

I decided to make it play Fur Elise as a tribute to a lab in Harvey Mudd’s Introduction to Signals and Systems (E59) course. In that class, everyone made a MATLAB script to generate appropriate sinusoids for the song.¬†After listening to classmates debugging their code in the computer lab and the various strange sounds, we were all a bit tired of the song. Later I even graded 25 versions of the code. But, in the end, odd electronic sounding versions of Fur Elise certainly do still have some nostalgic value for me.