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.
Wire-to-board interconnection options from Sullins feature a wide range of sizes and applications
MCC’s TVS series high-power suppressors protect sensitive components from voltage spikes and transients
Evaluation boards that streamline evaluating circuit protection on RS-485 serial device ports
There are currently no comments.