EFX-TEK
September 09, 2010, 01:23:28 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Be sure to checkout our Vixen interfaces in the Library forum -- if you want PC automation at near zero cost, EFX-TEK and Vixen is a great combination of tools.
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: Random Servo and LED  (Read 331 times)
uncle
New Member
*
Posts: 31


« on: March 17, 2010, 11:30:55 AM »

Jon-

I almost posted this in the Expanding LED Controller thread, but then decided it would need its own thread.

I have a simple 2-axis eye (standard micro servos) that I would like to use with the "Cylon" program.  But not synchronized.  Ideally it would have the Cylon program calmly lighting back and forth 5 LED's with the eye not moving. 

Upon receiving a signal from a switch (mat etc) I would like to see the LED's fire in an almost frantic random sequence, AND the eye to start looking around in another almost frantic random manner at the same time, And play a 10 sec (or so) audio file from a VMusic player (which I know you hate).  So the whole random sequence would run for about the length of the audio file. At the end of this sequence it would reset to the calm Cylon lighting.

What little I have learned so far of SX programming leads me to think that servos, LEDs, and randomness might be doable, but throwing in the VMUsic may bugger it up.  Could the SX do the rest,  and send a signal out through a Pin to activate a nearby Prop-1 with the VMusic run by that?
Report to moderator   Logged
JonnyMac
Administrator
Hero Member
*****
Posts: 3302



WWW Email
« Reply #1 on: March 17, 2010, 12:19:11 PM »

It could be done on the Prop-SX, though the code will take some time.  If you can give me until after Transworld I'll do that for you.  Sorry to delay you, it's the first big trade show of the year and we have a lot of stuff on our plates.
Report to moderator   Logged

Jon Williams
EFX-TEK
uncle
New Member
*
Posts: 31


« Reply #2 on: March 17, 2010, 01:08:00 PM »

No rush at all.  I wish I was going to Transworld!
Report to moderator   Logged
uncle
New Member
*
Posts: 31


« Reply #3 on: March 30, 2010, 11:59:30 AM »

Jon-

For now, could we drop the VMusic portion and just have the calm then frantic portions?  I am considering a new audio product that is rumored to be available shortly  Wink but depending on physical space limitations, I may not be able to incorporate either one.

The LED's are on Out0-4 leaving the rest available for the 2 servo's, mat switch, etc.
Report to moderator   Logged
JonnyMac
Administrator
Hero Member
*****
Posts: 3302



WWW Email
« Reply #4 on: March 30, 2010, 12:36:44 PM »

Let me get my legs back under me -- that said, I'll start porting modules that work to a demo program.

One of the troubles with the VMUSIC is that it pumps out timing info while it plays which means you need to be pulling that from the buffer; I'll try to make that easy, but what you're asking for is a little involved (not complaining, just being truthful up front).
Report to moderator   Logged

Jon Williams
EFX-TEK
uncle
New Member
*
Posts: 31


« Reply #5 on: March 31, 2010, 12:37:52 PM »

Jon-

There is no rush.  If I had gone to Transworld, I think I would have taken several days off afterwards.
« Last Edit: March 31, 2010, 12:42:51 PM by uncle » Report to moderator   Logged
JonnyMac
Administrator
Hero Member
*****
Posts: 3302



WWW Email
« Reply #6 on: March 31, 2010, 03:30:56 PM »

Thanks for the understanding; I'm climbing back into the saddle, albeit very slowly....
Report to moderator   Logged

Jon Williams
EFX-TEK
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!