Getting my robot to sing with the uMP3
Tnadz
Posts: 14
Hello. I'm working on a robot that "dances" around and plays music. To play the music I'm hooking up the uMP3 module by RogueRobotics. I've been following the data sheets and using this tutorial (http://www.parallax.com/dl/docs/cols/nv/vol6/col/nv128.pdf). I've got everything going well so far, but I can't make the module play using the BS2. I tried simply running the program that Jon Williams used (Column 128 the Data Sheet on http://www.parallax.com/html_pages/downloads/nvcolumns/Nuts_Volts_Downloads_V6.asp the BS2 uMP3 Music Player file) and then replacing the songs he had with the ones I have. But nothing comes out.
Essentially I want to Have my robot see if anyone is around using a ping sensor, then have it Start the music, move it's motors in random motions so it "dances", and blink a bunch of LEDs which I have arrayed using a darlington transistor. Then if someone comes within view of the Ping sensor, the music stops, the motors and LEDs shut off and then it sits and monitors to see if the person has left yet. I haven't yet decided how I want to work the music tracks. I'll most likely have it pause whatever track it's on and then resume it as soon as it dances again. And then it would just continue through its playlist without shuffling. So I guess my question is, how can I modify the sample code for the "CD Shuffle" by Jon Williams to work with my robot? I'm running the most current version of everything and my stamp is a BS2 with v2.5 programming. I'll be more than happy to answer any questions you have about my work. Thanks
Essentially I want to Have my robot see if anyone is around using a ping sensor, then have it Start the music, move it's motors in random motions so it "dances", and blink a bunch of LEDs which I have arrayed using a darlington transistor. Then if someone comes within view of the Ping sensor, the music stops, the motors and LEDs shut off and then it sits and monitors to see if the person has left yet. I haven't yet decided how I want to work the music tracks. I'll most likely have it pause whatever track it's on and then resume it as soon as it dances again. And then it would just continue through its playlist without shuffling. So I guess my question is, how can I modify the sample code for the "CD Shuffle" by Jon Williams to work with my robot? I'm running the most current version of everything and my stamp is a BS2 with v2.5 programming. I'll be more than happy to answer any questions you have about my work. Thanks
Comments
After you replaced the songs he had with your own, were you able to get your songs to play manually (connected to a PC)? What's the firmware version of the uMP3?
It's been a year or so since I've played with the uMP3 using both a BS2 and a BS1 (Prop-1) and Jon's demo programs worked fine for me.
and
'
[noparse][[/noparse] Constants ]
#SELECT $STAMP
#CASE BS2, BS2E, BS2PE
T9600 CON 84
#ENDSELECT
SevenBit CON $2000
Inverted CON $4000
Open CON $8000
Baud CON Open | T9600
But I could be wrong. I just don't think the BS2 is communicating with the player properly. I did check my connections to make sure it isn't that and they are quite alright. And just so you know the wiring here it is:
R - P15
T - P14
G - Vss
G - Vss
+ - Vdd
SERIN RX, Baud, [noparse][[/noparse]char, DEC pos, DEC loopNum]
which is in the play section.
Post Edited (Tnadz) : 2/28/2007 11:10:55 PM GMT