Hunter X's Arduino Whole Tank Controller (52K Warning) - Page 10
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 > DIY


Reply
 
Thread Tools Display Modes
Old 02-04-2014, 02:03 PM   #136
benjaf
Algae Grower
 
benjaf's Avatar
 
PTrader: (0/0%)
Join Date: Mar 2012
Location: Denmark
Posts: 105
Default

Quote:
Originally Posted by epicfail View Post
If you are using Meanwell's LDD-H drivers with an Arduino do you need some sort of protection between the driver and the Arduino? If so what would it need to be?
Most likely not. The thing with MOSFETs is that they act as an open drain for a moment when switched on, just like a cap. This draws considerably more current than the Arduino can safely deliver, causing long-term damage to the microcontroller.
The PWM input of the drivers are highly unlikely to behave like this, so you should be fine without protection.
__________________
benjaf is online now   Reply With Quote
Sponsored Links
Advertisement
 
Old 02-04-2014, 02:09 PM   #137
benjaf
Algae Grower
 
benjaf's Avatar
 
PTrader: (0/0%)
Join Date: Mar 2012
Location: Denmark
Posts: 105
Default

Quote:
Originally Posted by mistergreen View Post
It's better and cheaper to use a rasberry pi as the web server and use the arduino as the slave to do its thing
I agree that a natively Ethernet-capable device would be a better choice for the master. However, at this point it would mean a complete rewrite of all his controller code. Upgrading to a RasPi or BeagleBoard would be more of a version 2 thing in my opinion.
__________________
benjaf is online now   Reply With Quote
Old 02-14-2014, 12:53 PM   #138
salman
Algae Grower
 
PTrader: (5/100%)
Join Date: Apr 2013
Location: New York
Posts: 144
Default

Quote:
Originally Posted by HunterX View Post
I soldered them between the wire connections running to the motors. The side of the DIOD with the black line should be soldered to the positive wire. Have you started any "code" yet?
What diode are you using for fan and motors?
salman is online now   Reply With Quote
Old 03-16-2014, 03:59 PM   #139
bigd603
Planted Member
 
PTrader: (1/100%)
Join Date: May 2011
Location: Portland, OR
Posts: 265
Default

Any one made any progress they would care to share?

Sent from my Galaxy Nexus using Tapatalk
bigd603 is offline   Reply With Quote
Old 03-16-2014, 06:16 PM   #140
HunterX
Planted Tank Obsessed
 
HunterX's Avatar
 
PTrader: (22/100%)
Join Date: May 2012
Location: Springfield MO
Posts: 364
Default

Quote:
Originally Posted by bigd603 View Post
Any one made any progress they would care to share?

Sent from my Galaxy Nexus using Tapatalk
Hey bigd,

Sorry I haven't been able to do anything with it in about a month. I redeploy back to the states in May. I have been super busy tracking and training our replacements.

I was never able to prevent the wifi adaptor from freezing up. When I get some time that is what I will be working on. Everything else has performed as expected.
HunterX is offline   Reply With Quote
Old 03-17-2014, 05:47 AM   #141
Fluffles
Algae Grower
 
PTrader: (1/100%)
Join Date: Jul 2012
Location: Canada
Posts: 38
Default

Hi!
I've actually made some good progress over the last 2 months. I haven't posted anything on the forums since there seems to be several Arduino projects going on and I feel I don't really have anything new to contribute.

At this point I'm done hooking up everything and just started coding 2 days ago. This project is a clone to HunterX's project, but I have a slightly smaller box and I changed a few things to suit my needs.
Still undecided on potentially adding 5050 LEDs for sunrise, sunset, and moonlight. Unfortunately, no real space left for DIN connectors incase I decide to add more stuff in the future.



See album pictures

Credits:
HunterX - Original design. I would not be doing this if he didn't post his work earlier. Seems like he also inspired several other members to get started on their own controllers.
Chiefston - Posted his code on another thread and I've learned a lot from it. Probably saved me 10s of hours trying to figure out how to code for certain things (e.g. reading and writing to RTC RAM)
And everyone else in this thread

Thanks again to all those involved.
Fluffles is online now   Reply With Quote
Old 03-17-2014, 03:30 PM   #142
pianofish
Wannabe Guru
 
pianofish's Avatar
 
PTrader: (24/100%)
Join Date: Jan 2010
Location: Lafayette, Louisiana
Posts: 1,039
Default

Pretty pumped. I just finished purchasing most only parts for this build. I'll be adding on and editing the design though. Using a pic18 MCU as a slave to rasPi instead of an arduino. I'll also be adding additional temp probes, and ph probe. It will also be controlling my DIY t5ho dimmable build, and eventually my drip water changer in my sump. I'll be posting here to collaborate as my build progresses.
Thanks everyone for the inspiration and beginning designs.
Joshua
pianofish is offline   Reply With Quote
Old 03-17-2014, 03:46 PM   #143
scapegoat
Planted Tank Guru
 
scapegoat's Avatar
 
PTrader: (15/100%)
Join Date: Jun 2010
Location: philadelphia, pa
Posts: 2,220
Default

gorgeous!

my controller is sitting on my work bench. I'm still figuring out how to stuff everything into a 9" x 9" space.
__________________
scapegoat is online now   Reply With Quote
Old 03-17-2014, 03:55 PM   #144
bigd603
Planted Member
 
PTrader: (1/100%)
Join Date: May 2011
Location: Portland, OR
Posts: 265
Default

Fluffles, great job in the controller! What's the overall size of the box?

Sent from my Galaxy Nexus using Tapatalk
bigd603 is offline   Reply With Quote
Old 03-17-2014, 10:16 PM   #145
Fluffles
Algae Grower
 
PTrader: (1/100%)
Join Date: Jul 2012
Location: Canada
Posts: 38
Default

Outside dimensions for the box are 13"Lx11"Wx4"H
Inside dimensions are 12.25"Lx10.5"Wx3.5"H

It's not too much smaller than Hunter's box, but with all these components and wires inside the box, space is at a premium.
Fluffles is online now   Reply With Quote
Old 03-18-2014, 10:08 AM   #146
HunterX
Planted Tank Obsessed
 
HunterX's Avatar
 
PTrader: (22/100%)
Join Date: May 2012
Location: Springfield MO
Posts: 364
Default

Fluffles,

Great job on the box. It looks great. If you are interested I can send you my code. It may help out some.
HunterX is offline   Reply With Quote
Old 03-18-2014, 11:48 AM   #147
drewsuf82
Wannabe Guru
 
drewsuf82's Avatar
 
PTrader: (65/100%)
Join Date: May 2012
Location: Port Richey, FL
Posts: 1,846
Default

Wow is all I have to say....makes me want to learn lol
drewsuf82 is online now   Reply With Quote
Old 03-18-2014, 03:21 PM   #148
bigd603
Planted Member
 
PTrader: (1/100%)
Join Date: May 2011
Location: Portland, OR
Posts: 265
Default

Quote:
Originally Posted by drewsuf82 View Post
Wow is all I have to say....makes me want to learn lol
Do it, Drew! The beauty of Arduino is that it's so easy to learn, and there is so much help available out there. It's a really fun and rewarding hobby.

Sent from my Galaxy Nexus using Tapatalk
bigd603 is offline   Reply With Quote
Old 03-19-2014, 12:24 AM   #149
Fluffles
Algae Grower
 
PTrader: (1/100%)
Join Date: Jul 2012
Location: Canada
Posts: 38
Default

Thanks everyone!

Quote:
Originally Posted by HunterX View Post
Fluffles,

Great job on the box. It looks great. If you are interested I can send you my code. It may help out some.
That would be great! It would be great to see how you approached buttons and LEDs, scheduling, and dosing. I can also share my code if you're interested, but it's still in very early stages.

Right now my code can only keep track of buttons status so there's not much work done with scheduling yet. I'm trying to make it so that each button has 3 states: ON-OFF-AUTO

If a button is depressed, it will turn the relay OFF and LED OFF.
If a button is pressed once, it will turn the relay ON and LED ON
When a button is pressed for a second time, it will allow the relay to enter AUTO mode and let the scheduler take over. But how do you know that relay is in AUTO? The button LED will blink on and off once a second.
In short a button will work like this: ON-OFF-AUTO-OFF-ON-OFF-AUTO...etc
It's been a pain to code, but I think I finally have it working. This should give me absolute control over each relay no matter what the scheduler is trying to do.
Fluffles is online now   Reply With Quote
Old 03-19-2014, 05:23 AM   #150
JoeFL77
Algae Grower
 
PTrader: (0/0%)
Join Date: Sep 2013
Location: Melbourne, FL
Posts: 11
Default

Dear HunterX,
Could you send me the code too or post it. I am trying to do the same thing. I looked at Chad's and would like to see another approach.
Thanks
Joe
__________________
Repairing 120XH, building a LED light
JoeFL77 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 Off

Forum Jump


All times are GMT. The time now is 05:57 PM.


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