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

Thread: Teensy 2.0 With VS1053

Threaded View

  1. #1
    Junior Member
    Join Date
    Aug 2013
    Posts
    7

    Teensy 2.0 With VS1053

    Hi there. (btw sorry for my english)

    Trust me when I said that I've tried alot of libraries, tweaks and readings before posting here. I really like to find my problem on my own, but I think I've exhausted all forum/git/demo/etc that exists.

    I am trying to play mp3 files from an SD card with a VS1003/VS1053 board (see attached picture of the exact board)

    After alot of trial and error, the closest I've come is: No error, all Serial output trace look ok, weird wub coming out of the speaker that seems to follow the spi transfer of every mp3 block send to buffer.

    My last try was with the adafruit_vs1053 revised by Paul to add teensy 2 and 3 support.
    (https://github.com/PaulStoffregen/Ad...VS1053_Library)

    And ued the play file example. (Modified to my need)

    I've defined the spi pins (hardware)
    #define CLK 1 // SPI Clock, shared with SD card
    #define MISO 3 // Input data, from VS1053/SD card
    #define MOSI 2 // Output data, to VS1053/SD card

    And define all the chip select/reset/dreq as such
    #define RESET 9 // VS1053 reset pin (output)
    #define CS 10 // VS1053 chip select pin (output)
    #define DCS 8 // VS1053 Data/command select pin (output)
    #define CARDCS 4 // Card chip select pin
    #define DREQ 6 // VS1053 Data request, ideally an Interrupt pin
    (For DREQ, I have try 5 also since it's suppose to be Interrupt 0 (and 6 = int1)

    I have also try to change: #define VS1053_FILEPLAYER_PIN_INT 5
    from 5 to 6 and vice versa. Trying to fit DREQ

    I have commented the timer line and uncommented the dreq int
    // musicPlayer.useInterrupt(VS1053_FILEPLAYER_TIMER0_ INT); // timer int
    musicPlayer.useInterrupt(VS1053_FILEPLAYER_PIN_INT ); // DREQ int

    Tried with only playFullFile and then only startPlayingFile

    All those tests basically give me the same behavior: no error, everything fine, but weird noise wub in speaker while buffering/playing

    then it stop wubbing as soon as we arrive at

    currentTrack.close()

    Then nothing else seems to happen. the file.close works, then I suppose it return to the
    while (playingMusic) {
    feedBuffer();
    }

    But never go past here.

    In resumé, I feel like everything should works but maybe something really obvious is wrong and I need another pair of eyes.

    I don't want to clutter the thread with my example code (think the most important bits are there) but if needed I can post one of my latest variant.

    Thanks you alot for any small hint/help/encouragement :P
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	vs1053-mp3-module.jpg 
Views:	941 
Size:	200.5 KB 
ID:	745  
    Last edited by drMams; 08-01-2013 at 06:56 PM.

Tags for this Thread

Posting Permissions

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