hmmm any clue as to what I should try?
This is the best Arduino reef controller thread I have seen. I am a newbie when it comes to Arduino Programming but I can work with electronics. Thanks to this thread I have built a mock up thats is on the begining stages but I loaded up code last night and it kind of works. I do not have the meanwells I have buckpucks on my leds right now. I know this code is kind of working right now from seeing it control my mocked up led. My question is are there any odifications to the code when using buckpucks? What are the cons to using them? I dont want to buy meanwells because the tank is setup right now with 2 24v powersupplies driving 12 leds 1 ps for blue 1 ps for whites. Thanks to katsup and reef ninja for such a great thread and code.
Thanks, yes buckpucks use a 5 volt signal which i am using pwm pin 10. This is a pic of my setup right now. also today i ordered the board w the 4 relays.
Another thing I was wondering if someone can help me out is that I can control the led dimming through the Ctrl pin on the puck but I would also like to shut off the power supply when leds are off.
https://picasaweb.google.com/VicBerto/20110409?feat=directlink
I notice that during the leds are on (or ramp up/down), if I do upload, the leds won't continue their job but stay at 0. Is that me, doing something wrong?
/*||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| L O O P - D I M F U N C T I O N |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||*/
byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
getDateDs1307(&second, &minute, &hour, &dayOfWeek, &dayOfMonth, &month, &year);
int daybyminute = ((hour * 60) + minute); //converts time of day to a single value in minutes
int bluerampup;
if (daybyminute >= (ontime*60))
bluerampup = (((ontime*60) + blueramptime) - daybyminute);
else
bluerampup = blueramptime;
int whiterampup;
if (daybyminute >= (ontime*60 + blueramptime))
whiterampup = (((ontime*60) + blueramptime + whiteramptime) - daybyminute);
else
whiterampup = whiteramptime;
int whiterampdown;
if (((ontime * 60) + photoperiod + blueramptime + whiteramptime) <= daybyminute)
whiterampdown = (((ontime*60) + photoperiod + blueramptime + 2*whiteramptime) - daybyminute);
else
whiterampdown = whiteramptime;
int bluerampdown;
if (((ontime * 60) + photoperiod + blueramptime + 2*whiteramptime) <= daybyminute)
bluerampdown = (((ontime*60) + photoperiod + 2*blueramptime + 2*whiteramptime) - daybyminute);
else
bluerampdown = blueramptime;
I notice that during the leds are on (or ramp up/down), if I do upload, the leds won't continue their job but stay at 0. Is that me, doing something wrong?
One think i cant quite get my head around i have seen some of the built circuits and diagrams using pots why is this, for the arduino provides a 0-5v pwm signal that will go straight in to a buck or if your using a meanwell that requires 0-10v you can just use a ICL7667 this will also stop the arduino pins from been overloaded as the max ma output is around 40ma
This is the schematic using the icl7667 to replace the pots
How do you upload the sketches mines far to big for the site The text that you have entered is too long (41419 characters). Please shorten it to 25000 characters long.