@JerseyTechGuy, I haven’t noticed a slowdown either. In fact, if anything, I noticed a speed up due to some misconfiguration on my part. There are two modes to play a file - one uses a hardware timer and the other uses DREQ. Be sure to properly specify either and make sure the DREQ pin is connected and properly specified.
I’ll double check the the timer. It is strange. I have 10 files on the SD card. Both setups are identical except one uses an Arduino Uno and the other a Particle Photon. If it continues I’ll try to get a video or recording of the comparison so you can hear what I mean.
Thanks!
Hi @peekay123 just wondered if you ever had any luck with the volume function issue? Or could you give me any pointers on what I could try? It’s the one piece in my puzzle that still isn’t working… Thanks
@stoobee, I checked the datasheets and tried a few things with no luck. Mind you, every test used the simple player code so it may be related to that. I couldn’t find any posts pertaining to volume problems on the VS1053. More testing will be necessary. Very odd.
Hmmm. Agree, don’t think it’s the board as I can change the volume ok with an arduino…
@stoobee, you can!!! I hate that when that happens!! So it is either a timing issue with SPI which makes little sense since other commands work fine, OR, there is a code difference somewhere that I missed. Perhaps a var type that is incorrect somewhere (int vs int16_t for example).
Hi @peekay123, I’ve made some (minor) progress with the volume issue…
In the “Adafruit_VS1053.cpp” file there is another function - reset() - that uses the setVolume() function (see line 367). When I change the values inside this function it changes the volume, which is great!
So, for some reason the reset() function is overriding the volume set in the main .ino file - I’ve no idea why though!
Hi @peekay123 ! just bought the shield shield and have the shield version of the vs1053 (with amp) that I want to try.
Do you know if anyone has got this to work yet, and is there a library I can try ?
thanks!
Curious, I know people were trying to get the shield version of the music maker board to work, did anyone succeed? Was thinking about ordering one.
Thanks,
Shayne
Would you care to take a look at the library linked in the post above?
It’s a pitty that people don’t report back if they were successful or not tho’
I’ve got the breakout version working (apart from fixing the volume issue mentioned above) but not sure about the shield version…
I did see that library. Is that the one that everyone is using in the rest of the thread? I don't see it in the community libraries in Build. The comment I saw was that
However, the library is not written to handle SPI1 on the Photon so the pinout will not work without software modifications. I could add a #define for selecting the SPI port to use.
The comment tends to imply what sounds like a one-line define change might be more complicated? I'm generally just trying to add a sound component to a photon neopixel project here at work. I was going to use an Amazon Echo, until I discovered I couldn't push audio to them.
Shayne
@shodge, the change is not complicated, at least from what I remember.
@peekay123 I’ve taken your library, forked it, and tried to import it on the Web IDE, whereupon it gives me a list of errors, some of which are clearly untrue (i.e., there’s an examples folder):
Library is not valid, please fix the errors below and resubmit.
Metadata Validations
spark.json file is missing
Files and Directories
main header file (firmware/.h) was not found
main source file (firmware/.cpp) was not found
examples/ folder was not found
license file does not exist
Documentation
README.md file was found
So I’ve also tried taking all the cpp and h code, dumping it in my project folder offline, adding an #include "Adafruit_VS1053.h"
and nothing else, and going to compile. I get 5 errors, 3 on Sys_Interrupt_TIM{2,3,4}
not included in this scope in SparkIntervalTimer.h; and two on Serial not declared in this scope in Sd2Card_config.h . Any idea what I’m doing wrong?
Thanks,
Shayne
EDIT: I do have a shield sitting on a shield shield here with a photon on it, so I can definitely test and report back, just trying to figure out how to get started… It’s being added to a project that already did some neopixel stuff.
The structure of the repo must be adapted and the required other files need adding in order to comply with Web IDE import rules.
Have a look at any of the already available libraries.
It would also be advisable to remove the third party libraries from the repo and rather import them in the project, to get all fixes too.
It's not found at its expected location inside the firmware
folder which is missing completely.
Anyone get music playing on the Photon & Music Maker shield both on shield shield?
(ie. @johnnussey)
I want to have Photon receive wifi stream and play it.
I’m using only class Adafruit_VS1053 methods:
.begin()
.readyForData()
.playData( chunk pointer, chunk size bytes )
Don’t need SD.
grillo: Did you get Music Maker on shield shield working?
Do you have the Photon control the VS1053?
can i play multiple sound with this adafruit vs1053?
because i want to make drum project,i need to play 4 more simultanously sound on same time maybe
Hey all-
I know this is an old thread, but figured I’d start here instead of creating a new one…
I’m trying to get the music maker featherwing working with an Argon. I see the Adafruit_vs1053_Photon library but whenever I include that and try to compile I get a number of errors:
error (comes up 3 times)
…/third_party/lwip/lwip/include/lwip/sockets.h:450:21: expected unqualified-id before numeric constant
error (comes up once)
…/third_party/lwip/lwip/include/lwip/sockets.h:450:21: expected ‘)’ before numeric constant
Anyone have any luck getting the music maker shield to work with an argon, (or any of the new mesh stuff?)