Typhon LED Controller
Planted Tank Forums
Your Tanks Image Hosting *Tank Tracker * Plant Profiles Fish Profiles Planted Tank Guide Photo Gallery Articles

Go Back   The Planted Tank Forum > Specific Aspects of a Planted Tank > Lighting


Reply
 
Thread Tools Display Modes
Old 06-26-2013, 08:42 AM   #1
RavenGreenthumb
Algae Grower
 
PTrader: (0/0%)
Join Date: Feb 2012
Location: State college, USA
Posts: 14
Exclamation

Typhon LED Controller


Hi everyone, I am new here, but have been very regardful of the information available on TPT Forums. I should say been lurking for a few months and imbibing a GREAT DEAL of knowledge.

I am in the process of starting a my dream 48G Rimless planted tank, and I intend to write up a detailed and hopefully, insightful journal.

The plan:
48G rimless Mr Aqua
Stand - to be built.
Auto fert dosing
NW with cerges CO2
Remote timers / switches - Belkin WeMo

DIY CREE led - CRI 95 (CW/660nm/Cyan/RB/WW)
Typhon/ MakersLED controller.

I have everything except the stand.

What I need your help for is about the Typhon controller.
Sunrise / sunset etc , 4 channels etc is easy, but it possible to program the audrino code to add multiple dimming options per channel?

eg:
on channel 1
8am - 9 am . 0% - 100% over 1 hr
9am - 3pm 100%
3pm - 4 pm 100 > 0%

8pm - 10 pm 5% intensity <----- is this addition a possibility to provide for moonlight?

Your help would be mucho appreciated.

Regards,
AR

Plant"weed"
RavenGreenthumb is offline   Reply With Quote Quick reply to this message
Sponsored Links
Advertisement
 
Old 06-26-2013, 10:16 AM   #2
saiko
Algae Grower
 
PTrader: (0/0%)
Join Date: Mar 2007
Location: India, Secunderabad
Posts: 37
Default

Yes quite much possible if you can simplify a bit, i.e. to increment from 0-100% on smooth curve in 1 hr. Instead do it like change intensity every 10minutes


If you plan to change the intensity every 10 minutes(which few people do at seconds and minutes too, which will be a bit complex) you can create an array of size 24hr X 6(6X10 minute intervals in an hour) and do a setup on each of these bytes with your value from 0-255 and you ll be done

I am rather more interested in your build and pics.( even I ve been too long a lurker)
saiko is offline   Reply With Quote Quick reply to this message
Old 06-26-2013, 11:46 AM   #3
RavenGreenthumb
Algae Grower
 
PTrader: (0/0%)
Join Date: Feb 2012
Location: State college, USA
Posts: 14
Red face Audrino Noob

I can read an EKG, read a brain MRI, fix your heart but for the life of me am a 100% noob for arduino language -

I wish i understood more than 50 % of what you wrote.

So adding more 24hr life arrays...?
If only how was that easy

Id much rather be spoonfed with a nice dimming sketch LOL

Regards.

AR
RavenGreenthumb is offline   Reply With Quote Quick reply to this message
Old 06-26-2013, 12:41 PM   #4
saiko
Algae Grower
 
PTrader: (0/0%)
Join Date: Mar 2007
Location: India, Secunderabad
Posts: 37
Default

ah alrite, I should have asked.
I suppose O2surplus does some of those rigs, and you can run them without much of fiddling.

Else,
We ll start when you get an arduino, its fun that way and more easy too. Get any combo offer that offers you RTC clock & power as well in the kit, that stuff keeps your time and you say arduino change intensite when its time, so something of that sort. People here should help you from there.


Unfortunately I only have an MRI of my Knee , I can mail you
saiko is offline   Reply With Quote Quick reply to this message
Old 06-26-2013, 04:16 PM   #5
aspensandoaks
Algae Grower
 
aspensandoaks's Avatar
 
PTrader: (0/0%)
Join Date: Mar 2011
Location: Columbia MO
Posts: 77
Default

here is a link to the Typhon Controller Sketch:

https://www.boostled.com/Articles.asp?ID=250

You will have to look at the code, what I might suggest is instead of adding the extra steps to input a time for the moonlight, try and make an addition to the lighting period already programmed.

if that makes sense... basically it says fade in, then fade out at these times. look to make it so that it fades in to 100, fade out to 100, wait 2 hrs, fade in 5%, fade out 5%


I think that would be easiest, I will look through some references and see what I can pull up

-Don
aspensandoaks is offline   Reply With Quote Quick reply to this message
Old 06-26-2013, 04:18 PM   #6
aspensandoaks
Algae Grower
 
aspensandoaks's Avatar
 
PTrader: (0/0%)
Join Date: Mar 2011
Location: Columbia MO
Posts: 77
Default

even easier would be to dedicate a channel for moonlights
aspensandoaks is offline   Reply With Quote Quick reply to this message
Old 06-26-2013, 05:10 PM   #7
aspensandoaks
Algae Grower
 
aspensandoaks's Avatar
 
PTrader: (0/0%)
Join Date: Mar 2011
Location: Columbia MO
Posts: 77
Default

here is the logic for the fadein/fadeout:
Quote:
/****** LED Functions ******/
/***************************/
//function to set LED brightness according to time of day
//function has three equal phases - ramp up, hold, and ramp down
int setLed(int mins, // current time in minutes
int ledPin, // pin for this channel of LEDs
int start, // start time for this channel of LEDs
int period, // photoperiod for this channel of LEDs
int fade, // fade duration for this channel of LEDs
int ledMax // max value for this channel
) {
int val = 0;

//fade up
if (mins > start || mins <= start + fade) {
val = map(mins - start, 0, fade, 0, ledMax);
}

//fade down
if (mins > start + period - fade && mins <= start + period) {
val = map(mins - (start + period - fade), 0, fade, ledMax, 0);
}

//off or post-midnight run.
if (mins <= start || mins > start + period) {
if((start+period)%1440 < start && (start + period)%1440 > mins )
{
val=map((start+period-mins)%1440,0,fade,0,ledMax);
}
else
val = 0;
}
you could easily add another OR statement to the fade in and fade out to add in the second fade in and out, but they would go to ledMax

so you'll probably want to do 2 new if statements to take care of the second fades, and create a new variable moonMax that will be a fraction of your ledMax, ie moonMax=ledMax*0.05

after putting in the moonMax variable earlier, logic adjusted to something like this (i wrote this up in 5 min at work so it's definitely not 100% correct):
Quote:
{
int val = 0;

//fade up
if (mins > start || mins <= start + fade) {
val = map(mins - start, 0, fade, 0, ledMax);
}
//moon fade up
if (mins > start+period+120) {
val = map(mins - start, 0, fade, 0, moonMax);
}


//fade down
if (mins > start + period - fade && mins <= start + period) {
val = map(mins - (start + period - fade), 0, fade, ledMax, 0);
}
//moon fade down
if (mins > start + period + 120 - fade && mins <= start + period + 120) {
val = map(mins - (start + period - fade), 0, fade, moonMax, 0);
}



//off or post-midnight run.
if (mins <= start || mins > start + period) {
if((start+period)%1440 < start && (start + period)%1440 > mins )
{
val=map((start+period-mins)%1440,0,fade,0,ledMax);
}
else
val = 0;
}
where the 120s are for 120 minute delay. and add the new variable for maximum moon intensity

Hope this points you in the right direction, good luck!
aspensandoaks is offline   Reply With Quote Quick reply to this message
Old 06-27-2013, 08:12 PM   #8
All your base
Planted Member
 
PTrader: (1/100%)
Join Date: Dec 2006
Location: NY
Posts: 228
Default

I think you'll be best off using a dedicated channel for the moonlights. Even at just 1%, most LED arrays are going to be too bright compared to what most people want for moonlights. In my experience the best approach for moonlights is a small number of plain old cheap "gumdrop" LEDs run at maybe 10 - 20 mA.

And, honestly, the only reason to run something off the Typhon is if you need dimming control. If you just want on/off for a moonlight, you could easily do it with a plain old plug in appliance timer. Or just leave them on 24x7.
All your base is offline   Reply With Quote Quick reply to this message
Reply

Tags
controller, led, typhon

Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the The Planted Tank Forum forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:

Log-in

Human Verification

In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.



Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:37 PM.


Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright Planted Tank LLC 2012