November 23, 2024, 09:29:55 AM

News:

You can now use Vixen to program your Prop-1 and Prop-2 controllers!  Get started quickly and easily, without having to learn PBASIC.  Details in the Library forum.


Vmusic2 with Prop2 (beginning)

Started by RobertB, August 17, 2009, 01:02:54 PM

Previous topic - Next topic

RobertB

Very Basic. Trying to get it to work at all.  Here is the modified Scary Terry code:

' =========================================================================
'
'   File....... vm2_bs2_demo.bs2
'   Purpose.... Demonstrate VMusic2 driven by a BASIC Stamp 2 or Prop-2
'   Author..... Scary Terry
'   Started.... 4/16/2008
'   Updated....   8/17/09 by Robert
'
'   {$STAMP BS2}
'
' =========================================================================


' -----[ Initialization ]--------------------------------------------------
PAUSE 5000                                'allow VMusic2 to initialize
SEROUT 0,84, ["VST",CR]                   'stop anything that's playing
' -----[ Program Code ]----------------------------------------------------

Main:
   ' DEBUG "Hello World!"    'this works
SEROUT 0,84,["VPF Gozer.mp3",CR]           'Play a file named "Gozer.mp3"
PAUSE 10000

GOTO Main

' -----[ Subroutines ]-----------------------------------------------------

I have got the Vmusic2 wired up OK.  The unit works in a similar program on the prop1. (file is there, Vmusic plugged into pin 0, Hello world debug works).  Vmusic 2 lights do not flash to indicate reading file.

livinlowe

Check out this thread first:

http://www.efx-tek.com/php/smf/index.php?topic=1034.0

VMusic, while being cheap, is a pain in the butt sometimes. Follow that thread and see if you can get it working.
Shawn
Scaring someone with a prop you built -- priceless!

RobertB

I got it working. 

I was using the ftrfb code that was 2400 Baud, not the 9600 version needed for the prop2. 

JonnyMac

We have a whole section devoted to the pain-in-the-backside called the VMUSIC2 player:

http://www.efx-tek.com/php/smf/index.php?board=24.0
Jon McPhalen
EFX-TEK Hollywood Office