Reef Central Online Community

Go Back   Reef Central Online Community > General Interest Forums > Do It Yourself
Blogs FAQ Calendar

Notices

User Tag List

Reply
Thread Tools
Unread 03/14/2011, 06:27 PM   #101
katchupoy
Moved On
 
katchupoy's Avatar
 
Join Date: Feb 2003
Location: Kent, WA
Posts: 1,548
Quote:
Originally Posted by BINKSY1973 View Post
Thanks for your reply, sounds like it would be best to use transistors and resistors to be on the safe side.
Would be looking at 2 drivers per PWM signal usind a total of 6 drivers, so need 3 PWM outputs.

Cheers Gordon.

Cheers Gordon.
So you will have 3 separate, individually controlled channels. 3 ramp ups and 3 ramp downs. That would be cool.


katchupoy is offline   Reply With Quote
Unread 03/14/2011, 06:29 PM   #102
ghellin
Registered Member
 
ghellin's Avatar
 
Join Date: Jul 2010
Location: Edmond
Posts: 1,844
Terahz are you using cat 4101 drivers?


__________________
180. SRO 3000INT w/ANC. Fluval SP4. Gyre. DIY LED's/T5s. Apex. Bluefish. Clams. Tangs. SPS.
ghellin is offline   Reply With Quote
Unread 03/14/2011, 06:38 PM   #103
Jeff D
Registered Member
 
Join Date: Mar 2010
Location: NY
Posts: 38
Hi, I have 12 drivers but 2 channels can I use a 2N2222A TO-18 Style transistor instead ? I have got a bunch ! thanks Jeff


Jeff D is offline   Reply With Quote
Unread 03/14/2011, 06:47 PM   #104
katchupoy
Moved On
 
katchupoy's Avatar
 
Join Date: Feb 2003
Location: Kent, WA
Posts: 1,548
Quote:
Originally Posted by Jeff D View Post
Hi, I have 12 drivers but 2 channels can I use a 2N2222A TO-18 Style transistor instead ? I have got a bunch ! thanks Jeff
I believe this is the same and ok to use... maybe experts can chime in here... Just make sure the legs assignment for base, collector and emitter.

Also, my drawings might be different but should work if legs assignment are followed.


katchupoy is offline   Reply With Quote
Unread 03/14/2011, 06:52 PM   #105
Jeff D
Registered Member
 
Join Date: Mar 2010
Location: NY
Posts: 38
Great, Also what pwm pins do I use? will it matter? or will they be assigned
in the software?


Jeff D is offline   Reply With Quote
Unread 03/14/2011, 06:56 PM   #106
katchupoy
Moved On
 
katchupoy's Avatar
 
Join Date: Feb 2003
Location: Kent, WA
Posts: 1,548
Quote:
Originally Posted by Jeff D View Post
Great, Also what pwm pins do I use? will it matter? or will they be assigned
in the software?
Whats left is 3, 9, 10, and 11... And yes these are all assignable in the sketch.
9 and 10 are reserved for servos (future?).


So use 3 and 11.


katchupoy is offline   Reply With Quote
Unread 03/14/2011, 07:01 PM   #107
terahz
1x10^12 Hz
 
terahz's Avatar
 
Join Date: Oct 2009
Location: Stamford, CT
Posts: 1,185
Quote:
Originally Posted by ghellin View Post
Terahz are you using cat 4101 drivers?
Yes


__________________
Аз съм българче!

Current Tank Info: DIY 40 Breeder with LEDs
terahz is offline   Reply With Quote
Unread 03/14/2011, 07:07 PM   #108
Jeff D
Registered Member
 
Join Date: Mar 2010
Location: NY
Posts: 38
Did you figure out what we will case this squrrels nest in ?? thanks J


Jeff D is offline   Reply With Quote
Unread 03/14/2011, 07:32 PM   #109
katchupoy
Moved On
 
katchupoy's Avatar
 
Join Date: Feb 2003
Location: Kent, WA
Posts: 1,548
Quote:
Originally Posted by Jeff D View Post
Did you figure out what we will case this squrrels nest in ?? thanks J
arduino is really small considering, so you can put it in one of these boxes...
http://www.radioshack.com/family/ind...goryId=2032276

I have mine on the same shoe box where all the drivers are.... its not really good looking, but maybe in the future, i will put it on these boxes.



Last edited by katchupoy; 03/14/2011 at 07:45 PM.
katchupoy is offline   Reply With Quote
Unread 03/14/2011, 11:00 PM   #110
katchupoy
Moved On
 
katchupoy's Avatar
 
Join Date: Feb 2003
Location: Kent, WA
Posts: 1,548
Here is another diagram complete with resistor and transistor on a breadboard.
Hope this makes sense...




katchupoy is offline   Reply With Quote
Unread 03/14/2011, 11:04 PM   #111
TheReefNinja
Imagination superfreak
 
TheReefNinja's Avatar
 
Join Date: Jan 2011
Location: West Chicago, IL. near RT. 59 and RT. 64
Posts: 1,698
Hmmm it would seem we would not need the dimming pots any more after we get a way to turn white or blue on or off and dim from the keypad.


__________________
Regards, Tom

Current tank: 45g acrylic cube, Sunpod 150w 14k bulb
Current Fish: Hey I gots some fish..
TheReefNinja is offline   Reply With Quote
Unread 03/14/2011, 11:24 PM   #112
katchupoy
Moved On
 
katchupoy's Avatar
 
Join Date: Feb 2003
Location: Kent, WA
Posts: 1,548
Quote:
Originally Posted by TheReefNinja View Post
Hmmm it would seem we would not need the dimming pots any more after we get a way to turn white or blue on or off and dim from the keypad.
Thats very true. Here are the reasons why I still have it.
1) It came from the original wiring diagram.
2) If arduino dies, we can simply short the negative (to make it 100%) and control the device from the "POT". Plan B? if arduino dies.
3) If for example I want to use only 50% or so intensity of lighting, instead of me re-programming my arduino, I simply turn this dial.

Hope it makes sense.

And another thing, my sketch (code) is so simple (i dont know any better), it does not have any control from the keypad yet. Just making it simple for now...

Maybe in the future.


katchupoy is offline   Reply With Quote
Unread 03/14/2011, 11:33 PM   #113
TheReefNinja
Imagination superfreak
 
TheReefNinja's Avatar
 
Join Date: Jan 2011
Location: West Chicago, IL. near RT. 59 and RT. 64
Posts: 1,698
Quote:
Originally Posted by katchupoy View Post
Thats very true. Here are the reasons why I still have it.
1) It came from the original wiring diagram.
2) If arduino dies, we can simply short the negative (to make it 100%) and control the device from the "POT". Plan B? if arduino dies.
3) If for example I want to use only 50% or so intensity of lighting, instead of me re-programming my arduino, I simply turn this dial.

Hope it makes sense.

And another thing, my sketch (code) is so simple (i dont know any better), it does not have any control from the keypad yet. Just making it simple for now...

Maybe in the future.
Good plan on the failsafe. I hear ya on simple sketch so far, get it working then add from there. As soon as I get my units in I can start playing with this with you. I am sure other open source projects may help us along our journey.

Got my RTC's in today along with my Hydra Reef Controller board ( I plan on building that project also ) this should be a fun few weeks ahead.


__________________
Regards, Tom

Current tank: 45g acrylic cube, Sunpod 150w 14k bulb
Current Fish: Hey I gots some fish..
TheReefNinja is offline   Reply With Quote
Unread 03/14/2011, 11:49 PM   #114
katchupoy
Moved On
 
katchupoy's Avatar
 
Join Date: Feb 2003
Location: Kent, WA
Posts: 1,548
Quote:
Originally Posted by TheReefNinja View Post
Good plan on the failsafe. I hear ya on simple sketch so far, get it working then add from there. As soon as I get my units in I can start playing with this with you. I am sure other open source projects may help us along our journey.

Got my RTC's in today along with my Hydra Reef Controller board ( I plan on building that project also ) this should be a fun few weeks ahead.
Whoa... youre doing the Hydra? well your way advance than me... lol...


katchupoy is offline   Reply With Quote
Unread 03/15/2011, 12:15 AM   #115
TheReefNinja
Imagination superfreak
 
TheReefNinja's Avatar
 
Join Date: Jan 2011
Location: West Chicago, IL. near RT. 59 and RT. 64
Posts: 1,698
Quote:
Originally Posted by katchupoy View Post
Whoa... youre doing the Hydra? well your way advance than me... lol...
Lol I can solder pretty decent and understand coding basics. I found someone with a board so I figured I would give it a shot. Its a win win for me I get to make 2 different controllers and it gives me more of a reason to start a quarantine tank.

So you should order a few DS18B20 1 Wire Digital Thermometer ( http://www.taydaelectronics.com/serv...ITAL-DS/Detail ) there only $1.60 and shipping was $.99 for 4 of these and 6 other items and you could use one in your heatsink to see what the leds are running at. here is a chunk of code that I found to use it

Code:
// Get temp data from DS18B20 ***************************************************************************************
if ( !ds.search(addr)) {
ds.reset_search();
return;
}
ds.reset();
ds.select(addr);
ds.write(0x44,1); // start conversion, with parasite power on at the end
delay(750); // !!! keep this line for parasite power mode of DS18B20
present = ds.reset();
ds.select(addr);
ds.write(0xBE); // Read Scratchpad
for ( i = 0; i < 9; i++) { // we need 9 bytes
data[i] = ds.read();
}
LowByte = data[0];
HighByte = data[1];
TReading = (HighByte << 8) + LowByte;
SignBit = TReading & 0x8000; // test most sig bit
if (SignBit) // negative
{
TReading = (TReading ^ 0xffff) + 1; // 2's comp
}
Tc_100 = (6 * TReading) + TReading / 4; // Multiply by (100 * 0.0625) or 6.25
Tc_100 = (Tc_100 * 9/5) + 3200; // Convert to fahrenheit, comment this out to display in celcius added 100 for temp correction
temp_Low = min(temp_Low, Tc_100);
temp_High = max(temp_High, Tc_100);

// Display current temperature line 0 *****************************************************************************
if(on_minute == 0) {
lcd.setCursor(0,0);
lcd.print("Wt:");
delay(keypad_delay);
Whole = (Tc_100 / 100); // separate off the whole and fractional portions
Fract = (Tc_100 % 100)/10;
lcd.print(Whole, DEC);
delay(keypad_delay);
lcd.print(".");
delay(keypad_delay);
lcd.print(Fract, DEC);
delay(keypad_delay);
lcd.write(0xDF);
delay(keypad_delay);
}
//Display Low Temp***************************************************************************************
if(on_minute == 0){ //used so if bad data is sent for the first reading, it is not saved
lcd.setCursor(0,9);
Whole = (temp_Low / 100); // separate off the whole and fractional portions
Fract = (temp_Low % 100)/10;
lcd.print(Whole, DEC);
delay(keypad_delay);
lcd.print(".");
delay(keypad_delay);
lcd.print(Fract, DEC);
delay(keypad_delay);
lcd.write(0xDF);
delay(keypad_delay);
lcd.setCursor(0,14);
lcd.print("-");
delay(keypad_delay);
}
//Display High Temp***********************************************************************************
if(on_minute == 0){ //used so if bad data is sent for the first reading, it is not saved
lcd.setCursor(0,15);
Whole = (temp_High / 100); // separate off the whole and fractional portions
Fract = (temp_High % 100)/10;
lcd.print(Whole, DEC);
delay(keypad_delay);
lcd.print(".");
delay(keypad_delay);
lcd.print(Fract, DEC);
delay(keypad_delay);
lcd.write(0xDF);
delay(keypad_delay);
}
found at http://reefprojects.com/w/phpBB3/vie....php?f=8&t=298

Hookup is power, ground, and the digital signal wire pretty easy.

EDIT!!!!!! forgot to mention you can encase these in silicone or some resin epoxy and use em for tank water temp also. thats why I got a few I will do 1 for led temp and 1 for tank temp

EDIT EDIT!!!! he adds this up top in the code

Code:
#include 
and this a bit down

Code:
Digital Pin 44 = Temp Sensor
and a bit further...

Code:
OneWire ds(44);
and this isnt praising the code right........... but you get the point


__________________
Regards, Tom

Current tank: 45g acrylic cube, Sunpod 150w 14k bulb
Current Fish: Hey I gots some fish..

Last edited by TheReefNinja; 03/15/2011 at 12:32 AM. Reason: added last paragraph
TheReefNinja is offline   Reply With Quote
Unread 03/15/2011, 08:57 AM   #116
terahz
1x10^12 Hz
 
terahz's Avatar
 
Join Date: Oct 2009
Location: Stamford, CT
Posts: 1,185
TheReefNinja, the code tags have trouble including code with brackets so use the php tag instead.

I'm also using DS18B20 on my Hydra and they seem to work well. However few days ago, one of the dipped-in-silicone ones decided to malfunction and my PH started measuring almost 2pts down (showing 6pH !). So just keep that in mind


__________________
Аз съм българче!

Current Tank Info: DIY 40 Breeder with LEDs
terahz is offline   Reply With Quote
Unread 03/15/2011, 09:00 AM   #117
TheReefNinja
Imagination superfreak
 
TheReefNinja's Avatar
 
Join Date: Jan 2011
Location: West Chicago, IL. near RT. 59 and RT. 64
Posts: 1,698
Quote:
Originally Posted by terahz View Post
TheReefNinja, the code tags have trouble including code with brackets so use the php tag instead.

I'm also using DS18B20 on my Hydra and they seem to work well. However few days ago, one of the dipped-in-silicone ones decided to malfunction and my PH started measuring almost 2pts down (showing 6pH !). So just keep that in mind
Thanks for the heads up on these I will make sure to keep an eye on em. Now how did it effect your ph sensor?


__________________
Regards, Tom

Current tank: 45g acrylic cube, Sunpod 150w 14k bulb
Current Fish: Hey I gots some fish..
TheReefNinja is offline   Reply With Quote
Unread 03/15/2011, 09:09 AM   #118
terahz
1x10^12 Hz
 
terahz's Avatar
 
Join Date: Oct 2009
Location: Stamford, CT
Posts: 1,185
I believe the silicone must have cracked and caused some voltage leak in the tank, because once I took the probe outside the water the PH normalized.

I just realize I made it sound as though the chip actually cause the PH to dip.


__________________
Аз съм българче!

Current Tank Info: DIY 40 Breeder with LEDs
terahz is offline   Reply With Quote
Unread 03/15/2011, 10:03 AM   #119
katchupoy
Moved On
 
katchupoy's Avatar
 
Join Date: Feb 2003
Location: Kent, WA
Posts: 1,548
Quote:
Originally Posted by TheReefNinja View Post
So you should order a few DS18B20 1 Wire Digital Thermometer ( http://www.taydaelectronics.com/serv...ITAL-DS/Detail ) there only $1.60 and shipping was $.99 for 4 of these and 6 other items and you could use one in your heatsink to see what the leds are running at.
When Im done documenting this project and everyone can follow... I will come back to this post and will probably bother you with a lot of questions... this is a nice feature to add. But in the future.....


katchupoy is offline   Reply With Quote
Unread 03/15/2011, 10:21 AM   #120
TheReefNinja
Imagination superfreak
 
TheReefNinja's Avatar
 
Join Date: Jan 2011
Location: West Chicago, IL. near RT. 59 and RT. 64
Posts: 1,698
Quote:
Originally Posted by katchupoy View Post
When Im done documenting this project and everyone can follow... I will come back to this post and will probably bother you with a lot of questions... this is a nice feature to add. But in the future.....
Good stuff. order now it might take a week or 2 to get em lol

Terahz, did you use fish tank silicone? I only wonder if the salt had any effect on it. I plan on doing a thin epoxy dip 3"in up the wires and then encase in silicone hope it holds up. One thing I can think of is the wires being moved around may have loosened up the silicone and allowed water to seep in.

EDIT: what coding environment are you guys using for this I have Eclipse all set up for my android dev stuff but this is C isnt it?


__________________
Regards, Tom

Current tank: 45g acrylic cube, Sunpod 150w 14k bulb
Current Fish: Hey I gots some fish..

Last edited by TheReefNinja; 03/15/2011 at 10:29 AM.
TheReefNinja is offline   Reply With Quote
Unread 03/15/2011, 10:50 AM   #121
TheReefNinja
Imagination superfreak
 
TheReefNinja's Avatar
 
Join Date: Jan 2011
Location: West Chicago, IL. near RT. 59 and RT. 64
Posts: 1,698
Ok so I got the Arduino environment all set up. Does this tell you errors in your code like some other dev environments?


__________________
Regards, Tom

Current tank: 45g acrylic cube, Sunpod 150w 14k bulb
Current Fish: Hey I gots some fish..
TheReefNinja is offline   Reply With Quote
Unread 03/15/2011, 10:51 AM   #122
terahz
1x10^12 Hz
 
terahz's Avatar
 
Join Date: Oct 2009
Location: Stamford, CT
Posts: 1,185
I used aquarium silicone, yes. It was a pretty big dab of silicone on the chip and exposed wires and it worked for a few months. I might try the epoxy+silicone and see how that holds up. I just got my 1wire bus boards so it is time to rewire the probes anyway.

I work with the Arduino IDE. It isn't as good as eclipse, but not that bad either.


__________________
Аз съм българче!

Current Tank Info: DIY 40 Breeder with LEDs
terahz is offline   Reply With Quote
Unread 03/15/2011, 05:42 PM   #123
Molehs
the H is silent
 
Molehs's Avatar
 
Join Date: Feb 2011
Location: Gurnee, IL
Posts: 297
Woohoo I got my first piece of the project!...The DS1307 RTC...yep that's right I now have a clock....LOL


__________________
"Do amphipods dream of underwater sheep?"
Molehs is offline   Reply With Quote
Unread 03/15/2011, 06:06 PM   #124
katchupoy
Moved On
 
katchupoy's Avatar
 
Join Date: Feb 2003
Location: Kent, WA
Posts: 1,548
Quote:
Originally Posted by Molehs View Post
Woohoo I got my first piece of the project!...The DS1307 RTC...yep that's right I now have a clock....LOL
If we have the same DS1307... then it needs assembly? its really requires small assembly, but a lot has issues with the battery... so make sure + and - is correct and solder points are good.

Thats all...


katchupoy is offline   Reply With Quote
Unread 03/15/2011, 06:33 PM   #125
madreef_7K
Registered Member
 
madreef_7K's Avatar
 
Join Date: Jul 2007
Location: San Diego CA
Posts: 314
excellent info here Katchuppoy!

One question, can this controller make LEDs undergo softstart or softstop?


madreef_7K is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not 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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DIY Led Build of the Month plankton99 Do It Yourself 11 11/20/2011 08:21 AM
DIY leds...now with arduino Controlled lights... António Vitor Do It Yourself 4 05/18/2011 02:13 AM
Yet Another DIY LED Build Thread csarkar001 Do It Yourself 54 05/11/2011 05:55 PM
One quick DIY LED question Impossible Do It Yourself 4 10/27/2010 09:50 AM
Anyone DIY LEDs in their Biocube? bassplaya12 Do It Yourself 13 08/15/2010 01:03 PM


All times are GMT -6. The time now is 12:06 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Powered by Searchlight © 2024 Axivo Inc.
Use of this web site is subject to the terms and conditions described in the user agreement.
Reef CentralTM Reef Central, LLC. Copyright ©1999-2022
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.