Hello everyone. I'm working with the Arduino board and the Daisy MP3 Player (purchased through Make Mag - info avialable here:http://www.teuthis.com/html/daisy_mp3.html )
The code below is written for the Four-Four Mode and does play track 0001, however it only plays it for about one second.
According to the Daisy manual the B0 pin on the Daisy "is used to strobe in the track section." Later it says "momentarily bring B0/INTO low. I think this is where the problem lies in the code below. I couldn't get track 0001 to play at all when I just set B0 to LOW, that's why this code also sets the b0 to HIGH. When it is set to high it plays the correct track but only for a moment. I want it to play the track for the whole duration of the track.
Since I wrote the info above, I've tried a few other approaches. It seems that I am unable to get a "Low" or ground signal out of the arduino.
Thanks for any help you can offer. Cheers! JLK
//* PLAY Composition 00001
//*code by Jenn Karson
int Pin10 = 10; //arduino pin 10 goes to Daisy MP3 pin 0
int Pin9 = 9; //arduino pin 9 goes to Daisy MP3 pin 1
int Pin8 = 8; //arduino pin 8 goes to Daisy MP3 pin 2
int Pin7 = 7; //arduino pin 7 goes to Daisy MP3 pin 3
int Play11 = 11; //arduino pin 11 goes to Daisy MP3 B0
void setup() //run once, when the sketch starts
{
pinMode (Pin10, OUTPUT);
pinMode (Pin9, OUTPUT);
pinMode (Pin8, OUTPUT);
pinMode (Pin7, OUTPUT);
pinMode (Play11, OUTPUT);
}
void loop() //run over and over again
{ // Play track 0001
digitalWrite(Pin10, HIGH); // Dailsy MP3 Binary Track Choices
digitalWrite(Pin9, LOW);
digitalWrite(Pin8, LOW);
digitalWrite(Pin7, LOW);
digitalWrite (Play11, LOW);
digitalWrite (Play11, HIGH);
}