Control of uMP3 Volume
Trying to control the volume of the Rogue uMP3 Player with the Stamp without much or should we say any success. I am sure that I have something wrong in the code. Any help would be appreciated.
VOLFULL:································ 'Reset the volume to "full"
· SEROUT TX,BAUD,[noparse][[/noparse]"PC ST V ",120,CR]
· PAUSE 500
· RETURN
VOLLOW:································· 'Reset the volume to "LOW"
· SEROUT TX,BAUD,[noparse][[/noparse]"PC ST V ",254,CR]
· PAUSE 500
· RETURN
Thank You
Guido
VOLFULL:································ 'Reset the volume to "full"
· SEROUT TX,BAUD,[noparse][[/noparse]"PC ST V ",120,CR]
· PAUSE 500
· RETURN
VOLLOW:································· 'Reset the volume to "LOW"
· SEROUT TX,BAUD,[noparse][[/noparse]"PC ST V ",254,CR]
· PAUSE 500
· RETURN
Thank You
Guido

Comments
I believe the uMP3 wants the value in ASCII text, which would mean you’d use a command like the one below. Take care.
But if you wanted to use a variable you could use:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I had luck using this routine on a BSIIp to fade out the music from a uMP3 in a device I built:
' ************************ ' * I/O Definitions * ' ************************ MP3music PIN 3 ' uMP3b: set the pin where the uMP3 "R" pin is connected MUSIC ' ************************ ' * Variables * ' ************************ ' Rogue uMP3 player Volume VAR Byte ' uMP3 Volume control variable 0-255, 0= loudest ' ************************ ' * Constants * ' ************************ 'uMP3 Settings uMP3Baud CON T9600 ' uMP3 music player DefaultVolume CON 0 ' Default volume level FadeTime CON 30 ' Delay between volume commands in fade routines MinVolume CON 80 ' Minimum volume VolumeStep CON 2 ' Volume fade steps '*********************** '* Fade out music * '*********************** Volume = DefaultVolume DO WHILE Volume < MinVolume SEROUT MP3music,uMP3Baud,[noparse][[/noparse]"PC V ",DEC Volume,CR] Volume = Volume + VolumeStep PAUSE FadeTime ' DEBUG "PC V ",DEC Volume,CR LOOPThe above assumes the uMP3 is already playing music. [noparse]:)[/noparse]
Also, remember that ZERO is the LOUDEST setting.. sorta counter-intuitive, but once u have it coded its a non-issue [noparse]:)[/noparse]
Vern
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔