Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Question

Posted

HI,

 

I have and  RGB LED strip and a Fibaro RGBW module all connected up and ready to go.

I am trying to mimic a sunrise to help us wake up gradually ( and welcoming to the day :-) ) using the LED strip.

 

Before I research the colors and sequences of a typical sunrise I wonder has anybody been here before and have a nice vd or lua scene

 

any help appreciated 

 

Thanks

-f

 

 

Recommended Posts

  • 0
Posted

Hi @AutoFrank

 

I'll look out for it, look forward to seeing the end result.

 

-a

  • 0
Posted (edited)
On 6-1-2017 at 1:16 PM, AutoFrank said:

Ultimately I'm looking to get a set our colors that aren't too bright and that mimic the colors of dawn ..

I guess it'll be a case of lots of trial and error :(

Hi @AutoFrank,

 

don't know how far you are with "Dawn machine" at the moment. I started yesterday with some coding based on @Sankotronic's piece of code and studied different sites about the dawn parameters, like duration, light colors, geoposition etc.

It seems, that the main colour range for sunrise is between 2000 - 4000K, ofcourse also depending on weather condition, atmospheric dust etc, etc....

The duration, since we do it in house is always "artificial", sometimes defined by our day schedules. We don't have always the time to stay in bed for a dawn during 35 minutes, as you stated in a different post. So sometimes we have to accelerate the dawn to few minutes, maybe 5 - 6 ....

 

B.t.w. my goal is to simulate sunrise as natural as possible and i'm doing this in the first place with Philips HUE RGBW bulbs ans @Sankotronic HUE VD. For now i'm aware that starting with 2000K and slowly moving to 4000K i have to increase hue and gradualy decrease the intensity for some colour between 2000 - 4000K.

The ultimate goal is to integrate not only the music, but for the third sense also the integrate the appropriate odor with this device

Please login or register to see this link.

. From the pooint of neuroperception, the procedure will start with fragrance, then the lightt, then the music with appropriate DeltaT (time distance, wich i didn't figure out yet.

Needless to say, that my universal morning machine UMM <tm> will "cooperate" with Alarm clock, climate devices etc...  But first the dawn simulation, that correspond with human bodies. :-)

 

On 6-1-2017 at 2:22 PM, petergebruers said:

The effect depends on the efficiency of the R,G and B LEDs so you might not see what I'm seeeing ;-)

 

Hi @petergebruers,

 

Do you have any idea, how to adjust dawn simulation to different RGB(W) strips and bulbs? Probably some serious measurements wil be required, or at least some characteristics (graphs) from the manufacturer and since we want to mimic sunrise with some fidelity, we will require leds with high

Please login or register to see this link.

to get realistic results.

 

Edited by Bodyart
  • 0
Posted
54 minutes ago, Bodyart said:

(...)

 

Do you have any idea, how to adjust dawn simulation to different RGB(W) strips and bulbs? Probably some serious measurements wil be required, or at least some characteristics (graphs) from the manufacturer and since we want to mimic sunrise with some fidelity, we will require leds with high

Please login or register to see this link.

to get realistic results.

 

 

I used the sliders on one of my RGB to get a "nice white". For some this means a warm, 2700 K halogen like light. Others prefer a more neutral 4000. That doesn't matter ;-)

One of the sliders has to be at 100%, so if we're talking about Z-Wave dimmers that means value = 99. If we're dealing with an RGBW module, then 100 % value = 255.

 

I'm guessing that, due to the nature of our eyes and due to the efficiency of LEDs, it'll actually always the R channel that will be at 100%

 

So here are the values of a particular strip (RGBW) (I have 2 ready made and one DIY):

 

  Rmax=255,
  Gmax=150,
  Bmax=50,

 

That indeed means that I only need to set the B channel to one-fifth of its maximum power. Blue is very efficient, and I like a "warm" white for this application. So it's not odd at all to see such a low value.

 

Now I basically change the script, to take into account these values (instead of sending G, send G*Gmax/255, R and B you get the idea ;-) ).

 

Actually, I also added a "gamma" correction, so the values in your script cause a more linear response. The downside of all this is that you reduce the available steps, you trade resolution for linearity, so to speak. I've some code, based on the HSL model, but it's not polished (yet). If someone's interested I'll clean it up and make it forum-worthy.

 

 

  • 0
Posted
3 minutes ago, petergebruers said:

If someone's interested I'll clean it up and make it forum-worthy.

 

I surely am interested :-)

 

  • 0
Posted
4 minutes ago, Bodyart said:

 

I surely am interested :-)

 

Okay. I'll get a sponge and a bucket :-D

 

  • 0
Posted

Don't forget the saponates and disinfectants :-D

 

  • 0
Posted (edited)

I use this one found at the forum long time ago. 7 different dawn diagrams.

Not for RGBW, but really good. Perhaps you can customize to RGBW?

 

Please login or register to see this code.

#######################

Please login or register to see this code.

 

Edited by RH_Dreambox
  • 0
Posted
6 minutes ago, Bodyart said:

Don't forget the saponates and disinfectants :-D

 

 

LOL

 

New Disclaimer: "this code can infect your home network, your spouse, your pets and may get you banned from the internet. Forever."

  • 0
Posted

This code will destroy itsself in:

 

5,

4,

3,

2,

1

Boom!

  • 0
Posted

Here's the Dawn beta 0.3 code.

Shoot!

 

Please login or register to see this code.

 

  • 0
Posted (edited)

So the experience learns us, that it always we'll be a Beta, because it will always be an empirical setting unless we'll have calibrated leds.....

Hi @petergebruers,

 

I'm going to install one RGBW strip with RGBW controller just to see, how your scene will behave, to learn from it.

I agree with you, that our perception of light can be very subjective; what colours we like at given moment and sometimes we even don't like the fidelity of wake up light and outside it is never exactly the same.

 

Edited by Bodyart
  • 0
Posted
On 3-6-2017 at 5:07 PM, RH_Dreambox said:

I use this one found at the forum long time ago. 7 different dawn diagrams.

Not for RGBW, but really good. Perhaps you can customize to RGBW?

 

 

Hi! Thanks for bringing this up. I know the script, it's indeed one of the older ones, for dimmers only. The different algorithms (well, actually it's the "formulas" that make it tick) could probably used to drive the "L" (lightness) value in my script, giving you faster/slower/exponential steps. My latest script, posted above, already contains a non-linear response by incorporating a "gamma" factor (see start of script). Please toy with it and if it still doesn't do what you want, I'm open to suggestions :-)

  • 0
Posted (edited)

@krikroff posted some code to do this a couple of years ago. He might have it posted still on the french forum or it might still be here.  Oops see you all found it.

Edited by robmac
  • 0
Posted

Nice result!

In my situation the red is too 'reddish' but that's cause of calibration of the used LED strips.

But the main effect is great!

  • 0
Posted (edited)

@robmac thanks for chiming in. Yeah, it's nice, but monochrome.

 

@TRicky thanks, I glad you liked it. You inspired me to tune the script and make it a bit more configurable (the red part). Meet "beta 0.4". Removed some gremlins and added a better introduction. I attach the script as a file because it's 167 lines, but I paste the introduction here so you can have a quick look.

 

Please login or register to see this code.

 

Please login or register to see this attachment.

Edited by petergebruers
  • 0
Posted

Great job @petergebruers,

 

I ran a short test last night, playing with Red parameters and the result is much more natural.

Gonna play some more with it this night and will let you know!

 

Cheers.

  • 0
Posted
On 18-6-2017 at 11:39 AM, TRicky said:

Great job @petergebruers,

 

I ran a short test last night, playing with Red parameters and the result is much more natural.

Gonna play some more with it this night and will let you know!

 

Cheers.

 

That's good news! Thanks!

  • 0
Posted

I was experimenting on my own for some time and I made VD that i use to setup RGBW wake up lights for each of the seven days of the week. I can setup to gradually go from any color to any other color and gradually raise brightness. It is not based on any deep scientific formulas for our Sun but can adjust some Sci-Fi effects for blue dwarfs or red giants :-) 

 

I still need to modify VD to comply with my new system and to make to find RGBW lights in the room by itself, but here is code that I use that is modified from that old one to work with RGBW:

Please login or register to see this code.

here is the global variable table structure that I use for above:

Please login or register to see this code.

Above code will not run as it is, but needs to be modified to suit your needs or you can just see how old code for dimmer lights is modified to work with RGB(W) lights :-) 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...