Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 8 of 8

Thread: Received my audio shield today and want some test to done...but...

  1. #1

    Received my audio shield today and want some test to done...but...

    Hi,

    today I reveived my audio shield.

    A sine sweep works fine ... aside from nearly pinching my eardrum...

    Then I wanted to check the wavplayer.

    Accessing the SDcard inserted into the Audios shield works, but the
    sound stutters a lot.

    I changed the header of the file to:
    Code:
    // Use these with the Teensy Audio Shield
    //#define SDCARD_CS_PIN    10
    //#define SDCARD_MOSI_PIN  7
    //#define SDCARD_SCK_PIN   14
    
    // Use these with the Teensy 3.5 & 3.6 SD card
    #define SDCARD_CS_PIN    BUILTIN_SDCARD
    #define SDCARD_MOSI_PIN  11  // not actually used
    #define SDCARD_SCK_PIN   13  // not actually used
    
    // Use these for the SD+Wiz820 or other adaptors
    //#define SDCARD_CS_PIN    4
    //#define SDCARD_MOSI_PIN  11
    //#define SDCARD_SCK_PIN   13
    and nothing happens anynmore.
    No stuttering...no sound at all ;|

    But also no printing of "Unable to access SD card"...

    What is the problem here?

    Cheers!
    Meino

  2. #2
    Member ETMoody3's Avatar
    Join Date
    Mar 2014
    Location
    New Ulm, Mn
    Posts
    54
    The change has the software access the sd card on the Teensy 3.5 or 3.6 and not the one on the audio shield.

  3. #3
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Location
    Colmar, France
    Posts
    2,459
    Could be a file format problem. The wav player example can only play 44.1kHz 16bit PCM encoded files. It will stutter or not play if a different format is used.

  4. #4
    Quote Originally Posted by ETMoody3 View Post
    The change has the software access the sd card on the Teensy 3.5 or 3.6 and not the one on the audio shield.
    Correct! So I put the SDcard into to Teensy's slot and the reported problem arises.
    How can I fix that?

  5. #5
    Quote Originally Posted by Theremingenieur View Post
    Could be a file format problem. The wav player example can only play 44.1kHz 16bit PCM encoded files. It will stutter or not play if a different format is used.
    The Audio Sample were take from here:
    https://www.pjrc.com/teensy/td_libs_AudioDataFiles.html

    so they should be ok, I think...

    Cheers!
    Meino

  6. #6
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,679
    Usually, this is a) a bad sd card (try a fresh one or reformat with the official format utility) or b) a problem with the hardware- unreliable connections, or too long.

  7. #7
    Member ETMoody3's Avatar
    Join Date
    Mar 2014
    Location
    New Ulm, Mn
    Posts
    54
    Well...if you moved the card and get no playback and no serial response...I gots nothing for you. Should work at least poorly. If it crackles, what Frank says.

  8. #8
    Senior Member+ manitou's Avatar
    Join Date
    Jan 2013
    Posts
    2,093
    Are you using T3.5/T3.6? what version of Arduino IDE and teensyduino?
    How is your audio shield attached to Teensy? (provide photo?)

    WavFilePlayer problem with BUILTIN_SDCARD, see https://forum.pjrc.com/threads/56239...er-not-working
    Last edited by manitou; 05-22-2019 at 05:19 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •