I have a need for an audio player & I thought it was time that I have a look at this project as it comes up all the time.
I configured my EasyAVR5A ( which has a SD card socket) to a ATtiny85 etc. It did not work first up!
After searching AVRFreaks, I came across posts regarding fuses, SD card formatting, RIFF-WAV format, removing last three lines from the .hex files.
Tried it all, still did not work! Anyway, after a good sleep, I decided to have a good look at the configuration of the EasyAVR5A and I found that I had plugged the MCU into the wrong socket DIP8A whereas it should have been DIP8B :oops:
It now works like a rocket. What a great bit of coding!
I was confused a little by earlier posts, which did lead me up the garden path for a while, so I thought I would makes some notes which others might find useful.
a) Build the mono version first to make sure that your wiring ( & socket selection is OK). Once you loose the ISP capability, things just get harder!
b) Two posts on this subject had conflicting information regarding the SD card format. Either FAT or FAT32 works fine!
c) The term RIFF-WAVE is a little confusing if you are really not into that sort of thing (which I am not).
I just use files with a .WAV ext. and they work fine.
I did use a hex editor and had a look at the header to make sure that there was no problem ( this is before I woke up regarding the wrong socket). A good source of .WAV files is the 100's of system wave files that belong to Windows, for those who need a starting file.
Ah yes, I did brick a few ATtiny85's and had to build something to de-brick them.
What should have been a one hour job turned out more like 10 hours before I had it working! :( :oops: :oops: :oops:
Moral of the story.
Always check your own work before suspecting other's work!
Elm's code works beautifully straight out of the box!
My latest rabbit mitigation project will involve have some PC external speakers with a Elm player located around my property, randomly playing "howling foxes", "gun shot noises" and "the squeal of a rabbit in distress".
My vegie garden was going real well until it was decimated
over about three nights by roving rabbits! :x :twisted: