circuit_projects

Circuit Projects

Blogger

EEWeb Stats

Circuit's Blog :

Return to Blog

Standalone Music Player with AVR Microcontroller

Figure:1

Figure 1 

The project illustrates how a microcontroller can generate sound as it plays audio bit stream generated from MIDI files which must be converted with special Perl program.

There are three main parts that make up the project including the AVR ATmega16 microcontroller, power supply consisting of 3×15V AA batteries, and piezo buzzer. No external clock sources are needed because the MCU runs from internal 1MHz clock. Any breadboard can be used to easily build this music player. The AVR-GCC language is used to write the code which can be compiled with WinAVR tools. The MIDICSV is a program that can be used along with Perl to convert the music files.

The player can play a squeaky but recognizable stream of audio generated from MIDI files using the term music library. The code can be obtained from the AVRButterfly which was originally from Atmel. From the Butterfly source code is where only the essential timer and sound files would be extracted. The songs were separated from the files foe easy mixing and matching of included songs. The songs are indicated in the songs index and changing this number can play a different song.

Rest of the project

Tags: music, player, avr, microcontroller,

Comments on this post:

There are currently no comments.

Login or Register to post comments.
 
Click Here