Player wav files on Attiny85 microcontroller
This article will look at the process of creating a very necessary and interesting electronic device that will allow you to play wav files directly from an SD, microSD or mini SD memory card. You can record a music file on a memory card, install such a device, for example, in a refrigerator, and every time you open its door, a beautiful melody will sound. Forget to close such a "music" refrigerator will no longer be possible. Another way to use the player is as a doorbell. On the Internet you can find a lot of different tunes, for all tastes. Thus, the boring sound of the factory bell can be replaced, for example, with the song you like. In addition, such a device can be used for an original gift to a loved one - just build the speaker in a beautiful box, which, when opened, will begin to sound a sound greeting. In addition to these examples, the player can find a lot of applications in everyday life.The scheme of the device contains a minimum of details, its key link is the microcontroller family AVR Attiny85. When power is applied, it immediately starts reading files from the memory card and using PWM outputs to play them through the speaker. The volume at the same time turns out not too high, in many respects it depends on the sensitivity of the speaker used. To get a large volume, you need to connect the amplifier input instead of the speaker. However, the signal from the output of the microcontroller is too large to be supplied directly to the amplifier, so it is imperative to install a volume control between them, otherwise there is a risk of spoiling the amplifier itself. When you turn it on for the first time, set it to the minimum volume, then gradually increase it to the desired volume.
Scheme of the player
Memory card pinoutPinout of memory cards is shown in the picture:
Chest - a convenient locker for the whole family
Sewing a green cushion for wedding rings
Knitted sweater with a teddy bear for the baby