Clouds and Lightining Effects using standard PWM channels

Would you like to help?
Share your walkthrough tutorial with others

Posts: 12272
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Wed Aug 22, 2012 11:42 am
The alignment is off.
You will need to align them perfect just like it was before.
Roberto.
User avatar
Posts: 818
Joined: Tue May 29, 2012 2:12 pm
Location: Christopher, IL
PostPosted: Wed Aug 22, 2012 11:46 am
got them to line up i think? What exactly is this determining? The time before the next cloud?

It reads 29:00 right now
Out for now...but not over.

VISIT: Ethernet Module/Wifi Alternative
User avatar
Posts: 818
Joined: Tue May 29, 2012 2:12 pm
Location: Christopher, IL
PostPosted: Wed Aug 22, 2012 12:04 pm
If I'm reading this right...it states, "14:29" thus my next cloud is at 2:29pm? Or am I way off?
Out for now...but not over.

VISIT: Ethernet Module/Wifi Alternative

Posts: 12272
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Wed Aug 22, 2012 12:27 pm
yeah. whatch and see if it is correct
Roberto.
User avatar
Posts: 818
Joined: Tue May 29, 2012 2:12 pm
Location: Christopher, IL
PostPosted: Wed Aug 22, 2012 12:37 pm
It works...going to post a video soon
Out for now...but not over.

VISIT: Ethernet Module/Wifi Alternative
User avatar
Posts: 818
Joined: Tue May 29, 2012 2:12 pm
Location: Christopher, IL
PostPosted: Wed Aug 22, 2012 12:46 pm
Ramp from cloud and back...showed 12 min duration (perfect) and next cloud due at 1553

AWESOME!

Image

Of course the phone's camera has no white balance nor does it show shimmer very well from the LEDs

And new main showing next cloud and next duration (in minutes)....

Image
Out for now...but not over.

VISIT: Ethernet Module/Wifi Alternative

Posts: 10
Joined: Thu Sep 20, 2012 12:36 pm
PostPosted: Wed Oct 31, 2012 3:18 pm
I'm unsure entirely if this has been covered, but is there a way to define how much the daylights dim during cloud cover? In other words, instead of dimming all the way down to 0V, dim down to 1V (or 10%, however you look at it)? If so, how?

It would be kind of cool if the dimming amount was random, but hey, it's cool as-is. :)

Posts: 12272
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Wed Oct 31, 2012 3:40 pm
Change this line:
Code: Select all
DaylightPWMValue=ReversePWMSlope(cloudstart,cloudstart+cloudduration,DaylightPWMValue,0,180);

To this:
Code: Select all
DaylightPWMValue=ReversePWMSlope(cloudstart,cloudstart+cloudduration,DaylightPWMValue,10,180);
Roberto.
User avatar
Posts: 818
Joined: Tue May 29, 2012 2:12 pm
Location: Christopher, IL
PostPosted: Wed Oct 31, 2012 3:58 pm
Good thought! I'll be changing this on mine
Out for now...but not over.

VISIT: Ethernet Module/Wifi Alternative

Posts: 10
Joined: Thu Sep 20, 2012 12:36 pm
PostPosted: Thu Nov 01, 2012 12:34 am
Yeah, my LED-based light (named for a Greek god) is great, but below 1V, the LEDs just shut down since the driver can't go lower. As I was watching the cloud-dimming simulation—something that I really do enjoy, thank you Roberto et al—I just thought it would look smoother in my application to stop the whites at 1V rather than going off entirely, and still give the desired effect.

I really do enjoy this controller.
PreviousNext

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests

cron