Pumpkin spin code problem.
Crazyrabbit
Posts: 116
I just built up the latest project you guys posted on the Learn site for a pumpkin that flashes lights and plays WAV files from a micro SD card. I have very little experience with the Propeller. I am using a RPM board that has been modified for easy use. I loaded the 3 spin files you listed for the project. They loaded fine, but no noise. It just beeps quietly when the PIR sensor is triggered. I am using Veho amp and a Parallax mini SD card holder. I checked the wiring many times. At a loss. Any ideas ?
Comments
Did you load your own WAV files onto your SD card? The Halloween Pumpkin Project didn't include the WAV files, only code and schematic. This was mentioned in the 'Carve Your Pumpkin' section, about 3/4 of the way down the page.
I hope this helps.
I just posted these tips for SD cards and encoding audio in the EFX-TEK forums -- have a look:
-- http://www.efx-tek.com/php/smf/index.php?topic=2085.0
Is the SD Card formatted for FAT16/32? Also, I did have some issues playing certain WAV files which I later found out did not meet the requirements of the WAV Player object I used. Here are the details from the object. You could add a DEBUG routine to see the return code in case there is an issue. I hope this helps. Let us know.
'' ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
'' // Plays a WAV file on the SD/MMC card - supports WAV files up to ~2GB and over ~1 second of audio.
'' //
'' // The WAV player supports 8-Bit 1/2 channel WAV files sampled between 1 Hz to 44,100 Hz.
'' //
'' // The WAV player supports 16-Bit 1/2 channel WAV files sampled between 1 Hz to 44,100 Hz.
'' //
'' // If an error occurs while reading the WAV file a string describing that error will be returned. Null otherwise.
'' //
'' // If an error occurs while reading the FAT file system a string describing that error will be returned. Null otherwise.
'' //
'' // FilePathName - A file system path string specifying the path of the WAV file to play.
'' ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////