Vinculum VMUSIC2 connections to BS2
uxorious
Posts: 126
I am a newbie to the Basic Stamp but have been involved in electronics for a long time. (My first basic programming was on a TRS-80 in junior high and I have been in PCB Mfg since '91). In the last month or so I have obtained a homework board, professional development board, a BS2, a text to speech module, a VMUSIC2 module, and various other parts. I have several Stamp projects on my plate, but one in particular is giving me trouble (due to my lack of Stamp experience). Here are the details:
My daughter has a Power Wheels Mustang GT and since we have a year or so before she can reach the pedals, I have come up with several mods I would like to do to it. Some are simple like adding working headlights, tailights, remote kill, etc. One mod consists of rewiring the two buttons and speaker on the existing "radio" to be used with a Basic Stamp and Vinculum's VMUSIC2 USB/MP3 module. See http://www.vinculum.com/prd_vmusic1.html#vmusic2
The VMUSIC2 has UART connections of GND, RTS#, 5V, RXD, TXD, and CTS#. I am having trouble interfacing this with the BS2. I have searched several posts, but nothing gave me a standard answer for connecting a BS2 to a serial UART. Most are specific to a particular project. However, from the posts, I believe I should be using a MAX232? Any ideas and or tips as to properly interfacing between my BS2 and the VMUSIC2 would be greatly appreciated. I know you can connect the VMUSIC2 to a PC via USB using the USB-TTL cable from Vinculum ( http://www.ftdichip.com/Products/EvaluationKits/TTL-232R-3V3.htm ). Aren't the outputs of the BS2 at TTL level?
thanks,
Dru-
My daughter has a Power Wheels Mustang GT and since we have a year or so before she can reach the pedals, I have come up with several mods I would like to do to it. Some are simple like adding working headlights, tailights, remote kill, etc. One mod consists of rewiring the two buttons and speaker on the existing "radio" to be used with a Basic Stamp and Vinculum's VMUSIC2 USB/MP3 module. See http://www.vinculum.com/prd_vmusic1.html#vmusic2
The VMUSIC2 has UART connections of GND, RTS#, 5V, RXD, TXD, and CTS#. I am having trouble interfacing this with the BS2. I have searched several posts, but nothing gave me a standard answer for connecting a BS2 to a serial UART. Most are specific to a particular project. However, from the posts, I believe I should be using a MAX232? Any ideas and or tips as to properly interfacing between my BS2 and the VMUSIC2 would be greatly appreciated. I know you can connect the VMUSIC2 to a PC via USB using the USB-TTL cable from Vinculum ( http://www.ftdichip.com/Products/EvaluationKits/TTL-232R-3V3.htm ). Aren't the outputs of the BS2 at TTL level?
thanks,
Dru-
Comments
Post Edited (Mike Green) : 4/12/2007 4:17:42 PM GMT
sorry to barge in, but have you tried this yourself?
I'm in the same situation, trying to interface a BS2 to the Vmusic2 module.
Tried the connection you suggest, no response from the Vmusic.
Tried the "VPF" (play a file) and the "V3A" (play all mp3 files) commands with no results...
thanks, P.O.
Both Mike and myself have used some of the Vinculum Evaluation Boards and while I myself haven’t seen the VMusic 2 I believe the chip connections are the same. The Vinculum Chip is compatible with the BASIC Stamp 2 so it should work. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Although I tried the VDIP1 with a Stamp initially, most of my work with the Vinculum devices has been with a Propeller. I have used a VMUSIC2 with a Propeller and it hooks up just the same as the VDIP1 (the internal chip is the same). Make sure the jumper is set properly for the serial interface (UART) and make sure CTS# is connected properly.
Franklin,
The files are supposed to be standard MP3 files that you can download or convert from CD tracks or record directly on a PC or Mac and copy to a standard thumb drive.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
As for the files, they are on a SD card through a USB carrier. They're from my Macintosh: Although I can't check to see if they play on a PC 'cuz my PC is really helpless, the Mac reports the SD card & carrier combo as "DOS" formatted... I guess I should check this more seriously....
P.O.
I tried it on the supposedly UART position, and I tried without the jumper- it is supposed to default to UART function that way.
unless there are other jumpers inside the case I should care about??
P.O. e
Just to make sure on the connections, looking down on the top of the vmusic,
Pin 8 (R#)·····Blue........not connected
Pin 6 (CTS#) Green......connected to Vss
Pin 5 (TXD)·· Yellow.....connect to Stamp P1 (for this example)
Pin 4 (RXD)·· Orange....connect to Stamp P0 (for this example)
Pin 3 (5V0)··· Red........connect to Vdd
Pin 2 (RTS#)· Brown.....not connected
Pin 1 (GND)··· Black......connect to Vss
Jumper .......middle pin to left pin (as Mike and TChapman pointed out this jumper is important and has been described wrongly in the docs before. Try all three jumper possibilities with the following code before you give up)
I·am·unable·to try this but its worth a shot. The file extensions on the thumdrive must be MP3.
Jeff T.
·EDIT .......sorry I should say the jumper is looking down from the back when I say left pin.
Post Edited (Unsoundcode) : 4/18/2007 12:57:16 AM GMT
P.O.
P.O.
I have made a program using bits of Vmusic.bs2 that plays 33 seconds of the five mp3s stored on my cart, named 1 to 5.
'RXd=pin 4
t VAR nib
DEBUG "Please Wait"
'*******************[noparse][[/noparse]INITIALISE]******************
SEROUT 4,84,[noparse][[/noparse]"ipa",CR]
PAUSE 2 00
SEROUT 4,84,[noparse][[/noparse]"scs",CR]
PAUSE 2000
for t=1 to 5
DEBUG CLS,"playing ",dec t
serout 4,84,[noparse][[/noparse]$1D,$20,dec t,".mp3",$0D]
pause 33000
serout 4,84,[noparse][[/noparse]$20,CR]
pause 10000
next
end
Problems I had: used 16468 for baudrate instead of 84; My version of Stamp program does not understand "ret". There was some confusion as to what to use (CR, $0D, dec 13)...; I did not use any initialisation...
So now I'm on to a good start. Warm thanks to all who responded!
P.O.
regards
Jeff T.
I also communicated with the Rogue Mp3 player. Hell, I might even try to speak to the Olimex MOD-MP3 player that stubbornly refused any collaboration up to now...
anyways, I'll keep you posted.
P.O.,
As a side note now you have the 232 to ttl cable should you ever buy a Vdrive2 you can use a little app called V2eval that I used to get familiar with the Vdap commands, it·might also be good with the Vmusic2. At this link.
http://forums.parallax.com/showthread.php?p=637301
Jeff T.
Do you have a small code sample.· I have been trying this for several days and not having any luck.
I have a BS2P24
thanks
P.O.
' {$STAMP BS2}
' {$PBASIC 2.5}
stop_track CON $20
all_tracks CON $21
ret CON $0D
baud CON 84
tx CON 0
rx CON 1
key VAR Bit
t VAR Nib
DEBUG "Please Wait"
'*******************[noparse][[/noparse]INITIALISE]******************
SEROUT tx,baud,[noparse][[/noparse]"ipa",ret]
PAUSE 200
SEROUT tx,baud,[noparse][[/noparse]"scs",ret]
PAUSE 2000
'*************************************************
main:
FOR t=1 TO 5
DEBUG CLS,"playing ",DEC t
SEROUT tx,baud,[noparse][[/noparse]$1D,$20,DEC t,".mp3",$0D]
PAUSE 33000
SEROUT tx,baud,[noparse][[/noparse]$20,CR]
PAUSE 10000
NEXT
END
Thanks in advance.
' {$STAMP BS2px}
'RXd=pin 0
t VAR Nib
DEBUG "Please Wait"
'*******************[noparse][[/noparse]INITIALISE]******************
SEROUT 0,,[noparse][[/noparse]"ipa",CR]
PAUSE 2000
SEROUT 0,84,[noparse][[/noparse]"scs",CR]
PAUSE 2000
t=1
DEBUG CLS,"playing ",DEC t
SEROUT 0,84,[noparse][[/noparse]$1D,$20,DEC t,".mp3",$0D]
PAUSE 5000
SEROUT 0,16468,[noparse][[/noparse]$20,CR]
PAUSE 2000
DEBUG "end"
my track is on a thumbdrive... called 1.mp3
It should play, right? What am I doing wrong?
B
hope this helps
Jeff T.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
~~ dRu ~~
My bad, I can't believe I blew that one.
Thanks so much for the help.
B