(Another) DIY LED Controller - Simple Arduino Style

Looks well got it booked marked, I built one using the nokia 3310 shield but currently altering the code to use a 2.4" tft colour touch screen

DSCN2425.jpg


DSCN2428.jpg


DSCN2429.jpg


DSCN2434.jpg


DSCN2436.jpg


DSCN2435.jpg


Going to use 6 x 50w leds on a 60x30x30

but this is the krusduino projet?
 
Fishman, I don't disagree with that. I was answering dimkastas comment about an RC filter to smooth out the signal and extend the life of the LED? I wasn't clear in my answer. I also think the response away from pwm is a distinct reaction by manufacturers to market forces. As hobbyists have started to implement this type of lighting away from what has been an industry standard methodology.
 
Who here has the IR sensor and knows that they are doing? I need some help I have a sketch with the IR sensor working and you can use buttons on the remote to start a normal cycle, all off, all on, blue on - white off, white on - blue off, and whatever else I feel like adding. I got it so the wavamaker still works upon power on and I am working on it defaulting to the normal cycle upon power on. the issue is once you select something you are stuck there and you have to hit the button at the right time for it to register. How do we get the IR to listen 100% of the time and work when something is already selected? let me know.

katchupoy, give me a few and I will post a link to my version it has been running my tank for a week now no issues at all minus me not having the relays for the fuge light, wavemaker, and fans. might wire my fans like we did the meanwells and save a relay for my heater or ATO. I am starting to think I should have gotten a mega, I have almost $20 in coupons for ebay maybe this is what I should use em on.


EDIT: Here is the link to my non IR sketch http://www.reefledcontroller.com/reefledcontroller.txt
 
Last edited:
Hey Ninja,

I found a waterproofed temp sensor HERE for $5.Not sure how long the lead on it is though.Your using the MEGA kit right?
 
Last edited:
nope I am using the due... one that I cant spell lol those look nice but I get em for about 2 bucks each and about $.50 worth of other stuff and just make em. I also found those stainless steal tubes at my local American Science and Surplus for about $.25 each I bought 5 of them to test with but I cant find where they went.
 
nope I am using the due... one that I cant spell lol

Ok.....that leaves me with two questions for you then...(nice work on the android app btw I installed it)

1. Can this code be used on the Mega though?

Am following a TFT build HERE which will bring me to my 2nd question...

2. How hard/easy would it be to incorporate the TFT Screen into Katchupoy's and your combined build?
 
dude where can I buy that screen??????????? I will give it a shot lol and yes the firmware can be used on a mega you just have to make sure the pinouts are the same and if not just edit the pin section of the code.
 
dude where can I buy that screen??????????? I will give it a shot lol and yes the firmware can be used on a mega you just have to make sure the pinouts are the same and if not just edit the pin section of the code.

The screen is Here

The shield for it which contains the ds1307 timer is Here

The cost total with the mega there would be $75 but am gonna go with another kit from Ebay
 
Yeah that's what I thought at first glance but bein able to program it on the fly would be sweet....am still looking over the Stilo 2.1 sketch to see what pins are used and whats left.
 
Ok guys I found a coupon code for $1.99 domain so I set up a site at http://www.reefledcontroller.com it has my sketches some info and files and I am working on a full build site within a few days.

Very nice site layout......was wondering if you could use the following code for the moonlights that I came across somewhere....

Code:
/*-------------------------------------------------------------------------------Lunar Phase--------------------------------------------------------------------------------*/

float GetPhase(int nYear, int nMonth, int nDay) // calculate the current phase of the moon
{
float phase;
double AG, IP;
long YY, MM, K1, K2, K3, JD;
YY = nYear - floor((12 - nMonth) / 10);
MM = nMonth + 9;
if (MM >= 12)
{
MM = MM - 12;
}
K1 = floor(365.25 * (YY + 4712));
K2 = floor(30.6 * MM + 0.5);
K3 = floor(floor((YY / 100) + 49) * 0.75) - 38;
JD = K1 + K2 + nDay + 59;
if (JD > 2299160)
{
JD = JD - K3;
}
IP = MyNormalize((JD - 2451550.1) / 29.530588853);
AG = IP*29.53;
phase = 0;
if ((AG < 1.84566) && (phase == 0))
{
phase = 0; //new; 0% illuminated
}
if ((AG < 5.53699) && (phase == 0))
{
phase = .25; //Waxing crescent; 25% illuminated
}
if ((AG < 9.922831) && (phase == 0))
{
phase = .50; //First quarter; 50% illuminated
}
if ((AG < 12.91963) && (phase == 0))
{
phase = .75; //Waxing gibbous; 75% illuminated
}
if ((AG < 16.61096) && (phase == 0))
{
phase = 1; //Full; 100% illuminated
}
if ((AG < 20.30228) && (phase == 0))
{
phase = .75; //Waning gibbous; 75% illuminated
}
if ((AG < 23.99361) && (phase == 0))
{
phase = .50; //Last quarter; 50% illuminated
}
if ((AG < 27.68493) && (phase == 0))
{
phase = .25; //Waning crescent; 25% illuminated
}
if (phase == 0)
{
phase = 0; //default to new; 0% illuminated
}
return phase;
}

double MyNormalize(double v)
{
v = v - floor(v);
if (v < 0)
v = v + 1;
return v;
}
 
OK, I need help. I load Katchuppoy code in. The controller red led (L) below R7 blinking.
LCD display the time, blue=0, wht=0. That is it. nothing happen, Clock is not clicking, and relay 1, 2 has no output.
What is wrong? Thx
 
Found the Led simulator pin for relay was off , so relay 1 & 2 are working now. But the clocks suppose to be clicking, doesn't it? LCD display stays what ever the time I load in.
 
PHP:
/*|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||  S E T U P - D I S P L A Y |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||*/



  byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
  Wire.begin();

  // Change these values to what you want to set your clock to.
  // You probably only want to set your clock once and then remove
  // the setDateDs1307 call.
  second = 00;
  minute = 15;
  hour = 23;
  dayOfWeek = 25;  // Sunday is 0
  dayOfMonth = 4;
  month = 4;
  year = 11;
  
  //Use the next line for setting the clock
  //setDateDs1307(second, minute, hour, dayOfWeek, dayOfMonth, month, year);

this part is what you need. make it look like this and then after you set the clock comment it back out with the //

//Use the next line for setting the clock
setDateDs1307(second, minute, hour, dayOfWeek, dayOfMonth, month, year);
 
That exactly what I did, I followed post #217. Tried 3 times already....Relay1,2 work. Clock stay put, no clicking, and the blue:0, whi:0.
 
take some pictures and post them let me look at your wiring...... did you get the clock to set? or does it say 12:00
 
Back
Top