Hi folks. I bought this module: Amazon.com - this looks similar to one in this post.
Playing around with it, I've got it to work in an MP3 mode, that is, by directly activating a pin to play an MP3 file. eg: pin4 activates file 00004.mp3 (plays on both the 3.5mm jack and the amplifier pins).
However, I really want to use the one_line single bus command mode, where commands are sent via a TX port from the arduino. Damned if I can figure out how to send out the data however.
Has anyone else got this to work from an arduino?
I've tried many different commands/syntax, but nothing seems to work. These commands seem to be most intuitive, but they don't work either - using pin11 (Tx, output mode) I've also tried sending the commands separately as well instead of in just one variable,
I did find a full description of the card as well, which describes how things work on the card, but nothing for the arduino.
// for the sound board
#include <SoftwareSerial.h>
SoftwareSerial myMP3_TX (10,11); // RX, TX
// for the sound card to play music/sounds (04 = select file 00004.mp3, 0B select, 11 play)
byte SOUND_4_MUSIC[] = {0x04, 0x0B, 0x11};
byte SOUND_STOP = {0x13};
//-----------
void setup(){
Serial.begin(9600);
myMP3_TX.begin(9600);
}
//-------- START OF MAIN LOOP
void loop(){
Serial.println("TRACK 4");
myMP3_TX.write(SOUND_4_MUSIC, sizeof(SOUND_4_MUSIC));
delay(50000);
}
// END OF MAIN LOOP