Post by Pix-OS on Jul 12, 2015 20:42:07 GMT -8
most of you people have heard of the famous apple media players, or similar products
but i found it disappointing that they weren't opensource
the gameduino2 also has audio playback capabilities, but the quality is to cry for
so that was the trigger for me to make my own media player!
yes, i have heard of yampp, but the software isn't user friendly to program at all.
i wanted something different and more hackable than that, and perhaps including bluetooth as well!
so i started putting my adafruit vs1053 shield onto my arduino due, and closed al the SPI solder pads, so the pins were remapped to the arduino uno style layout (needed for theg ameduino2)
the basics are this from top to bottom:
gameduino2
^
|
v
adafruit vs1053 shield
^
|
v
arduino due <---> bluetooth (hc06) on serial1
then came the fun part: coding!
well, i tried the adafruit library for the vs1053, but it just didn't want to work at all, so i searched for another library, and found the one called: "SFEMP3Shield" (from sparkfun)
after all, i needed to mod the pin outputs to match the adafruit one, i also let the audio coded lib run without interrupts.
the gameduino2 code is basically a small enhanced version, namely: spi boosted to 21MHZ, faster chipselect switching and changed the eeprom to the due's flash storage.
the main code is fairly simple, and consists of a tasks engine called protothreads, and the main sketch file is under 180 lines of code
note: you can add a lipo power supply, but keep in mind that the whole circuit will take about 400 mA from the 5V usb port, so a decent power supply is needed!
the complete code is going to be up soon!! (including all libraries)
but i found it disappointing that they weren't opensource
the gameduino2 also has audio playback capabilities, but the quality is to cry for
so that was the trigger for me to make my own media player!
yes, i have heard of yampp, but the software isn't user friendly to program at all.
i wanted something different and more hackable than that, and perhaps including bluetooth as well!
so i started putting my adafruit vs1053 shield onto my arduino due, and closed al the SPI solder pads, so the pins were remapped to the arduino uno style layout (needed for theg ameduino2)
the basics are this from top to bottom:
gameduino2
^
|
v
adafruit vs1053 shield
^
|
v
arduino due <---> bluetooth (hc06) on serial1
then came the fun part: coding!
well, i tried the adafruit library for the vs1053, but it just didn't want to work at all, so i searched for another library, and found the one called: "SFEMP3Shield" (from sparkfun)
after all, i needed to mod the pin outputs to match the adafruit one, i also let the audio coded lib run without interrupts.
the gameduino2 code is basically a small enhanced version, namely: spi boosted to 21MHZ, faster chipselect switching and changed the eeprom to the due's flash storage.
the main code is fairly simple, and consists of a tasks engine called protothreads, and the main sketch file is under 180 lines of code
note: you can add a lipo power supply, but keep in mind that the whole circuit will take about 400 mA from the 5V usb port, so a decent power supply is needed!
the complete code is going to be up soon!! (including all libraries)