I have some of these nice little MP3 player boards, usually sold as "Catalex" MP3 players for a few dollars. Erco wrote them up in his column a few years back:
I've got a bunch I've acquired over the years, they all look alike, and they drift around from project to project without any problem...until recently.
It seems they have "upgraded" the players to make them slightly cheaper, and they removed a feature that used to work. This had me going nuts...why didn't my old code work?! It was so simple!
The feature that I can't get to work is the folders on the SD card. Take a look at this code, right after Main:
Since the player can play files from 1 - 255, this is no big loss. Just name all your files like 001xxx.mp3, 002xxx.mp3, etc, copy them to a microSD card in a folder named 001. Then use the first version of the command, changing the last "$01" to the number of the file. Whew!
I even went through the two Arduino libraries that are out there...guess what? One of them doesn't bother with the folders, either.
Vmusic2 cockrill
I have been asked if i can add a Cockrill sound to an animated display, always looking for opportunities to use the picaxe's now, it seems the store is out of Vmusic2 modules so i have ordered one from RS, Firstly what the best picaxe to control it with i have the AXE091 board and it came with a...
picaxeforum.co.uk
I've got a bunch I've acquired over the years, they all look alike, and they drift around from project to project without any problem...until recently.
It seems they have "upgraded" the players to make them slightly cheaper, and they removed a feature that used to work. This had me going nuts...why didn't my old code work?! It was so simple!
The feature that I can't get to work is the folders on the SD card. Take a look at this code, right after Main:
Code:
#Picaxe 08M2
SetFreq m8 'Must be set to 8mhz or 16mhz for Serout command to work at 9600 baud
Init:
pause 1000 'Required for proper operation after power-up
serout C.2,T9600_8,($7E,$FF,$06,$0C,$00,$00,$00,$EF) ' Reset/Init
pause 1000 'Required for proper operation after command
serout C.2,T9600_8,($7E,$FF,$06,$09,$00,$00,$02,$EF) 'Select TF socket on Catalex
pause 1000 'Required for proper operation after command
serout C.2,T9600_8,($7E,$FF,$06,$06,$00,$00,$0F,$EF) 'Set volume to half ($0F is 15 in hex)
pause 1000 'Required for proper operation after command
Main:
serout C.2,T9600_8,($7E,$FF,$06,$03,$00,$00,$01,$EF) 'Play the first song on the card (should be in folder 001) << This works!
'serout C.2,T9600_8,($7E,$FF,$06,$0F,$00,$01,$01,$EF) 'Play 001 folder, 001 song << This DOES NOT WORK ANY MORE
pause 12000 'Frequency is 8mhz, so this is actually 6 seconds
serout C.2,T9600_8,($7E,$FF,$06,$0E,$00,$01,$02,$EF) 'Pause playback
pause 12000 ' 6 seconds
I even went through the two Arduino libraries that are out there...guess what? One of them doesn't bother with the folders, either.