PDA

View Full Version : VSA to RS232 to a BS2?



Ross
11-22-2009, 06:46 AM
I have an art project that uses a BS2P40 driving 32 LEDs via transistor arrays. Programming the PWM'd lighting sequencing has been a lot of fun but now I want more whistles and bells. Is it practical to use the programming port on the Stamp to receive serial data from a PC running a program like VSA (Visual Show Automation from Brookshire software)? I'd like to not have to give up one of my 32 I/O pins for serial communication, plus the programming port can already handle the PC port's voltages.

I've used VSA before to sync sound to servos using Scott Edward's Mini SSCs. I thought I might be able to program the BS2 to listen for the serial commands that the Mini SSC would've otherwise received and then act accordingly (i.e. brighten and dim LEDs instead of driving servos). My concern is that this might be too slow to work effectively.

BTW, I know there are slicker ways to sequence LEDs to sound. I ultimately plan to start playing with the Propeller and DMX once this project's immediate deadline is over. I'd just like to do something fairly quickly with the Stamp, if possible.

I'd greatly appreciate any advice.

Thanks,

Ross

Mike Green
11-22-2009, 07:02 AM
I don't know anything about VSA, but you can use the programming port for serial data from a PC. The primary restriction is that the Stamp will echo received characters back to the PC. You can use the SERIN / SEROUT statements with port #16.

Ross
11-23-2009, 01:09 AM
Thanks, Mike. I assume the echoed characters done by the Stamp would slow it down a bit because it's more stuff the Stamp has to do?

Thanks,

Ross

Mike Green
11-23-2009, 02:00 AM
No, the echoing is a result of the circuitry used to interface the Stamp's processor to the RS232 port used for programming. The Stamp's processor is not involved.

Ross
11-24-2009, 04:04 AM
Thanks, Mike. Sounds like something worth trying.

I appreciate the help!

Thanks,

Ross

Ross
11-25-2009, 09:26 AM
Is it possible·to·command multiple Stamps via their programming ports·from a PC's serial port using a daisy chained DB-9 cable?

Tim-M
11-25-2009, 10:53 AM
Hi Ross,

Jon Williams and John Barroman (former Parallax employees) started their own company a few years back called EFX-TEK. They have created and sell the effects boards called the Prop-1 and the Prop-2 (among others) which are based on the Basic Stamp I and Basic Stamp II as their respective cores. Jon Williams has done quite a bit of work with VSA and the BS2... take a look at the EFX-TEK forums here: forums.efx-tek.com and I'm sure he can help you out.

Tim

Edit: I forgot to mention that I believe most of the VSA stuff is in the 'Miscellany' child board... maybe some in others too, just look around a bit or post a question about it.

Post Edited (Tim-M) : 11/25/2009 2:59:58 AM GMT

Ross
11-25-2009, 11:53 AM
Hi Tim,

Wow, I didn't know of EFX-TEK! This is great stuff! They have a lot of products that would've saved me a lot of headaches. I registered for their forum and have been checking out message threads. Very cool...

Thanks!

Ross

Tim-M
11-26-2009, 10:14 AM
You're welcome Ross, I hope it helps you reach your goal.

Tim