November 21, 2024, 09:23:55 PM

News:

Got VSA?  Want to use your Prop-SX?  Now you can!  See the VSA section of the Library forum for Prop-SX code that works with VSA.


LED spotlights

Started by zeenon, April 01, 2007, 09:21:39 AM

Previous topic - Next topic

zeenon

Jon,

Can you whip up an example of controlling these with a prop-1:

http://www.cindybob.com/halloween/ledlighting/ledspotlights/

Turning them on/off looks to be simple programming, but how about a fading? Would you have each spot on it's own OUTx or can you double up on them?

Z

JonnyMac

April 01, 2007, 10:43:46 AM #1 Last Edit: April 01, 2007, 10:45:17 AM by JonnyMac
Fading up and down is handled with the PWM instruction; see the example in the Prop-1 program library for details:

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

Note that you can fade from full-off to full-on and vice versa, but you cannot hold the lamp at a given level without causing the program to be held at that point (where you're freshing the lamp level with PWM).

You probably want to limit you ULN outputs to about 250 mA, so if the lamps use 125 mA or less then yes, you can double up.
Jon McPhalen
EFX-TEK Hollywood Office