Making Music with a Microcontroller
Using a piezoelectric buzzer element, we can turn voltage into pressure waves, or sound. This project demonstrates code which can play any desired tone, and plays a song while showing each syllable on the LCD screen.
You can download the source code. (Start with one of the projects included on the NerdKits CD-ROM, and modify the Makefile to reference this file.)
Copyright © 2008 by the NerdKits team. Please don't redistribute our materials without our permission.