November 21, 2024, 04:01:28 PM

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.


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