Ok... so I can see much overlap here. I have been working on moving a C library, that has all the calculations for this stuff in it, over to ReefAngel Arduino. I have the library correctly set up and can call the functions within a PDE and just got back some more information from its creator (not me) that should let me correctly call the library functions and get the correct values passed back. It calculates Sunrise, Sunset, Solar noon, Moon phase etc and is designed on Arduino so should work for us (I hope). I have been a little busy with work and not spent any time on it but I have communicated with the person who wrote the library and it is available freely so long as the code source is acknowledged (which I have done in my library and PDE). Maybe I should just post the whole thing here so it can be dissected by individuals who are better suited at dissecting it.... I really wanted to post a working PDE with the library implemented and will do so when ever I get to that point, but I can see others may want this now and probably will work faster. Let me get a few minutes on a computer with the code in residence so I can copy and paste and present it correctly with acknowledgment to the author, I am going to start a new thread under how do I code as its new and should probably not be buried if it ends up working. Much simpler to find this way. Post will be from me titled.
C Library for Sun/Moon effects.
Moonlights sneak preview
-
- Posts: 132
- Joined: Tue Jan 24, 2012 6:20 pm
Re: Moonlights sneak preview
Can these be spliced together? I gotta be honest I want to try 3 of these on my tank but don't want to shell out for the expansion module.
Also random but is there still a two week wait for a wifi module?
Also random but is there still a two week wait for a wifi module?
- jsclownfish
- Posts: 375
- Joined: Mon Oct 24, 2011 7:52 pm
- Location: Saint Louis
Re: Moonlights sneak preview
I asked the same question about splicing recently. I was told each PWM output port has a max drive of 40mA and each moonlight consumes around 30mA. If you build a small driver for the moonlights, you could do what you are describing.
-Jon
-Jon
-
- Posts: 149
- Joined: Tue Nov 01, 2011 11:05 am
Re: Moonlights sneak preview
You could use one of these
http://www.ledsupply.com/dynaohm.php
For each of the moonlights, then wire the drivers to a 5v electronicly controlled potentiometer
Reef angel > pot w/ 5v external powersupply. Reef angels dimm voltage will come in and turn the pot allowing power to the drivers from the external psu...might wanna run a diode or optoisolator so you don't get feedbacknoise on the ra
http://www.ledsupply.com/dynaohm.php
For each of the moonlights, then wire the drivers to a 5v electronicly controlled potentiometer
Reef angel > pot w/ 5v external powersupply. Reef angels dimm voltage will come in and turn the pot allowing power to the drivers from the external psu...might wanna run a diode or optoisolator so you don't get feedbacknoise on the ra