The bear
Senior Member
Hello Everyone,
I'm using a SEP035 MP3 from Rev Ed,.
It plays fine as a stand alone unit.
I've failed to get it working properly, when coupled to a 14M2, using the code from the SPE035 manual.
It just plays music from track one continuously, this is probably how its coded.
My object is to get it to play random tracks continuosly, when switched on.
I have experimented with different command codes.
Searched the forum, not found the answer.
Also will the 14M2 switch it on and off?
http://www.picaxe.com/docs/spe035.pdf
The micro SD card contains 25 tracks from a music CD.
I have experimented with different command codes.(SPE035)
Searched the forum, not found the answer.
As you have gathered, my knowledge is limited.
The SPE035 manual shows a connection to pinC.2 from Busy, but no code.
I don't understand what command $12 does (cmd = $12 : arg = 0025)
Any guidance would be appreciatedhttp://www.picaxe.com/docs/spe035.pdf
linkhttp://www.picaxe.com/docs/spe035.pdf
I'm using a SEP035 MP3 from Rev Ed,.
It plays fine as a stand alone unit.
I've failed to get it working properly, when coupled to a 14M2, using the code from the SPE035 manual.
It just plays music from track one continuously, this is probably how its coded.
My object is to get it to play random tracks continuosly, when switched on.
I have experimented with different command codes.
Searched the forum, not found the answer.
Also will the 14M2 switch it on and off?
http://www.picaxe.com/docs/spe035.pdf
The micro SD card contains 25 tracks from a music CD.
I have experimented with different command codes.(SPE035)
Searched the forum, not found the answer.
As you have gathered, my knowledge is limited.
The SPE035 manual shows a connection to pinC.2 from Busy, but no code.
I don't understand what command $12 does (cmd = $12 : arg = 0025)
Any guidance would be appreciatedhttp://www.picaxe.com/docs/spe035.pdf
Code:
;MP3 from data sheet
#picaxe 14M2
#No_data
#Com 3
Symbol tx = B.4
Symbol rx = C.3
Symbol busy_pin = pinC.2
Symbol baud_freq = M8 Symbol baud = T9600_8
Symbol cmd = b0
Symbol arg = w1 ; b3:b2 Symbol arg.lsb = b2 Symbol arg.msb = b3
Symbol arg.lsb = b2
Symbol arg.msb = b3
Sertxd("From data sheet",Cr,Lf)
High tx ; set TX pin high for idle high serial
Pause 2000 Sertxd("Starting", Cr, Lf )
Sertxd("Select microSD Card", Cr, Lf ) cmd = $09 : arg = $0002 : Gosub Send Pause 4000
Pause 1000
cmd = 0x06 : arg = 10 : Gosub Send ;Volume?
Pause 1000
cmd = 0x08 : arg = 3 : Gosub Send ;Random
Sertxd("Play MP3 folder song 0001.mp3", Cr, Lf ) cmd = $12 : arg = 0025 : Gosub Send Pause 1000
Do
Pause 5000
Loop
Stop
Send: Setfreq baud_freq
Pause 10
Serout tx, baud, ( $7E, $FF, $06, cmd, $00, arg.msb, arg.lsb, $EF )
Setfreq Mdefault
Return