Sunday, August 6, 2017

erco's MP3 Player

My pal, erco (Eric Ostendorff, a.k.a. Mr. Roboto, from Servo Magazine) does it again. Cheap fun project. Eric says, "DIY this quick self-contained DIY MP3+speaker module for $4 plus your micro SD card. Search Ebay for a $3 Catalex YX5300 UART Serial MP3 Music Player Module and grab a Dollar Tree amplified speaker. For file format & serial commands, see http://geekmatic.in.ua/pdf/Catalex_MP... and numerous sites like http://www.amazingtips247.co.uk/2015/..."



and with a BASIC Stamp... Catalex MP3 BS2 Demo (with code!)



' {$STAMP BS2}
' {$PBASIC 2.5}
' {$PORT COM4}

PAUSE 500
SEROUT 15,84,[$7E,$FF,$06,$0c,$00,$00,$00,$EF] ' reset chip
PAUSE 500
SEROUT 15,84,[$7E,$FF,$06,$09,$00,$00,$02,$EF] 'Select TF card
PAUSE 500
SEROUT 15,84,[$7E,$FF,$06,$06,$00,$00,$1E,$EF] ' Set volume (0x1Eis30)
PAUSE 500

B0=01
Main:
DEBUG DEC B0
SEROUT 15,84,[$7E,$FF,$06,$03,$00,$00,B0,$EF]
PAUSE 4000
B0=B0+1
GOTO main

1 comment:

Eric said...

Dude's a genius! Let's double whatever we're paying him! :) As always, thanks for your very kind words, Whit+!

Post a Comment