I am building a WallE. I started from a toy, took it apart and installed the bot board and few servos for head arms and motors for propulsion.
I am now looking for adding some music, sound which I could pilot from the bot board (with Atom Pro)
I just need around 5 minutes, on differents files.
I wonder if someone could help me with that problem, I have been looking on the web but no success.
Hi Paju,
Welcome to the forum.
You need to check out the contest entry from Orac. He uses a Quadravox speech module which seems exactly what you need.
I hope it helps!
Xan
Yep, I would recommend the Quadravox unit, but you will need an amplifier to get some decent volume out of the bot.
There are some other MP3 playback modules around, I checked out these two as well.
active-robots.com/products/accessories/ump3.shtml
hvwtech.com/products_view.asp?ProductID=598
Orac
thank you for your help guys, much apreciated
I will right now have a look at your links
thanks
After a very long reflexion (no I am too much impatient) I went for the VMusic 2 because
the quadravox apparently requires another board in order to program and transfert Data which add to the cost.
The uMP3 seems perfect but very expensive
then Vmusic might be a bit more complex to use but is very cheap, so i’ll give it a try.
I’ve just ordered it, and let you know about progress.
but can’t manage to make it working.
so I’ve got BB2 + atom Pro + Vmusic 2
as describe on the web for the wiring :
garageofevil.com/tech/vmusic2_tutorial.php
and the code :
high P12 'to get 5V power
main :
serout P12,I9600,5000,“VSV 0”, 13] 'starts volume at full
serout p12,I9600,5000,“VPF 1.mp3”, 13] 'play mp3
Pause 5000
goto main
I used a 128 meg usb key in case the firmware is not up to date
put a MP3 called 1.mp3
then nothing, even the LED on the Vmusic is not flasing
HELP
first off this is a bit much asking people to go research what you are trying to do so they can guide you through how to trouble shoot what you’ve done wrong. sigh.
perhaps a picture of your VS2 board so we can verify you have the jumper they jump up and down about on the tutorial being in the correct location actually in the correct location would be a good idea.
perhaps a picture of the modified cable assembly you are using so we can verify it is actually modified as per the instructions in the tutorial would be a good idea.
perhaps a picture of your bb2 with the cable assembly plugged into it so we can verify what you have connected to what. save yourself the hassle of answering how things are powered later and make sure the photo also includes how your bb2 is powered and we can verify the jumpers are in the correct locations would be a good idea.
right now, just looking at this, my initial question is if you are using P12 to power the VS2 then how are you using the same pin to send the serout commands? since we have no idea what you actually have wired to what, um, yeah… about those pictures.
If i gave the link and thought it was important, it is because i did read everything and tried to do everything as explained.
Of course I probably done something wrong.
I will post ASAP some pics .
Thank you for your reaction, it evident that you can’t help if I don’t provide all the info.
Keep in mind, I am a newbie. It is probably the first time I post something on a forum
thanks
Back with some more info
powering BB2 with 9V + 6V
picasaweb.google.co.uk/larousse. … directlink
and the corresponding code :
high P0 'to get 5V power
main :
serout P0,9600,“VSV 0”, 13] 'starts volume at full
serout p0,9600,“VPF 1.mp3”, 13] 'play mp3
Pause 5000
goto main
I don’t know if I need the loop, and Pause, but I copied this code from another Website, he was justifying that without the pause the music stopped playing.
Pascal
One quick thing I noticed is that in your current code you posted, you show:
serout P0,9600,"VSV 0", 13] 'starts volume at full
The 9600 needs to be something like n9600 or i9600 depending on if it is normal or inverted output…
Kurt
ok,
apparently it has to be 9600 bauds, 8 bits, no parity, 1 stop bit, and No flow control which would correspond to E9600 which from the atompro doc is optional.
but I’ll try thanks
Nice pics palu.
It does appear to be wired correctly and have jumpers in the correct places.
I would comment that the power is always applied to the vmusic2 in the current configuration. I don’t know if that matters or not. I doubt the “high P0” at the start of your code has any impact.
It might not hurt to pause for a second or before sending anything to the vmusic2 module though. Perhaps put a “pause 2000” just befor the “main:” label.
You can probably move the supply pin from P0 to the P1 signal pin and use P1 to turn power on/off. The only thing I can think of off hand for why this would matter is whether or not it cares about the state of the RXD line when power is first applied. It is unlikely this is the problem.
It doesn’t look like the vmusic2 has an on-board speaker like the Bot Board II, so wouldn’t it make sense to plug in a speaker before you can really test out what you’ve done so far? Sorry if you’ve already done so, but it wasn’t in the pictures, so I figured I would ask.
yes I did plug a speaker and tried with earphones as well
thanks eddie for your comments
I tried to reformat my usb key, then now i’ve got a green light, which i suppose is a good sign, but it still not play anything.
I WILL DO IT
It is WORKING ,)
here is the code if anybody needs in future :
serout P0,i9600,“VSV 10”, 13] 'starts volume at full
serout p0,i9600,“V3A”, 13] 'play mp3
only 2 lines …
for the wiring, cf previous pics
thanks everybody for helping
Pascal
By the way thank you Kurt, you gave me the answer to my problem.
Thanks ( i9600)
I look forward to seeing the whole thing working on Youtube some time.
I recently got the vmusic and hooked it up to a bot board II/Atom pro. Everything works fine except the volume (VSV) fxn. I have tried using straight dec or hex for the vol parameter with no luck (vol stays unchanged). Any ideas why this is not working for me?
I wired up the vMusic device as shown here (P6 in the picture = P4 for my setup, and P7 = P5 for my setup)
Baudset var word
Baudset = i9600 'default baud rate for vmusic
SEROUT P4, Baudset,“VST”,13] 'stop anything that’s playing
VolMax CON $00
VolMin CON $FE
'also tried to use dec values for VolMax and VolMin with to no effect.
’ ----- Program Code ]----------------------------------------------------
Main:
SEROUT P4, Baudset,“VSV VolMax”,13] 'set vol to max (dec 0)
pause 1000
SEROUT P4, Baudset,“VPF test.mp3”,13] 'Play a file named “test.mp3”
PAUSE 1000
SEROUT P4, Baudset,“VST”,13] 'Stop playback
PAUSE 1000
SEROUT P4, Baudset,“VSV VolMin”,13] 'set vol to min (dec 254)
PAUSE 1000
SEROUT P4, Baudset,“VPF test.mp3”,13] 'Play a file named “test.mp3”
pause 1000
end
NOTE: insufficient power (low battery, or wallwart w/too low mA output) will result in the vmusic module either working irregularly or not working all (and the module LED will flash red once).
code for atom pro to get full volume range:
VM_Volume:
for bb = 50 to 0 step -5 ’ volume goes from low to high
serout S_OUT, i57600, "bb: ",dec bb,13] 'debugging
SEROUT vmusic_rx, Baudset, "VSV ",bb, 13] 'vsv parameter range 0-50 dec, 50 = quietest
pause 3000 'for debugging only
SEROUT vmusic_rx, Baudset,“VPF hello0.mp3”,13] 'Play a file named “test.mp3”
next
for bb = 0 to 50 step 5
serout S_OUT, i57600, "bb: ",dec bb,13]
SEROUT vmusic_rx, Baudset, "VSV ",bb, 13]
pause 3000
SEROUT vmusic_rx, Baudset,“VPF test.mp3”,13] 'Play a file named “test.mp3”
next
RETURN