PDA

View Full Version : Question about my BS2 communicating with my computer???



Phillipsintech
08-08-2008, 09:54 PM
I am working on a project that requires a certain sound to play when a certain button is pushed. The sounds are stored on my computer. How do I access the sound files with the stamp and play them in a program?····please help
Thank Youhttp://forums.parallax.com/images/smilies/cool.gif

Mike Green
08-08-2008, 10:35 PM
The computer will have to do the playing of the sound. The Stamp can make simple tones, but can't play sound files. There are simple and inexpensive external devices (the Vinculum VMusic2 for example) that can play MP3 files recorded on a USB memory stick and can be controlled by a Stamp.

The Stamp can send serial information to the PC (like what's done with the DEBUG statement) and you'd need a program on the PC that listens on a serial port and plays a sound file.

Phillipsintech
08-08-2008, 10:48 PM
Thank you Mike
I will look into the Vinculum VMusic2. this sounds like what I need.
I will post my progress

Mike Green
08-08-2008, 10:52 PM
Parallax's USB Memory Stick Datalogger uses the same controller chip as in the VMusic2, so sample code for the Datalogger will also work with the VMusic2. The music play commands work the same way as the file access commands on the Datalogger, so you'd only need to make small modifications to the sample code to be able to play files.

As is true for most Parallax products, the web store page for any given product will have links to sample code and documentation for the product.

Phillipsintech
08-09-2008, 01:01 AM
So can I use the parallax Datalogger instead of the VMusic2??? I will have to look some info up about the datalogger i dont know much about it.

Mike Green
08-09-2008, 01:08 AM
The Datalogger does not have the MP3 decoder. The VMusic2 has different firmware that adds the MP3 playback commands, but is upward compatible with the firmware used in the other Vinculum-based devices including the Datalogger.

Phillipsintech
08-09-2008, 01:32 AM
Thank you