SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By mauimaus
#199425
Hello thanks for your answer
They are the same and i tried to change the rate (9600, 115200), but it doesn't work. That's why i posted this question.

I also get a strange behavior when triggering sounds: they only play one second and stop. They used to play fine, then it sterted to get slower (slower response to the trigger), and now this.
Could it be that the SD card doesn't work properly? I erased it once and reformatted it to see if it would help.
But it seems to get worse.

I am wondering if i have one problem or two separate problems.

I don't know what to do.
By mauimaus
#199426
Hello again
I somehow made the serial monitor generate real text.
(using 9600 baud).
When it finds the triggers, it doesn't play it, it reinitializes the sd card and reads the root directory again, in a loop
when it says "playing", it doesn't and goes on to initialize the sd card and so on
(see log file of the serial monitor)

the sketch file is the original "trigger" sketch, unchanged.
The board is brand new.
This used to work fine, i don't know what the problem is.
thanks for your help!

log:
Lilypad MP3 Player trigger sketch
initialize SD card... success!
initialize MP3 chip... success!
reading root directory
found a file w/o a leading number: SPOTLI~1
found a file with a leading 3: 3-BODY~1.MP3
found a file w/o a leading number: _3-BOD~1.MP3
found a file with a leading 4: 4-BRAI~1.MP3
found a file w/o a leading number: _4-BRA~1.MP3
found a file with a leading 5: 5-BODY~1.MP3
found a file w/o a leading number: _5-BOD~1.MP3
found a file with a leading 1: 1-WORL~2.MP3
found a file w/o a leading number: TRASHE~1
done reading root directory
trigger 1: 1-WORL~2.MP3
trigger 2:
trigger 3: 3-BODY~1.MP3
trigger 4: 4-BRAI~1.MP3
trigger 5: 5-BODY~1.MP3
got trigger 1
Lilypad MP3 Player trigger sketch
initialize SD card... success!
initialize MP3 chip... success!
reading root directory
found a file w/o a leading number: SPOTLI~1
found a file with a leading 3: 3-BODY~1.MP3
found a file w/o a leading number: _3-BOD~1.MP3
found a file with a leading 4: 4-BRAI~1.MP3
found a file w/o a leading number: _4-BRA~1.MP3
found a file with a leading 5: 5-BODY~1.MP3
found a file w/o a leading num⸮Lilypad MP3 Player trigger sketch
initialize SD card... success!
initialize MP3 chip... success!
reading root directory
found a file w/o a leading number: SPOTLI~1
found a file with a leading 3: 3-BODY~1.MP3
found a file w/o a leading number: _3-BOD~1.MP3
found a file with a leading 4: 4-BRAI~1.MP3
found a file w/o a leading number: _4-BRA~1.MP3
found a file with a leading 5: 5-BODY~1.MP3
found a file w/o a leading num⸮Lilypad MP3 Player trigger sketch
initialize SD card... success!
initialize MP3 chip... Lilypad MP3 Player trigger sketch
initialize SD card... success!
initialize MP3 chip... success!
reading root directory
found a file w/o a leading number: SPOTLI~1
found a file with a leading 3: 3-BODY~1.MP3
found a file w/o a leading number: _3-BOD~1.MP3
found a file with a leading 4: 4-BRAI~1.MP3
found a file w/o a leading num⸮Lilypad MP3 Player trigger sketch
initialize SD card... success!
initialize MP3 chip... success!
reading root directory
found a file w/o a leading number: SPOTLI~1
found a file with a leading 3: 3-BODY~1.MP3
found a file w/o a leading number: _3-BOD~1.MP3
found a file with a leading 4: 4-BRAI~1.MP3
found a file w/o a leading number: _4-BRA~1.MP3
found a file with a leading 5: 5-BODY~1.MP3
found a file w/o a leading number: _5-BOD~1.MP3
found a file with a leading 1: 1-WORL~2.MP3
found a file w/o a leading number: TRASHE~1
done reading root directory
trigger 1: 1-WORL~2.MP3
trigger 2:
trigger 3: 3-BODY~1.MP3
trigger 4: 4-BRAI~1.MP3
trigger 5: 5-BODY~1.MP3
got trigger 1
playing 1-worl~2.mp3
Lilypad MP3 Player trigger sketch
initialize SD card... success!
initialize MP3 chip... Lilypad MP3 Player trigger sketch
initialize SD card... success!
initialize MP3 chip... success!
reading root directory
found a file w/o a leading number: SPOTLI~1
found a file with a leading 3: 3-BODY~1.MP3
found a file w/o a leading number: _3-BOD~1.MP3
found a file with a leading 4: 4-BRAI~1.MP3
found a file w/o a leading number: _4-BRA~1.MP3
found a file with a leading 5: 5-BODY~1.MP3
found a file w/o a leading number: _5-BOD~1.MP3
found a file with a leading 1: 1-WORL~2.MP3
found a file w/o a leading number: TRASHE~1
done reading root directory
trigger 1: 1-WORL~2.MP3
trigger 2:
trigger 3: 3-BODY~1.MP3
trigger 4: 4-BRAI~1.MP3
trigger 5: 5-BODY~1.MP3
got trigger 1
playing 1-worl~2.mp3
Lilypad MP3 Player trigger sketch
initialize SD card... success!
initialize MP3 chip... Lilypad MP3 Player trigger sketch
initialize SD card... success!
initialize MP3 chip... success!
reading root directory
found a file w/o a leading number: SPOTLI~1
found a file with a leading 3: 3-BODY~1.MP3
found a file w/o a leading number: _3-BOD~1.MP3
found a file with a leading 4: 4-BRAI~1.MP3
found a file w/o a leading num⸮Lilypad MP3 Player trigger sketch
initialize SD card... success!
initialize MP3 chip... success!
reading root directory
found a file w/o a leading number: SPOTLI~1
found a file with a leading 3: 3-BODY~1.MP3
found a file w/o a leading number: _3-BOD~1.MP3
found a file with a leading 4: 4-BRAI~1.MP3
found a file w/o a leading number: _4-BRA~1.MP3
found a file with a leading 5: 5-BODY~1.MP3
found a file w/o a leading num⸮Lilypad MP3 Player trigger sketch
initialize SD card... success!
initialize MP3 chip... success!
reading root directory
found a file w/o a leading number: SPOTLI~1
found a file with a leading 3: 3-BODY~1.MP3
found a file w/o a leading number: _3-BOD~1.MP3
found a file with a leading 4: 4-BRAI~1.MP3
found a file w/o a leading num⸮Lilypad MP3 Player trigger sketch
initialize SD card... success!
initialize MP3 chip... Lilypad MP3 Player trigger sketch
initialize SD card... success!
initialize MP3 chip... success!
reading root directory
found a file w/o a leading number: SPOTLI~1
found a file with a leading 3: 3-BODY~1.MP3
found a file w/o a leading number: _3-BOD~1.MP3
found a file with a leading 4: 4-BRAI~1.MP3
found a file w/o a leading number: _4-BRA~1.MP3
found a file with a leading 5: 5-BODY~1.MP3
found a file w/o a leading num⸮Lilypad MP3 Player trigger sketch
initialize SD card... success!
initialize MP3 chip... success!
reading root directory
found a file w/o a leading number: SPOTLI~1
found a file with a leading 3: 3-BODY~1.MP3
found a file w/o a leading number: _3-BOD~1.MP3
found a file with a leading 4: 4-BRAI~1.MP3
found a file w/o a leading number: _4-BRA~1.MP3
found a file with a leading 5: 5-BODY~1.MP3
found a file w/o a leading number: _5-BOD~1.MP3
found a file with a leading 1: 1-WORL~2.MP3
found a file w/o a leading number: TRASHE~1
done reading root directory
trigger 1: 1-WORL~2.MP3
trigger 2:
trigger 3: 3-BODY~1.MP3
trigger 4: 4-BRAI~1.MP3
trigger 5: 5-BODY~1.MP3