Weather Simulation for Dimming expansion module

Share you PDE file with our community
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Weather Simulation for Dimming expansion module

Post by binder »

I got the PM. I will be reading through it over the next few days and start coming up with some ideas as to what all needs to be done.

Sent from my Nexus 7
dlplunkett44
Posts: 74
Joined: Mon Aug 05, 2013 3:16 am

Re: Weather Simulation for Dimming expansion module

Post by dlplunkett44 »

Consider me a guinea pig! I only have one PWM expansion now, but down the road I will need more channels and will approach this at that time. Thanks!
TanksNStuff
Posts: 188
Joined: Fri Dec 30, 2011 6:57 am

Re: Weather Simulation for Dimming expansion module

Post by TanksNStuff »

I would be happy to be a guinea pig for this project too.

Not sure if this makes a difference or not, but I have an analog version of the dimming module so it works for my Apollo Reef LED's. I currently just run it with the parabola function for my 4 channels... although I'm able to change any parameters (start/end % and/or times) via the android app on the fly, so I think this weather sim code will work for me too.

While I'm not an expert when it comes to coding, I do have a custom code running that's a bit more complicated than most are running and I feel that I could help track down any errors.
rufessor
Posts: 293
Joined: Tue Oct 25, 2011 7:39 am

Re: Weather Simulation for Dimming expansion module

Post by rufessor »

That sounds great- I am currently the weak link in the chain moving forward. I have been to busy lately to take even a few hours and ensure that what Kurt gets is exactly what we want to see as a library code. I have revised the code that protects against photo bleaching during long summer days and ensures a user specified minimum light on period on winter days where rise and set may be too short to ensure adequate light over the tank. I want to make this optional so that those who want the rise and set times to exactly match compited can do so, and suffer the consequences if they end up bleaching or browning, or have it so that you simply instruct it what you minimum light cycle must be give. your max intensity settings are so that in the winter it adds time to get that light period. During the summer I am using a scaling routine where the percent of day lenght beyond the desired light period is used to subtly scale back max intensities so that you get correlation with rise and set to their exact calculated values, but the tank does not bleach. I have been testing this for a year now and want to adjust one thing- check the rest of the code and send it on to Kurt.

Sorry for being the weak link... it will happen soon
TanksNStuff
Posts: 188
Joined: Fri Dec 30, 2011 6:57 am

Re: Weather Simulation for Dimming expansion module

Post by TanksNStuff »

Trust me, being the President of the reefing club I'm in (NJ Reefers) I know what it's like to juggle time between your home life and volunteering on a community project.

This project may not even be this far along if you hadn't already done the groundwork you've done so far. A little more time won't kill us, heh.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Weather Simulation for Dimming expansion module

Post by binder »

no worries here. my schedule is hectic as well. that's just the "fun" with things. :)
89delta
Posts: 163
Joined: Mon Oct 15, 2012 7:21 pm
Location: Leesburg, GA

Re: Weather Simulation for Dimming expansion module

Post by 89delta »

Hi all,

I'm actually using this code with my arduino uno with great success. I was wondering if it's possible to add coding for coral acclimation for x days with the max say 65% gradually ramping up to 100% again across the x days. The acclimation part would be initialized by a push button. Thanks.
weasel440
Posts: 1
Joined: Wed Feb 19, 2014 12:31 pm

Re: Weather Simulation for Dimming expansion module

Post by weasel440 »

Hello, I'm new here. I tried out the sketch, I'm using a arduino uno but when I go to the serial monitor it don't show anything? Anyone else experience this?

And also is there a way to turn off the storm function - and still have the cloud function?
ReEfnWrX
Posts: 234
Joined: Tue Nov 05, 2013 8:40 am
Location: Houston TX

Re: Weather Simulation for Dimming expansion module

Post by ReEfnWrX »

89delta wrote:Hi all,

I'm actually using this code with my arduino uno with great success. I was wondering if it's possible to add coding for coral acclimation for x days with the max say 65% gradually ramping up to 100% again across the x days. The acclimation part would be initialized by a push button. Thanks.

I have created Dimming Acclimation code.

The first post in this thread will walk you through it.
http://forum.reefangel.com/viewtopic.php?f=12&t=4193

I have not created any menu options to begin acclimation. It is started by setting the AcclDay to the same value you have chosen for your AcclDuration(Total days in accl cycle).
Image
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Weather Simulation for Dimming expansion module

Post by Sacohen »

Did this ever get ported to the head unit with any luck?
I'm working on getting my LED's running and would love to have a storm mode set up, but I have no idea how to dow this.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Weather Simulation for Dimming expansion module

Post by rimai »

If it is just the lightning you are trying to achieve, you can use this:
http://forum.reefangel.com/viewtopic.php?f=14&t=288
Roberto.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Weather Simulation for Dimming expansion module

Post by binder »

Sacohen wrote:Did this ever get ported to the head unit with any luck?
I'm working on getting my LED's running and would love to have a storm mode set up, but I have no idea how to dow this.
i havent gotten a response back with the base code to try to turn into a library because i was told there were changes made from what was originally posted. so theres not been any progress that im aware but thats not saying much anymore. :-)


Sent from my iPad mini
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Weather Simulation for Dimming expansion module

Post by Sacohen »

Ok. Thanks

Sent from my HTC One VX using Tapatalk
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Weather Simulation for Dimming expansion module

Post by Sacohen »

rimai wrote:If it is just the lightning you are trying to achieve, you can use this:
http://forum.reefangel.com/viewtopic.php?f=14&t=288

What I would like to do is the following...

1) Sunrise/sunset (not necessarily accurate to the actual sunrise sunset)
2) Random Lightning
3) Random Cloud cover

Possibly Moonlight cycle later. That I would want tied to the actual Moon Phase.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Weather Simulation for Dimming expansion module

Post by lnevo »

Steve,

The Sunrise/Sunet you could get from my SunLocaltion class that binder helped to isolate. The Moon cycle, you could also get from my Moon class. This would give you daily rise/set moontime or you could use your own schedule and use MoonPhase() as the parameter.

Random lightning and random cloud cover could then just be done with the standalone weather effects that Roberto linked to.
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Weather Simulation for Dimming expansion module

Post by Sacohen »

Ok. Cool.

Sent from my HTC One VX using Tapatalk
User avatar
heatdissipation
Posts: 52
Joined: Wed Aug 14, 2013 5:25 am

Re: Weather Simulation for Dimming expansion module

Post by heatdissipation »

Will this program work with sixteen channels, Roberto is making me a custom 16 channel expansion and this is exactly what I would like to do. How difficult would it be to use sixteen channels.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Weather Simulation for Dimming expansion module

Post by lnevo »

The code was meant to live on the old dimming modules. However the code does nothing special that couldnt be done with 16 channels, but the code will take a bit of tweaking.

I have a standalone class that determines sun rise/set and roberto has a weather effect somewhere thats a lot simpler
User avatar
heatdissipation
Posts: 52
Joined: Wed Aug 14, 2013 5:25 am

Re: Weather Simulation for Dimming expansion module

Post by heatdissipation »

Ya. I just got done reading all nine pages and came to that conclusion also. I'm reading both of those codes you just mentioned now. Just trying to find the time with my work schedule to compile the different codes I need is a task in and of itself.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Weather Simulation for Dimming expansion module

Post by lnevo »

Easier to add a feature at a time and take it slow :) Same as reefing to me.. No good code happens quickly.
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Weather Simulation for Dimming expansion module

Post by Sacohen »

Lee;

So your Moon class will simulate the actual moon cycles, where the MoonPhase() will just do a moon rise and set according to the time I set, correct?
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Weather Simulation for Dimming expansion module

Post by lnevo »

Correct the Moon class gives you rise and set times based on the gos coordinate. I dont think it lines up right because we dont adjust for timezone and RA thinks it is GMT. But otherwise provides a very nice rhythm of moon rise and set.
morn623
Posts: 19
Joined: Fri May 16, 2014 4:25 pm

Re: Weather Simulation for Dimming expansion module

Post by morn623 »

I just wanted to confirm this simulation will not work on the newer version of the dimming expansion and has not yet been coded for the head unit? Thanks!
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Weather Simulation for Dimming expansion module

Post by lnevo »

Correct.

It should not be that much work to port it to the head unit. I don't have a dimming setup where I could try though.
JoelIreland
Posts: 58
Joined: Sat Jan 26, 2013 1:27 am

Re: Weather Simulation for Dimming expansion module

Post by JoelIreland »

Hey all
I have just got a retro kit from Steve's LEDs for my Red Sea Max 650.
I have installed the kit and now want to add the dimmer expansion module to control sunrise sunset ( in Australia )
I already have the module and have been following this thread. The issue I am having is when i plug the module in to the PC to upload the code, it comes up with either faulty or unknown USB Device.
I run an IT company so this sort of thing is second nature but still having issues with it.

Am i meant to be plugging into the mini usb port or opening up the controller and plugging in there as there no instructions on this.

Thanks all
Joel
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Weather Simulation for Dimming expansion module

Post by Sacohen »

What are you trying to load the code to, the dimming module of the RA head unit?

Code only get uploaded to the RA head unit all other devices receive their commands from the head unit.

Instructions for all the devices can be found on the RA website.

Choose Downloads and then manuals.
(http://www.reefangel.com/download.aspx)
JoelIreland
Posts: 58
Joined: Sat Jan 26, 2013 1:27 am

Re: Weather Simulation for Dimming expansion module

Post by JoelIreland »

Sorry I was reading about how some load the sunrise sunset direct to dimmer module. Have had RA for few years so know the basic, just first time working with dimmer side. I have it working using the PWN function with parabola but for some weird reason say 100 will turn LEDs off but -100 will make bring and -150 brighter so seems to be in reverse. Wires are in correct place too.
saf1
Posts: 111
Joined: Thu Jun 28, 2012 1:46 pm

Re: Weather Simulation for Dimming expansion module

Post by saf1 »

morn623 wrote:I just wanted to confirm this simulation will not work on the newer version of the dimming expansion and has not yet been coded for the head unit? Thanks!
Oh, this code / library no longer works? Not sure what the newer version of the dimming expansion is though. I just installed one about a month back but not tried the weather module. Was looking at it this morning when I came across this note so figured I'd ask.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Weather Simulation for Dimming expansion module

Post by lnevo »

This has pretty much been replaced by the SunLocation class plus the Cloud and Lightning effects. I just realized if we add the seasonal temperature code, we'd be in a really cool position. Plus I just thought of something awesome... I have to look at the temp one to see if it makes sense. I think we can make that one much easier to implement and customize.
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Weather Simulation for Dimming expansion module

Post by Rodasphoto »

lnevo wrote:This has pretty much been replaced by the SunLocation class plus the Cloud and Lightning effects. I just realized if we add the seasonal temperature code, we'd be in a really cool position. Plus I just thought of something awesome... I have to look at the temp one to see if it makes sense. I think we can make that one much easier to implement and customize.
So how would one code for cloud, lightening, etc. ?
Image
Post Reply