Unable to play WAV file on Activity board
TheTech69
Posts: 51
in Propeller 1
The end goal is to build the Halloween Pumpkin Project (w/o XBee) that is on learn.parallax.com. The speaker is the Veho360 which is suggested in the tutorial. The memory card is 16GB SanDisk SDHC (smallest I could find at the time). For now I am using plain ole LEDs for the lighting.
I loaded the program and verified the pins of the microSD card, Left Channel and Right Channel (I think is what lpin and rpin means) of the speaker, and the PIR sensor. I previously formatted the microSD card to FAT32 and then copied a WAV file to the card; the only thing that is on the card. Well, it didn't work.
I verified the microSD card can be accessed by running "SD-test_103-Archive..." object from the Object Exchange. Next, I downloaded "V2-WAV" object. I made the necessary pin assignments for the microSD card and changed the string name of the file to what is on the microSD card. The object started successfully and displayed error that the file was not found. I promise the WAV file is on the card and I can play it through Windows Media player.
I'm at a loss of how to troubleshoot and isolate this. Thank you in advance for your assistance.
I loaded the program and verified the pins of the microSD card, Left Channel and Right Channel (I think is what lpin and rpin means) of the speaker, and the PIR sensor. I previously formatted the microSD card to FAT32 and then copied a WAV file to the card; the only thing that is on the card. Well, it didn't work.
I verified the microSD card can be accessed by running "SD-test_103-Archive..." object from the Object Exchange. Next, I downloaded "V2-WAV" object. I made the necessary pin assignments for the microSD card and changed the string name of the file to what is on the microSD card. The object started successfully and displayed error that the file was not found. I promise the WAV file is on the card and I can play it through Windows Media player.
I'm at a loss of how to troubleshoot and isolate this. Thank you in advance for your assistance.
Comments
You will need to put a copy of the three example '*.wav' files onto your SD card and change the pin numbers as needed in 'gun.spin' to match your setup. Doing this could eliminate some of the unknowns in your code and show whether a known program will work with your hardware setup.
Some people have had issues with different brands/sizes of SD cards working with various Propeller setups, perhaps that is also contributing to your problem.
What board are you using? I'm using a Parallax Project Board in my set-up.
A couple of tutorials that you might want to look at are the following:
learn.parallax.com/tutorials/language/propeller-c/propeller-c-simple-devices/play-wav-files
learn.parallax.com/support/reference/sound-library/formatting-audio-files-wav-players
The SD card drivers can not handle long filenames.
Andy
Now to build it.
Happy Halloween! (early)
Glad to hear it's working, Jason. Be sure to post a video of your finished project!