wav files not playing on nano
i'm trying play sound files nano, nothing comes out of speakers except faint pop, , nothing. here code:
this breadboard looks like:

the speaker i'm using:
http://www.dx.com/p/50mm-3w-speaker-driver-unit-black-silver-118192#.u5yvmfldv8e
the sd card reader i'm using:
http://www.ebay.com/itm/1pcs-sd-card-module-slot-socket-reader-read-and-write-for-arduino-arm-mcu-is-/271423472886?pt=lh_defaultdomain_0&hash=item3f321984f6
ic i'm using:
http://www.taydaelectronics.com/cd4050-cd4050be-4050-buffers-line-drivers-hex-non-inverting-ic.html
tmrpcm library page:
https://github.com/tmrh20/tmrpcm/wiki
any ideas on how can troubleshoot problem is? i following guy's tutorial:
http://maxoffsky.com/maxoffsky-blog/how-to-play-wav-audio-files-with-arduino-uno-and-microsd-card/
the serial monitor says card initialized properly, problem?
code: [select]
#include <tmrpcm.h>
#include <sd.h>
tmrpcm audio;
void setup() {
serial.begin(9600);
serial.print(f("\ninitializing sd card..."));
if (!sd.begin(10)) {
serial.println(f("failed!"));
return;
}
serial.println("done.");
audio.speakerpin = 9;
audio.play("sound.wav");
}
void loop() {
}
this breadboard looks like:
the speaker i'm using:
http://www.dx.com/p/50mm-3w-speaker-driver-unit-black-silver-118192#.u5yvmfldv8e
the sd card reader i'm using:
http://www.ebay.com/itm/1pcs-sd-card-module-slot-socket-reader-read-and-write-for-arduino-arm-mcu-is-/271423472886?pt=lh_defaultdomain_0&hash=item3f321984f6
ic i'm using:
http://www.taydaelectronics.com/cd4050-cd4050be-4050-buffers-line-drivers-hex-non-inverting-ic.html
tmrpcm library page:
https://github.com/tmrh20/tmrpcm/wiki
any ideas on how can troubleshoot problem is? i following guy's tutorial:
http://maxoffsky.com/maxoffsky-blog/how-to-play-wav-audio-files-with-arduino-uno-and-microsd-card/
the serial monitor says card initialized properly, problem?
did circuit diagram there? wonder whether you're driving speaker correctly - i'd have expected see capacitor take out dc bias.
Arduino Forum > Using Arduino > Project Guidance > wav files not playing on nano
arduino
Comments
Post a Comment