Shop OBEX P1 Docs P2 Docs Learn Events
Pumpkin spin code problem. — Parallax Forums

Pumpkin spin code problem.

CrazyrabbitCrazyrabbit Posts: 116
edited 2013-10-22 12:24 in Propeller 1
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

  • Courtney JacobsCourtney Jacobs Posts: 903
    edited 2013-10-22 08:45
    Crazyrabbit,

    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.
  • CrazyrabbitCrazyrabbit Posts: 116
    edited 2013-10-22 10:30
    Of coarse. I added a few and using a 2 big card. I heard the prop can't handle more then 2 gig cards.
  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-10-22 11:12
    That's not true. I routinely run 4 and 8 gig cards in the Propeller-powered AP-16+ audio player (which I co-designed). I even tried a 32 and it worked as well. Your audio files should not be longer than 2 gigs as this would cause a roll-over problem with Spin.

    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
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2013-10-22 12:24
    Crazyrabbit,

    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.
    '' ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Sign In or Register to comment.