In my Velbus Home installation I have a VMB4DC and a VMBRGBDC (with seperate Power supply) to program a RGB led strip in my kitchen. Everything works fine and on a VMBGPOB i programmed some static colours on several different knobs en pages. But what i really want is to make a long colourfade (eg Rainbow). I tried several things but nothing really works. Is it possible to make such a fade or is it to heavy load for the Databusline anyway? Since more and more lightfixtures are led or colourleds it has to be possible to integrate some fadeprograms/effects in the software. Does anyone know a good and easy way to program for example a fade between 3 colours (3 dim channels) for lets say 30 minutes,so that in these 30 minutes the colours slowly change in a cycle.
Hi
Iâve just done this for a client.
Itâs not strictly a rainbow colour fade, but it does cross fade between different colours.
Itâll require using a spare virtual relay as a trigger.
Firstly.
Edit the multi-step dimmer profiles within each VMB4DC channel that are used for your RGB LED.
I set one as a ramp up.
The second as a ramp down.
And the third as a ramp up but with very different steps.
(Tip, use different amounts of steps in each dimmer channel to increase the range of colours your effect will step through.
Also, donât fade to 100%, as youâll not be able to decern a colour change)
The next step is to assign 3 actions to the output of the virtual relay channel.
The aim is for the âclosureâ of the relay to trigger the next step in the multi-step dimmer, with whatever fade time you choose.
The next step is to program an action on any of your input devices to cause an interval timer to run on the Virtual relay channel.
It only needs to be the minimum close time, but the pause time is the interesting bit.
Once started, your virtual relay pulses should create a nice random cross fade.
One tip, you will need to program a button to stop the cross fade.
This will require 4 actions.
3 to switch off / dim off the 4DC dimmer channels, and the 4th to stop the interval timer.
Please let us all know how you get on.
Or if you come up with a better solution.
Of course, if youâre looking for something more predictable, youâll have to map the function to an external logic device.
Maybe a small Linux box with some clever middleware software?
Thanks for your well described answer. Iâll let you know if i get it to work also,
Itâs not a very easy sollution i must say but at least its a sollution ;-)next week i will try to program it.
There is a solution that is, letâs say, mathematically and technically very correct (perfect cycling of colors), but it involves 6 virtual (or real) relays.
Weâll name them:
- R on
- G on
- B on
- R off
- G off
- B off
These relays are coupled with the corresponding color (R, G or B) on the VMB4DC in the following manner:
- the on-relays with action no. 11 âslow onâ, letâs say 5 seconds
- the off relays with action no. 6 âslow offâ, also 5 seconds
Now you can make one color, when it switches off, turn on another one in cycles.
This is done as follows:
- VMB4DC channel R will do two actions on release:
- start relay âG onâ with action no.17 âtrigger-on-release timerâ, for just one second (a pulse)
- start relay âB offâ with same action a sabove
- VMB4DC channel G similarly, on release, sends a pulse to
- relay âB onâ
*relay âR offâ
- VMB4DC channel B similarly, on release, sends a pulse to
- relay âR onâ
- relay âG offâ
This gives a nice cycling through color blends which always goes well since one color triggers the others.
Now you just have to get it started and stopped.
To start: choose a button and connect it
- to relay âR onâ with action no.16 ânon retriggerable timerâ, 1s
- to relay âG onâ with action no. 22 ânon restartable timer with slow on/offâ, with parameter times 1s, 2s and 2s resp. (the important thing is that VMB4DC channel G is turned from on to off when R is at its peak, maybe there are better solutions for this detail)
To stop, do a âforced offâ during 1s of all the relay channels and all the VMB4DC channels (otherwise you risk getting into a loop).
Seems to work here. Looks good, but only disadvantage is of course the 6 virtual relays that are neededâŚ
And there are also some interesting possibilities using only 3 relay channels and the VMB4DC action no.20 ârestartable timer with slow on/offâ or no.23 âslow on at press/slow off at releaseâ. This gives you a time for dimming on, an uptime, and a time for dimming out in one action. So you can produce a saw-tooth signal on your three colors. If you then succeed in triggering them with a correct time shift, using 3 virtual relays, you have color cycling alsoâŚ
If anyone is looking for what Iâm suggesting, have a look at the attached VLP file.
Good luck
Stuart
ColourFade.vlp (14.5 KB)