NerdKits - electronics education for a digital generation

Making Music with a Microcontroller

Buy a NerdKits microcontroller kit and start learning real electronics.  Learn more.

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.

Source Code

You can download the source code. (Start with one of the projects included with the kit, and modify the Makefile to reference this file.)

More Videos and Projects!

Take a look at more videos and microcontroller projects!


Did you know that 20 LEDs can be controlled from 11 microcontroller pins, to make a twinkling heart outline? Learn more...